diff --git a/network/Makefile b/network/Makefile
index b01c07d7..03086f5f 100644
--- a/network/Makefile
+++ b/network/Makefile
@@ -1,9 +1,11 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022 Intel Corporation
# Copyright (c) 2022 Dell Inc, or its subsidiaries.
+# Copyright (C) 2023 Nordix Foundation.
all:
cd opinetcommon && $(MAKE)
cd cloud && $(MAKE)
+ cd evpn-gw && $(MAKE)
cd telco && $(MAKE)
cd k8s && $(MAKE)
diff --git a/network/evpn-gw/Makefile b/network/evpn-gw/Makefile
new file mode 100644
index 00000000..ad912a3b
--- /dev/null
+++ b/network/evpn-gw/Makefile
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: Apache-2.0
+# Copyright (C) 2022 Intel Corporation
+# Copyright (c) 2022 Dell Inc, or its subsidiaries.
+# Copyright (C) 2023 Nordix Foundation.
+
+all:
+ rm -rf ./v1alpha1/{autogen.md,gen,google}
+ mkdir -p ./v1alpha1/gen/{go,cpp,python,java}
+
+ docker run --user=$$(id -u):$$(id -g) --rm -v "${PWD}":/defs -v "${PWD}/../../common/v1":/common -v "${PWD}/../opinetcommon/v1alpha1":/opinetcommon namely/protoc-all:1.47_2 -i /common -i /opinetcommon --lint -d v1alpha1 -l go -o ./v1alpha1/gen/go/ --go-source-relative
+ docker run --user=$$(id -u):$$(id -g) --rm -v "${PWD}":/defs -v "${PWD}/../../common/v1":/common -v "${PWD}/../opinetcommon/v1alpha1":/opinetcommon namely/protoc-all:1.47_2 -i /common -i /opinetcommon --lint -d v1alpha1 -l cpp -o ./v1alpha1/gen/cpp/ --go-source-relative
+ docker run --user=$$(id -u):$$(id -g) --rm -v "${PWD}":/defs -v "${PWD}/../../common/v1":/common -v "${PWD}/../opinetcommon/v1alpha1":/opinetcommon namely/protoc-all:1.47_2 -i /common -i /opinetcommon --lint -d v1alpha1 -l python -o ./v1alpha1/gen/python/ --go-source-relative
+ docker run --user=$$(id -u):$$(id -g) --rm -v "${PWD}":/defs -v "${PWD}/../../common/v1":/common -v "${PWD}/../opinetcommon/v1alpha1":/opinetcommon namely/protoc-all:1.47_2 -i /common -i /opinetcommon --lint -d v1alpha1 -l java -o ./v1alpha1/gen/java/ --go-source-relative
+
+ # protoc doesn't include annotation and http googleapis, so we have to get them here
+ curl -kL https://github.com/googleapis/googleapis/archive/master.tar.gz | tar --strip=1 -zxvf - googleapis-master/google/api
+ mv google "${PWD}"/v1alpha1/
+ docker run --user=$$(id -u):$$(id -g) --rm --entrypoint=sh -v "${PWD}/../../common/v1":/common -v "${PWD}/../opinetcommon/v1alpha1":/opinetcommon -v "${PWD}"/v1alpha1/:/out -w /out -v "${PWD}"/v1alpha1:/protos pseudomuto/protoc-gen-doc -c "protoc -I /common -I /opinetcommon -I /protos --doc_out=/out --doc_opt=markdown,autogen.md /protos/*.proto /common/*.proto"
+ docker run --user=$$(id -u):$$(id -g) --rm --entrypoint=sh -v "${PWD}/../../common/v1":/common -v "${PWD}/../opinetcommon/v1alpha1":/opinetcommon -v "${PWD}"/v1alpha1/:/out -w /out ghcr.io/docker-multiarch/google-api-linter:1.36.0 -c "api-linter -I /common -I /opinetcommon /out/*.proto --output-format summary"
+ docker run --user=$$(id -u):$$(id -g) --rm --entrypoint=sh -v "${PWD}/../../common/v1":/common -v "${PWD}/../opinetcommon/v1alpha1":/opinetcommon -v "${PWD}"/v1alpha1/:/out -w /out ghcr.io/docker-multiarch/google-api-linter:1.36.0 -c "api-linter -I /common -I /opinetcommon /out/[!oc]*.proto --output-format github --set-exit-status"
+ rm -rf "${PWD}"/v1alpha1/google
diff --git a/network/evpn-gw/README.md b/network/evpn-gw/README.md
new file mode 100644
index 00000000..d77d7e69
--- /dev/null
+++ b/network/evpn-gw/README.md
@@ -0,0 +1,100 @@
+# EVPN Gateway API
+
+EVPN is one of the most well known technologies when it comes to data center networks. It is a Service Provider VPN Technology defined in RFC 8365 as an Internet Standard by the IETF's "BGP Enabled Services" working group. Its flexibility and scalability characteristics allow the interconnection of geographically dispersed sites using layer 2 and layer 3 networking instances.
+
+We present a lean and tailor-made EVPN Gateway API for provisioning integrated L2 and L3 network instances on an xPU, with the option to connect these to L2- and/or L3-VPN instances through an EVPN GW function hosted on the xPU.
+
+## Provision of Tenant VPNs and Networks
+
+Tenant networks are provisioned on the xPU through the EVPN Gateway API, which is realized through gRPC and specified through the Protobuf definitions.
+
+The EVPN Gateway API in the Kubernetes context is used for network provisioning before and after the cluster instantiation, as well as interface configuration during pod creation.
+
+The API works on four object classes: VRF (Virtual Routing Funtions), SVI (Switched Virtual Interface), LogicalBridge and BridgePort. Their relationship is illustrated in the API data model below.
+
+```mermaid
+erDiagram
+ LogicalBridge }|..o{ BridgePort : ""
+ LogicalBridge ||..o| SVI: ""
+ SVI }o..|| VRF: ""
+ LogicalBridge ||..o| L2-EVPN : ""
+ VRF ||..o| L3-EVPN : ""
+ LogicalBridge{
+ string name
+ uint vlan_id
+ uint vni[optional]
+ }
+ BridgePort{
+ string name
+ string mac_adrress
+ PortType ptype
+ List logical_bridge
+ }
+ VRF{
+ string name
+ uint vni[optional]
+ IPPrefix loopback_ip
+ IPPrefix vtep_ip[optional]
+ }
+ L3-EVPN{
+ uint rd
+ string rmac
+ uint route_target
+ }
+ L2-EVPN{
+ uint rd
+ uint route_target
+ }
+ SVI{
+ string name
+ string vrf
+ string logical_bridge
+ string mac_adress
+ List gw_ip_prefix
+ }
+```
+
+The following objects are managed though the xPU EVPN Gateway API
+
+* **Logical Bridge (LB)**
+
+ Provide L2 forwarding between bridge ports. A logical bridge is a single broadcast domain and corresponds to a single VLAN with its own FDB. The logical bridge gives per VLAN learning.
+
+ A Logical Bridge can optionally be associated with an L2-EVPN instance, which extends the L2 forwarding domain beyond the scope of the single server. The VNI value is used as import and export route target in EVPN BGP as well as in the VXLAN encapsulation of the tunneled traffic.
+
+* **Bridge Port (BP)**
+
+ A bridge port connects a tenant to one or more Logical Bridges. The model supports both access and trunk ports. An access port receives untagged frames from tenants and maps frames to the configured VLAN of a single logical bridge. Trunk ports forward tagged frames transparently for a set of specified VLANs. Within the xPU the packets are forwarded according to their VLAN tag. A trunk port is hence associated with multiple Logical Bridges.
+
+ A typical use case of a bridge port is to configure L2 services for a VF in the host domain. In Kubernetes context a CNI plugin would create the BridgePort and inject the configured VF through a Network Attachment Definition into the Pod
+
+* **Switched Virtual Interface (SVI)**
+
+ An SVI is a virtual L3 interface that connects a logical Bridge to a VRF on the xPU. The SVI has a MAC address on the Logical Bridge and one or more IP addresses in the VRF , which can act as GW IPs for the tenants connected to the Logical Bridge. The GW IPs must be in the same subnets as the Pod IP addresses assigned through the chosen Kubernetes IPAM plugin.
+
+* **Virtual Routing Funtions (VRF)**
+
+ A VRF routes IP packets locally between BridgePorts on LogicalBridges connected through SVIs.
+
+ A VRF can optionally be associated with an L3-EVPN instance to provide L3 connectivity to external nodes. In that case the specified VNI value is used as import/export route target (RTs) in EVPN BGP as well as in the VXLAN encapsulation of the tunneled L3-VPN traffic. The VRF loopback IP address is used as basis for the EVPN route distinguisher (RD).
+
+ The EVPN GW advertises the VRF loopback IP and the subnet prefixes of the connected SVI interfaces as VPN routes to attract traffic. VPN routes imported from BGP are reachable from locally connected BridgePorts.
+
+## EVPN GW offload - Target Architecture
+
+In the image below is depicted the graphical representation of the target architecture.
+
+At the top is the single server host which is running a standard Kubernetes system. This consists of the Kubernetes control plane with Kubelet, standard primary networking realized by Calico cni and kube-proxy. Both Calico cni and kube-proxy are relying on Linux routing and IP tables for providing primary networking locally on that host. Subsequently for external connectivity the host is connected through a primary virtual function (VF) to the xPU.
+
+On top of that in order to accelerate secondary networking a secondary cni (xpu cni) plums in VFs as secondary network interfaces into Kubernetes Pods which are consumed as standard SR-IOV VFs. These VFs can be configured as "Access" type which will give VLAN access to a single network or as "Trunk" type which will give VLAN access to a range of networks. Finally those VFs will be connected to the Physical ports of the xPU through a programmable hardware pipeline. This is the so called fastpath where the packets will flow.
+
+To populate the programmable hardware pipeline with rules a control plane is needed. This runs on the left hand side of the below image on the ARM cores complex of the xPU. The control plane consists of several Open Source components. The first one is the Linux Bridging and Routing control plane which also represents the slowpath implementation of the xPU. Next is the EVPN Gateway control plane which is based on the FRR and is used for the BGP peering and finally is the IPSEC control plane which is based on strongSwan and is used for the IPSEC encryption.
+
+The configuration of the control plane is taken care by a
+component that is called xpu infrastructure manager which runs also on the ARM cores complex. The basic funtionality of this component is to configure initially the control plane and then translate the resulting state of the Linux system into forwarding information on the xPU pipeline. A large part of the xpu infrastructure manager is vendor agnostic and only a small part of it is vendor specific and is the one that is used for programming the rules on the xPU pipeline.
+
+As final step the provisioning of networking will take place. This will happen using the EVPN Gateway gRPC API. This gRPC API will be leveraged by a simple cli wrapper but also by the xpu cni which wil program the networking of the VFs that are injected as secondary interfaces into the Kubernetes Pods.
+
+To summarize, the architecture that has been described above allows the deployment of single server solutions where the whole EVPN Gateway functionality is offloaded in a fully programmable xPU NIC.
+
+![evpn gw offload - target architecture](./images/evpn-gw-offload-target-arch.png)
diff --git a/network/evpn-gw/images/evpn-gw-offload-target-arch.png b/network/evpn-gw/images/evpn-gw-offload-target-arch.png
new file mode 100644
index 00000000..991bbace
Binary files /dev/null and b/network/evpn-gw/images/evpn-gw-offload-target-arch.png differ
diff --git a/network/evpn-gw/v1alpha1/__init__.py b/network/evpn-gw/v1alpha1/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/network/evpn-gw/v1alpha1/autogen.md b/network/evpn-gw/v1alpha1/autogen.md
new file mode 100644
index 00000000..f677f134
--- /dev/null
+++ b/network/evpn-gw/v1alpha1/autogen.md
@@ -0,0 +1,1049 @@
+# Protocol Documentation
+
+
+## Table of Contents
+
+- [l2_xpu_infra_mgr.proto](#l2_xpu_infra_mgr-proto)
+ - [BridgePort](#opi_api-network-evpn_gw-v1alpha1-BridgePort)
+ - [BridgePortSpec](#opi_api-network-evpn_gw-v1alpha1-BridgePortSpec)
+ - [BridgePortStatus](#opi_api-network-evpn_gw-v1alpha1-BridgePortStatus)
+ - [CreateBridgePortRequest](#opi_api-network-evpn_gw-v1alpha1-CreateBridgePortRequest)
+ - [CreateLogicalBridgeRequest](#opi_api-network-evpn_gw-v1alpha1-CreateLogicalBridgeRequest)
+ - [DeleteBridgePortRequest](#opi_api-network-evpn_gw-v1alpha1-DeleteBridgePortRequest)
+ - [DeleteLogicalBridgeRequest](#opi_api-network-evpn_gw-v1alpha1-DeleteLogicalBridgeRequest)
+ - [GetBridgePortRequest](#opi_api-network-evpn_gw-v1alpha1-GetBridgePortRequest)
+ - [GetLogicalBridgeRequest](#opi_api-network-evpn_gw-v1alpha1-GetLogicalBridgeRequest)
+ - [ListBridgePortsRequest](#opi_api-network-evpn_gw-v1alpha1-ListBridgePortsRequest)
+ - [ListBridgePortsResponse](#opi_api-network-evpn_gw-v1alpha1-ListBridgePortsResponse)
+ - [ListLogicalBridgesRequest](#opi_api-network-evpn_gw-v1alpha1-ListLogicalBridgesRequest)
+ - [ListLogicalBridgesResponse](#opi_api-network-evpn_gw-v1alpha1-ListLogicalBridgesResponse)
+ - [LogicalBridge](#opi_api-network-evpn_gw-v1alpha1-LogicalBridge)
+ - [LogicalBridgeSpec](#opi_api-network-evpn_gw-v1alpha1-LogicalBridgeSpec)
+ - [LogicalBridgeStatus](#opi_api-network-evpn_gw-v1alpha1-LogicalBridgeStatus)
+
+ - [BPOperStatus](#opi_api-network-evpn_gw-v1alpha1-BPOperStatus)
+ - [BridgePortType](#opi_api-network-evpn_gw-v1alpha1-BridgePortType)
+ - [LBOperStatus](#opi_api-network-evpn_gw-v1alpha1-LBOperStatus)
+
+ - [BridgePortService](#opi_api-network-evpn_gw-v1alpha1-BridgePortService)
+ - [LogicalBridgeService](#opi_api-network-evpn_gw-v1alpha1-LogicalBridgeService)
+
+- [l3_xpu_infra_mgr.proto](#l3_xpu_infra_mgr-proto)
+ - [CreateSviRequest](#opi_api-network-evpn_gw-v1alpha1-CreateSviRequest)
+ - [CreateVrfRequest](#opi_api-network-evpn_gw-v1alpha1-CreateVrfRequest)
+ - [DeleteSviRequest](#opi_api-network-evpn_gw-v1alpha1-DeleteSviRequest)
+ - [DeleteVrfRequest](#opi_api-network-evpn_gw-v1alpha1-DeleteVrfRequest)
+ - [GetSviRequest](#opi_api-network-evpn_gw-v1alpha1-GetSviRequest)
+ - [GetVrfRequest](#opi_api-network-evpn_gw-v1alpha1-GetVrfRequest)
+ - [ListSvisRequest](#opi_api-network-evpn_gw-v1alpha1-ListSvisRequest)
+ - [ListSvisResponse](#opi_api-network-evpn_gw-v1alpha1-ListSvisResponse)
+ - [ListVrfsRequest](#opi_api-network-evpn_gw-v1alpha1-ListVrfsRequest)
+ - [ListVrfsResponse](#opi_api-network-evpn_gw-v1alpha1-ListVrfsResponse)
+ - [Svi](#opi_api-network-evpn_gw-v1alpha1-Svi)
+ - [SviSpec](#opi_api-network-evpn_gw-v1alpha1-SviSpec)
+ - [SviStatus](#opi_api-network-evpn_gw-v1alpha1-SviStatus)
+ - [Vrf](#opi_api-network-evpn_gw-v1alpha1-Vrf)
+ - [VrfSpec](#opi_api-network-evpn_gw-v1alpha1-VrfSpec)
+ - [VrfStatus](#opi_api-network-evpn_gw-v1alpha1-VrfStatus)
+
+ - [SVIOperStatus](#opi_api-network-evpn_gw-v1alpha1-SVIOperStatus)
+ - [VRFOperStatus](#opi_api-network-evpn_gw-v1alpha1-VRFOperStatus)
+
+ - [SviService](#opi_api-network-evpn_gw-v1alpha1-SviService)
+ - [VrfService](#opi_api-network-evpn_gw-v1alpha1-VrfService)
+
+- [inventory.proto](#inventory-proto)
+ - [BIOSInfo](#opi_api-inventory-v1-BIOSInfo)
+ - [BaseboardInfo](#opi_api-inventory-v1-BaseboardInfo)
+ - [CPUInfo](#opi_api-inventory-v1-CPUInfo)
+ - [ChassisInfo](#opi_api-inventory-v1-ChassisInfo)
+ - [GetInventoryRequest](#opi_api-inventory-v1-GetInventoryRequest)
+ - [Inventory](#opi_api-inventory-v1-Inventory)
+ - [MemoryInfo](#opi_api-inventory-v1-MemoryInfo)
+ - [PCIeDeviceInfo](#opi_api-inventory-v1-PCIeDeviceInfo)
+ - [SystemInfo](#opi_api-inventory-v1-SystemInfo)
+
+ - [InventorySvc](#opi_api-inventory-v1-InventorySvc)
+
+- [object_key.proto](#object_key-proto)
+ - [ObjectKey](#opi_api-common-v1-ObjectKey)
+
+- [uuid.proto](#uuid-proto)
+ - [Uuid](#opi_api-common-v1-Uuid)
+
+- [Scalar Value Types](#scalar-value-types)
+
+
+
+
+
Top
+
+## l2_xpu_infra_mgr.proto
+
+
+
+
+
+### BridgePort
+Bridge Port network configuration and status
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The resource name of the Bridge Port. "name" is an opaque object handle that is not user settable. "name" will be returned with created object user can only set {resource}_id on the Create request object Format: bridge_ports/{bridge_port} |
+| spec | [BridgePortSpec](#opi_api-network-evpn_gw-v1alpha1-BridgePortSpec) | | Bridge Port network configuration |
+| status | [BridgePortStatus](#opi_api-network-evpn_gw-v1alpha1-BridgePortStatus) | | Bridge Port network status |
+
+
+
+
+
+
+
+
+### BridgePortSpec
+Bridge Port network configuration
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| mac_address | [bytes](#bytes) | | Bridge Port's MAC address. |
+| ptype | [BridgePortType](#opi_api-network-evpn_gw-v1alpha1-BridgePortType) | | Type of Bridge Port |
+| logical_bridges | [string](#string) | repeated | List of Logical Bridges this Bridge Port will attach. This will define the VLANs that will be enabled in this Bridge Port |
+
+
+
+
+
+
+
+
+### BridgePortStatus
+operational status of a Bridge Port
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| oper_status | [BPOperStatus](#opi_api-network-evpn_gw-v1alpha1-BPOperStatus) | | operational status of a Bridge Port |
+
+
+
+
+
+
+
+
+### CreateBridgePortRequest
+CreateBridgePortRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| bridge_port_id | [string](#string) | | The ID to use for the bridge port, which will become the final component of the bridge port's resource name.
+
+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. If this is not provided the system will auto-generate it. |
+| bridge_port | [BridgePort](#opi_api-network-evpn_gw-v1alpha1-BridgePort) | | The bridge port to create |
+
+
+
+
+
+
+
+
+### CreateLogicalBridgeRequest
+CreateLogicalBridgeRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| logical_bridge_id | [string](#string) | | The ID to use for the logical bridge, which will become the final component of the logical bridge's resource name.
+
+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. If this is not provided the system will auto-generate it. |
+| logical_bridge | [LogicalBridge](#opi_api-network-evpn_gw-v1alpha1-LogicalBridge) | | The logical bridge to create |
+
+
+
+
+
+
+
+
+### DeleteBridgePortRequest
+DeleteBridgePortRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the bridge port to retrieve Format: bridgePorts/{bridge_port} |
+
+
+
+
+
+
+
+
+### DeleteLogicalBridgeRequest
+DeleteLogicalBridgeRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the logical bridge to retrieve Format: logicalBridges/{logical_bridge} |
+
+
+
+
+
+
+
+
+### GetBridgePortRequest
+GetBridgePortRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the bridge port to retrieve Format: bridgePorts/{bridge_port} |
+
+
+
+
+
+
+
+
+### GetLogicalBridgeRequest
+GetLogicalBridgeRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the logical bridge to retrieve Format: logicalBridges/{logical_bridge} |
+
+
+
+
+
+
+
+
+### ListBridgePortsRequest
+ListBridgePortsRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| page_size | [int32](#int32) | | page size of list request |
+| page_token | [string](#string) | | page token of list request |
+
+
+
+
+
+
+
+
+### ListBridgePortsResponse
+ListBridgePortsResponse structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| bridge_ports | [BridgePort](#opi_api-network-evpn_gw-v1alpha1-BridgePort) | repeated | List of all the bridge ports |
+| next_page_token | [string](#string) | | Next page token of list response |
+
+
+
+
+
+
+
+
+### ListLogicalBridgesRequest
+ListLogicalBridgesRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| page_size | [int32](#int32) | | page size of list request |
+| page_token | [string](#string) | | page token of list request |
+
+
+
+
+
+
+
+
+### ListLogicalBridgesResponse
+ListLogicalBridgesResponse structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| logical_bridges | [LogicalBridge](#opi_api-network-evpn_gw-v1alpha1-LogicalBridge) | repeated | List of all the logical bridges |
+| next_page_token | [string](#string) | | Next page token of list response |
+
+
+
+
+
+
+
+
+### LogicalBridge
+Logical Bridge network configuration and status
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The resource name of the Logical Bridge. "name" is an opaque object handle that is not user settable. "name" will be returned with created object user can only set {resource}_id on the Create request object Format: logicalBridges/{logical_bridge} |
+| spec | [LogicalBridgeSpec](#opi_api-network-evpn_gw-v1alpha1-LogicalBridgeSpec) | | Logical Bridge network configuration |
+| status | [LogicalBridgeStatus](#opi_api-network-evpn_gw-v1alpha1-LogicalBridgeStatus) | | Logical Bridge network status |
+
+
+
+
+
+
+
+
+### LogicalBridgeSpec
+Logical Bridge network configuration
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| vlan_id | [uint32](#uint32) | | the VLAN of the L2 domain (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: vlan cannot be negative number. --) |
+| vni | [uint32](#uint32) | | VXLAN VNI for the L2 EVPN. Also used as EVPN route target (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: vni cannot be negative number. --) |
+
+
+
+
+
+
+
+
+### LogicalBridgeStatus
+operational status of a Logical Bridge
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| oper_status | [LBOperStatus](#opi_api-network-evpn_gw-v1alpha1-LBOperStatus) | | operational state of a Logical Bridge |
+
+
+
+
+
+
+
+
+
+
+### BPOperStatus
+BPOperStatus status reflects the operational status of a Bridge Port
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| BP_OPER_STATUS_UNSPECIFIED | 0 | unknown |
+| BP_OPER_STATUS_UP | 1 | Bridge Port is up |
+| BP_OPER_STATUS_DOWN | 2 | Bridge Port is down |
+
+
+
+
+
+### BridgePortType
+BridgePortType reflects the different types of a Bridge Port
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| UNKNOWN | 0 | "unknown" bridge port type |
+| ACCESS | 1 | "access" bridge port type |
+| TRUNK | 2 | "trunk" bridge port type |
+
+
+
+
+
+### LBOperStatus
+LBOperStatus status reflects the operational status of a Logical Bridge
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| LB_OPER_STATUS_UNSPECIFIED | 0 | unknown |
+| LB_OPER_STATUS_UP | 1 | Logical Bridge is up |
+| LB_OPER_STATUS_DOWN | 2 | Logical Bridge is down |
+
+
+
+
+
+
+
+
+
+### BridgePortService
+Management of BridgePort resources
+
+| Method Name | Request Type | Response Type | Description |
+| ----------- | ------------ | ------------- | ------------|
+| CreateBridgePort | [CreateBridgePortRequest](#opi_api-network-evpn_gw-v1alpha1-CreateBridgePortRequest) | [BridgePort](#opi_api-network-evpn_gw-v1alpha1-BridgePort) | Create a Bridge Port |
+| ListBridgePorts | [ListBridgePortsRequest](#opi_api-network-evpn_gw-v1alpha1-ListBridgePortsRequest) | [ListBridgePortsResponse](#opi_api-network-evpn_gw-v1alpha1-ListBridgePortsResponse) | List Bridge Ports |
+| GetBridgePort | [GetBridgePortRequest](#opi_api-network-evpn_gw-v1alpha1-GetBridgePortRequest) | [BridgePort](#opi_api-network-evpn_gw-v1alpha1-BridgePort) | Retrieve a Bridge Port |
+| DeleteBridgePort | [DeleteBridgePortRequest](#opi_api-network-evpn_gw-v1alpha1-DeleteBridgePortRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete a Bridge Port |
+
+
+
+
+### LogicalBridgeService
+Management of LogicalBridge Resources
+
+| Method Name | Request Type | Response Type | Description |
+| ----------- | ------------ | ------------- | ------------|
+| CreateLogicalBridge | [CreateLogicalBridgeRequest](#opi_api-network-evpn_gw-v1alpha1-CreateLogicalBridgeRequest) | [LogicalBridge](#opi_api-network-evpn_gw-v1alpha1-LogicalBridge) | Create a Logical Bridge |
+| ListLogicalBridges | [ListLogicalBridgesRequest](#opi_api-network-evpn_gw-v1alpha1-ListLogicalBridgesRequest) | [ListLogicalBridgesResponse](#opi_api-network-evpn_gw-v1alpha1-ListLogicalBridgesResponse) | List Logical Bridges |
+| GetLogicalBridge | [GetLogicalBridgeRequest](#opi_api-network-evpn_gw-v1alpha1-GetLogicalBridgeRequest) | [LogicalBridge](#opi_api-network-evpn_gw-v1alpha1-LogicalBridge) | Retrieve a Logical Bridge |
+| DeleteLogicalBridge | [DeleteLogicalBridgeRequest](#opi_api-network-evpn_gw-v1alpha1-DeleteLogicalBridgeRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete a Logical Bridge |
+
+
+
+
+
+
+Top
+
+## l3_xpu_infra_mgr.proto
+
+
+
+
+
+### CreateSviRequest
+CreateSviRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| svi_id | [string](#string) | | The ID to use for the svi, which will become the final component of the svi's resource name.
+
+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. If this is not provided the system will auto-generate it. |
+| svi | [Svi](#opi_api-network-evpn_gw-v1alpha1-Svi) | | The Svi to create |
+
+
+
+
+
+
+
+
+### CreateVrfRequest
+CreateVrfRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| vrf_id | [string](#string) | | The ID to use for the vrf, which will become the final component of the vrf's resource name.
+
+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. If this is not provided the system will auto-generate it. |
+| vrf | [Vrf](#opi_api-network-evpn_gw-v1alpha1-Vrf) | | The vrf to create |
+
+
+
+
+
+
+
+
+### DeleteSviRequest
+DeleteSviRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the svi to delete Format: svis/{svi} |
+
+
+
+
+
+
+
+
+### DeleteVrfRequest
+DeleteVrfRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the vrf to delete Format: vrfs/{vrf} |
+
+
+
+
+
+
+
+
+### GetSviRequest
+GetSviRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the svi to retrieve Format: svis/{svi} |
+
+
+
+
+
+
+
+
+### GetVrfRequest
+GetVrfRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the vrf to retrieve Format: vrfs/{vrf} |
+
+
+
+
+
+
+
+
+### ListSvisRequest
+ListSvisRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| page_size | [int32](#int32) | | page size of list request |
+| page_token | [string](#string) | | page token of list request |
+
+
+
+
+
+
+
+
+### ListSvisResponse
+ListSvisResponse structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| svis | [Svi](#opi_api-network-evpn_gw-v1alpha1-Svi) | repeated | List of all the svis |
+| next_page_token | [string](#string) | | Next page token of list response |
+
+
+
+
+
+
+
+
+### ListVrfsRequest
+ListVrfsRequest structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| page_size | [int32](#int32) | | page size of list request |
+| page_token | [string](#string) | | page token of list request |
+
+
+
+
+
+
+
+
+### ListVrfsResponse
+ListVrfsResponse structure
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| vrfs | [Vrf](#opi_api-network-evpn_gw-v1alpha1-Vrf) | repeated | List of all the vrfs |
+| next_page_token | [string](#string) | | Next page token of list response |
+
+
+
+
+
+
+
+
+### Svi
+Svi network configuration
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The resource name of the Svi. "name" is an opaque object handle that is not user settable. "name" will be returned with created object user can only set {resource}_id on the Create request object Format: svis/{svi} |
+| spec | [SviSpec](#opi_api-network-evpn_gw-v1alpha1-SviSpec) | | Svi's network configuration |
+| status | [SviStatus](#opi_api-network-evpn_gw-v1alpha1-SviStatus) | | Svi's network status |
+
+
+
+
+
+
+
+
+### SviSpec
+Svi's network configuration
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| vrf | [string](#string) | | Vrf name Format is `vrfs/{vrf}` |
+| logical_bridge | [string](#string) | | Logical Bridge name Format is `logicalBridges/{logical_bridge}` |
+| mac_address | [bytes](#bytes) | | Svi's MAC address. |
+| gw_ip_prefix | [opi_api.network.opinetcommon.v1alpha1.IPPrefix](#opi_api-network-opinetcommon-v1alpha1-IPPrefix) | repeated | The GW IP addresses assigned to the SVI |
+| enable_bgp | [bool](#bool) | | Set to true to enable BGP peering with Vrf on Svi |
+| remote_as | [uint32](#uint32) | | Conditional: The remote AS used by BGP speakers on LB (1-65535) (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: remote_as cannot be negative number. --) |
+
+
+
+
+
+
+
+
+### SviStatus
+operational status of a Svi
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| oper_status | [SVIOperStatus](#opi_api-network-evpn_gw-v1alpha1-SVIOperStatus) | | operational status of a Svi |
+
+
+
+
+
+
+
+
+### Vrf
+Vrf level network configuration
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The resource name of the Vrf. "name" is an opaque object handle that is not user settable. "name" will be returned with created object user can only set {resource}_id on the Create request object Format: vrfs/{vrf} |
+| spec | [VrfSpec](#opi_api-network-evpn_gw-v1alpha1-VrfSpec) | | Vrf's network configuration |
+| status | [VrfStatus](#opi_api-network-evpn_gw-v1alpha1-VrfStatus) | | Vrf's network status |
+
+
+
+
+
+
+
+
+### VrfSpec
+Vrf network configuration
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| vni | [uint32](#uint32) | | VXLAN VNI for L3 EVPN. Also used as EVPN route target (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: vni cannot be negative number. --) |
+| loopback_ip_prefix | [opi_api.network.opinetcommon.v1alpha1.IPPrefix](#opi_api-network-opinetcommon-v1alpha1-IPPrefix) | | IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR |
+| vtep_ip_prefix | [opi_api.network.opinetcommon.v1alpha1.IPPrefix](#opi_api-network-opinetcommon-v1alpha1-IPPrefix) | | IPv4 or IPv6 IP address prefix for the VXLAN TEP |
+
+
+
+
+
+
+
+
+### VrfStatus
+operational status of a Vrf
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| routing_table | [uint32](#uint32) | | Routing table number (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: routing_table cannot be negative number. --) |
+| local_as | [uint32](#uint32) | | Local AS configured for VRF (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: local_as cannot be negative number. --) |
+| rd | [string](#string) | | Route distinguisher |
+| rmac | [bytes](#bytes) | | Router MAC address of the Vrf |
+| import_rts | [string](#string) | repeated | List of import RTs |
+| export_rts | [string](#string) | repeated | List of export RTs |
+| logical_bridges | [string](#string) | repeated | List of connected Logical Bridges to Vrf This defines the VLANs that are connected to the Vrf |
+| oper_status | [VRFOperStatus](#opi_api-network-evpn_gw-v1alpha1-VRFOperStatus) | | operational status of a Vrf |
+
+
+
+
+
+
+
+
+
+
+### SVIOperStatus
+SVIOperStatus status reflects the operational status of a Svi
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| SVI_OPER_STATUS_UNSPECIFIED | 0 | unknown |
+| SVI_OPER_STATUS_UP | 1 | Svi is up |
+| SVI_OPER_STATUS_DOWN | 2 | Svi is down |
+
+
+
+
+
+### VRFOperStatus
+VRFOperStatus status reflects the operational status of a Vrf
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| VRF_OPER_STATUS_UNSPECIFIED | 0 | unknown |
+| VRF_OPER_STATUS_UP | 1 | Vrf is up |
+| VRF_OPER_STATUS_DOWN | 2 | Vrf is down |
+
+
+
+
+
+
+
+
+
+### SviService
+Management of switch virtual interfaces (SVIs) binding LogicalBridges to VRFs.
+
+| Method Name | Request Type | Response Type | Description |
+| ----------- | ------------ | ------------- | ------------|
+| CreateSvi | [CreateSviRequest](#opi_api-network-evpn_gw-v1alpha1-CreateSviRequest) | [Svi](#opi_api-network-evpn_gw-v1alpha1-Svi) | Create a Svi |
+| ListSvis | [ListSvisRequest](#opi_api-network-evpn_gw-v1alpha1-ListSvisRequest) | [ListSvisResponse](#opi_api-network-evpn_gw-v1alpha1-ListSvisResponse) | List Svis |
+| GetSvi | [GetSviRequest](#opi_api-network-evpn_gw-v1alpha1-GetSviRequest) | [Svi](#opi_api-network-evpn_gw-v1alpha1-Svi) | Retrieve a Svi |
+| DeleteSvi | [DeleteSviRequest](#opi_api-network-evpn_gw-v1alpha1-DeleteSviRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete a Svi |
+
+
+
+
+### VrfService
+Management of Vrf Resources
+
+| Method Name | Request Type | Response Type | Description |
+| ----------- | ------------ | ------------- | ------------|
+| CreateVrf | [CreateVrfRequest](#opi_api-network-evpn_gw-v1alpha1-CreateVrfRequest) | [Vrf](#opi_api-network-evpn_gw-v1alpha1-Vrf) | Create a Vrf |
+| ListVrfs | [ListVrfsRequest](#opi_api-network-evpn_gw-v1alpha1-ListVrfsRequest) | [ListVrfsResponse](#opi_api-network-evpn_gw-v1alpha1-ListVrfsResponse) | List Vrfs |
+| GetVrf | [GetVrfRequest](#opi_api-network-evpn_gw-v1alpha1-GetVrfRequest) | [Vrf](#opi_api-network-evpn_gw-v1alpha1-Vrf) | Retrieve a Vrf |
+| DeleteVrf | [DeleteVrfRequest](#opi_api-network-evpn_gw-v1alpha1-DeleteVrfRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Delete a Vrf |
+
+
+
+
+
+
+Top
+
+## inventory.proto
+
+
+
+
+
+### BIOSInfo
+BIOS Information (Type 0)
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| vendor | [string](#string) | | String number of the BIOS Vendor’s Name. |
+| version | [string](#string) | | String number of the BIOS Version. This value is a free-form string that may contain Core and OEM version information. |
+| date | [string](#string) | | String number of the BIOS release date. The date string, if supplied, is in either mm/dd/yy or mm/dd/yyyy format. If the year portion of the string is two digits, the year is assumed to be 19yy. NOTE: In version 2.3 and later of SMBIOS the mm/dd/yyyy format is only used. |
+
+
+
+
+
+
+
+
+### BaseboardInfo
+Baseboard (or Module) Information (Type 2)
+ The information in this structure defines attributes of a system baseboard (for
+ example, a motherboard, planar, server blade, or other standard system module)
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| asset_tag | [string](#string) | | Number of a null-terminated string |
+| serial_number | [string](#string) | | Number of null-terminated string |
+| vendor | [string](#string) | | Number of null-terminated string |
+| version | [string](#string) | | Number of null-terminated string |
+| product | [string](#string) | | Number of null-terminated string |
+
+
+
+
+
+
+
+
+### CPUInfo
+Processor Information (Type 4)
+ The information in this structure (see Table 21) defines the attributes of a single processor; a separate
+ structure instance is provided for each system processor socket/slot. For example, a system with an
+ IntelDX2™ processor would have a single structure instance while a system with an IntelSX2™ processor
+ would have a structure to describe the main CPU and a second structure to describe the 80487 co1054 processor.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| total_cores | [int32](#int32) | | Number of cores per processor socket See 7.5.6. If the value is unknown, the field is set to 0. For core counts of 256 or greater, the Core Count field is set to FFh and the Core Count 2 field is set to the number of cores. |
+| total_threads | [int32](#int32) | | Number of threads per processor socket See 7.5.8. If the value is unknown, the field is set to 0. For thread counts of 256 or greater, the Thread Count field is set to FFh and the Thread Count 2 field is set to the number of threads. |
+
+
+
+
+
+
+
+
+### ChassisInfo
+System Enclosure or Chassis (Type 3)
+ The information in this structure (see Table 16) defines attributes of the system’s mechanical
+ enclosure(s). For example, if a system included a separate enclosure for its peripheral devices, two
+ structures would be returned: one for the main system enclosure and the second for the peripheral device
+ enclosure. The additions to this structure in version 2.1 of this specification support the population of the
+ CIM_Chassis class.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| asset_tag | [string](#string) | | Number of null-terminated string |
+| serial_number | [string](#string) | | Number of null-terminated string |
+| type | [string](#string) | | Bit 7 Chassis lock is present if 1. Otherwise, either a lock is not present, or it is unknown if the enclosure has a lock. Bits 6:0 Enumeration value; see below. |
+| type_description | [string](#string) | | Table 17 shows the byte values for the System Enclosure or Chassis Types field Number of null-terminated string |
+| vendor | [string](#string) | | Number of null-terminated string |
+| version | [string](#string) | | Number of null-terminated string |
+
+
+
+
+
+
+
+
+### GetInventoryRequest
+Request for Retrieving Inventory data from a device
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the inventory to retrieve - blank for the full inventory |
+
+
+
+
+
+
+
+
+### Inventory
+Response for device inventory data
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| bios | [BIOSInfo](#opi_api-inventory-v1-BIOSInfo) | | BIOS Inventory |
+| system | [SystemInfo](#opi_api-inventory-v1-SystemInfo) | | System Inventory |
+| baseboard | [BaseboardInfo](#opi_api-inventory-v1-BaseboardInfo) | | Baseboard Inventory |
+| chassis | [ChassisInfo](#opi_api-inventory-v1-ChassisInfo) | | Chassis Inventory |
+| processor | [CPUInfo](#opi_api-inventory-v1-CPUInfo) | | CPU Inventory |
+| memory | [MemoryInfo](#opi_api-inventory-v1-MemoryInfo) | | Memory Inventory |
+| pci | [PCIeDeviceInfo](#opi_api-inventory-v1-PCIeDeviceInfo) | repeated | PCI Devices Inventory |
+
+
+
+
+
+
+
+
+### MemoryInfo
+Physical Memory Array (Type 16)
+ This structure describes a collection of memory devices that operate together to form a memory address
+ space.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| total_physical_bytes | [int64](#int64) | | Maximum memory capacity, in kilobytes, for this array If the capacity is not represented in this field, then this field contains 8000 0000h and the Extended Maximum Capacity field should be used. Values 2 TB (8000 0000h) or greater must be represented in the Extended Maximum Capacity field. |
+| total_usable_bytes | [int64](#int64) | | TBD |
+
+
+
+
+
+
+
+
+### PCIeDeviceInfo
+PCI device information
+ TBD: Type 9 or Type 41 ?
+ This structure describes a collection of PCI devices.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| driver | [string](#string) | | Driver assiociated with the device |
+| address | [string](#string) | | BDF address in a string format, for example "0000:00:17.7" |
+| vendor | [string](#string) | | string vendor info |
+| product | [string](#string) | | string product info |
+| revision | [string](#string) | | string revision info |
+| subsystem | [string](#string) | | string subsystem info |
+| class | [string](#string) | | string class info |
+| subclass | [string](#string) | | string subclass info |
+
+
+
+
+
+
+
+
+### SystemInfo
+System Information (Type 1)
+ The information in this structure defines attributes of the overall system and is intended to be associated
+ with the Component ID group of the system’s MIF. An SMBIOS implementation is associated with a single
+ system instance and contains one and only one System Information (Type 1) structure. Table 10 shows
+ the contents of this structure.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| family | [string](#string) | | Number of null-terminated string This text string identifies the family to which a particular computer belongs. A family refers to a set of computers that are similar but not identical from a hardware or software point of view. Typically, a family is composed of different computer models, which have different configurations and pricing points. Computers in the same family often have similar branding and cosmetic features. |
+| name | [string](#string) | | Number of null-terminated string |
+| vendor | [string](#string) | | Number of null-terminated string |
+| serial_number | [string](#string) | | Number of null-terminated string |
+| uuid | [string](#string) | | A UUID is an identifier that is designed to be unique across both time and space. It requires no central registration process. The UUID is 128 bits long. Its format is described in RFC4122, but the actual field contents are opaque and not significant to the SMBIOS specification, which is only concerned with the byte order. Table 11 shows the field names; these field names, particularly for multiplexed fields, follow historical practice. |
+| sku | [string](#string) | | Number of null-terminated string This text string identifies a particular computer configuration for sale. It is sometimes also called a product ID or purchase order number. This number is frequently found in existing fields, but there is no standard format. Typically for a given system board from a given OEM, there are tens of unique processor, memory, hard drive, and optical drive configurations. |
+| version | [string](#string) | | Number of null-terminated string |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+### InventorySvc
+Service functions for the device inventory data
+
+| Method Name | Request Type | Response Type | Description |
+| ----------- | ------------ | ------------- | ------------|
+| GetInventory | [GetInventoryRequest](#opi_api-inventory-v1-GetInventoryRequest) | [Inventory](#opi_api-inventory-v1-Inventory) | retrieves the inventory data for the device |
+
+
+
+
+
+
+Top
+
+## object_key.proto
+
+
+
+
+
+### ObjectKey
+Object Keys are opaque values. The object key uniquely
+identifies a given configuration object. The key used must be unique within
+the agent's context for the give object type and must be non-zero. No other
+restrictions apply on the usage of the key.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| value | [string](#string) | | The value of the ObjectKey |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Top
+
+## uuid.proto
+
+
+
+
+
+### Uuid
+A universally unique identifier (UUID) is a 128-bit label
+When generated according to the standard methods, UUIDs are, for practical purposes, unique.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| value | [string](#string) | | The value of the UUID |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Scalar Value Types
+
+| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
+| ----------- | ----- | --- | ---- | ------ | -- | -- | --- | ---- |
+| double | | double | double | float | float64 | double | float | Float |
+| float | | float | float | float | float32 | float | float | Float |
+| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
+| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum |
+| uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) |
+| uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) |
+| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
+| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum |
+| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) |
+| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum |
+| sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
+| sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum |
+| bool | | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass |
+| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) |
+| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) |
+
diff --git a/network/evpn-gw/v1alpha1/gen/__init__.py b/network/evpn-gw/v1alpha1/gen/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.grpc.pb.cc b/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.grpc.pb.cc
new file mode 100644
index 00000000..e4efe9ac
--- /dev/null
+++ b/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.grpc.pb.cc
@@ -0,0 +1,405 @@
+// Generated by the gRPC C++ plugin.
+// If you make any local change, they will be lost.
+// source: l2_xpu_infra_mgr.proto
+
+#include "l2_xpu_infra_mgr.pb.h"
+#include "l2_xpu_infra_mgr.grpc.pb.h"
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+namespace opi_api {
+namespace network {
+namespace evpn_gw {
+namespace v1alpha1 {
+
+static const char* LogicalBridgeService_method_names[] = {
+ "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/CreateLogicalBridge",
+ "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/ListLogicalBridges",
+ "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/GetLogicalBridge",
+ "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/DeleteLogicalBridge",
+};
+
+std::unique_ptr< LogicalBridgeService::Stub> LogicalBridgeService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
+ (void)options;
+ std::unique_ptr< LogicalBridgeService::Stub> stub(new LogicalBridgeService::Stub(channel, options));
+ return stub;
+}
+
+LogicalBridgeService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
+ : channel_(channel), rpcmethod_CreateLogicalBridge_(LogicalBridgeService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
+ , rpcmethod_ListLogicalBridges_(LogicalBridgeService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
+ , rpcmethod_GetLogicalBridge_(LogicalBridgeService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
+ , rpcmethod_DeleteLogicalBridge_(LogicalBridgeService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
+ {}
+
+::grpc::Status LogicalBridgeService::Stub::CreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) {
+ return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateLogicalBridge_, context, request, response);
+}
+
+void LogicalBridgeService::Stub::async::CreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, std::function f) {
+ ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateLogicalBridge_, context, request, response, std::move(f));
+}
+
+void LogicalBridgeService::Stub::async::CreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, ::grpc::ClientUnaryReactor* reactor) {
+ ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateLogicalBridge_, context, request, response, reactor);
+}
+
+::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* LogicalBridgeService::Stub::PrepareAsyncCreateLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateLogicalBridge_, context, request);
+}
+
+::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* LogicalBridgeService::Stub::AsyncCreateLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ auto* result =
+ this->PrepareAsyncCreateLogicalBridgeRaw(context, request, cq);
+ result->StartCall();
+ return result;
+}
+
+::grpc::Status LogicalBridgeService::Stub::ListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* response) {
+ return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListLogicalBridges_, context, request, response);
+}
+
+void LogicalBridgeService::Stub::async::ListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* response, std::function f) {
+ ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListLogicalBridges_, context, request, response, std::move(f));
+}
+
+void LogicalBridgeService::Stub::async::ListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* response, ::grpc::ClientUnaryReactor* reactor) {
+ ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListLogicalBridges_, context, request, response, reactor);
+}
+
+::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>* LogicalBridgeService::Stub::PrepareAsyncListLogicalBridgesRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::grpc::CompletionQueue* cq) {
+ return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListLogicalBridges_, context, request);
+}
+
+::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>* LogicalBridgeService::Stub::AsyncListLogicalBridgesRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::grpc::CompletionQueue* cq) {
+ auto* result =
+ this->PrepareAsyncListLogicalBridgesRaw(context, request, cq);
+ result->StartCall();
+ return result;
+}
+
+::grpc::Status LogicalBridgeService::Stub::GetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) {
+ return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetLogicalBridge_, context, request, response);
+}
+
+void LogicalBridgeService::Stub::async::GetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, std::function f) {
+ ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLogicalBridge_, context, request, response, std::move(f));
+}
+
+void LogicalBridgeService::Stub::async::GetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, ::grpc::ClientUnaryReactor* reactor) {
+ ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetLogicalBridge_, context, request, response, reactor);
+}
+
+::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* LogicalBridgeService::Stub::PrepareAsyncGetLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetLogicalBridge_, context, request);
+}
+
+::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* LogicalBridgeService::Stub::AsyncGetLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ auto* result =
+ this->PrepareAsyncGetLogicalBridgeRaw(context, request, cq);
+ result->StartCall();
+ return result;
+}
+
+::grpc::Status LogicalBridgeService::Stub::DeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::google::protobuf::Empty* response) {
+ return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteLogicalBridge_, context, request, response);
+}
+
+void LogicalBridgeService::Stub::async::DeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* request, ::google::protobuf::Empty* response, std::function f) {
+ ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteLogicalBridge_, context, request, response, std::move(f));
+}
+
+void LogicalBridgeService::Stub::async::DeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) {
+ ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteLogicalBridge_, context, request, response, reactor);
+}
+
+::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* LogicalBridgeService::Stub::PrepareAsyncDeleteLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::protobuf::Empty, ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteLogicalBridge_, context, request);
+}
+
+::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* LogicalBridgeService::Stub::AsyncDeleteLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ auto* result =
+ this->PrepareAsyncDeleteLogicalBridgeRaw(context, request, cq);
+ result->StartCall();
+ return result;
+}
+
+LogicalBridgeService::Service::Service() {
+ AddMethod(new ::grpc::internal::RpcServiceMethod(
+ LogicalBridgeService_method_names[0],
+ ::grpc::internal::RpcMethod::NORMAL_RPC,
+ new ::grpc::internal::RpcMethodHandler< LogicalBridgeService::Service, ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
+ [](LogicalBridgeService::Service* service,
+ ::grpc::ServerContext* ctx,
+ const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* req,
+ ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* resp) {
+ return service->CreateLogicalBridge(ctx, req, resp);
+ }, this)));
+ AddMethod(new ::grpc::internal::RpcServiceMethod(
+ LogicalBridgeService_method_names[1],
+ ::grpc::internal::RpcMethod::NORMAL_RPC,
+ new ::grpc::internal::RpcMethodHandler< LogicalBridgeService::Service, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
+ [](LogicalBridgeService::Service* service,
+ ::grpc::ServerContext* ctx,
+ const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* req,
+ ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* resp) {
+ return service->ListLogicalBridges(ctx, req, resp);
+ }, this)));
+ AddMethod(new ::grpc::internal::RpcServiceMethod(
+ LogicalBridgeService_method_names[2],
+ ::grpc::internal::RpcMethod::NORMAL_RPC,
+ new ::grpc::internal::RpcMethodHandler< LogicalBridgeService::Service, ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
+ [](LogicalBridgeService::Service* service,
+ ::grpc::ServerContext* ctx,
+ const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* req,
+ ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* resp) {
+ return service->GetLogicalBridge(ctx, req, resp);
+ }, this)));
+ AddMethod(new ::grpc::internal::RpcServiceMethod(
+ LogicalBridgeService_method_names[3],
+ ::grpc::internal::RpcMethod::NORMAL_RPC,
+ new ::grpc::internal::RpcMethodHandler< LogicalBridgeService::Service, ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
+ [](LogicalBridgeService::Service* service,
+ ::grpc::ServerContext* ctx,
+ const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* req,
+ ::google::protobuf::Empty* resp) {
+ return service->DeleteLogicalBridge(ctx, req, resp);
+ }, this)));
+}
+
+LogicalBridgeService::Service::~Service() {
+}
+
+::grpc::Status LogicalBridgeService::Service::CreateLogicalBridge(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) {
+ (void) context;
+ (void) request;
+ (void) response;
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+}
+
+::grpc::Status LogicalBridgeService::Service::ListLogicalBridges(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* response) {
+ (void) context;
+ (void) request;
+ (void) response;
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+}
+
+::grpc::Status LogicalBridgeService::Service::GetLogicalBridge(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) {
+ (void) context;
+ (void) request;
+ (void) response;
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+}
+
+::grpc::Status LogicalBridgeService::Service::DeleteLogicalBridge(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* request, ::google::protobuf::Empty* response) {
+ (void) context;
+ (void) request;
+ (void) response;
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+}
+
+
+static const char* BridgePortService_method_names[] = {
+ "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/CreateBridgePort",
+ "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/ListBridgePorts",
+ "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/GetBridgePort",
+ "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/DeleteBridgePort",
+};
+
+std::unique_ptr< BridgePortService::Stub> BridgePortService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
+ (void)options;
+ std::unique_ptr< BridgePortService::Stub> stub(new BridgePortService::Stub(channel, options));
+ return stub;
+}
+
+BridgePortService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
+ : channel_(channel), rpcmethod_CreateBridgePort_(BridgePortService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
+ , rpcmethod_ListBridgePorts_(BridgePortService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
+ , rpcmethod_GetBridgePort_(BridgePortService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
+ , rpcmethod_DeleteBridgePort_(BridgePortService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
+ {}
+
+::grpc::Status BridgePortService::Stub::CreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) {
+ return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateBridgePort_, context, request, response);
+}
+
+void BridgePortService::Stub::async::CreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, std::function f) {
+ ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateBridgePort_, context, request, response, std::move(f));
+}
+
+void BridgePortService::Stub::async::CreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, ::grpc::ClientUnaryReactor* reactor) {
+ ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateBridgePort_, context, request, response, reactor);
+}
+
+::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* BridgePortService::Stub::PrepareAsyncCreateBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::BridgePort, ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateBridgePort_, context, request);
+}
+
+::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* BridgePortService::Stub::AsyncCreateBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ auto* result =
+ this->PrepareAsyncCreateBridgePortRaw(context, request, cq);
+ result->StartCall();
+ return result;
+}
+
+::grpc::Status BridgePortService::Stub::ListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* response) {
+ return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListBridgePorts_, context, request, response);
+}
+
+void BridgePortService::Stub::async::ListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* response, std::function f) {
+ ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListBridgePorts_, context, request, response, std::move(f));
+}
+
+void BridgePortService::Stub::async::ListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* response, ::grpc::ClientUnaryReactor* reactor) {
+ ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListBridgePorts_, context, request, response, reactor);
+}
+
+::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>* BridgePortService::Stub::PrepareAsyncListBridgePortsRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::grpc::CompletionQueue* cq) {
+ return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListBridgePorts_, context, request);
+}
+
+::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>* BridgePortService::Stub::AsyncListBridgePortsRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::grpc::CompletionQueue* cq) {
+ auto* result =
+ this->PrepareAsyncListBridgePortsRaw(context, request, cq);
+ result->StartCall();
+ return result;
+}
+
+::grpc::Status BridgePortService::Stub::GetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) {
+ return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetBridgePort_, context, request, response);
+}
+
+void BridgePortService::Stub::async::GetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, std::function f) {
+ ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetBridgePort_, context, request, response, std::move(f));
+}
+
+void BridgePortService::Stub::async::GetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, ::grpc::ClientUnaryReactor* reactor) {
+ ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetBridgePort_, context, request, response, reactor);
+}
+
+::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* BridgePortService::Stub::PrepareAsyncGetBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::BridgePort, ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetBridgePort_, context, request);
+}
+
+::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* BridgePortService::Stub::AsyncGetBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ auto* result =
+ this->PrepareAsyncGetBridgePortRaw(context, request, cq);
+ result->StartCall();
+ return result;
+}
+
+::grpc::Status BridgePortService::Stub::DeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::google::protobuf::Empty* response) {
+ return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteBridgePort_, context, request, response);
+}
+
+void BridgePortService::Stub::async::DeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* request, ::google::protobuf::Empty* response, std::function f) {
+ ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteBridgePort_, context, request, response, std::move(f));
+}
+
+void BridgePortService::Stub::async::DeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) {
+ ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteBridgePort_, context, request, response, reactor);
+}
+
+::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* BridgePortService::Stub::PrepareAsyncDeleteBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::protobuf::Empty, ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteBridgePort_, context, request);
+}
+
+::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* BridgePortService::Stub::AsyncDeleteBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ auto* result =
+ this->PrepareAsyncDeleteBridgePortRaw(context, request, cq);
+ result->StartCall();
+ return result;
+}
+
+BridgePortService::Service::Service() {
+ AddMethod(new ::grpc::internal::RpcServiceMethod(
+ BridgePortService_method_names[0],
+ ::grpc::internal::RpcMethod::NORMAL_RPC,
+ new ::grpc::internal::RpcMethodHandler< BridgePortService::Service, ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
+ [](BridgePortService::Service* service,
+ ::grpc::ServerContext* ctx,
+ const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* req,
+ ::opi_api::network::evpn_gw::v1alpha1::BridgePort* resp) {
+ return service->CreateBridgePort(ctx, req, resp);
+ }, this)));
+ AddMethod(new ::grpc::internal::RpcServiceMethod(
+ BridgePortService_method_names[1],
+ ::grpc::internal::RpcMethod::NORMAL_RPC,
+ new ::grpc::internal::RpcMethodHandler< BridgePortService::Service, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
+ [](BridgePortService::Service* service,
+ ::grpc::ServerContext* ctx,
+ const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* req,
+ ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* resp) {
+ return service->ListBridgePorts(ctx, req, resp);
+ }, this)));
+ AddMethod(new ::grpc::internal::RpcServiceMethod(
+ BridgePortService_method_names[2],
+ ::grpc::internal::RpcMethod::NORMAL_RPC,
+ new ::grpc::internal::RpcMethodHandler< BridgePortService::Service, ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
+ [](BridgePortService::Service* service,
+ ::grpc::ServerContext* ctx,
+ const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* req,
+ ::opi_api::network::evpn_gw::v1alpha1::BridgePort* resp) {
+ return service->GetBridgePort(ctx, req, resp);
+ }, this)));
+ AddMethod(new ::grpc::internal::RpcServiceMethod(
+ BridgePortService_method_names[3],
+ ::grpc::internal::RpcMethod::NORMAL_RPC,
+ new ::grpc::internal::RpcMethodHandler< BridgePortService::Service, ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
+ [](BridgePortService::Service* service,
+ ::grpc::ServerContext* ctx,
+ const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* req,
+ ::google::protobuf::Empty* resp) {
+ return service->DeleteBridgePort(ctx, req, resp);
+ }, this)));
+}
+
+BridgePortService::Service::~Service() {
+}
+
+::grpc::Status BridgePortService::Service::CreateBridgePort(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) {
+ (void) context;
+ (void) request;
+ (void) response;
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+}
+
+::grpc::Status BridgePortService::Service::ListBridgePorts(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* response) {
+ (void) context;
+ (void) request;
+ (void) response;
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+}
+
+::grpc::Status BridgePortService::Service::GetBridgePort(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) {
+ (void) context;
+ (void) request;
+ (void) response;
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+}
+
+::grpc::Status BridgePortService::Service::DeleteBridgePort(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* request, ::google::protobuf::Empty* response) {
+ (void) context;
+ (void) request;
+ (void) response;
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+}
+
+
+} // namespace opi_api
+} // namespace network
+} // namespace evpn_gw
+} // namespace v1alpha1
+
diff --git a/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.grpc.pb.h b/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.grpc.pb.h
new file mode 100644
index 00000000..2bfaefc5
--- /dev/null
+++ b/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.grpc.pb.h
@@ -0,0 +1,1434 @@
+// Generated by the gRPC C++ plugin.
+// If you make any local change, they will be lost.
+// source: l2_xpu_infra_mgr.proto
+// Original file comments:
+// SPDX-License-Identifier: Apache-2.0
+// Copyright (C) 2023 Nordix Foundation.
+//
+// (-- api-linter: core::0132::request-parent-required=disabled
+// aip.dev/not-precedent: All the resources are top level. --)
+// (-- api-linter: core::0133::request-parent-required=disabled
+// aip.dev/not-precedent: All the resources are top level. --)
+// (-- api-linter: core::0133::http-uri-parent=disabled
+// aip.dev/not-precedent: All resources are top-level. --)
+// (-- api-linter: core::0216::synonyms=disabled
+// aip.dev/not-precedent: Word "Status" will be used instead of "State". --)
+//
+#ifndef GRPC_l2_5fxpu_5finfra_5fmgr_2eproto__INCLUDED
+#define GRPC_l2_5fxpu_5finfra_5fmgr_2eproto__INCLUDED
+
+#include "l2_xpu_infra_mgr.pb.h"
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+namespace opi_api {
+namespace network {
+namespace evpn_gw {
+namespace v1alpha1 {
+
+// Management of LogicalBridge Resources
+class LogicalBridgeService final {
+ public:
+ static constexpr char const* service_full_name() {
+ return "opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService";
+ }
+ class StubInterface {
+ public:
+ virtual ~StubInterface() {}
+ // Create a Logical Bridge
+ virtual ::grpc::Status CreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) = 0;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>> AsyncCreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>>(AsyncCreateLogicalBridgeRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>> PrepareAsyncCreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>>(PrepareAsyncCreateLogicalBridgeRaw(context, request, cq));
+ }
+ // List Logical Bridges
+ virtual ::grpc::Status ListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* response) = 0;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>> AsyncListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>>(AsyncListLogicalBridgesRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>> PrepareAsyncListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>>(PrepareAsyncListLogicalBridgesRaw(context, request, cq));
+ }
+ // Retrieve a Logical Bridge
+ virtual ::grpc::Status GetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) = 0;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>> AsyncGetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>>(AsyncGetLogicalBridgeRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>> PrepareAsyncGetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>>(PrepareAsyncGetLogicalBridgeRaw(context, request, cq));
+ }
+ // Delete a Logical Bridge
+ virtual ::grpc::Status DeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::google::protobuf::Empty* response) = 0;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncDeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncDeleteLogicalBridgeRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncDeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncDeleteLogicalBridgeRaw(context, request, cq));
+ }
+ class async_interface {
+ public:
+ virtual ~async_interface() {}
+ // Create a Logical Bridge
+ virtual void CreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, std::function) = 0;
+ virtual void CreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, ::grpc::ClientUnaryReactor* reactor) = 0;
+ // List Logical Bridges
+ virtual void ListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* response, std::function) = 0;
+ virtual void ListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
+ // Retrieve a Logical Bridge
+ virtual void GetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, std::function) = 0;
+ virtual void GetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, ::grpc::ClientUnaryReactor* reactor) = 0;
+ // Delete a Logical Bridge
+ virtual void DeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* request, ::google::protobuf::Empty* response, std::function) = 0;
+ virtual void DeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0;
+ };
+ typedef class async_interface experimental_async_interface;
+ virtual class async_interface* async() { return nullptr; }
+ class async_interface* experimental_async() { return async(); }
+ private:
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* AsyncCreateLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* PrepareAsyncCreateLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>* AsyncListLogicalBridgesRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>* PrepareAsyncListLogicalBridgesRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* AsyncGetLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* PrepareAsyncGetLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncDeleteLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncDeleteLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ };
+ class Stub final : public StubInterface {
+ public:
+ Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
+ ::grpc::Status CreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) override;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>> AsyncCreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>>(AsyncCreateLogicalBridgeRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>> PrepareAsyncCreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>>(PrepareAsyncCreateLogicalBridgeRaw(context, request, cq));
+ }
+ ::grpc::Status ListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* response) override;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>> AsyncListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>>(AsyncListLogicalBridgesRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>> PrepareAsyncListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>>(PrepareAsyncListLogicalBridgesRaw(context, request, cq));
+ }
+ ::grpc::Status GetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) override;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>> AsyncGetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>>(AsyncGetLogicalBridgeRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>> PrepareAsyncGetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>>(PrepareAsyncGetLogicalBridgeRaw(context, request, cq));
+ }
+ ::grpc::Status DeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::google::protobuf::Empty* response) override;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncDeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncDeleteLogicalBridgeRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncDeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncDeleteLogicalBridgeRaw(context, request, cq));
+ }
+ class async final :
+ public StubInterface::async_interface {
+ public:
+ void CreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, std::function) override;
+ void CreateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, ::grpc::ClientUnaryReactor* reactor) override;
+ void ListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* response, std::function) override;
+ void ListLogicalBridges(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
+ void GetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, std::function) override;
+ void GetLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, ::grpc::ClientUnaryReactor* reactor) override;
+ void DeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* request, ::google::protobuf::Empty* response, std::function) override;
+ void DeleteLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override;
+ private:
+ friend class Stub;
+ explicit async(Stub* stub): stub_(stub) { }
+ Stub* stub() { return stub_; }
+ Stub* stub_;
+ };
+ class async* async() override { return &async_stub_; }
+
+ private:
+ std::shared_ptr< ::grpc::ChannelInterface> channel_;
+ class async async_stub_{this};
+ ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* AsyncCreateLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* PrepareAsyncCreateLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>* AsyncListLogicalBridgesRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>* PrepareAsyncListLogicalBridgesRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* AsyncGetLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* PrepareAsyncGetLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncDeleteLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncDeleteLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) override;
+ const ::grpc::internal::RpcMethod rpcmethod_CreateLogicalBridge_;
+ const ::grpc::internal::RpcMethod rpcmethod_ListLogicalBridges_;
+ const ::grpc::internal::RpcMethod rpcmethod_GetLogicalBridge_;
+ const ::grpc::internal::RpcMethod rpcmethod_DeleteLogicalBridge_;
+ };
+ static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
+
+ class Service : public ::grpc::Service {
+ public:
+ Service();
+ virtual ~Service();
+ // Create a Logical Bridge
+ virtual ::grpc::Status CreateLogicalBridge(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response);
+ // List Logical Bridges
+ virtual ::grpc::Status ListLogicalBridges(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* response);
+ // Retrieve a Logical Bridge
+ virtual ::grpc::Status GetLogicalBridge(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response);
+ // Delete a Logical Bridge
+ virtual ::grpc::Status DeleteLogicalBridge(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* request, ::google::protobuf::Empty* response);
+ };
+ template
+ class WithAsyncMethod_CreateLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithAsyncMethod_CreateLogicalBridge() {
+ ::grpc::Service::MarkMethodAsync(0);
+ }
+ ~WithAsyncMethod_CreateLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status CreateLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestCreateLogicalBridge(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithAsyncMethod_ListLogicalBridges : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithAsyncMethod_ListLogicalBridges() {
+ ::grpc::Service::MarkMethodAsync(1);
+ }
+ ~WithAsyncMethod_ListLogicalBridges() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status ListLogicalBridges(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestListLogicalBridges(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithAsyncMethod_GetLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithAsyncMethod_GetLogicalBridge() {
+ ::grpc::Service::MarkMethodAsync(2);
+ }
+ ~WithAsyncMethod_GetLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status GetLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestGetLogicalBridge(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithAsyncMethod_DeleteLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithAsyncMethod_DeleteLogicalBridge() {
+ ::grpc::Service::MarkMethodAsync(3);
+ }
+ ~WithAsyncMethod_DeleteLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status DeleteLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestDeleteLogicalBridge(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ typedef WithAsyncMethod_CreateLogicalBridge > > > AsyncService;
+ template
+ class WithCallbackMethod_CreateLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithCallbackMethod_CreateLogicalBridge() {
+ ::grpc::Service::MarkMethodCallback(0,
+ new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) { return this->CreateLogicalBridge(context, request, response); }));}
+ void SetMessageAllocatorFor_CreateLogicalBridge(
+ ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* allocator) {
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
+ static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>*>(handler)
+ ->SetMessageAllocator(allocator);
+ }
+ ~WithCallbackMethod_CreateLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status CreateLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* CreateLogicalBridge(
+ ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) { return nullptr; }
+ };
+ template
+ class WithCallbackMethod_ListLogicalBridges : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithCallbackMethod_ListLogicalBridges() {
+ ::grpc::Service::MarkMethodCallback(1,
+ new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* response) { return this->ListLogicalBridges(context, request, response); }));}
+ void SetMessageAllocatorFor_ListLogicalBridges(
+ ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>* allocator) {
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1);
+ static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>*>(handler)
+ ->SetMessageAllocator(allocator);
+ }
+ ~WithCallbackMethod_ListLogicalBridges() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status ListLogicalBridges(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* ListLogicalBridges(
+ ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* /*response*/) { return nullptr; }
+ };
+ template
+ class WithCallbackMethod_GetLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithCallbackMethod_GetLogicalBridge() {
+ ::grpc::Service::MarkMethodCallback(2,
+ new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) { return this->GetLogicalBridge(context, request, response); }));}
+ void SetMessageAllocatorFor_GetLogicalBridge(
+ ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* allocator) {
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2);
+ static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>*>(handler)
+ ->SetMessageAllocator(allocator);
+ }
+ ~WithCallbackMethod_GetLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status GetLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* GetLogicalBridge(
+ ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) { return nullptr; }
+ };
+ template
+ class WithCallbackMethod_DeleteLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithCallbackMethod_DeleteLogicalBridge() {
+ ::grpc::Service::MarkMethodCallback(3,
+ new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest, ::google::protobuf::Empty>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* request, ::google::protobuf::Empty* response) { return this->DeleteLogicalBridge(context, request, response); }));}
+ void SetMessageAllocatorFor_DeleteLogicalBridge(
+ ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest, ::google::protobuf::Empty>* allocator) {
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3);
+ static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest, ::google::protobuf::Empty>*>(handler)
+ ->SetMessageAllocator(allocator);
+ }
+ ~WithCallbackMethod_DeleteLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status DeleteLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* DeleteLogicalBridge(
+ ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; }
+ };
+ typedef WithCallbackMethod_CreateLogicalBridge > > > CallbackService;
+ typedef CallbackService ExperimentalCallbackService;
+ template
+ class WithGenericMethod_CreateLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithGenericMethod_CreateLogicalBridge() {
+ ::grpc::Service::MarkMethodGeneric(0);
+ }
+ ~WithGenericMethod_CreateLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status CreateLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ };
+ template
+ class WithGenericMethod_ListLogicalBridges : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithGenericMethod_ListLogicalBridges() {
+ ::grpc::Service::MarkMethodGeneric(1);
+ }
+ ~WithGenericMethod_ListLogicalBridges() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status ListLogicalBridges(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ };
+ template
+ class WithGenericMethod_GetLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithGenericMethod_GetLogicalBridge() {
+ ::grpc::Service::MarkMethodGeneric(2);
+ }
+ ~WithGenericMethod_GetLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status GetLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ };
+ template
+ class WithGenericMethod_DeleteLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithGenericMethod_DeleteLogicalBridge() {
+ ::grpc::Service::MarkMethodGeneric(3);
+ }
+ ~WithGenericMethod_DeleteLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status DeleteLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ };
+ template
+ class WithRawMethod_CreateLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawMethod_CreateLogicalBridge() {
+ ::grpc::Service::MarkMethodRaw(0);
+ }
+ ~WithRawMethod_CreateLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status CreateLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestCreateLogicalBridge(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithRawMethod_ListLogicalBridges : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawMethod_ListLogicalBridges() {
+ ::grpc::Service::MarkMethodRaw(1);
+ }
+ ~WithRawMethod_ListLogicalBridges() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status ListLogicalBridges(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestListLogicalBridges(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithRawMethod_GetLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawMethod_GetLogicalBridge() {
+ ::grpc::Service::MarkMethodRaw(2);
+ }
+ ~WithRawMethod_GetLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status GetLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestGetLogicalBridge(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithRawMethod_DeleteLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawMethod_DeleteLogicalBridge() {
+ ::grpc::Service::MarkMethodRaw(3);
+ }
+ ~WithRawMethod_DeleteLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status DeleteLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestDeleteLogicalBridge(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithRawCallbackMethod_CreateLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawCallbackMethod_CreateLogicalBridge() {
+ ::grpc::Service::MarkMethodRawCallback(0,
+ new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateLogicalBridge(context, request, response); }));
+ }
+ ~WithRawCallbackMethod_CreateLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status CreateLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* CreateLogicalBridge(
+ ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
+ };
+ template
+ class WithRawCallbackMethod_ListLogicalBridges : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawCallbackMethod_ListLogicalBridges() {
+ ::grpc::Service::MarkMethodRawCallback(1,
+ new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListLogicalBridges(context, request, response); }));
+ }
+ ~WithRawCallbackMethod_ListLogicalBridges() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status ListLogicalBridges(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* ListLogicalBridges(
+ ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
+ };
+ template
+ class WithRawCallbackMethod_GetLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawCallbackMethod_GetLogicalBridge() {
+ ::grpc::Service::MarkMethodRawCallback(2,
+ new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetLogicalBridge(context, request, response); }));
+ }
+ ~WithRawCallbackMethod_GetLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status GetLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* GetLogicalBridge(
+ ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
+ };
+ template
+ class WithRawCallbackMethod_DeleteLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawCallbackMethod_DeleteLogicalBridge() {
+ ::grpc::Service::MarkMethodRawCallback(3,
+ new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteLogicalBridge(context, request, response); }));
+ }
+ ~WithRawCallbackMethod_DeleteLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status DeleteLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* DeleteLogicalBridge(
+ ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
+ };
+ template
+ class WithStreamedUnaryMethod_CreateLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithStreamedUnaryMethod_CreateLogicalBridge() {
+ ::grpc::Service::MarkMethodStreamed(0,
+ new ::grpc::internal::StreamedUnaryHandler<
+ ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>(
+ [this](::grpc::ServerContext* context,
+ ::grpc::ServerUnaryStreamer<
+ ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* streamer) {
+ return this->StreamedCreateLogicalBridge(context,
+ streamer);
+ }));
+ }
+ ~WithStreamedUnaryMethod_CreateLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable regular version of this method
+ ::grpc::Status CreateLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ // replace default version of method with streamed unary
+ virtual ::grpc::Status StreamedCreateLogicalBridge(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest,::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* server_unary_streamer) = 0;
+ };
+ template
+ class WithStreamedUnaryMethod_ListLogicalBridges : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithStreamedUnaryMethod_ListLogicalBridges() {
+ ::grpc::Service::MarkMethodStreamed(1,
+ new ::grpc::internal::StreamedUnaryHandler<
+ ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>(
+ [this](::grpc::ServerContext* context,
+ ::grpc::ServerUnaryStreamer<
+ ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>* streamer) {
+ return this->StreamedListLogicalBridges(context,
+ streamer);
+ }));
+ }
+ ~WithStreamedUnaryMethod_ListLogicalBridges() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable regular version of this method
+ ::grpc::Status ListLogicalBridges(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ // replace default version of method with streamed unary
+ virtual ::grpc::Status StreamedListLogicalBridges(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest,::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>* server_unary_streamer) = 0;
+ };
+ template
+ class WithStreamedUnaryMethod_GetLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithStreamedUnaryMethod_GetLogicalBridge() {
+ ::grpc::Service::MarkMethodStreamed(2,
+ new ::grpc::internal::StreamedUnaryHandler<
+ ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>(
+ [this](::grpc::ServerContext* context,
+ ::grpc::ServerUnaryStreamer<
+ ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* streamer) {
+ return this->StreamedGetLogicalBridge(context,
+ streamer);
+ }));
+ }
+ ~WithStreamedUnaryMethod_GetLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable regular version of this method
+ ::grpc::Status GetLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ // replace default version of method with streamed unary
+ virtual ::grpc::Status StreamedGetLogicalBridge(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest,::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* server_unary_streamer) = 0;
+ };
+ template
+ class WithStreamedUnaryMethod_DeleteLogicalBridge : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithStreamedUnaryMethod_DeleteLogicalBridge() {
+ ::grpc::Service::MarkMethodStreamed(3,
+ new ::grpc::internal::StreamedUnaryHandler<
+ ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest, ::google::protobuf::Empty>(
+ [this](::grpc::ServerContext* context,
+ ::grpc::ServerUnaryStreamer<
+ ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest, ::google::protobuf::Empty>* streamer) {
+ return this->StreamedDeleteLogicalBridge(context,
+ streamer);
+ }));
+ }
+ ~WithStreamedUnaryMethod_DeleteLogicalBridge() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable regular version of this method
+ ::grpc::Status DeleteLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ // replace default version of method with streamed unary
+ virtual ::grpc::Status StreamedDeleteLogicalBridge(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest,::google::protobuf::Empty>* server_unary_streamer) = 0;
+ };
+ typedef WithStreamedUnaryMethod_CreateLogicalBridge > > > StreamedUnaryService;
+ typedef Service SplitStreamedService;
+ typedef WithStreamedUnaryMethod_CreateLogicalBridge > > > StreamedService;
+};
+
+// Management of BridgePort resources
+class BridgePortService final {
+ public:
+ static constexpr char const* service_full_name() {
+ return "opi_api.network.evpn_gw.v1alpha1.BridgePortService";
+ }
+ class StubInterface {
+ public:
+ virtual ~StubInterface() {}
+ // Create a Bridge Port
+ virtual ::grpc::Status CreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) = 0;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>> AsyncCreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>>(AsyncCreateBridgePortRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>> PrepareAsyncCreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>>(PrepareAsyncCreateBridgePortRaw(context, request, cq));
+ }
+ // List Bridge Ports
+ virtual ::grpc::Status ListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* response) = 0;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>> AsyncListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>>(AsyncListBridgePortsRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>> PrepareAsyncListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>>(PrepareAsyncListBridgePortsRaw(context, request, cq));
+ }
+ // Retrieve a Bridge Port
+ virtual ::grpc::Status GetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) = 0;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>> AsyncGetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>>(AsyncGetBridgePortRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>> PrepareAsyncGetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>>(PrepareAsyncGetBridgePortRaw(context, request, cq));
+ }
+ // Delete a Bridge Port
+ virtual ::grpc::Status DeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::google::protobuf::Empty* response) = 0;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncDeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncDeleteBridgePortRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncDeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncDeleteBridgePortRaw(context, request, cq));
+ }
+ class async_interface {
+ public:
+ virtual ~async_interface() {}
+ // Create a Bridge Port
+ virtual void CreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, std::function) = 0;
+ virtual void CreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, ::grpc::ClientUnaryReactor* reactor) = 0;
+ // List Bridge Ports
+ virtual void ListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* response, std::function) = 0;
+ virtual void ListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
+ // Retrieve a Bridge Port
+ virtual void GetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, std::function) = 0;
+ virtual void GetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, ::grpc::ClientUnaryReactor* reactor) = 0;
+ // Delete a Bridge Port
+ virtual void DeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* request, ::google::protobuf::Empty* response, std::function) = 0;
+ virtual void DeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0;
+ };
+ typedef class async_interface experimental_async_interface;
+ virtual class async_interface* async() { return nullptr; }
+ class async_interface* experimental_async() { return async(); }
+ private:
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* AsyncCreateBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* PrepareAsyncCreateBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>* AsyncListBridgePortsRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>* PrepareAsyncListBridgePortsRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* AsyncGetBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* PrepareAsyncGetBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncDeleteBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncDeleteBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::grpc::CompletionQueue* cq) = 0;
+ };
+ class Stub final : public StubInterface {
+ public:
+ Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
+ ::grpc::Status CreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) override;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>> AsyncCreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>>(AsyncCreateBridgePortRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>> PrepareAsyncCreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>>(PrepareAsyncCreateBridgePortRaw(context, request, cq));
+ }
+ ::grpc::Status ListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* response) override;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>> AsyncListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>>(AsyncListBridgePortsRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>> PrepareAsyncListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>>(PrepareAsyncListBridgePortsRaw(context, request, cq));
+ }
+ ::grpc::Status GetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) override;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>> AsyncGetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>>(AsyncGetBridgePortRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>> PrepareAsyncGetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>>(PrepareAsyncGetBridgePortRaw(context, request, cq));
+ }
+ ::grpc::Status DeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::google::protobuf::Empty* response) override;
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncDeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncDeleteBridgePortRaw(context, request, cq));
+ }
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncDeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::grpc::CompletionQueue* cq) {
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncDeleteBridgePortRaw(context, request, cq));
+ }
+ class async final :
+ public StubInterface::async_interface {
+ public:
+ void CreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, std::function) override;
+ void CreateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, ::grpc::ClientUnaryReactor* reactor) override;
+ void ListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* response, std::function) override;
+ void ListBridgePorts(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
+ void GetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, std::function) override;
+ void GetBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, ::grpc::ClientUnaryReactor* reactor) override;
+ void DeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* request, ::google::protobuf::Empty* response, std::function) override;
+ void DeleteBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override;
+ private:
+ friend class Stub;
+ explicit async(Stub* stub): stub_(stub) { }
+ Stub* stub() { return stub_; }
+ Stub* stub_;
+ };
+ class async* async() override { return &async_stub_; }
+
+ private:
+ std::shared_ptr< ::grpc::ChannelInterface> channel_;
+ class async async_stub_{this};
+ ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* AsyncCreateBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* PrepareAsyncCreateBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>* AsyncListBridgePortsRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>* PrepareAsyncListBridgePortsRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* AsyncGetBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* PrepareAsyncGetBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncDeleteBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::grpc::CompletionQueue* cq) override;
+ ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncDeleteBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest& request, ::grpc::CompletionQueue* cq) override;
+ const ::grpc::internal::RpcMethod rpcmethod_CreateBridgePort_;
+ const ::grpc::internal::RpcMethod rpcmethod_ListBridgePorts_;
+ const ::grpc::internal::RpcMethod rpcmethod_GetBridgePort_;
+ const ::grpc::internal::RpcMethod rpcmethod_DeleteBridgePort_;
+ };
+ static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
+
+ class Service : public ::grpc::Service {
+ public:
+ Service();
+ virtual ~Service();
+ // Create a Bridge Port
+ virtual ::grpc::Status CreateBridgePort(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response);
+ // List Bridge Ports
+ virtual ::grpc::Status ListBridgePorts(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* response);
+ // Retrieve a Bridge Port
+ virtual ::grpc::Status GetBridgePort(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response);
+ // Delete a Bridge Port
+ virtual ::grpc::Status DeleteBridgePort(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* request, ::google::protobuf::Empty* response);
+ };
+ template
+ class WithAsyncMethod_CreateBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithAsyncMethod_CreateBridgePort() {
+ ::grpc::Service::MarkMethodAsync(0);
+ }
+ ~WithAsyncMethod_CreateBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status CreateBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestCreateBridgePort(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithAsyncMethod_ListBridgePorts : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithAsyncMethod_ListBridgePorts() {
+ ::grpc::Service::MarkMethodAsync(1);
+ }
+ ~WithAsyncMethod_ListBridgePorts() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status ListBridgePorts(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestListBridgePorts(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithAsyncMethod_GetBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithAsyncMethod_GetBridgePort() {
+ ::grpc::Service::MarkMethodAsync(2);
+ }
+ ~WithAsyncMethod_GetBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status GetBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestGetBridgePort(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithAsyncMethod_DeleteBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithAsyncMethod_DeleteBridgePort() {
+ ::grpc::Service::MarkMethodAsync(3);
+ }
+ ~WithAsyncMethod_DeleteBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status DeleteBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestDeleteBridgePort(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ typedef WithAsyncMethod_CreateBridgePort > > > AsyncService;
+ template
+ class WithCallbackMethod_CreateBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithCallbackMethod_CreateBridgePort() {
+ ::grpc::Service::MarkMethodCallback(0,
+ new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) { return this->CreateBridgePort(context, request, response); }));}
+ void SetMessageAllocatorFor_CreateBridgePort(
+ ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* allocator) {
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
+ static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>*>(handler)
+ ->SetMessageAllocator(allocator);
+ }
+ ~WithCallbackMethod_CreateBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status CreateBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* CreateBridgePort(
+ ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) { return nullptr; }
+ };
+ template
+ class WithCallbackMethod_ListBridgePorts : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithCallbackMethod_ListBridgePorts() {
+ ::grpc::Service::MarkMethodCallback(1,
+ new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* response) { return this->ListBridgePorts(context, request, response); }));}
+ void SetMessageAllocatorFor_ListBridgePorts(
+ ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>* allocator) {
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1);
+ static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>*>(handler)
+ ->SetMessageAllocator(allocator);
+ }
+ ~WithCallbackMethod_ListBridgePorts() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status ListBridgePorts(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* ListBridgePorts(
+ ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* /*response*/) { return nullptr; }
+ };
+ template
+ class WithCallbackMethod_GetBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithCallbackMethod_GetBridgePort() {
+ ::grpc::Service::MarkMethodCallback(2,
+ new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) { return this->GetBridgePort(context, request, response); }));}
+ void SetMessageAllocatorFor_GetBridgePort(
+ ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* allocator) {
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2);
+ static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>*>(handler)
+ ->SetMessageAllocator(allocator);
+ }
+ ~WithCallbackMethod_GetBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status GetBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* GetBridgePort(
+ ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) { return nullptr; }
+ };
+ template
+ class WithCallbackMethod_DeleteBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithCallbackMethod_DeleteBridgePort() {
+ ::grpc::Service::MarkMethodCallback(3,
+ new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest, ::google::protobuf::Empty>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* request, ::google::protobuf::Empty* response) { return this->DeleteBridgePort(context, request, response); }));}
+ void SetMessageAllocatorFor_DeleteBridgePort(
+ ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest, ::google::protobuf::Empty>* allocator) {
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3);
+ static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest, ::google::protobuf::Empty>*>(handler)
+ ->SetMessageAllocator(allocator);
+ }
+ ~WithCallbackMethod_DeleteBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status DeleteBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* DeleteBridgePort(
+ ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; }
+ };
+ typedef WithCallbackMethod_CreateBridgePort > > > CallbackService;
+ typedef CallbackService ExperimentalCallbackService;
+ template
+ class WithGenericMethod_CreateBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithGenericMethod_CreateBridgePort() {
+ ::grpc::Service::MarkMethodGeneric(0);
+ }
+ ~WithGenericMethod_CreateBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status CreateBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ };
+ template
+ class WithGenericMethod_ListBridgePorts : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithGenericMethod_ListBridgePorts() {
+ ::grpc::Service::MarkMethodGeneric(1);
+ }
+ ~WithGenericMethod_ListBridgePorts() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status ListBridgePorts(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ };
+ template
+ class WithGenericMethod_GetBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithGenericMethod_GetBridgePort() {
+ ::grpc::Service::MarkMethodGeneric(2);
+ }
+ ~WithGenericMethod_GetBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status GetBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ };
+ template
+ class WithGenericMethod_DeleteBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithGenericMethod_DeleteBridgePort() {
+ ::grpc::Service::MarkMethodGeneric(3);
+ }
+ ~WithGenericMethod_DeleteBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status DeleteBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ };
+ template
+ class WithRawMethod_CreateBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawMethod_CreateBridgePort() {
+ ::grpc::Service::MarkMethodRaw(0);
+ }
+ ~WithRawMethod_CreateBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status CreateBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestCreateBridgePort(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithRawMethod_ListBridgePorts : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawMethod_ListBridgePorts() {
+ ::grpc::Service::MarkMethodRaw(1);
+ }
+ ~WithRawMethod_ListBridgePorts() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status ListBridgePorts(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestListBridgePorts(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithRawMethod_GetBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawMethod_GetBridgePort() {
+ ::grpc::Service::MarkMethodRaw(2);
+ }
+ ~WithRawMethod_GetBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status GetBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestGetBridgePort(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithRawMethod_DeleteBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawMethod_DeleteBridgePort() {
+ ::grpc::Service::MarkMethodRaw(3);
+ }
+ ~WithRawMethod_DeleteBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status DeleteBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ void RequestDeleteBridgePort(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
+ ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag);
+ }
+ };
+ template
+ class WithRawCallbackMethod_CreateBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawCallbackMethod_CreateBridgePort() {
+ ::grpc::Service::MarkMethodRawCallback(0,
+ new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CreateBridgePort(context, request, response); }));
+ }
+ ~WithRawCallbackMethod_CreateBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status CreateBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* CreateBridgePort(
+ ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
+ };
+ template
+ class WithRawCallbackMethod_ListBridgePorts : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawCallbackMethod_ListBridgePorts() {
+ ::grpc::Service::MarkMethodRawCallback(1,
+ new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ListBridgePorts(context, request, response); }));
+ }
+ ~WithRawCallbackMethod_ListBridgePorts() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status ListBridgePorts(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* ListBridgePorts(
+ ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
+ };
+ template
+ class WithRawCallbackMethod_GetBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawCallbackMethod_GetBridgePort() {
+ ::grpc::Service::MarkMethodRawCallback(2,
+ new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetBridgePort(context, request, response); }));
+ }
+ ~WithRawCallbackMethod_GetBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status GetBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* GetBridgePort(
+ ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
+ };
+ template
+ class WithRawCallbackMethod_DeleteBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithRawCallbackMethod_DeleteBridgePort() {
+ ::grpc::Service::MarkMethodRawCallback(3,
+ new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
+ [this](
+ ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DeleteBridgePort(context, request, response); }));
+ }
+ ~WithRawCallbackMethod_DeleteBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable synchronous version of this method
+ ::grpc::Status DeleteBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ virtual ::grpc::ServerUnaryReactor* DeleteBridgePort(
+ ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; }
+ };
+ template
+ class WithStreamedUnaryMethod_CreateBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithStreamedUnaryMethod_CreateBridgePort() {
+ ::grpc::Service::MarkMethodStreamed(0,
+ new ::grpc::internal::StreamedUnaryHandler<
+ ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>(
+ [this](::grpc::ServerContext* context,
+ ::grpc::ServerUnaryStreamer<
+ ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* streamer) {
+ return this->StreamedCreateBridgePort(context,
+ streamer);
+ }));
+ }
+ ~WithStreamedUnaryMethod_CreateBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable regular version of this method
+ ::grpc::Status CreateBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ // replace default version of method with streamed unary
+ virtual ::grpc::Status StreamedCreateBridgePort(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest,::opi_api::network::evpn_gw::v1alpha1::BridgePort>* server_unary_streamer) = 0;
+ };
+ template
+ class WithStreamedUnaryMethod_ListBridgePorts : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithStreamedUnaryMethod_ListBridgePorts() {
+ ::grpc::Service::MarkMethodStreamed(1,
+ new ::grpc::internal::StreamedUnaryHandler<
+ ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>(
+ [this](::grpc::ServerContext* context,
+ ::grpc::ServerUnaryStreamer<
+ ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>* streamer) {
+ return this->StreamedListBridgePorts(context,
+ streamer);
+ }));
+ }
+ ~WithStreamedUnaryMethod_ListBridgePorts() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable regular version of this method
+ ::grpc::Status ListBridgePorts(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ // replace default version of method with streamed unary
+ virtual ::grpc::Status StreamedListBridgePorts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest,::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>* server_unary_streamer) = 0;
+ };
+ template
+ class WithStreamedUnaryMethod_GetBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithStreamedUnaryMethod_GetBridgePort() {
+ ::grpc::Service::MarkMethodStreamed(2,
+ new ::grpc::internal::StreamedUnaryHandler<
+ ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>(
+ [this](::grpc::ServerContext* context,
+ ::grpc::ServerUnaryStreamer<
+ ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* streamer) {
+ return this->StreamedGetBridgePort(context,
+ streamer);
+ }));
+ }
+ ~WithStreamedUnaryMethod_GetBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable regular version of this method
+ ::grpc::Status GetBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ // replace default version of method with streamed unary
+ virtual ::grpc::Status StreamedGetBridgePort(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest,::opi_api::network::evpn_gw::v1alpha1::BridgePort>* server_unary_streamer) = 0;
+ };
+ template
+ class WithStreamedUnaryMethod_DeleteBridgePort : public BaseClass {
+ private:
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
+ public:
+ WithStreamedUnaryMethod_DeleteBridgePort() {
+ ::grpc::Service::MarkMethodStreamed(3,
+ new ::grpc::internal::StreamedUnaryHandler<
+ ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest, ::google::protobuf::Empty>(
+ [this](::grpc::ServerContext* context,
+ ::grpc::ServerUnaryStreamer<
+ ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest, ::google::protobuf::Empty>* streamer) {
+ return this->StreamedDeleteBridgePort(context,
+ streamer);
+ }));
+ }
+ ~WithStreamedUnaryMethod_DeleteBridgePort() override {
+ BaseClassMustBeDerivedFromService(this);
+ }
+ // disable regular version of this method
+ ::grpc::Status DeleteBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override {
+ abort();
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
+ }
+ // replace default version of method with streamed unary
+ virtual ::grpc::Status StreamedDeleteBridgePort(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest,::google::protobuf::Empty>* server_unary_streamer) = 0;
+ };
+ typedef WithStreamedUnaryMethod_CreateBridgePort > > > StreamedUnaryService;
+ typedef Service SplitStreamedService;
+ typedef WithStreamedUnaryMethod_CreateBridgePort > > > StreamedService;
+};
+
+} // namespace v1alpha1
+} // namespace evpn_gw
+} // namespace network
+} // namespace opi_api
+
+
+#endif // GRPC_l2_5fxpu_5finfra_5fmgr_2eproto__INCLUDED
diff --git a/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.pb.cc b/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.pb.cc
new file mode 100644
index 00000000..e26ddf6f
--- /dev/null
+++ b/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.pb.cc
@@ -0,0 +1,4294 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: l2_xpu_infra_mgr.proto
+
+#include "l2_xpu_infra_mgr.pb.h"
+
+#include
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+// @@protoc_insertion_point(includes)
+#include
+
+PROTOBUF_PRAGMA_INIT_SEG
+namespace opi_api {
+namespace network {
+namespace evpn_gw {
+namespace v1alpha1 {
+constexpr LogicalBridge::LogicalBridge(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
+ , spec_(nullptr)
+ , status_(nullptr){}
+struct LogicalBridgeDefaultTypeInternal {
+ constexpr LogicalBridgeDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~LogicalBridgeDefaultTypeInternal() {}
+ union {
+ LogicalBridge _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LogicalBridgeDefaultTypeInternal _LogicalBridge_default_instance_;
+constexpr LogicalBridgeSpec::LogicalBridgeSpec(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : vlan_id_(0u)
+ , vni_(0u){}
+struct LogicalBridgeSpecDefaultTypeInternal {
+ constexpr LogicalBridgeSpecDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~LogicalBridgeSpecDefaultTypeInternal() {}
+ union {
+ LogicalBridgeSpec _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LogicalBridgeSpecDefaultTypeInternal _LogicalBridgeSpec_default_instance_;
+constexpr LogicalBridgeStatus::LogicalBridgeStatus(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : oper_status_(0)
+{}
+struct LogicalBridgeStatusDefaultTypeInternal {
+ constexpr LogicalBridgeStatusDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~LogicalBridgeStatusDefaultTypeInternal() {}
+ union {
+ LogicalBridgeStatus _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LogicalBridgeStatusDefaultTypeInternal _LogicalBridgeStatus_default_instance_;
+constexpr CreateLogicalBridgeRequest::CreateLogicalBridgeRequest(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : logical_bridge_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
+ , logical_bridge_(nullptr){}
+struct CreateLogicalBridgeRequestDefaultTypeInternal {
+ constexpr CreateLogicalBridgeRequestDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~CreateLogicalBridgeRequestDefaultTypeInternal() {}
+ union {
+ CreateLogicalBridgeRequest _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateLogicalBridgeRequestDefaultTypeInternal _CreateLogicalBridgeRequest_default_instance_;
+constexpr ListLogicalBridgesRequest::ListLogicalBridgesRequest(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : page_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
+ , page_size_(0){}
+struct ListLogicalBridgesRequestDefaultTypeInternal {
+ constexpr ListLogicalBridgesRequestDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~ListLogicalBridgesRequestDefaultTypeInternal() {}
+ union {
+ ListLogicalBridgesRequest _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListLogicalBridgesRequestDefaultTypeInternal _ListLogicalBridgesRequest_default_instance_;
+constexpr ListLogicalBridgesResponse::ListLogicalBridgesResponse(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : logical_bridges_()
+ , next_page_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
+struct ListLogicalBridgesResponseDefaultTypeInternal {
+ constexpr ListLogicalBridgesResponseDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~ListLogicalBridgesResponseDefaultTypeInternal() {}
+ union {
+ ListLogicalBridgesResponse _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListLogicalBridgesResponseDefaultTypeInternal _ListLogicalBridgesResponse_default_instance_;
+constexpr GetLogicalBridgeRequest::GetLogicalBridgeRequest(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
+struct GetLogicalBridgeRequestDefaultTypeInternal {
+ constexpr GetLogicalBridgeRequestDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~GetLogicalBridgeRequestDefaultTypeInternal() {}
+ union {
+ GetLogicalBridgeRequest _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetLogicalBridgeRequestDefaultTypeInternal _GetLogicalBridgeRequest_default_instance_;
+constexpr DeleteLogicalBridgeRequest::DeleteLogicalBridgeRequest(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
+struct DeleteLogicalBridgeRequestDefaultTypeInternal {
+ constexpr DeleteLogicalBridgeRequestDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~DeleteLogicalBridgeRequestDefaultTypeInternal() {}
+ union {
+ DeleteLogicalBridgeRequest _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteLogicalBridgeRequestDefaultTypeInternal _DeleteLogicalBridgeRequest_default_instance_;
+constexpr BridgePort::BridgePort(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
+ , spec_(nullptr)
+ , status_(nullptr){}
+struct BridgePortDefaultTypeInternal {
+ constexpr BridgePortDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~BridgePortDefaultTypeInternal() {}
+ union {
+ BridgePort _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BridgePortDefaultTypeInternal _BridgePort_default_instance_;
+constexpr BridgePortSpec::BridgePortSpec(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : logical_bridges_()
+ , mac_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
+ , ptype_(0)
+{}
+struct BridgePortSpecDefaultTypeInternal {
+ constexpr BridgePortSpecDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~BridgePortSpecDefaultTypeInternal() {}
+ union {
+ BridgePortSpec _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BridgePortSpecDefaultTypeInternal _BridgePortSpec_default_instance_;
+constexpr BridgePortStatus::BridgePortStatus(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : oper_status_(0)
+{}
+struct BridgePortStatusDefaultTypeInternal {
+ constexpr BridgePortStatusDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~BridgePortStatusDefaultTypeInternal() {}
+ union {
+ BridgePortStatus _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BridgePortStatusDefaultTypeInternal _BridgePortStatus_default_instance_;
+constexpr CreateBridgePortRequest::CreateBridgePortRequest(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : bridge_port_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
+ , bridge_port_(nullptr){}
+struct CreateBridgePortRequestDefaultTypeInternal {
+ constexpr CreateBridgePortRequestDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~CreateBridgePortRequestDefaultTypeInternal() {}
+ union {
+ CreateBridgePortRequest _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateBridgePortRequestDefaultTypeInternal _CreateBridgePortRequest_default_instance_;
+constexpr ListBridgePortsRequest::ListBridgePortsRequest(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : page_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
+ , page_size_(0){}
+struct ListBridgePortsRequestDefaultTypeInternal {
+ constexpr ListBridgePortsRequestDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~ListBridgePortsRequestDefaultTypeInternal() {}
+ union {
+ ListBridgePortsRequest _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListBridgePortsRequestDefaultTypeInternal _ListBridgePortsRequest_default_instance_;
+constexpr ListBridgePortsResponse::ListBridgePortsResponse(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : bridge_ports_()
+ , next_page_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
+struct ListBridgePortsResponseDefaultTypeInternal {
+ constexpr ListBridgePortsResponseDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~ListBridgePortsResponseDefaultTypeInternal() {}
+ union {
+ ListBridgePortsResponse _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListBridgePortsResponseDefaultTypeInternal _ListBridgePortsResponse_default_instance_;
+constexpr GetBridgePortRequest::GetBridgePortRequest(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
+struct GetBridgePortRequestDefaultTypeInternal {
+ constexpr GetBridgePortRequestDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~GetBridgePortRequestDefaultTypeInternal() {}
+ union {
+ GetBridgePortRequest _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetBridgePortRequestDefaultTypeInternal _GetBridgePortRequest_default_instance_;
+constexpr DeleteBridgePortRequest::DeleteBridgePortRequest(
+ ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
+ : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
+struct DeleteBridgePortRequestDefaultTypeInternal {
+ constexpr DeleteBridgePortRequestDefaultTypeInternal()
+ : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
+ ~DeleteBridgePortRequestDefaultTypeInternal() {}
+ union {
+ DeleteBridgePortRequest _instance;
+ };
+};
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteBridgePortRequestDefaultTypeInternal _DeleteBridgePortRequest_default_instance_;
+} // namespace v1alpha1
+} // namespace evpn_gw
+} // namespace network
+} // namespace opi_api
+static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[16];
+static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_l2_5fxpu_5finfra_5fmgr_2eproto[3];
+static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_l2_5fxpu_5finfra_5fmgr_2eproto = nullptr;
+
+const uint32_t TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, name_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, spec_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, status_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec, vlan_id_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec, vni_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus, oper_status_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, logical_bridge_id_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, logical_bridge_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, page_size_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, page_token_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse, logical_bridges_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse, next_page_token_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest, name_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest, name_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePort, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePort, name_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePort, spec_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePort, status_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec, mac_address_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec, ptype_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec, logical_bridges_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus, oper_status_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, bridge_port_id_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, bridge_port_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, page_size_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, page_token_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse, bridge_ports_),
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse, next_page_token_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest, name_),
+ ~0u, // no _has_bits_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ ~0u, // no _inlined_string_donated_
+ PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest, name_),
+};
+static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::LogicalBridge)},
+ { 9, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec)},
+ { 17, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus)},
+ { 24, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest)},
+ { 32, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest)},
+ { 40, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse)},
+ { 48, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest)},
+ { 55, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest)},
+ { 62, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::BridgePort)},
+ { 71, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec)},
+ { 80, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus)},
+ { 87, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest)},
+ { 95, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest)},
+ { 103, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse)},
+ { 111, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest)},
+ { 118, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest)},
+};
+
+static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_LogicalBridge_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_LogicalBridgeSpec_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_LogicalBridgeStatus_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_CreateLogicalBridgeRequest_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_ListLogicalBridgesRequest_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_ListLogicalBridgesResponse_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_GetLogicalBridgeRequest_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_DeleteLogicalBridgeRequest_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_BridgePort_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_BridgePortSpec_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_BridgePortStatus_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_CreateBridgePortRequest_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_ListBridgePortsRequest_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_ListBridgePortsResponse_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_GetBridgePortRequest_default_instance_),
+ reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_DeleteBridgePortRequest_default_instance_),
+};
+
+const char descriptor_table_protodef_l2_5fxpu_5finfra_5fmgr_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
+ "\n\026l2_xpu_infra_mgr.proto\022 opi_api.networ"
+ "k.evpn_gw.v1alpha1\032\034google/api/annotatio"
+ "ns.proto\032\027google/api/client.proto\032\033googl"
+ "e/protobuf/empty.proto\032\037google/api/field"
+ "_behavior.proto\032\031google/api/resource.pro"
+ "to\"\202\002\n\rLogicalBridge\022\014\n\004name\030\001 \001(\t\022F\n\004sp"
+ "ec\030\002 \001(\01323.opi_api.network.evpn_gw.v1alp"
+ "ha1.LogicalBridgeSpecB\003\340A\002\022E\n\006status\030\003 \001"
+ "(\01325.opi_api.network.evpn_gw.v1alpha1.Lo"
+ "gicalBridgeStatus:T\352AQ\n.opi_api.network."
+ "evpn_gw.v1alpha1/LogicalBridge\022\037logicalB"
+ "ridges/{logical_bridge}\"6\n\021LogicalBridge"
+ "Spec\022\024\n\007vlan_id\030\001 \001(\rB\003\340A\002\022\013\n\003vni\030\002 \001(\r\""
+ "Z\n\023LogicalBridgeStatus\022C\n\013oper_status\030\001 "
+ "\001(\0162..opi_api.network.evpn_gw.v1alpha1.L"
+ "BOperStatus\"\205\001\n\032CreateLogicalBridgeReque"
+ "st\022\031\n\021logical_bridge_id\030\001 \001(\t\022L\n\016logical"
+ "_bridge\030\002 \001(\0132/.opi_api.network.evpn_gw."
+ "v1alpha1.LogicalBridgeB\003\340A\002\"B\n\031ListLogic"
+ "alBridgesRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\np"
+ "age_token\030\002 \001(\t\"\177\n\032ListLogicalBridgesRes"
+ "ponse\022H\n\017logical_bridges\030\001 \003(\0132/.opi_api"
+ ".network.evpn_gw.v1alpha1.LogicalBridge\022"
+ "\027\n\017next_page_token\030\002 \001(\t\"_\n\027GetLogicalBr"
+ "idgeRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.opi_a"
+ "pi.network.evpn_gw.v1alpha1/LogicalBridg"
+ "e\"b\n\032DeleteLogicalBridgeRequest\022D\n\004name\030"
+ "\001 \001(\tB6\340A\002\372A0\n.opi_api.network.evpn_gw.v"
+ "1alpha1/LogicalBridge\"\353\001\n\nBridgePort\022\014\n\004"
+ "name\030\001 \001(\t\022>\n\004spec\030\002 \001(\01320.opi_api.netwo"
+ "rk.evpn_gw.v1alpha1.BridgePortSpec\022B\n\006st"
+ "atus\030\003 \001(\01322.opi_api.network.evpn_gw.v1a"
+ "lpha1.BridgePortStatus:K\352AH\n+opi_api.net"
+ "work.evpn_gw.v1alpha1/bridgePort\022\031bridge"
+ "Ports/{bridge_port}\"\211\001\n\016BridgePortSpec\022\030"
+ "\n\013mac_address\030\001 \001(\014B\003\340A\002\022D\n\005ptype\030\002 \001(\0162"
+ "0.opi_api.network.evpn_gw.v1alpha1.Bridg"
+ "ePortTypeB\003\340A\002\022\027\n\017logical_bridges\030\003 \003(\t\""
+ "W\n\020BridgePortStatus\022C\n\013oper_status\030\001 \001(\016"
+ "2..opi_api.network.evpn_gw.v1alpha1.BPOp"
+ "erStatus\"y\n\027CreateBridgePortRequest\022\026\n\016b"
+ "ridge_port_id\030\001 \001(\t\022F\n\013bridge_port\030\002 \001(\013"
+ "2,.opi_api.network.evpn_gw.v1alpha1.Brid"
+ "gePortB\003\340A\002\"\?\n\026ListBridgePortsRequest\022\021\n"
+ "\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"v\n\027"
+ "ListBridgePortsResponse\022B\n\014bridge_ports\030"
+ "\001 \003(\0132,.opi_api.network.evpn_gw.v1alpha1"
+ ".BridgePort\022\027\n\017next_page_token\030\002 \001(\t\"Y\n\024"
+ "GetBridgePortRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372"
+ "A-\n+opi_api.network.evpn_gw.v1alpha1/Bri"
+ "dgePort\"\\\n\027DeleteBridgePortRequest\022A\n\004na"
+ "me\030\001 \001(\tB3\340A\002\372A-\n+opi_api.network.evpn_g"
+ "w.v1alpha1/BridgePort*^\n\014LBOperStatus\022\036\n"
+ "\032LB_OPER_STATUS_UNSPECIFIED\020\000\022\025\n\021LB_OPER"
+ "_STATUS_UP\020\001\022\027\n\023LB_OPER_STATUS_DOWN\020\002*^\n"
+ "\014BPOperStatus\022\036\n\032BP_OPER_STATUS_UNSPECIF"
+ "IED\020\000\022\025\n\021BP_OPER_STATUS_UP\020\001\022\027\n\023BP_OPER_"
+ "STATUS_DOWN\020\002*4\n\016BridgePortType\022\013\n\007UNKNO"
+ "WN\020\000\022\n\n\006ACCESS\020\001\022\t\n\005TRUNK\020\0022\341\005\n\024LogicalB"
+ "ridgeService\022\323\001\n\023CreateLogicalBridge\022<.o"
+ "pi_api.network.evpn_gw.v1alpha1.CreateLo"
+ "gicalBridgeRequest\032/.opi_api.network.evp"
+ "n_gw.v1alpha1.LogicalBridge\"M\202\323\344\223\002$\"\022/v1"
+ "/logicalBridges:\016logical_bridge\332A logica"
+ "l_bridge,logical_bridge_id\022\253\001\n\022ListLogic"
+ "alBridges\022;.opi_api.network.evpn_gw.v1al"
+ "pha1.ListLogicalBridgesRequest\032<.opi_api"
+ ".network.evpn_gw.v1alpha1.ListLogicalBri"
+ "dgesResponse\"\032\202\323\344\223\002\024\022\022/v1/logicalBridges"
+ "\022\252\001\n\020GetLogicalBridge\0229.opi_api.network."
+ "evpn_gw.v1alpha1.GetLogicalBridgeRequest"
+ "\032/.opi_api.network.evpn_gw.v1alpha1.Logi"
+ "calBridge\"*\202\323\344\223\002\035\022\033/v1/{name=logicalBrid"
+ "ges/*}\332A\004name\022\227\001\n\023DeleteLogicalBridge\022<."
+ "opi_api.network.evpn_gw.v1alpha1.DeleteL"
+ "ogicalBridgeRequest\032\026.google.protobuf.Em"
+ "pty\"*\202\323\344\223\002\035*\033/v1/{name=logicalBridges/*}"
+ "\332A\004name2\250\005\n\021BridgePortService\022\276\001\n\020Create"
+ "BridgePort\0229.opi_api.network.evpn_gw.v1a"
+ "lpha1.CreateBridgePortRequest\032,.opi_api."
+ "network.evpn_gw.v1alpha1.BridgePort\"A\202\323\344"
+ "\223\002\036\"\017/v1/bridgePorts:\013bridge_port\332A\032brid"
+ "ge_port,bridge_port_id\022\237\001\n\017ListBridgePor"
+ "ts\0228.opi_api.network.evpn_gw.v1alpha1.Li"
+ "stBridgePortsRequest\0329.opi_api.network.e"
+ "vpn_gw.v1alpha1.ListBridgePortsResponse\""
+ "\027\202\323\344\223\002\021\022\017/v1/bridgePorts\022\236\001\n\rGetBridgePo"
+ "rt\0226.opi_api.network.evpn_gw.v1alpha1.Ge"
+ "tBridgePortRequest\032,.opi_api.network.evp"
+ "n_gw.v1alpha1.BridgePort\"\'\202\323\344\223\002\032\022\030/v1/{n"
+ "ame=bridgePorts/*}\332A\004name\022\216\001\n\020DeleteBrid"
+ "gePort\0229.opi_api.network.evpn_gw.v1alpha"
+ "1.DeleteBridgePortRequest\032\026.google.proto"
+ "buf.Empty\"\'\202\323\344\223\002\032*\030/v1/{name=bridgePorts"
+ "/*}\332A\004nameBw\n opi_api.network.evpn_gw.v1"
+ "alpha1B\022L2XpuInfraMgrProtoP\001Z=github.com"
+ "/opiproject/opi-api/network/evpn-gw/v1al"
+ "pha1/gen/gob\006proto3"
+ ;
+static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_deps[5] = {
+ &::descriptor_table_google_2fapi_2fannotations_2eproto,
+ &::descriptor_table_google_2fapi_2fclient_2eproto,
+ &::descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto,
+ &::descriptor_table_google_2fapi_2fresource_2eproto,
+ &::descriptor_table_google_2fprotobuf_2fempty_2eproto,
+};
+static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once;
+const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto = {
+ false, false, 3899, descriptor_table_protodef_l2_5fxpu_5finfra_5fmgr_2eproto, "l2_xpu_infra_mgr.proto",
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once, descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_deps, 5, 16,
+ schemas, file_default_instances, TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto::offsets,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto, file_level_enum_descriptors_l2_5fxpu_5finfra_5fmgr_2eproto, file_level_service_descriptors_l2_5fxpu_5finfra_5fmgr_2eproto,
+};
+PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter() {
+ return &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto;
+}
+
+// Force running AddDescriptors() at dynamic initialization time.
+PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_l2_5fxpu_5finfra_5fmgr_2eproto(&descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto);
+namespace opi_api {
+namespace network {
+namespace evpn_gw {
+namespace v1alpha1 {
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LBOperStatus_descriptor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto);
+ return file_level_enum_descriptors_l2_5fxpu_5finfra_5fmgr_2eproto[0];
+}
+bool LBOperStatus_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ return true;
+ default:
+ return false;
+ }
+}
+
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BPOperStatus_descriptor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto);
+ return file_level_enum_descriptors_l2_5fxpu_5finfra_5fmgr_2eproto[1];
+}
+bool BPOperStatus_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ return true;
+ default:
+ return false;
+ }
+}
+
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BridgePortType_descriptor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto);
+ return file_level_enum_descriptors_l2_5fxpu_5finfra_5fmgr_2eproto[2];
+}
+bool BridgePortType_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ return true;
+ default:
+ return false;
+ }
+}
+
+
+// ===================================================================
+
+class LogicalBridge::_Internal {
+ public:
+ static const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec& spec(const LogicalBridge* msg);
+ static const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus& status(const LogicalBridge* msg);
+};
+
+const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec&
+LogicalBridge::_Internal::spec(const LogicalBridge* msg) {
+ return *msg->spec_;
+}
+const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus&
+LogicalBridge::_Internal::status(const LogicalBridge* msg) {
+ return *msg->status_;
+}
+LogicalBridge::LogicalBridge(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridge)
+}
+LogicalBridge::LogicalBridge(const LogicalBridge& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_name().empty()) {
+ name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
+ GetArenaForAllocation());
+ }
+ if (from._internal_has_spec()) {
+ spec_ = new ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec(*from.spec_);
+ } else {
+ spec_ = nullptr;
+ }
+ if (from._internal_has_status()) {
+ status_ = new ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus(*from.status_);
+ } else {
+ status_ = nullptr;
+ }
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridge)
+}
+
+inline void LogicalBridge::SharedCtor() {
+name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&spec_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&status_) -
+ reinterpret_cast(&spec_)) + sizeof(status_));
+}
+
+LogicalBridge::~LogicalBridge() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridge)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void LogicalBridge::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete spec_;
+ if (this != internal_default_instance()) delete status_;
+}
+
+void LogicalBridge::ArenaDtor(void* object) {
+ LogicalBridge* _this = reinterpret_cast< LogicalBridge* >(object);
+ (void)_this;
+}
+void LogicalBridge::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void LogicalBridge::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void LogicalBridge::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridge)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ name_.ClearToEmpty();
+ if (GetArenaForAllocation() == nullptr && spec_ != nullptr) {
+ delete spec_;
+ }
+ spec_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && status_ != nullptr) {
+ delete status_;
+ }
+ status_ = nullptr;
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* LogicalBridge::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // string name = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) {
+ auto str = _internal_mutable_name();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.LogicalBridge.name"));
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ // .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED];
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_spec(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ // .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) {
+ ptr = ctx->ParseMessage(_internal_mutable_status(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* LogicalBridge::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridge)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1;
+ if (!this->_internal_name().empty()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_name().data(), static_cast(this->_internal_name().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.LogicalBridge.name");
+ target = stream->WriteStringMaybeAliased(
+ 1, this->_internal_name(), target);
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED];
+ if (this->_internal_has_spec()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::spec(this), target, stream);
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3;
+ if (this->_internal_has_status()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 3, _Internal::status(this), target, stream);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.LogicalBridge)
+ return target;
+}
+
+size_t LogicalBridge::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridge)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // string name = 1;
+ if (!this->_internal_name().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_name());
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED];
+ if (this->_internal_has_spec()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *spec_);
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3;
+ if (this->_internal_has_status()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *status_);
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogicalBridge::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ LogicalBridge::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogicalBridge::GetClassData() const { return &_class_data_; }
+
+void LogicalBridge::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void LogicalBridge::MergeFrom(const LogicalBridge& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridge)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (!from._internal_name().empty()) {
+ _internal_set_name(from._internal_name());
+ }
+ if (from._internal_has_spec()) {
+ _internal_mutable_spec()->::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec::MergeFrom(from._internal_spec());
+ }
+ if (from._internal_has_status()) {
+ _internal_mutable_status()->::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus::MergeFrom(from._internal_status());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void LogicalBridge::CopyFrom(const LogicalBridge& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridge)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool LogicalBridge::IsInitialized() const {
+ return true;
+}
+
+void LogicalBridge::InternalSwap(LogicalBridge* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &name_, lhs_arena,
+ &other->name_, rhs_arena
+ );
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(LogicalBridge, status_)
+ + sizeof(LogicalBridge::status_)
+ - PROTOBUF_FIELD_OFFSET(LogicalBridge, spec_)>(
+ reinterpret_cast(&spec_),
+ reinterpret_cast(&other->spec_));
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata LogicalBridge::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[0]);
+}
+
+// ===================================================================
+
+class LogicalBridgeSpec::_Internal {
+ public:
+};
+
+LogicalBridgeSpec::LogicalBridgeSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec)
+}
+LogicalBridgeSpec::LogicalBridgeSpec(const LogicalBridgeSpec& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ ::memcpy(&vlan_id_, &from.vlan_id_,
+ static_cast(reinterpret_cast(&vni_) -
+ reinterpret_cast(&vlan_id_)) + sizeof(vni_));
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec)
+}
+
+inline void LogicalBridgeSpec::SharedCtor() {
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&vlan_id_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&vni_) -
+ reinterpret_cast(&vlan_id_)) + sizeof(vni_));
+}
+
+LogicalBridgeSpec::~LogicalBridgeSpec() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void LogicalBridgeSpec::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+}
+
+void LogicalBridgeSpec::ArenaDtor(void* object) {
+ LogicalBridgeSpec* _this = reinterpret_cast< LogicalBridgeSpec* >(object);
+ (void)_this;
+}
+void LogicalBridgeSpec::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void LogicalBridgeSpec::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void LogicalBridgeSpec::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ ::memset(&vlan_id_, 0, static_cast(
+ reinterpret_cast(&vni_) -
+ reinterpret_cast(&vlan_id_)) + sizeof(vni_));
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* LogicalBridgeSpec::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // uint32 vlan_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) {
+ vlan_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ // uint32 vni = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) {
+ vni_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* LogicalBridgeSpec::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // uint32 vlan_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ if (this->_internal_vlan_id() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_vlan_id(), target);
+ }
+
+ // uint32 vni = 2;
+ if (this->_internal_vni() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_vni(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec)
+ return target;
+}
+
+size_t LogicalBridgeSpec::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // uint32 vlan_id = 1 [(.google.api.field_behavior) = REQUIRED];
+ if (this->_internal_vlan_id() != 0) {
+ total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_vlan_id());
+ }
+
+ // uint32 vni = 2;
+ if (this->_internal_vni() != 0) {
+ total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_vni());
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogicalBridgeSpec::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ LogicalBridgeSpec::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogicalBridgeSpec::GetClassData() const { return &_class_data_; }
+
+void LogicalBridgeSpec::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void LogicalBridgeSpec::MergeFrom(const LogicalBridgeSpec& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from._internal_vlan_id() != 0) {
+ _internal_set_vlan_id(from._internal_vlan_id());
+ }
+ if (from._internal_vni() != 0) {
+ _internal_set_vni(from._internal_vni());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void LogicalBridgeSpec::CopyFrom(const LogicalBridgeSpec& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool LogicalBridgeSpec::IsInitialized() const {
+ return true;
+}
+
+void LogicalBridgeSpec::InternalSwap(LogicalBridgeSpec* other) {
+ using std::swap;
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(LogicalBridgeSpec, vni_)
+ + sizeof(LogicalBridgeSpec::vni_)
+ - PROTOBUF_FIELD_OFFSET(LogicalBridgeSpec, vlan_id_)>(
+ reinterpret_cast(&vlan_id_),
+ reinterpret_cast(&other->vlan_id_));
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata LogicalBridgeSpec::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[1]);
+}
+
+// ===================================================================
+
+class LogicalBridgeStatus::_Internal {
+ public:
+};
+
+LogicalBridgeStatus::LogicalBridgeStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus)
+}
+LogicalBridgeStatus::LogicalBridgeStatus(const LogicalBridgeStatus& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ oper_status_ = from.oper_status_;
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus)
+}
+
+inline void LogicalBridgeStatus::SharedCtor() {
+oper_status_ = 0;
+}
+
+LogicalBridgeStatus::~LogicalBridgeStatus() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void LogicalBridgeStatus::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+}
+
+void LogicalBridgeStatus::ArenaDtor(void* object) {
+ LogicalBridgeStatus* _this = reinterpret_cast< LogicalBridgeStatus* >(object);
+ (void)_this;
+}
+void LogicalBridgeStatus::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void LogicalBridgeStatus::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void LogicalBridgeStatus::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ oper_status_ = 0;
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* LogicalBridgeStatus::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) {
+ uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
+ CHK_(ptr);
+ _internal_set_oper_status(static_cast<::opi_api::network::evpn_gw::v1alpha1::LBOperStatus>(val));
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* LogicalBridgeStatus::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1;
+ if (this->_internal_oper_status() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
+ 1, this->_internal_oper_status(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus)
+ return target;
+}
+
+size_t LogicalBridgeStatus::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1;
+ if (this->_internal_oper_status() != 0) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_oper_status());
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogicalBridgeStatus::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ LogicalBridgeStatus::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogicalBridgeStatus::GetClassData() const { return &_class_data_; }
+
+void LogicalBridgeStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void LogicalBridgeStatus::MergeFrom(const LogicalBridgeStatus& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from._internal_oper_status() != 0) {
+ _internal_set_oper_status(from._internal_oper_status());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void LogicalBridgeStatus::CopyFrom(const LogicalBridgeStatus& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool LogicalBridgeStatus::IsInitialized() const {
+ return true;
+}
+
+void LogicalBridgeStatus::InternalSwap(LogicalBridgeStatus* other) {
+ using std::swap;
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ swap(oper_status_, other->oper_status_);
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata LogicalBridgeStatus::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[2]);
+}
+
+// ===================================================================
+
+class CreateLogicalBridgeRequest::_Internal {
+ public:
+ static const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& logical_bridge(const CreateLogicalBridgeRequest* msg);
+};
+
+const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge&
+CreateLogicalBridgeRequest::_Internal::logical_bridge(const CreateLogicalBridgeRequest* msg) {
+ return *msg->logical_bridge_;
+}
+CreateLogicalBridgeRequest::CreateLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest)
+}
+CreateLogicalBridgeRequest::CreateLogicalBridgeRequest(const CreateLogicalBridgeRequest& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ logical_bridge_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ logical_bridge_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_logical_bridge_id().empty()) {
+ logical_bridge_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_logical_bridge_id(),
+ GetArenaForAllocation());
+ }
+ if (from._internal_has_logical_bridge()) {
+ logical_bridge_ = new ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge(*from.logical_bridge_);
+ } else {
+ logical_bridge_ = nullptr;
+ }
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest)
+}
+
+inline void CreateLogicalBridgeRequest::SharedCtor() {
+logical_bridge_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ logical_bridge_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+logical_bridge_ = nullptr;
+}
+
+CreateLogicalBridgeRequest::~CreateLogicalBridgeRequest() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void CreateLogicalBridgeRequest::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ logical_bridge_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete logical_bridge_;
+}
+
+void CreateLogicalBridgeRequest::ArenaDtor(void* object) {
+ CreateLogicalBridgeRequest* _this = reinterpret_cast< CreateLogicalBridgeRequest* >(object);
+ (void)_this;
+}
+void CreateLogicalBridgeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void CreateLogicalBridgeRequest::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void CreateLogicalBridgeRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ logical_bridge_id_.ClearToEmpty();
+ if (GetArenaForAllocation() == nullptr && logical_bridge_ != nullptr) {
+ delete logical_bridge_;
+ }
+ logical_bridge_ = nullptr;
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* CreateLogicalBridgeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // string logical_bridge_id = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) {
+ auto str = _internal_mutable_logical_bridge_id();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge_id"));
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ // .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED];
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_logical_bridge(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* CreateLogicalBridgeRequest::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string logical_bridge_id = 1;
+ if (!this->_internal_logical_bridge_id().empty()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_logical_bridge_id().data(), static_cast(this->_internal_logical_bridge_id().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge_id");
+ target = stream->WriteStringMaybeAliased(
+ 1, this->_internal_logical_bridge_id(), target);
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED];
+ if (this->_internal_has_logical_bridge()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::logical_bridge(this), target, stream);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest)
+ return target;
+}
+
+size_t CreateLogicalBridgeRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // string logical_bridge_id = 1;
+ if (!this->_internal_logical_bridge_id().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_logical_bridge_id());
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED];
+ if (this->_internal_has_logical_bridge()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *logical_bridge_);
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateLogicalBridgeRequest::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ CreateLogicalBridgeRequest::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateLogicalBridgeRequest::GetClassData() const { return &_class_data_; }
+
+void CreateLogicalBridgeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void CreateLogicalBridgeRequest::MergeFrom(const CreateLogicalBridgeRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (!from._internal_logical_bridge_id().empty()) {
+ _internal_set_logical_bridge_id(from._internal_logical_bridge_id());
+ }
+ if (from._internal_has_logical_bridge()) {
+ _internal_mutable_logical_bridge()->::opi_api::network::evpn_gw::v1alpha1::LogicalBridge::MergeFrom(from._internal_logical_bridge());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void CreateLogicalBridgeRequest::CopyFrom(const CreateLogicalBridgeRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool CreateLogicalBridgeRequest::IsInitialized() const {
+ return true;
+}
+
+void CreateLogicalBridgeRequest::InternalSwap(CreateLogicalBridgeRequest* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &logical_bridge_id_, lhs_arena,
+ &other->logical_bridge_id_, rhs_arena
+ );
+ swap(logical_bridge_, other->logical_bridge_);
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata CreateLogicalBridgeRequest::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[3]);
+}
+
+// ===================================================================
+
+class ListLogicalBridgesRequest::_Internal {
+ public:
+};
+
+ListLogicalBridgesRequest::ListLogicalBridgesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest)
+}
+ListLogicalBridgesRequest::ListLogicalBridgesRequest(const ListLogicalBridgesRequest& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_page_token().empty()) {
+ page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_page_token(),
+ GetArenaForAllocation());
+ }
+ page_size_ = from.page_size_;
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest)
+}
+
+inline void ListLogicalBridgesRequest::SharedCtor() {
+page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+page_size_ = 0;
+}
+
+ListLogicalBridgesRequest::~ListLogicalBridgesRequest() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void ListLogicalBridgesRequest::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+
+void ListLogicalBridgesRequest::ArenaDtor(void* object) {
+ ListLogicalBridgesRequest* _this = reinterpret_cast< ListLogicalBridgesRequest* >(object);
+ (void)_this;
+}
+void ListLogicalBridgesRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void ListLogicalBridgesRequest::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void ListLogicalBridgesRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ page_token_.ClearToEmpty();
+ page_size_ = 0;
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* ListLogicalBridgesRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // int32 page_size = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) {
+ page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ // string page_token = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ auto str = _internal_mutable_page_token();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.page_token"));
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* ListLogicalBridgesRequest::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 page_size = 1;
+ if (this->_internal_page_size() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_page_size(), target);
+ }
+
+ // string page_token = 2;
+ if (!this->_internal_page_token().empty()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.page_token");
+ target = stream->WriteStringMaybeAliased(
+ 2, this->_internal_page_token(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest)
+ return target;
+}
+
+size_t ListLogicalBridgesRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // string page_token = 2;
+ if (!this->_internal_page_token().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_page_token());
+ }
+
+ // int32 page_size = 1;
+ if (this->_internal_page_size() != 0) {
+ total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_page_size());
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListLogicalBridgesRequest::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ ListLogicalBridgesRequest::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListLogicalBridgesRequest::GetClassData() const { return &_class_data_; }
+
+void ListLogicalBridgesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void ListLogicalBridgesRequest::MergeFrom(const ListLogicalBridgesRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (!from._internal_page_token().empty()) {
+ _internal_set_page_token(from._internal_page_token());
+ }
+ if (from._internal_page_size() != 0) {
+ _internal_set_page_size(from._internal_page_size());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void ListLogicalBridgesRequest::CopyFrom(const ListLogicalBridgesRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ListLogicalBridgesRequest::IsInitialized() const {
+ return true;
+}
+
+void ListLogicalBridgesRequest::InternalSwap(ListLogicalBridgesRequest* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &page_token_, lhs_arena,
+ &other->page_token_, rhs_arena
+ );
+ swap(page_size_, other->page_size_);
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata ListLogicalBridgesRequest::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[4]);
+}
+
+// ===================================================================
+
+class ListLogicalBridgesResponse::_Internal {
+ public:
+};
+
+ListLogicalBridgesResponse::ListLogicalBridgesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
+ logical_bridges_(arena) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse)
+}
+ListLogicalBridgesResponse::ListLogicalBridgesResponse(const ListLogicalBridgesResponse& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ logical_bridges_(from.logical_bridges_) {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ next_page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ next_page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_next_page_token().empty()) {
+ next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_next_page_token(),
+ GetArenaForAllocation());
+ }
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse)
+}
+
+inline void ListLogicalBridgesResponse::SharedCtor() {
+next_page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ next_page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+}
+
+ListLogicalBridgesResponse::~ListLogicalBridgesResponse() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void ListLogicalBridgesResponse::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ next_page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+
+void ListLogicalBridgesResponse::ArenaDtor(void* object) {
+ ListLogicalBridgesResponse* _this = reinterpret_cast< ListLogicalBridgesResponse* >(object);
+ (void)_this;
+}
+void ListLogicalBridgesResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void ListLogicalBridgesResponse::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void ListLogicalBridgesResponse::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ logical_bridges_.Clear();
+ next_page_token_.ClearToEmpty();
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* ListLogicalBridgesResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ ptr = ctx->ParseMessage(_internal_add_logical_bridges(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
+ } else
+ goto handle_unusual;
+ continue;
+ // string next_page_token = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ auto str = _internal_mutable_next_page_token();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.next_page_token"));
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* ListLogicalBridgesResponse::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1;
+ for (unsigned int i = 0,
+ n = static_cast(this->_internal_logical_bridges_size()); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, this->_internal_logical_bridges(i), target, stream);
+ }
+
+ // string next_page_token = 2;
+ if (!this->_internal_next_page_token().empty()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_next_page_token().data(), static_cast(this->_internal_next_page_token().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.next_page_token");
+ target = stream->WriteStringMaybeAliased(
+ 2, this->_internal_next_page_token(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse)
+ return target;
+}
+
+size_t ListLogicalBridgesResponse::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1;
+ total_size += 1UL * this->_internal_logical_bridges_size();
+ for (const auto& msg : this->logical_bridges_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
+ }
+
+ // string next_page_token = 2;
+ if (!this->_internal_next_page_token().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_next_page_token());
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListLogicalBridgesResponse::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ ListLogicalBridgesResponse::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListLogicalBridgesResponse::GetClassData() const { return &_class_data_; }
+
+void ListLogicalBridgesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void ListLogicalBridgesResponse::MergeFrom(const ListLogicalBridgesResponse& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ logical_bridges_.MergeFrom(from.logical_bridges_);
+ if (!from._internal_next_page_token().empty()) {
+ _internal_set_next_page_token(from._internal_next_page_token());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void ListLogicalBridgesResponse::CopyFrom(const ListLogicalBridgesResponse& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ListLogicalBridgesResponse::IsInitialized() const {
+ return true;
+}
+
+void ListLogicalBridgesResponse::InternalSwap(ListLogicalBridgesResponse* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ logical_bridges_.InternalSwap(&other->logical_bridges_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &next_page_token_, lhs_arena,
+ &other->next_page_token_, rhs_arena
+ );
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata ListLogicalBridgesResponse::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[5]);
+}
+
+// ===================================================================
+
+class GetLogicalBridgeRequest::_Internal {
+ public:
+};
+
+GetLogicalBridgeRequest::GetLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest)
+}
+GetLogicalBridgeRequest::GetLogicalBridgeRequest(const GetLogicalBridgeRequest& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_name().empty()) {
+ name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
+ GetArenaForAllocation());
+ }
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest)
+}
+
+inline void GetLogicalBridgeRequest::SharedCtor() {
+name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+}
+
+GetLogicalBridgeRequest::~GetLogicalBridgeRequest() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void GetLogicalBridgeRequest::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+
+void GetLogicalBridgeRequest::ArenaDtor(void* object) {
+ GetLogicalBridgeRequest* _this = reinterpret_cast< GetLogicalBridgeRequest* >(object);
+ (void)_this;
+}
+void GetLogicalBridgeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void GetLogicalBridgeRequest::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void GetLogicalBridgeRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ name_.ClearToEmpty();
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* GetLogicalBridgeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) {
+ auto str = _internal_mutable_name();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.name"));
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* GetLogicalBridgeRequest::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ if (!this->_internal_name().empty()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_name().data(), static_cast(this->_internal_name().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.name");
+ target = stream->WriteStringMaybeAliased(
+ 1, this->_internal_name(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest)
+ return target;
+}
+
+size_t GetLogicalBridgeRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ if (!this->_internal_name().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_name());
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLogicalBridgeRequest::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ GetLogicalBridgeRequest::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLogicalBridgeRequest::GetClassData() const { return &_class_data_; }
+
+void GetLogicalBridgeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void GetLogicalBridgeRequest::MergeFrom(const GetLogicalBridgeRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (!from._internal_name().empty()) {
+ _internal_set_name(from._internal_name());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void GetLogicalBridgeRequest::CopyFrom(const GetLogicalBridgeRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool GetLogicalBridgeRequest::IsInitialized() const {
+ return true;
+}
+
+void GetLogicalBridgeRequest::InternalSwap(GetLogicalBridgeRequest* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &name_, lhs_arena,
+ &other->name_, rhs_arena
+ );
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata GetLogicalBridgeRequest::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[6]);
+}
+
+// ===================================================================
+
+class DeleteLogicalBridgeRequest::_Internal {
+ public:
+};
+
+DeleteLogicalBridgeRequest::DeleteLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest)
+}
+DeleteLogicalBridgeRequest::DeleteLogicalBridgeRequest(const DeleteLogicalBridgeRequest& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_name().empty()) {
+ name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
+ GetArenaForAllocation());
+ }
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest)
+}
+
+inline void DeleteLogicalBridgeRequest::SharedCtor() {
+name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+}
+
+DeleteLogicalBridgeRequest::~DeleteLogicalBridgeRequest() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void DeleteLogicalBridgeRequest::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+
+void DeleteLogicalBridgeRequest::ArenaDtor(void* object) {
+ DeleteLogicalBridgeRequest* _this = reinterpret_cast< DeleteLogicalBridgeRequest* >(object);
+ (void)_this;
+}
+void DeleteLogicalBridgeRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void DeleteLogicalBridgeRequest::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void DeleteLogicalBridgeRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ name_.ClearToEmpty();
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* DeleteLogicalBridgeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) {
+ auto str = _internal_mutable_name();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.name"));
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* DeleteLogicalBridgeRequest::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ if (!this->_internal_name().empty()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_name().data(), static_cast(this->_internal_name().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.name");
+ target = stream->WriteStringMaybeAliased(
+ 1, this->_internal_name(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest)
+ return target;
+}
+
+size_t DeleteLogicalBridgeRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ if (!this->_internal_name().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_name());
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteLogicalBridgeRequest::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ DeleteLogicalBridgeRequest::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteLogicalBridgeRequest::GetClassData() const { return &_class_data_; }
+
+void DeleteLogicalBridgeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void DeleteLogicalBridgeRequest::MergeFrom(const DeleteLogicalBridgeRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (!from._internal_name().empty()) {
+ _internal_set_name(from._internal_name());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void DeleteLogicalBridgeRequest::CopyFrom(const DeleteLogicalBridgeRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool DeleteLogicalBridgeRequest::IsInitialized() const {
+ return true;
+}
+
+void DeleteLogicalBridgeRequest::InternalSwap(DeleteLogicalBridgeRequest* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &name_, lhs_arena,
+ &other->name_, rhs_arena
+ );
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata DeleteLogicalBridgeRequest::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[7]);
+}
+
+// ===================================================================
+
+class BridgePort::_Internal {
+ public:
+ static const ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec& spec(const BridgePort* msg);
+ static const ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus& status(const BridgePort* msg);
+};
+
+const ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec&
+BridgePort::_Internal::spec(const BridgePort* msg) {
+ return *msg->spec_;
+}
+const ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus&
+BridgePort::_Internal::status(const BridgePort* msg) {
+ return *msg->status_;
+}
+BridgePort::BridgePort(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.BridgePort)
+}
+BridgePort::BridgePort(const BridgePort& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_name().empty()) {
+ name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
+ GetArenaForAllocation());
+ }
+ if (from._internal_has_spec()) {
+ spec_ = new ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec(*from.spec_);
+ } else {
+ spec_ = nullptr;
+ }
+ if (from._internal_has_status()) {
+ status_ = new ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus(*from.status_);
+ } else {
+ status_ = nullptr;
+ }
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.BridgePort)
+}
+
+inline void BridgePort::SharedCtor() {
+name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+::memset(reinterpret_cast(this) + static_cast(
+ reinterpret_cast(&spec_) - reinterpret_cast(this)),
+ 0, static_cast(reinterpret_cast(&status_) -
+ reinterpret_cast(&spec_)) + sizeof(status_));
+}
+
+BridgePort::~BridgePort() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.BridgePort)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void BridgePort::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete spec_;
+ if (this != internal_default_instance()) delete status_;
+}
+
+void BridgePort::ArenaDtor(void* object) {
+ BridgePort* _this = reinterpret_cast< BridgePort* >(object);
+ (void)_this;
+}
+void BridgePort::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void BridgePort::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void BridgePort::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.BridgePort)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ name_.ClearToEmpty();
+ if (GetArenaForAllocation() == nullptr && spec_ != nullptr) {
+ delete spec_;
+ }
+ spec_ = nullptr;
+ if (GetArenaForAllocation() == nullptr && status_ != nullptr) {
+ delete status_;
+ }
+ status_ = nullptr;
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* BridgePort::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // string name = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) {
+ auto str = _internal_mutable_name();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.BridgePort.name"));
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ // .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_spec(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ // .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) {
+ ptr = ctx->ParseMessage(_internal_mutable_status(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* BridgePort::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.BridgePort)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1;
+ if (!this->_internal_name().empty()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_name().data(), static_cast(this->_internal_name().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.BridgePort.name");
+ target = stream->WriteStringMaybeAliased(
+ 1, this->_internal_name(), target);
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2;
+ if (this->_internal_has_spec()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::spec(this), target, stream);
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3;
+ if (this->_internal_has_status()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 3, _Internal::status(this), target, stream);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.BridgePort)
+ return target;
+}
+
+size_t BridgePort::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.BridgePort)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // string name = 1;
+ if (!this->_internal_name().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_name());
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2;
+ if (this->_internal_has_spec()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *spec_);
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3;
+ if (this->_internal_has_status()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *status_);
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BridgePort::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ BridgePort::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BridgePort::GetClassData() const { return &_class_data_; }
+
+void BridgePort::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void BridgePort::MergeFrom(const BridgePort& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.BridgePort)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (!from._internal_name().empty()) {
+ _internal_set_name(from._internal_name());
+ }
+ if (from._internal_has_spec()) {
+ _internal_mutable_spec()->::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec::MergeFrom(from._internal_spec());
+ }
+ if (from._internal_has_status()) {
+ _internal_mutable_status()->::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus::MergeFrom(from._internal_status());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void BridgePort::CopyFrom(const BridgePort& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.BridgePort)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool BridgePort::IsInitialized() const {
+ return true;
+}
+
+void BridgePort::InternalSwap(BridgePort* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &name_, lhs_arena,
+ &other->name_, rhs_arena
+ );
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+ PROTOBUF_FIELD_OFFSET(BridgePort, status_)
+ + sizeof(BridgePort::status_)
+ - PROTOBUF_FIELD_OFFSET(BridgePort, spec_)>(
+ reinterpret_cast(&spec_),
+ reinterpret_cast(&other->spec_));
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata BridgePort::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[8]);
+}
+
+// ===================================================================
+
+class BridgePortSpec::_Internal {
+ public:
+};
+
+BridgePortSpec::BridgePortSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
+ logical_bridges_(arena) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec)
+}
+BridgePortSpec::BridgePortSpec(const BridgePortSpec& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ logical_bridges_(from.logical_bridges_) {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ mac_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_mac_address().empty()) {
+ mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mac_address(),
+ GetArenaForAllocation());
+ }
+ ptype_ = from.ptype_;
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec)
+}
+
+inline void BridgePortSpec::SharedCtor() {
+mac_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ptype_ = 0;
+}
+
+BridgePortSpec::~BridgePortSpec() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void BridgePortSpec::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ mac_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+
+void BridgePortSpec::ArenaDtor(void* object) {
+ BridgePortSpec* _this = reinterpret_cast< BridgePortSpec* >(object);
+ (void)_this;
+}
+void BridgePortSpec::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void BridgePortSpec::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void BridgePortSpec::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ logical_bridges_.Clear();
+ mac_address_.ClearToEmpty();
+ ptype_ = 0;
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* BridgePortSpec::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // bytes mac_address = 1 [(.google.api.field_behavior) = REQUIRED];
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) {
+ auto str = _internal_mutable_mac_address();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ // .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED];
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) {
+ uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
+ CHK_(ptr);
+ _internal_set_ptype(static_cast<::opi_api::network::evpn_gw::v1alpha1::BridgePortType>(val));
+ } else
+ goto handle_unusual;
+ continue;
+ // repeated string logical_bridges = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ auto str = _internal_add_logical_bridges();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges"));
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* BridgePortSpec::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bytes mac_address = 1 [(.google.api.field_behavior) = REQUIRED];
+ if (!this->_internal_mac_address().empty()) {
+ target = stream->WriteBytesMaybeAliased(
+ 1, this->_internal_mac_address(), target);
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED];
+ if (this->_internal_ptype() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
+ 2, this->_internal_ptype(), target);
+ }
+
+ // repeated string logical_bridges = 3;
+ for (int i = 0, n = this->_internal_logical_bridges_size(); i < n; i++) {
+ const auto& s = this->_internal_logical_bridges(i);
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ s.data(), static_cast(s.length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges");
+ target = stream->WriteString(3, s, target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec)
+ return target;
+}
+
+size_t BridgePortSpec::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // repeated string logical_bridges = 3;
+ total_size += 1 *
+ ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(logical_bridges_.size());
+ for (int i = 0, n = logical_bridges_.size(); i < n; i++) {
+ total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ logical_bridges_.Get(i));
+ }
+
+ // bytes mac_address = 1 [(.google.api.field_behavior) = REQUIRED];
+ if (!this->_internal_mac_address().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
+ this->_internal_mac_address());
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED];
+ if (this->_internal_ptype() != 0) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_ptype());
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BridgePortSpec::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ BridgePortSpec::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BridgePortSpec::GetClassData() const { return &_class_data_; }
+
+void BridgePortSpec::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void BridgePortSpec::MergeFrom(const BridgePortSpec& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ logical_bridges_.MergeFrom(from.logical_bridges_);
+ if (!from._internal_mac_address().empty()) {
+ _internal_set_mac_address(from._internal_mac_address());
+ }
+ if (from._internal_ptype() != 0) {
+ _internal_set_ptype(from._internal_ptype());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void BridgePortSpec::CopyFrom(const BridgePortSpec& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool BridgePortSpec::IsInitialized() const {
+ return true;
+}
+
+void BridgePortSpec::InternalSwap(BridgePortSpec* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ logical_bridges_.InternalSwap(&other->logical_bridges_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &mac_address_, lhs_arena,
+ &other->mac_address_, rhs_arena
+ );
+ swap(ptype_, other->ptype_);
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata BridgePortSpec::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[9]);
+}
+
+// ===================================================================
+
+class BridgePortStatus::_Internal {
+ public:
+};
+
+BridgePortStatus::BridgePortStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus)
+}
+BridgePortStatus::BridgePortStatus(const BridgePortStatus& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ oper_status_ = from.oper_status_;
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus)
+}
+
+inline void BridgePortStatus::SharedCtor() {
+oper_status_ = 0;
+}
+
+BridgePortStatus::~BridgePortStatus() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void BridgePortStatus::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+}
+
+void BridgePortStatus::ArenaDtor(void* object) {
+ BridgePortStatus* _this = reinterpret_cast< BridgePortStatus* >(object);
+ (void)_this;
+}
+void BridgePortStatus::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void BridgePortStatus::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void BridgePortStatus::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ oper_status_ = 0;
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* BridgePortStatus::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) {
+ uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
+ CHK_(ptr);
+ _internal_set_oper_status(static_cast<::opi_api::network::evpn_gw::v1alpha1::BPOperStatus>(val));
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* BridgePortStatus::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1;
+ if (this->_internal_oper_status() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
+ 1, this->_internal_oper_status(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus)
+ return target;
+}
+
+size_t BridgePortStatus::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1;
+ if (this->_internal_oper_status() != 0) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_oper_status());
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BridgePortStatus::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ BridgePortStatus::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BridgePortStatus::GetClassData() const { return &_class_data_; }
+
+void BridgePortStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void BridgePortStatus::MergeFrom(const BridgePortStatus& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from._internal_oper_status() != 0) {
+ _internal_set_oper_status(from._internal_oper_status());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void BridgePortStatus::CopyFrom(const BridgePortStatus& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool BridgePortStatus::IsInitialized() const {
+ return true;
+}
+
+void BridgePortStatus::InternalSwap(BridgePortStatus* other) {
+ using std::swap;
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ swap(oper_status_, other->oper_status_);
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata BridgePortStatus::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[10]);
+}
+
+// ===================================================================
+
+class CreateBridgePortRequest::_Internal {
+ public:
+ static const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& bridge_port(const CreateBridgePortRequest* msg);
+};
+
+const ::opi_api::network::evpn_gw::v1alpha1::BridgePort&
+CreateBridgePortRequest::_Internal::bridge_port(const CreateBridgePortRequest* msg) {
+ return *msg->bridge_port_;
+}
+CreateBridgePortRequest::CreateBridgePortRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest)
+}
+CreateBridgePortRequest::CreateBridgePortRequest(const CreateBridgePortRequest& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ bridge_port_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ bridge_port_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_bridge_port_id().empty()) {
+ bridge_port_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_bridge_port_id(),
+ GetArenaForAllocation());
+ }
+ if (from._internal_has_bridge_port()) {
+ bridge_port_ = new ::opi_api::network::evpn_gw::v1alpha1::BridgePort(*from.bridge_port_);
+ } else {
+ bridge_port_ = nullptr;
+ }
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest)
+}
+
+inline void CreateBridgePortRequest::SharedCtor() {
+bridge_port_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ bridge_port_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+bridge_port_ = nullptr;
+}
+
+CreateBridgePortRequest::~CreateBridgePortRequest() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void CreateBridgePortRequest::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ bridge_port_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete bridge_port_;
+}
+
+void CreateBridgePortRequest::ArenaDtor(void* object) {
+ CreateBridgePortRequest* _this = reinterpret_cast< CreateBridgePortRequest* >(object);
+ (void)_this;
+}
+void CreateBridgePortRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void CreateBridgePortRequest::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void CreateBridgePortRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ bridge_port_id_.ClearToEmpty();
+ if (GetArenaForAllocation() == nullptr && bridge_port_ != nullptr) {
+ delete bridge_port_;
+ }
+ bridge_port_ = nullptr;
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* CreateBridgePortRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // string bridge_port_id = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) {
+ auto str = _internal_mutable_bridge_port_id();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port_id"));
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ // .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED];
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_bridge_port(), ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* CreateBridgePortRequest::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string bridge_port_id = 1;
+ if (!this->_internal_bridge_port_id().empty()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_bridge_port_id().data(), static_cast(this->_internal_bridge_port_id().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port_id");
+ target = stream->WriteStringMaybeAliased(
+ 1, this->_internal_bridge_port_id(), target);
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED];
+ if (this->_internal_has_bridge_port()) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::bridge_port(this), target, stream);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest)
+ return target;
+}
+
+size_t CreateBridgePortRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // string bridge_port_id = 1;
+ if (!this->_internal_bridge_port_id().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_bridge_port_id());
+ }
+
+ // .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED];
+ if (this->_internal_has_bridge_port()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *bridge_port_);
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateBridgePortRequest::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ CreateBridgePortRequest::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateBridgePortRequest::GetClassData() const { return &_class_data_; }
+
+void CreateBridgePortRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void CreateBridgePortRequest::MergeFrom(const CreateBridgePortRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (!from._internal_bridge_port_id().empty()) {
+ _internal_set_bridge_port_id(from._internal_bridge_port_id());
+ }
+ if (from._internal_has_bridge_port()) {
+ _internal_mutable_bridge_port()->::opi_api::network::evpn_gw::v1alpha1::BridgePort::MergeFrom(from._internal_bridge_port());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void CreateBridgePortRequest::CopyFrom(const CreateBridgePortRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool CreateBridgePortRequest::IsInitialized() const {
+ return true;
+}
+
+void CreateBridgePortRequest::InternalSwap(CreateBridgePortRequest* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &bridge_port_id_, lhs_arena,
+ &other->bridge_port_id_, rhs_arena
+ );
+ swap(bridge_port_, other->bridge_port_);
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata CreateBridgePortRequest::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[11]);
+}
+
+// ===================================================================
+
+class ListBridgePortsRequest::_Internal {
+ public:
+};
+
+ListBridgePortsRequest::ListBridgePortsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest)
+}
+ListBridgePortsRequest::ListBridgePortsRequest(const ListBridgePortsRequest& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_page_token().empty()) {
+ page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_page_token(),
+ GetArenaForAllocation());
+ }
+ page_size_ = from.page_size_;
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest)
+}
+
+inline void ListBridgePortsRequest::SharedCtor() {
+page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+page_size_ = 0;
+}
+
+ListBridgePortsRequest::~ListBridgePortsRequest() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void ListBridgePortsRequest::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+
+void ListBridgePortsRequest::ArenaDtor(void* object) {
+ ListBridgePortsRequest* _this = reinterpret_cast< ListBridgePortsRequest* >(object);
+ (void)_this;
+}
+void ListBridgePortsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void ListBridgePortsRequest::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void ListBridgePortsRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ page_token_.ClearToEmpty();
+ page_size_ = 0;
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* ListBridgePortsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // int32 page_size = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) {
+ page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ // string page_token = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ auto str = _internal_mutable_page_token();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.page_token"));
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* ListBridgePortsRequest::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 page_size = 1;
+ if (this->_internal_page_size() != 0) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_page_size(), target);
+ }
+
+ // string page_token = 2;
+ if (!this->_internal_page_token().empty()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.page_token");
+ target = stream->WriteStringMaybeAliased(
+ 2, this->_internal_page_token(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest)
+ return target;
+}
+
+size_t ListBridgePortsRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // string page_token = 2;
+ if (!this->_internal_page_token().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_page_token());
+ }
+
+ // int32 page_size = 1;
+ if (this->_internal_page_size() != 0) {
+ total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_page_size());
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListBridgePortsRequest::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ ListBridgePortsRequest::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListBridgePortsRequest::GetClassData() const { return &_class_data_; }
+
+void ListBridgePortsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void ListBridgePortsRequest::MergeFrom(const ListBridgePortsRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (!from._internal_page_token().empty()) {
+ _internal_set_page_token(from._internal_page_token());
+ }
+ if (from._internal_page_size() != 0) {
+ _internal_set_page_size(from._internal_page_size());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void ListBridgePortsRequest::CopyFrom(const ListBridgePortsRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ListBridgePortsRequest::IsInitialized() const {
+ return true;
+}
+
+void ListBridgePortsRequest::InternalSwap(ListBridgePortsRequest* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &page_token_, lhs_arena,
+ &other->page_token_, rhs_arena
+ );
+ swap(page_size_, other->page_size_);
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata ListBridgePortsRequest::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[12]);
+}
+
+// ===================================================================
+
+class ListBridgePortsResponse::_Internal {
+ public:
+};
+
+ListBridgePortsResponse::ListBridgePortsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
+ bridge_ports_(arena) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse)
+}
+ListBridgePortsResponse::ListBridgePortsResponse(const ListBridgePortsResponse& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message(),
+ bridge_ports_(from.bridge_ports_) {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ next_page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ next_page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_next_page_token().empty()) {
+ next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_next_page_token(),
+ GetArenaForAllocation());
+ }
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse)
+}
+
+inline void ListBridgePortsResponse::SharedCtor() {
+next_page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ next_page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+}
+
+ListBridgePortsResponse::~ListBridgePortsResponse() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void ListBridgePortsResponse::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ next_page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+
+void ListBridgePortsResponse::ArenaDtor(void* object) {
+ ListBridgePortsResponse* _this = reinterpret_cast< ListBridgePortsResponse* >(object);
+ (void)_this;
+}
+void ListBridgePortsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void ListBridgePortsResponse::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void ListBridgePortsResponse::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ bridge_ports_.Clear();
+ next_page_token_.ClearToEmpty();
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* ListBridgePortsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ ptr = ctx->ParseMessage(_internal_add_bridge_ports(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
+ } else
+ goto handle_unusual;
+ continue;
+ // string next_page_token = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+ auto str = _internal_mutable_next_page_token();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.next_page_token"));
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* ListBridgePortsResponse::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1;
+ for (unsigned int i = 0,
+ n = static_cast(this->_internal_bridge_ports_size()); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, this->_internal_bridge_ports(i), target, stream);
+ }
+
+ // string next_page_token = 2;
+ if (!this->_internal_next_page_token().empty()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_next_page_token().data(), static_cast(this->_internal_next_page_token().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.next_page_token");
+ target = stream->WriteStringMaybeAliased(
+ 2, this->_internal_next_page_token(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse)
+ return target;
+}
+
+size_t ListBridgePortsResponse::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1;
+ total_size += 1UL * this->_internal_bridge_ports_size();
+ for (const auto& msg : this->bridge_ports_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
+ }
+
+ // string next_page_token = 2;
+ if (!this->_internal_next_page_token().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_next_page_token());
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListBridgePortsResponse::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ ListBridgePortsResponse::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListBridgePortsResponse::GetClassData() const { return &_class_data_; }
+
+void ListBridgePortsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void ListBridgePortsResponse::MergeFrom(const ListBridgePortsResponse& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ bridge_ports_.MergeFrom(from.bridge_ports_);
+ if (!from._internal_next_page_token().empty()) {
+ _internal_set_next_page_token(from._internal_next_page_token());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void ListBridgePortsResponse::CopyFrom(const ListBridgePortsResponse& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ListBridgePortsResponse::IsInitialized() const {
+ return true;
+}
+
+void ListBridgePortsResponse::InternalSwap(ListBridgePortsResponse* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ bridge_ports_.InternalSwap(&other->bridge_ports_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &next_page_token_, lhs_arena,
+ &other->next_page_token_, rhs_arena
+ );
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata ListBridgePortsResponse::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[13]);
+}
+
+// ===================================================================
+
+class GetBridgePortRequest::_Internal {
+ public:
+};
+
+GetBridgePortRequest::GetBridgePortRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest)
+}
+GetBridgePortRequest::GetBridgePortRequest(const GetBridgePortRequest& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_name().empty()) {
+ name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
+ GetArenaForAllocation());
+ }
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest)
+}
+
+inline void GetBridgePortRequest::SharedCtor() {
+name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+}
+
+GetBridgePortRequest::~GetBridgePortRequest() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void GetBridgePortRequest::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+
+void GetBridgePortRequest::ArenaDtor(void* object) {
+ GetBridgePortRequest* _this = reinterpret_cast< GetBridgePortRequest* >(object);
+ (void)_this;
+}
+void GetBridgePortRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void GetBridgePortRequest::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void GetBridgePortRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ name_.ClearToEmpty();
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* GetBridgePortRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) {
+ auto str = _internal_mutable_name();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.name"));
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* GetBridgePortRequest::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ if (!this->_internal_name().empty()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_name().data(), static_cast(this->_internal_name().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.name");
+ target = stream->WriteStringMaybeAliased(
+ 1, this->_internal_name(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest)
+ return target;
+}
+
+size_t GetBridgePortRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ if (!this->_internal_name().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_name());
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetBridgePortRequest::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ GetBridgePortRequest::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetBridgePortRequest::GetClassData() const { return &_class_data_; }
+
+void GetBridgePortRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void GetBridgePortRequest::MergeFrom(const GetBridgePortRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (!from._internal_name().empty()) {
+ _internal_set_name(from._internal_name());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void GetBridgePortRequest::CopyFrom(const GetBridgePortRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool GetBridgePortRequest::IsInitialized() const {
+ return true;
+}
+
+void GetBridgePortRequest::InternalSwap(GetBridgePortRequest* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &name_, lhs_arena,
+ &other->name_, rhs_arena
+ );
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata GetBridgePortRequest::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[14]);
+}
+
+// ===================================================================
+
+class DeleteBridgePortRequest::_Internal {
+ public:
+};
+
+DeleteBridgePortRequest::DeleteBridgePortRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
+ bool is_message_owned)
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
+ SharedCtor();
+ if (!is_message_owned) {
+ RegisterArenaDtor(arena);
+ }
+ // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest)
+}
+DeleteBridgePortRequest::DeleteBridgePortRequest(const DeleteBridgePortRequest& from)
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+ name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ if (!from._internal_name().empty()) {
+ name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
+ GetArenaForAllocation());
+ }
+ // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest)
+}
+
+inline void DeleteBridgePortRequest::SharedCtor() {
+name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+ name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+}
+
+DeleteBridgePortRequest::~DeleteBridgePortRequest() {
+ // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest)
+ if (GetArenaForAllocation() != nullptr) return;
+ SharedDtor();
+ _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+inline void DeleteBridgePortRequest::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+ name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+
+void DeleteBridgePortRequest::ArenaDtor(void* object) {
+ DeleteBridgePortRequest* _this = reinterpret_cast< DeleteBridgePortRequest* >(object);
+ (void)_this;
+}
+void DeleteBridgePortRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
+}
+void DeleteBridgePortRequest::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+
+void DeleteBridgePortRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest)
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ name_.ClearToEmpty();
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* DeleteBridgePortRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ uint32_t tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ switch (tag >> 3) {
+ // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) {
+ auto str = _internal_mutable_name();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.name"));
+ CHK_(ptr);
+ } else
+ goto handle_unusual;
+ continue;
+ default:
+ goto handle_unusual;
+ } // switch
+ handle_unusual:
+ if ((tag == 0) || ((tag & 7) == 4)) {
+ CHK_(ptr);
+ ctx->SetLastTag(tag);
+ goto message_done;
+ }
+ ptr = UnknownFieldParse(
+ tag,
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+ ptr, ctx);
+ CHK_(ptr != nullptr);
+ } // while
+message_done:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto message_done;
+#undef CHK_
+}
+
+uint8_t* DeleteBridgePortRequest::_InternalSerialize(
+ uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest)
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ if (!this->_internal_name().empty()) {
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+ this->_internal_name().data(), static_cast(this->_internal_name().length()),
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+ "opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.name");
+ target = stream->WriteStringMaybeAliased(
+ 1, this->_internal_name(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest)
+ return target;
+}
+
+size_t DeleteBridgePortRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest)
+ size_t total_size = 0;
+
+ uint32_t cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ if (!this->_internal_name().empty()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+ this->_internal_name());
+ }
+
+ return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteBridgePortRequest::_class_data_ = {
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
+ DeleteBridgePortRequest::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteBridgePortRequest::GetClassData() const { return &_class_data_; }
+
+void DeleteBridgePortRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
+ const ::PROTOBUF_NAMESPACE_ID::Message& from) {
+ static_cast(to)->MergeFrom(
+ static_cast(from));
+}
+
+
+void DeleteBridgePortRequest::MergeFrom(const DeleteBridgePortRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ uint32_t cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (!from._internal_name().empty()) {
+ _internal_set_name(from._internal_name());
+ }
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void DeleteBridgePortRequest::CopyFrom(const DeleteBridgePortRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool DeleteBridgePortRequest::IsInitialized() const {
+ return true;
+}
+
+void DeleteBridgePortRequest::InternalSwap(DeleteBridgePortRequest* other) {
+ using std::swap;
+ auto* lhs_arena = GetArenaForAllocation();
+ auto* rhs_arena = other->GetArenaForAllocation();
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ &name_, lhs_arena,
+ &other->name_, rhs_arena
+ );
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata DeleteBridgePortRequest::GetMetadata() const {
+ return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
+ &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once,
+ file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[15]);
+}
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace v1alpha1
+} // namespace evpn_gw
+} // namespace network
+} // namespace opi_api
+PROTOBUF_NAMESPACE_OPEN
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::BridgePort* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::BridgePort >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::BridgePort >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest >(arena);
+}
+template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest >(Arena* arena) {
+ return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest >(arena);
+}
+PROTOBUF_NAMESPACE_CLOSE
+
+// @@protoc_insertion_point(global_scope)
+#include
diff --git a/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.pb.h b/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.pb.h
new file mode 100644
index 00000000..0de5f903
--- /dev/null
+++ b/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.pb.h
@@ -0,0 +1,4483 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: l2_xpu_infra_mgr.proto
+
+#ifndef GOOGLE_PROTOBUF_INCLUDED_l2_5fxpu_5finfra_5fmgr_2eproto
+#define GOOGLE_PROTOBUF_INCLUDED_l2_5fxpu_5finfra_5fmgr_2eproto
+
+#include
+#include
+
+#include
+#if PROTOBUF_VERSION < 3019000
+#error This file was generated by a newer version of protoc which is
+#error incompatible with your Protocol Buffer headers. Please update
+#error your headers.
+#endif
+#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION
+#error This file was generated by an older version of protoc which is
+#error incompatible with your Protocol Buffer headers. Please
+#error regenerate this file with a newer version of protoc.
+#endif
+
+#include
+#include