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 +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "google/api/annotations.pb.h" +#include "google/api/client.pb.h" +#include +#include "google/api/field_behavior.pb.h" +#include "google/api/resource.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_l2_5fxpu_5finfra_5fmgr_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[16] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto; +namespace opi_api { +namespace network { +namespace evpn_gw { +namespace v1alpha1 { +class BridgePort; +struct BridgePortDefaultTypeInternal; +extern BridgePortDefaultTypeInternal _BridgePort_default_instance_; +class BridgePortSpec; +struct BridgePortSpecDefaultTypeInternal; +extern BridgePortSpecDefaultTypeInternal _BridgePortSpec_default_instance_; +class BridgePortStatus; +struct BridgePortStatusDefaultTypeInternal; +extern BridgePortStatusDefaultTypeInternal _BridgePortStatus_default_instance_; +class CreateBridgePortRequest; +struct CreateBridgePortRequestDefaultTypeInternal; +extern CreateBridgePortRequestDefaultTypeInternal _CreateBridgePortRequest_default_instance_; +class CreateLogicalBridgeRequest; +struct CreateLogicalBridgeRequestDefaultTypeInternal; +extern CreateLogicalBridgeRequestDefaultTypeInternal _CreateLogicalBridgeRequest_default_instance_; +class DeleteBridgePortRequest; +struct DeleteBridgePortRequestDefaultTypeInternal; +extern DeleteBridgePortRequestDefaultTypeInternal _DeleteBridgePortRequest_default_instance_; +class DeleteLogicalBridgeRequest; +struct DeleteLogicalBridgeRequestDefaultTypeInternal; +extern DeleteLogicalBridgeRequestDefaultTypeInternal _DeleteLogicalBridgeRequest_default_instance_; +class GetBridgePortRequest; +struct GetBridgePortRequestDefaultTypeInternal; +extern GetBridgePortRequestDefaultTypeInternal _GetBridgePortRequest_default_instance_; +class GetLogicalBridgeRequest; +struct GetLogicalBridgeRequestDefaultTypeInternal; +extern GetLogicalBridgeRequestDefaultTypeInternal _GetLogicalBridgeRequest_default_instance_; +class ListBridgePortsRequest; +struct ListBridgePortsRequestDefaultTypeInternal; +extern ListBridgePortsRequestDefaultTypeInternal _ListBridgePortsRequest_default_instance_; +class ListBridgePortsResponse; +struct ListBridgePortsResponseDefaultTypeInternal; +extern ListBridgePortsResponseDefaultTypeInternal _ListBridgePortsResponse_default_instance_; +class ListLogicalBridgesRequest; +struct ListLogicalBridgesRequestDefaultTypeInternal; +extern ListLogicalBridgesRequestDefaultTypeInternal _ListLogicalBridgesRequest_default_instance_; +class ListLogicalBridgesResponse; +struct ListLogicalBridgesResponseDefaultTypeInternal; +extern ListLogicalBridgesResponseDefaultTypeInternal _ListLogicalBridgesResponse_default_instance_; +class LogicalBridge; +struct LogicalBridgeDefaultTypeInternal; +extern LogicalBridgeDefaultTypeInternal _LogicalBridge_default_instance_; +class LogicalBridgeSpec; +struct LogicalBridgeSpecDefaultTypeInternal; +extern LogicalBridgeSpecDefaultTypeInternal _LogicalBridgeSpec_default_instance_; +class LogicalBridgeStatus; +struct LogicalBridgeStatusDefaultTypeInternal; +extern LogicalBridgeStatusDefaultTypeInternal _LogicalBridgeStatus_default_instance_; +} // namespace v1alpha1 +} // namespace evpn_gw +} // namespace network +} // namespace opi_api +PROTOBUF_NAMESPACE_OPEN +template<> ::opi_api::network::evpn_gw::v1alpha1::BridgePort* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::BridgePort>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace opi_api { +namespace network { +namespace evpn_gw { +namespace v1alpha1 { + +enum LBOperStatus : int { + LB_OPER_STATUS_UNSPECIFIED = 0, + LB_OPER_STATUS_UP = 1, + LB_OPER_STATUS_DOWN = 2, + LBOperStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + LBOperStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool LBOperStatus_IsValid(int value); +constexpr LBOperStatus LBOperStatus_MIN = LB_OPER_STATUS_UNSPECIFIED; +constexpr LBOperStatus LBOperStatus_MAX = LB_OPER_STATUS_DOWN; +constexpr int LBOperStatus_ARRAYSIZE = LBOperStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LBOperStatus_descriptor(); +template +inline const std::string& LBOperStatus_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function LBOperStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + LBOperStatus_descriptor(), enum_t_value); +} +inline bool LBOperStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LBOperStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + LBOperStatus_descriptor(), name, value); +} +enum BPOperStatus : int { + BP_OPER_STATUS_UNSPECIFIED = 0, + BP_OPER_STATUS_UP = 1, + BP_OPER_STATUS_DOWN = 2, + BPOperStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + BPOperStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool BPOperStatus_IsValid(int value); +constexpr BPOperStatus BPOperStatus_MIN = BP_OPER_STATUS_UNSPECIFIED; +constexpr BPOperStatus BPOperStatus_MAX = BP_OPER_STATUS_DOWN; +constexpr int BPOperStatus_ARRAYSIZE = BPOperStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BPOperStatus_descriptor(); +template +inline const std::string& BPOperStatus_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function BPOperStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + BPOperStatus_descriptor(), enum_t_value); +} +inline bool BPOperStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BPOperStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + BPOperStatus_descriptor(), name, value); +} +enum BridgePortType : int { + UNKNOWN = 0, + ACCESS = 1, + TRUNK = 2, + BridgePortType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + BridgePortType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool BridgePortType_IsValid(int value); +constexpr BridgePortType BridgePortType_MIN = UNKNOWN; +constexpr BridgePortType BridgePortType_MAX = TRUNK; +constexpr int BridgePortType_ARRAYSIZE = BridgePortType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BridgePortType_descriptor(); +template +inline const std::string& BridgePortType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function BridgePortType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + BridgePortType_descriptor(), enum_t_value); +} +inline bool BridgePortType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BridgePortType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + BridgePortType_descriptor(), name, value); +} +// =================================================================== + +class LogicalBridge final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.LogicalBridge) */ { + public: + inline LogicalBridge() : LogicalBridge(nullptr) {} + ~LogicalBridge() override; + explicit constexpr LogicalBridge(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LogicalBridge(const LogicalBridge& from); + LogicalBridge(LogicalBridge&& from) noexcept + : LogicalBridge() { + *this = ::std::move(from); + } + + inline LogicalBridge& operator=(const LogicalBridge& from) { + CopyFrom(from); + return *this; + } + inline LogicalBridge& operator=(LogicalBridge&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const LogicalBridge& default_instance() { + return *internal_default_instance(); + } + static inline const LogicalBridge* internal_default_instance() { + return reinterpret_cast( + &_LogicalBridge_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(LogicalBridge& a, LogicalBridge& b) { + a.Swap(&b); + } + inline void Swap(LogicalBridge* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LogicalBridge* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LogicalBridge* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LogicalBridge& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LogicalBridge& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LogicalBridge* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.LogicalBridge"; + } + protected: + explicit LogicalBridge(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kSpecFieldNumber = 2, + kStatusFieldNumber = 3, + }; + // string name = 1; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + bool has_spec() const; + private: + bool _internal_has_spec() const; + public: + void clear_spec(); + const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec& spec() const; + PROTOBUF_NODISCARD ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* release_spec(); + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* mutable_spec(); + void set_allocated_spec(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* spec); + private: + const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec& _internal_spec() const; + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* _internal_mutable_spec(); + public: + void unsafe_arena_set_allocated_spec( + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* spec); + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* unsafe_arena_release_spec(); + + // .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus& status() const; + PROTOBUF_NODISCARD ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* release_status(); + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* mutable_status(); + void set_allocated_status(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* status); + private: + const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus& _internal_status() const; + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* status); + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* unsafe_arena_release_status(); + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.LogicalBridge) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* spec_; + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class LogicalBridgeSpec final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) */ { + public: + inline LogicalBridgeSpec() : LogicalBridgeSpec(nullptr) {} + ~LogicalBridgeSpec() override; + explicit constexpr LogicalBridgeSpec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LogicalBridgeSpec(const LogicalBridgeSpec& from); + LogicalBridgeSpec(LogicalBridgeSpec&& from) noexcept + : LogicalBridgeSpec() { + *this = ::std::move(from); + } + + inline LogicalBridgeSpec& operator=(const LogicalBridgeSpec& from) { + CopyFrom(from); + return *this; + } + inline LogicalBridgeSpec& operator=(LogicalBridgeSpec&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const LogicalBridgeSpec& default_instance() { + return *internal_default_instance(); + } + static inline const LogicalBridgeSpec* internal_default_instance() { + return reinterpret_cast( + &_LogicalBridgeSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(LogicalBridgeSpec& a, LogicalBridgeSpec& b) { + a.Swap(&b); + } + inline void Swap(LogicalBridgeSpec* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LogicalBridgeSpec* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LogicalBridgeSpec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LogicalBridgeSpec& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LogicalBridgeSpec& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LogicalBridgeSpec* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec"; + } + protected: + explicit LogicalBridgeSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kVlanIdFieldNumber = 1, + kVniFieldNumber = 2, + }; + // uint32 vlan_id = 1 [(.google.api.field_behavior) = REQUIRED]; + void clear_vlan_id(); + uint32_t vlan_id() const; + void set_vlan_id(uint32_t value); + private: + uint32_t _internal_vlan_id() const; + void _internal_set_vlan_id(uint32_t value); + public: + + // uint32 vni = 2; + void clear_vni(); + uint32_t vni() const; + void set_vni(uint32_t value); + private: + uint32_t _internal_vni() const; + void _internal_set_vni(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + uint32_t vlan_id_; + uint32_t vni_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class LogicalBridgeStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) */ { + public: + inline LogicalBridgeStatus() : LogicalBridgeStatus(nullptr) {} + ~LogicalBridgeStatus() override; + explicit constexpr LogicalBridgeStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LogicalBridgeStatus(const LogicalBridgeStatus& from); + LogicalBridgeStatus(LogicalBridgeStatus&& from) noexcept + : LogicalBridgeStatus() { + *this = ::std::move(from); + } + + inline LogicalBridgeStatus& operator=(const LogicalBridgeStatus& from) { + CopyFrom(from); + return *this; + } + inline LogicalBridgeStatus& operator=(LogicalBridgeStatus&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const LogicalBridgeStatus& default_instance() { + return *internal_default_instance(); + } + static inline const LogicalBridgeStatus* internal_default_instance() { + return reinterpret_cast( + &_LogicalBridgeStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(LogicalBridgeStatus& a, LogicalBridgeStatus& b) { + a.Swap(&b); + } + inline void Swap(LogicalBridgeStatus* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LogicalBridgeStatus* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + LogicalBridgeStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const LogicalBridgeStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const LogicalBridgeStatus& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LogicalBridgeStatus* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus"; + } + protected: + explicit LogicalBridgeStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kOperStatusFieldNumber = 1, + }; + // .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1; + void clear_oper_status(); + ::opi_api::network::evpn_gw::v1alpha1::LBOperStatus oper_status() const; + void set_oper_status(::opi_api::network::evpn_gw::v1alpha1::LBOperStatus value); + private: + ::opi_api::network::evpn_gw::v1alpha1::LBOperStatus _internal_oper_status() const; + void _internal_set_oper_status(::opi_api::network::evpn_gw::v1alpha1::LBOperStatus value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int oper_status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateLogicalBridgeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) */ { + public: + inline CreateLogicalBridgeRequest() : CreateLogicalBridgeRequest(nullptr) {} + ~CreateLogicalBridgeRequest() override; + explicit constexpr CreateLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateLogicalBridgeRequest(const CreateLogicalBridgeRequest& from); + CreateLogicalBridgeRequest(CreateLogicalBridgeRequest&& from) noexcept + : CreateLogicalBridgeRequest() { + *this = ::std::move(from); + } + + inline CreateLogicalBridgeRequest& operator=(const CreateLogicalBridgeRequest& from) { + CopyFrom(from); + return *this; + } + inline CreateLogicalBridgeRequest& operator=(CreateLogicalBridgeRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CreateLogicalBridgeRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CreateLogicalBridgeRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateLogicalBridgeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(CreateLogicalBridgeRequest& a, CreateLogicalBridgeRequest& b) { + a.Swap(&b); + } + inline void Swap(CreateLogicalBridgeRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CreateLogicalBridgeRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateLogicalBridgeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateLogicalBridgeRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateLogicalBridgeRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateLogicalBridgeRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest"; + } + protected: + explicit CreateLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kLogicalBridgeIdFieldNumber = 1, + kLogicalBridgeFieldNumber = 2, + }; + // string logical_bridge_id = 1; + void clear_logical_bridge_id(); + const std::string& logical_bridge_id() const; + template + void set_logical_bridge_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_logical_bridge_id(); + PROTOBUF_NODISCARD std::string* release_logical_bridge_id(); + void set_allocated_logical_bridge_id(std::string* logical_bridge_id); + private: + const std::string& _internal_logical_bridge_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logical_bridge_id(const std::string& value); + std::string* _internal_mutable_logical_bridge_id(); + public: + + // .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + bool has_logical_bridge() const; + private: + bool _internal_has_logical_bridge() const; + public: + void clear_logical_bridge(); + const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& logical_bridge() const; + PROTOBUF_NODISCARD ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* release_logical_bridge(); + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* mutable_logical_bridge(); + void set_allocated_logical_bridge(::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* logical_bridge); + private: + const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& _internal_logical_bridge() const; + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* _internal_mutable_logical_bridge(); + public: + void unsafe_arena_set_allocated_logical_bridge( + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* logical_bridge); + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* unsafe_arena_release_logical_bridge(); + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logical_bridge_id_; + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* logical_bridge_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class ListLogicalBridgesRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) */ { + public: + inline ListLogicalBridgesRequest() : ListLogicalBridgesRequest(nullptr) {} + ~ListLogicalBridgesRequest() override; + explicit constexpr ListLogicalBridgesRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListLogicalBridgesRequest(const ListLogicalBridgesRequest& from); + ListLogicalBridgesRequest(ListLogicalBridgesRequest&& from) noexcept + : ListLogicalBridgesRequest() { + *this = ::std::move(from); + } + + inline ListLogicalBridgesRequest& operator=(const ListLogicalBridgesRequest& from) { + CopyFrom(from); + return *this; + } + inline ListLogicalBridgesRequest& operator=(ListLogicalBridgesRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListLogicalBridgesRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ListLogicalBridgesRequest* internal_default_instance() { + return reinterpret_cast( + &_ListLogicalBridgesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(ListLogicalBridgesRequest& a, ListLogicalBridgesRequest& b) { + a.Swap(&b); + } + inline void Swap(ListLogicalBridgesRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListLogicalBridgesRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListLogicalBridgesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListLogicalBridgesRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListLogicalBridgesRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListLogicalBridgesRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest"; + } + protected: + explicit ListLogicalBridgesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPageTokenFieldNumber = 2, + kPageSizeFieldNumber = 1, + }; + // string page_token = 2; + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // int32 page_size = 1; + void clear_page_size(); + int32_t page_size() const; + void set_page_size(int32_t value); + private: + int32_t _internal_page_size() const; + void _internal_set_page_size(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + int32_t page_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class ListLogicalBridgesResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) */ { + public: + inline ListLogicalBridgesResponse() : ListLogicalBridgesResponse(nullptr) {} + ~ListLogicalBridgesResponse() override; + explicit constexpr ListLogicalBridgesResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListLogicalBridgesResponse(const ListLogicalBridgesResponse& from); + ListLogicalBridgesResponse(ListLogicalBridgesResponse&& from) noexcept + : ListLogicalBridgesResponse() { + *this = ::std::move(from); + } + + inline ListLogicalBridgesResponse& operator=(const ListLogicalBridgesResponse& from) { + CopyFrom(from); + return *this; + } + inline ListLogicalBridgesResponse& operator=(ListLogicalBridgesResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListLogicalBridgesResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ListLogicalBridgesResponse* internal_default_instance() { + return reinterpret_cast( + &_ListLogicalBridgesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(ListLogicalBridgesResponse& a, ListLogicalBridgesResponse& b) { + a.Swap(&b); + } + inline void Swap(ListLogicalBridgesResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListLogicalBridgesResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListLogicalBridgesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListLogicalBridgesResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListLogicalBridgesResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListLogicalBridgesResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse"; + } + protected: + explicit ListLogicalBridgesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kLogicalBridgesFieldNumber = 1, + kNextPageTokenFieldNumber = 2, + }; + // repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + int logical_bridges_size() const; + private: + int _internal_logical_bridges_size() const; + public: + void clear_logical_bridges(); + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* mutable_logical_bridges(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge >* + mutable_logical_bridges(); + private: + const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& _internal_logical_bridges(int index) const; + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* _internal_add_logical_bridges(); + public: + const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& logical_bridges(int index) const; + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* add_logical_bridges(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge >& + logical_bridges() const; + + // string next_page_token = 2; + void clear_next_page_token(); + const std::string& next_page_token() const; + template + void set_next_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_next_page_token(); + PROTOBUF_NODISCARD std::string* release_next_page_token(); + void set_allocated_next_page_token(std::string* next_page_token); + private: + const std::string& _internal_next_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token(const std::string& value); + std::string* _internal_mutable_next_page_token(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge > logical_bridges_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class GetLogicalBridgeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) */ { + public: + inline GetLogicalBridgeRequest() : GetLogicalBridgeRequest(nullptr) {} + ~GetLogicalBridgeRequest() override; + explicit constexpr GetLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetLogicalBridgeRequest(const GetLogicalBridgeRequest& from); + GetLogicalBridgeRequest(GetLogicalBridgeRequest&& from) noexcept + : GetLogicalBridgeRequest() { + *this = ::std::move(from); + } + + inline GetLogicalBridgeRequest& operator=(const GetLogicalBridgeRequest& from) { + CopyFrom(from); + return *this; + } + inline GetLogicalBridgeRequest& operator=(GetLogicalBridgeRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetLogicalBridgeRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetLogicalBridgeRequest* internal_default_instance() { + return reinterpret_cast( + &_GetLogicalBridgeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(GetLogicalBridgeRequest& a, GetLogicalBridgeRequest& b) { + a.Swap(&b); + } + inline void Swap(GetLogicalBridgeRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetLogicalBridgeRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetLogicalBridgeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetLogicalBridgeRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetLogicalBridgeRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetLogicalBridgeRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest"; + } + protected: + explicit GetLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + }; + // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteLogicalBridgeRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) */ { + public: + inline DeleteLogicalBridgeRequest() : DeleteLogicalBridgeRequest(nullptr) {} + ~DeleteLogicalBridgeRequest() override; + explicit constexpr DeleteLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteLogicalBridgeRequest(const DeleteLogicalBridgeRequest& from); + DeleteLogicalBridgeRequest(DeleteLogicalBridgeRequest&& from) noexcept + : DeleteLogicalBridgeRequest() { + *this = ::std::move(from); + } + + inline DeleteLogicalBridgeRequest& operator=(const DeleteLogicalBridgeRequest& from) { + CopyFrom(from); + return *this; + } + inline DeleteLogicalBridgeRequest& operator=(DeleteLogicalBridgeRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DeleteLogicalBridgeRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteLogicalBridgeRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteLogicalBridgeRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(DeleteLogicalBridgeRequest& a, DeleteLogicalBridgeRequest& b) { + a.Swap(&b); + } + inline void Swap(DeleteLogicalBridgeRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeleteLogicalBridgeRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteLogicalBridgeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteLogicalBridgeRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteLogicalBridgeRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteLogicalBridgeRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest"; + } + protected: + explicit DeleteLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + }; + // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class BridgePort final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.BridgePort) */ { + public: + inline BridgePort() : BridgePort(nullptr) {} + ~BridgePort() override; + explicit constexpr BridgePort(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BridgePort(const BridgePort& from); + BridgePort(BridgePort&& from) noexcept + : BridgePort() { + *this = ::std::move(from); + } + + inline BridgePort& operator=(const BridgePort& from) { + CopyFrom(from); + return *this; + } + inline BridgePort& operator=(BridgePort&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const BridgePort& default_instance() { + return *internal_default_instance(); + } + static inline const BridgePort* internal_default_instance() { + return reinterpret_cast( + &_BridgePort_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(BridgePort& a, BridgePort& b) { + a.Swap(&b); + } + inline void Swap(BridgePort* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BridgePort* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BridgePort* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BridgePort& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const BridgePort& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BridgePort* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.BridgePort"; + } + protected: + explicit BridgePort(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kSpecFieldNumber = 2, + kStatusFieldNumber = 3, + }; + // string name = 1; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + bool has_spec() const; + private: + bool _internal_has_spec() const; + public: + void clear_spec(); + const ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec& spec() const; + PROTOBUF_NODISCARD ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* release_spec(); + ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* mutable_spec(); + void set_allocated_spec(::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* spec); + private: + const ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec& _internal_spec() const; + ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* _internal_mutable_spec(); + public: + void unsafe_arena_set_allocated_spec( + ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* spec); + ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* unsafe_arena_release_spec(); + + // .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus& status() const; + PROTOBUF_NODISCARD ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* release_status(); + ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* mutable_status(); + void set_allocated_status(::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* status); + private: + const ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus& _internal_status() const; + ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* status); + ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* unsafe_arena_release_status(); + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.BridgePort) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* spec_; + ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class BridgePortSpec final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) */ { + public: + inline BridgePortSpec() : BridgePortSpec(nullptr) {} + ~BridgePortSpec() override; + explicit constexpr BridgePortSpec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BridgePortSpec(const BridgePortSpec& from); + BridgePortSpec(BridgePortSpec&& from) noexcept + : BridgePortSpec() { + *this = ::std::move(from); + } + + inline BridgePortSpec& operator=(const BridgePortSpec& from) { + CopyFrom(from); + return *this; + } + inline BridgePortSpec& operator=(BridgePortSpec&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const BridgePortSpec& default_instance() { + return *internal_default_instance(); + } + static inline const BridgePortSpec* internal_default_instance() { + return reinterpret_cast( + &_BridgePortSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(BridgePortSpec& a, BridgePortSpec& b) { + a.Swap(&b); + } + inline void Swap(BridgePortSpec* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BridgePortSpec* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BridgePortSpec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BridgePortSpec& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const BridgePortSpec& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BridgePortSpec* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.BridgePortSpec"; + } + protected: + explicit BridgePortSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kLogicalBridgesFieldNumber = 3, + kMacAddressFieldNumber = 1, + kPtypeFieldNumber = 2, + }; + // repeated string logical_bridges = 3; + int logical_bridges_size() const; + private: + int _internal_logical_bridges_size() const; + public: + void clear_logical_bridges(); + const std::string& logical_bridges(int index) const; + std::string* mutable_logical_bridges(int index); + void set_logical_bridges(int index, const std::string& value); + void set_logical_bridges(int index, std::string&& value); + void set_logical_bridges(int index, const char* value); + void set_logical_bridges(int index, const char* value, size_t size); + std::string* add_logical_bridges(); + void add_logical_bridges(const std::string& value); + void add_logical_bridges(std::string&& value); + void add_logical_bridges(const char* value); + void add_logical_bridges(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& logical_bridges() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_logical_bridges(); + private: + const std::string& _internal_logical_bridges(int index) const; + std::string* _internal_add_logical_bridges(); + public: + + // bytes mac_address = 1 [(.google.api.field_behavior) = REQUIRED]; + void clear_mac_address(); + const std::string& mac_address() const; + template + void set_mac_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_mac_address(); + PROTOBUF_NODISCARD std::string* release_mac_address(); + void set_allocated_mac_address(std::string* mac_address); + private: + const std::string& _internal_mac_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mac_address(const std::string& value); + std::string* _internal_mutable_mac_address(); + public: + + // .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED]; + void clear_ptype(); + ::opi_api::network::evpn_gw::v1alpha1::BridgePortType ptype() const; + void set_ptype(::opi_api::network::evpn_gw::v1alpha1::BridgePortType value); + private: + ::opi_api::network::evpn_gw::v1alpha1::BridgePortType _internal_ptype() const; + void _internal_set_ptype(::opi_api::network::evpn_gw::v1alpha1::BridgePortType value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField logical_bridges_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mac_address_; + int ptype_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class BridgePortStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) */ { + public: + inline BridgePortStatus() : BridgePortStatus(nullptr) {} + ~BridgePortStatus() override; + explicit constexpr BridgePortStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BridgePortStatus(const BridgePortStatus& from); + BridgePortStatus(BridgePortStatus&& from) noexcept + : BridgePortStatus() { + *this = ::std::move(from); + } + + inline BridgePortStatus& operator=(const BridgePortStatus& from) { + CopyFrom(from); + return *this; + } + inline BridgePortStatus& operator=(BridgePortStatus&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const BridgePortStatus& default_instance() { + return *internal_default_instance(); + } + static inline const BridgePortStatus* internal_default_instance() { + return reinterpret_cast( + &_BridgePortStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(BridgePortStatus& a, BridgePortStatus& b) { + a.Swap(&b); + } + inline void Swap(BridgePortStatus* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BridgePortStatus* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BridgePortStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BridgePortStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const BridgePortStatus& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BridgePortStatus* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.BridgePortStatus"; + } + protected: + explicit BridgePortStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kOperStatusFieldNumber = 1, + }; + // .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1; + void clear_oper_status(); + ::opi_api::network::evpn_gw::v1alpha1::BPOperStatus oper_status() const; + void set_oper_status(::opi_api::network::evpn_gw::v1alpha1::BPOperStatus value); + private: + ::opi_api::network::evpn_gw::v1alpha1::BPOperStatus _internal_oper_status() const; + void _internal_set_oper_status(::opi_api::network::evpn_gw::v1alpha1::BPOperStatus value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int oper_status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateBridgePortRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) */ { + public: + inline CreateBridgePortRequest() : CreateBridgePortRequest(nullptr) {} + ~CreateBridgePortRequest() override; + explicit constexpr CreateBridgePortRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateBridgePortRequest(const CreateBridgePortRequest& from); + CreateBridgePortRequest(CreateBridgePortRequest&& from) noexcept + : CreateBridgePortRequest() { + *this = ::std::move(from); + } + + inline CreateBridgePortRequest& operator=(const CreateBridgePortRequest& from) { + CopyFrom(from); + return *this; + } + inline CreateBridgePortRequest& operator=(CreateBridgePortRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CreateBridgePortRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CreateBridgePortRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateBridgePortRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(CreateBridgePortRequest& a, CreateBridgePortRequest& b) { + a.Swap(&b); + } + inline void Swap(CreateBridgePortRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CreateBridgePortRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateBridgePortRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateBridgePortRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateBridgePortRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateBridgePortRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest"; + } + protected: + explicit CreateBridgePortRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBridgePortIdFieldNumber = 1, + kBridgePortFieldNumber = 2, + }; + // string bridge_port_id = 1; + void clear_bridge_port_id(); + const std::string& bridge_port_id() const; + template + void set_bridge_port_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_bridge_port_id(); + PROTOBUF_NODISCARD std::string* release_bridge_port_id(); + void set_allocated_bridge_port_id(std::string* bridge_port_id); + private: + const std::string& _internal_bridge_port_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_bridge_port_id(const std::string& value); + std::string* _internal_mutable_bridge_port_id(); + public: + + // .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + bool has_bridge_port() const; + private: + bool _internal_has_bridge_port() const; + public: + void clear_bridge_port(); + const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& bridge_port() const; + PROTOBUF_NODISCARD ::opi_api::network::evpn_gw::v1alpha1::BridgePort* release_bridge_port(); + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* mutable_bridge_port(); + void set_allocated_bridge_port(::opi_api::network::evpn_gw::v1alpha1::BridgePort* bridge_port); + private: + const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& _internal_bridge_port() const; + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* _internal_mutable_bridge_port(); + public: + void unsafe_arena_set_allocated_bridge_port( + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* bridge_port); + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* unsafe_arena_release_bridge_port(); + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bridge_port_id_; + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* bridge_port_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class ListBridgePortsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) */ { + public: + inline ListBridgePortsRequest() : ListBridgePortsRequest(nullptr) {} + ~ListBridgePortsRequest() override; + explicit constexpr ListBridgePortsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListBridgePortsRequest(const ListBridgePortsRequest& from); + ListBridgePortsRequest(ListBridgePortsRequest&& from) noexcept + : ListBridgePortsRequest() { + *this = ::std::move(from); + } + + inline ListBridgePortsRequest& operator=(const ListBridgePortsRequest& from) { + CopyFrom(from); + return *this; + } + inline ListBridgePortsRequest& operator=(ListBridgePortsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListBridgePortsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ListBridgePortsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListBridgePortsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(ListBridgePortsRequest& a, ListBridgePortsRequest& b) { + a.Swap(&b); + } + inline void Swap(ListBridgePortsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListBridgePortsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListBridgePortsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListBridgePortsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListBridgePortsRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListBridgePortsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest"; + } + protected: + explicit ListBridgePortsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPageTokenFieldNumber = 2, + kPageSizeFieldNumber = 1, + }; + // string page_token = 2; + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // int32 page_size = 1; + void clear_page_size(); + int32_t page_size() const; + void set_page_size(int32_t value); + private: + int32_t _internal_page_size() const; + void _internal_set_page_size(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + int32_t page_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class ListBridgePortsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) */ { + public: + inline ListBridgePortsResponse() : ListBridgePortsResponse(nullptr) {} + ~ListBridgePortsResponse() override; + explicit constexpr ListBridgePortsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListBridgePortsResponse(const ListBridgePortsResponse& from); + ListBridgePortsResponse(ListBridgePortsResponse&& from) noexcept + : ListBridgePortsResponse() { + *this = ::std::move(from); + } + + inline ListBridgePortsResponse& operator=(const ListBridgePortsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListBridgePortsResponse& operator=(ListBridgePortsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListBridgePortsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ListBridgePortsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListBridgePortsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(ListBridgePortsResponse& a, ListBridgePortsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListBridgePortsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListBridgePortsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListBridgePortsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListBridgePortsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListBridgePortsResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListBridgePortsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse"; + } + protected: + explicit ListBridgePortsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBridgePortsFieldNumber = 1, + kNextPageTokenFieldNumber = 2, + }; + // repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + int bridge_ports_size() const; + private: + int _internal_bridge_ports_size() const; + public: + void clear_bridge_ports(); + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* mutable_bridge_ports(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::BridgePort >* + mutable_bridge_ports(); + private: + const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& _internal_bridge_ports(int index) const; + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* _internal_add_bridge_ports(); + public: + const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& bridge_ports(int index) const; + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* add_bridge_ports(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::BridgePort >& + bridge_ports() const; + + // string next_page_token = 2; + void clear_next_page_token(); + const std::string& next_page_token() const; + template + void set_next_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_next_page_token(); + PROTOBUF_NODISCARD std::string* release_next_page_token(); + void set_allocated_next_page_token(std::string* next_page_token); + private: + const std::string& _internal_next_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token(const std::string& value); + std::string* _internal_mutable_next_page_token(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::BridgePort > bridge_ports_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class GetBridgePortRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) */ { + public: + inline GetBridgePortRequest() : GetBridgePortRequest(nullptr) {} + ~GetBridgePortRequest() override; + explicit constexpr GetBridgePortRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetBridgePortRequest(const GetBridgePortRequest& from); + GetBridgePortRequest(GetBridgePortRequest&& from) noexcept + : GetBridgePortRequest() { + *this = ::std::move(from); + } + + inline GetBridgePortRequest& operator=(const GetBridgePortRequest& from) { + CopyFrom(from); + return *this; + } + inline GetBridgePortRequest& operator=(GetBridgePortRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetBridgePortRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetBridgePortRequest* internal_default_instance() { + return reinterpret_cast( + &_GetBridgePortRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(GetBridgePortRequest& a, GetBridgePortRequest& b) { + a.Swap(&b); + } + inline void Swap(GetBridgePortRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetBridgePortRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetBridgePortRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetBridgePortRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetBridgePortRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetBridgePortRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest"; + } + protected: + explicit GetBridgePortRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + }; + // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteBridgePortRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) */ { + public: + inline DeleteBridgePortRequest() : DeleteBridgePortRequest(nullptr) {} + ~DeleteBridgePortRequest() override; + explicit constexpr DeleteBridgePortRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteBridgePortRequest(const DeleteBridgePortRequest& from); + DeleteBridgePortRequest(DeleteBridgePortRequest&& from) noexcept + : DeleteBridgePortRequest() { + *this = ::std::move(from); + } + + inline DeleteBridgePortRequest& operator=(const DeleteBridgePortRequest& from) { + CopyFrom(from); + return *this; + } + inline DeleteBridgePortRequest& operator=(DeleteBridgePortRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DeleteBridgePortRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteBridgePortRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteBridgePortRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(DeleteBridgePortRequest& a, DeleteBridgePortRequest& b) { + a.Swap(&b); + } + inline void Swap(DeleteBridgePortRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeleteBridgePortRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteBridgePortRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteBridgePortRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteBridgePortRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteBridgePortRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest"; + } + protected: + explicit DeleteBridgePortRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + }; + // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// LogicalBridge + +// string name = 1; +inline void LogicalBridge::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& LogicalBridge::name() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void LogicalBridge::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.name) +} +inline std::string* LogicalBridge::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.name) + return _s; +} +inline const std::string& LogicalBridge::_internal_name() const { + return name_.Get(); +} +inline void LogicalBridge::_internal_set_name(const std::string& value) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* LogicalBridge::_internal_mutable_name() { + + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* LogicalBridge::release_name() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.name) + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void LogicalBridge::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.name) +} + +// .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; +inline bool LogicalBridge::_internal_has_spec() const { + return this != internal_default_instance() && spec_ != nullptr; +} +inline bool LogicalBridge::has_spec() const { + return _internal_has_spec(); +} +inline void LogicalBridge::clear_spec() { + if (GetArenaForAllocation() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec& LogicalBridge::_internal_spec() const { + const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* p = spec_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::evpn_gw::v1alpha1::_LogicalBridgeSpec_default_instance_); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec& LogicalBridge::spec() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.spec) + return _internal_spec(); +} +inline void LogicalBridge::unsafe_arena_set_allocated_spec( + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* spec) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(spec_); + } + spec_ = spec; + if (spec) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.spec) +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* LogicalBridge::release_spec() { + + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* temp = spec_; + spec_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* LogicalBridge::unsafe_arena_release_spec() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.spec) + + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* temp = spec_; + spec_ = nullptr; + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* LogicalBridge::_internal_mutable_spec() { + + if (spec_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec>(GetArenaForAllocation()); + spec_ = p; + } + return spec_; +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* LogicalBridge::mutable_spec() { + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* _msg = _internal_mutable_spec(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.spec) + return _msg; +} +inline void LogicalBridge::set_allocated_spec(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* spec) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete spec_; + } + if (spec) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec>::GetOwningArena(spec); + if (message_arena != submessage_arena) { + spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.spec) +} + +// .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; +inline bool LogicalBridge::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline bool LogicalBridge::has_status() const { + return _internal_has_status(); +} +inline void LogicalBridge::clear_status() { + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus& LogicalBridge::_internal_status() const { + const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::evpn_gw::v1alpha1::_LogicalBridgeStatus_default_instance_); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus& LogicalBridge::status() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.status) + return _internal_status(); +} +inline void LogicalBridge::unsafe_arena_set_allocated_status( + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.status) +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* LogicalBridge::release_status() { + + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* temp = status_; + status_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* LogicalBridge::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.status) + + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* temp = status_; + status_ = nullptr; + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* LogicalBridge::_internal_mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus>(GetArenaForAllocation()); + status_ = p; + } + return status_; +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* LogicalBridge::mutable_status() { + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.status) + return _msg; +} +inline void LogicalBridge::set_allocated_status(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete status_; + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus>::GetOwningArena(status); + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.status) +} + +// ------------------------------------------------------------------- + +// LogicalBridgeSpec + +// uint32 vlan_id = 1 [(.google.api.field_behavior) = REQUIRED]; +inline void LogicalBridgeSpec::clear_vlan_id() { + vlan_id_ = 0u; +} +inline uint32_t LogicalBridgeSpec::_internal_vlan_id() const { + return vlan_id_; +} +inline uint32_t LogicalBridgeSpec::vlan_id() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.vlan_id) + return _internal_vlan_id(); +} +inline void LogicalBridgeSpec::_internal_set_vlan_id(uint32_t value) { + + vlan_id_ = value; +} +inline void LogicalBridgeSpec::set_vlan_id(uint32_t value) { + _internal_set_vlan_id(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.vlan_id) +} + +// uint32 vni = 2; +inline void LogicalBridgeSpec::clear_vni() { + vni_ = 0u; +} +inline uint32_t LogicalBridgeSpec::_internal_vni() const { + return vni_; +} +inline uint32_t LogicalBridgeSpec::vni() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.vni) + return _internal_vni(); +} +inline void LogicalBridgeSpec::_internal_set_vni(uint32_t value) { + + vni_ = value; +} +inline void LogicalBridgeSpec::set_vni(uint32_t value) { + _internal_set_vni(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.vni) +} + +// ------------------------------------------------------------------- + +// LogicalBridgeStatus + +// .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1; +inline void LogicalBridgeStatus::clear_oper_status() { + oper_status_ = 0; +} +inline ::opi_api::network::evpn_gw::v1alpha1::LBOperStatus LogicalBridgeStatus::_internal_oper_status() const { + return static_cast< ::opi_api::network::evpn_gw::v1alpha1::LBOperStatus >(oper_status_); +} +inline ::opi_api::network::evpn_gw::v1alpha1::LBOperStatus LogicalBridgeStatus::oper_status() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.oper_status) + return _internal_oper_status(); +} +inline void LogicalBridgeStatus::_internal_set_oper_status(::opi_api::network::evpn_gw::v1alpha1::LBOperStatus value) { + + oper_status_ = value; +} +inline void LogicalBridgeStatus::set_oper_status(::opi_api::network::evpn_gw::v1alpha1::LBOperStatus value) { + _internal_set_oper_status(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.oper_status) +} + +// ------------------------------------------------------------------- + +// CreateLogicalBridgeRequest + +// string logical_bridge_id = 1; +inline void CreateLogicalBridgeRequest::clear_logical_bridge_id() { + logical_bridge_id_.ClearToEmpty(); +} +inline const std::string& CreateLogicalBridgeRequest::logical_bridge_id() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge_id) + return _internal_logical_bridge_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateLogicalBridgeRequest::set_logical_bridge_id(ArgT0&& arg0, ArgT... args) { + + logical_bridge_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge_id) +} +inline std::string* CreateLogicalBridgeRequest::mutable_logical_bridge_id() { + std::string* _s = _internal_mutable_logical_bridge_id(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge_id) + return _s; +} +inline const std::string& CreateLogicalBridgeRequest::_internal_logical_bridge_id() const { + return logical_bridge_id_.Get(); +} +inline void CreateLogicalBridgeRequest::_internal_set_logical_bridge_id(const std::string& value) { + + logical_bridge_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* CreateLogicalBridgeRequest::_internal_mutable_logical_bridge_id() { + + return logical_bridge_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* CreateLogicalBridgeRequest::release_logical_bridge_id() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge_id) + return logical_bridge_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void CreateLogicalBridgeRequest::set_allocated_logical_bridge_id(std::string* logical_bridge_id) { + if (logical_bridge_id != nullptr) { + + } else { + + } + logical_bridge_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), logical_bridge_id, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (logical_bridge_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + logical_bridge_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge_id) +} + +// .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; +inline bool CreateLogicalBridgeRequest::_internal_has_logical_bridge() const { + return this != internal_default_instance() && logical_bridge_ != nullptr; +} +inline bool CreateLogicalBridgeRequest::has_logical_bridge() const { + return _internal_has_logical_bridge(); +} +inline void CreateLogicalBridgeRequest::clear_logical_bridge() { + if (GetArenaForAllocation() == nullptr && logical_bridge_ != nullptr) { + delete logical_bridge_; + } + logical_bridge_ = nullptr; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& CreateLogicalBridgeRequest::_internal_logical_bridge() const { + const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* p = logical_bridge_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::evpn_gw::v1alpha1::_LogicalBridge_default_instance_); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& CreateLogicalBridgeRequest::logical_bridge() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge) + return _internal_logical_bridge(); +} +inline void CreateLogicalBridgeRequest::unsafe_arena_set_allocated_logical_bridge( + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* logical_bridge) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(logical_bridge_); + } + logical_bridge_ = logical_bridge; + if (logical_bridge) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge) +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* CreateLogicalBridgeRequest::release_logical_bridge() { + + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* temp = logical_bridge_; + logical_bridge_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* CreateLogicalBridgeRequest::unsafe_arena_release_logical_bridge() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge) + + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* temp = logical_bridge_; + logical_bridge_ = nullptr; + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* CreateLogicalBridgeRequest::_internal_mutable_logical_bridge() { + + if (logical_bridge_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>(GetArenaForAllocation()); + logical_bridge_ = p; + } + return logical_bridge_; +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* CreateLogicalBridgeRequest::mutable_logical_bridge() { + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* _msg = _internal_mutable_logical_bridge(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge) + return _msg; +} +inline void CreateLogicalBridgeRequest::set_allocated_logical_bridge(::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* logical_bridge) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete logical_bridge_; + } + if (logical_bridge) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>::GetOwningArena(logical_bridge); + if (message_arena != submessage_arena) { + logical_bridge = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, logical_bridge, submessage_arena); + } + + } else { + + } + logical_bridge_ = logical_bridge; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge) +} + +// ------------------------------------------------------------------- + +// ListLogicalBridgesRequest + +// int32 page_size = 1; +inline void ListLogicalBridgesRequest::clear_page_size() { + page_size_ = 0; +} +inline int32_t ListLogicalBridgesRequest::_internal_page_size() const { + return page_size_; +} +inline int32_t ListLogicalBridgesRequest::page_size() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.page_size) + return _internal_page_size(); +} +inline void ListLogicalBridgesRequest::_internal_set_page_size(int32_t value) { + + page_size_ = value; +} +inline void ListLogicalBridgesRequest::set_page_size(int32_t value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.page_size) +} + +// string page_token = 2; +inline void ListLogicalBridgesRequest::clear_page_token() { + page_token_.ClearToEmpty(); +} +inline const std::string& ListLogicalBridgesRequest::page_token() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.page_token) + return _internal_page_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListLogicalBridgesRequest::set_page_token(ArgT0&& arg0, ArgT... args) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.page_token) +} +inline std::string* ListLogicalBridgesRequest::mutable_page_token() { + std::string* _s = _internal_mutable_page_token(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.page_token) + return _s; +} +inline const std::string& ListLogicalBridgesRequest::_internal_page_token() const { + return page_token_.Get(); +} +inline void ListLogicalBridgesRequest::_internal_set_page_token(const std::string& value) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ListLogicalBridgesRequest::_internal_mutable_page_token() { + + return page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ListLogicalBridgesRequest::release_page_token() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.page_token) + return page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ListLogicalBridgesRequest::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + + } else { + + } + page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.page_token) +} + +// ------------------------------------------------------------------- + +// ListLogicalBridgesResponse + +// repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; +inline int ListLogicalBridgesResponse::_internal_logical_bridges_size() const { + return logical_bridges_.size(); +} +inline int ListLogicalBridgesResponse::logical_bridges_size() const { + return _internal_logical_bridges_size(); +} +inline void ListLogicalBridgesResponse::clear_logical_bridges() { + logical_bridges_.Clear(); +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* ListLogicalBridgesResponse::mutable_logical_bridges(int index) { + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.logical_bridges) + return logical_bridges_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge >* +ListLogicalBridgesResponse::mutable_logical_bridges() { + // @@protoc_insertion_point(field_mutable_list:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.logical_bridges) + return &logical_bridges_; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& ListLogicalBridgesResponse::_internal_logical_bridges(int index) const { + return logical_bridges_.Get(index); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& ListLogicalBridgesResponse::logical_bridges(int index) const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.logical_bridges) + return _internal_logical_bridges(index); +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* ListLogicalBridgesResponse::_internal_add_logical_bridges() { + return logical_bridges_.Add(); +} +inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* ListLogicalBridgesResponse::add_logical_bridges() { + ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* _add = _internal_add_logical_bridges(); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.logical_bridges) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge >& +ListLogicalBridgesResponse::logical_bridges() const { + // @@protoc_insertion_point(field_list:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.logical_bridges) + return logical_bridges_; +} + +// string next_page_token = 2; +inline void ListLogicalBridgesResponse::clear_next_page_token() { + next_page_token_.ClearToEmpty(); +} +inline const std::string& ListLogicalBridgesResponse::next_page_token() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.next_page_token) + return _internal_next_page_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListLogicalBridgesResponse::set_next_page_token(ArgT0&& arg0, ArgT... args) { + + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.next_page_token) +} +inline std::string* ListLogicalBridgesResponse::mutable_next_page_token() { + std::string* _s = _internal_mutable_next_page_token(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.next_page_token) + return _s; +} +inline const std::string& ListLogicalBridgesResponse::_internal_next_page_token() const { + return next_page_token_.Get(); +} +inline void ListLogicalBridgesResponse::_internal_set_next_page_token(const std::string& value) { + + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ListLogicalBridgesResponse::_internal_mutable_next_page_token() { + + return next_page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ListLogicalBridgesResponse::release_next_page_token() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.next_page_token) + return next_page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ListLogicalBridgesResponse::set_allocated_next_page_token(std::string* next_page_token) { + if (next_page_token != nullptr) { + + } else { + + } + next_page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (next_page_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + next_page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.next_page_token) +} + +// ------------------------------------------------------------------- + +// GetLogicalBridgeRequest + +// string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { +inline void GetLogicalBridgeRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& GetLogicalBridgeRequest::name() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetLogicalBridgeRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.name) +} +inline std::string* GetLogicalBridgeRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.name) + return _s; +} +inline const std::string& GetLogicalBridgeRequest::_internal_name() const { + return name_.Get(); +} +inline void GetLogicalBridgeRequest::_internal_set_name(const std::string& value) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* GetLogicalBridgeRequest::_internal_mutable_name() { + + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* GetLogicalBridgeRequest::release_name() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.name) + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void GetLogicalBridgeRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.name) +} + +// ------------------------------------------------------------------- + +// DeleteLogicalBridgeRequest + +// string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { +inline void DeleteLogicalBridgeRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& DeleteLogicalBridgeRequest::name() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteLogicalBridgeRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.name) +} +inline std::string* DeleteLogicalBridgeRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.name) + return _s; +} +inline const std::string& DeleteLogicalBridgeRequest::_internal_name() const { + return name_.Get(); +} +inline void DeleteLogicalBridgeRequest::_internal_set_name(const std::string& value) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* DeleteLogicalBridgeRequest::_internal_mutable_name() { + + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* DeleteLogicalBridgeRequest::release_name() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.name) + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void DeleteLogicalBridgeRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.name) +} + +// ------------------------------------------------------------------- + +// BridgePort + +// string name = 1; +inline void BridgePort::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& BridgePort::name() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.BridgePort.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BridgePort::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.BridgePort.name) +} +inline std::string* BridgePort::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.BridgePort.name) + return _s; +} +inline const std::string& BridgePort::_internal_name() const { + return name_.Get(); +} +inline void BridgePort::_internal_set_name(const std::string& value) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* BridgePort::_internal_mutable_name() { + + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* BridgePort::release_name() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.BridgePort.name) + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void BridgePort::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.BridgePort.name) +} + +// .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; +inline bool BridgePort::_internal_has_spec() const { + return this != internal_default_instance() && spec_ != nullptr; +} +inline bool BridgePort::has_spec() const { + return _internal_has_spec(); +} +inline void BridgePort::clear_spec() { + if (GetArenaForAllocation() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec& BridgePort::_internal_spec() const { + const ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* p = spec_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::evpn_gw::v1alpha1::_BridgePortSpec_default_instance_); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec& BridgePort::spec() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.BridgePort.spec) + return _internal_spec(); +} +inline void BridgePort::unsafe_arena_set_allocated_spec( + ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* spec) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(spec_); + } + spec_ = spec; + if (spec) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.BridgePort.spec) +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* BridgePort::release_spec() { + + ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* temp = spec_; + spec_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* BridgePort::unsafe_arena_release_spec() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.BridgePort.spec) + + ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* temp = spec_; + spec_ = nullptr; + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* BridgePort::_internal_mutable_spec() { + + if (spec_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec>(GetArenaForAllocation()); + spec_ = p; + } + return spec_; +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* BridgePort::mutable_spec() { + ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* _msg = _internal_mutable_spec(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.BridgePort.spec) + return _msg; +} +inline void BridgePort::set_allocated_spec(::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* spec) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete spec_; + } + if (spec) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec>::GetOwningArena(spec); + if (message_arena != submessage_arena) { + spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.BridgePort.spec) +} + +// .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; +inline bool BridgePort::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline bool BridgePort::has_status() const { + return _internal_has_status(); +} +inline void BridgePort::clear_status() { + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus& BridgePort::_internal_status() const { + const ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::evpn_gw::v1alpha1::_BridgePortStatus_default_instance_); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus& BridgePort::status() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.BridgePort.status) + return _internal_status(); +} +inline void BridgePort::unsafe_arena_set_allocated_status( + ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.BridgePort.status) +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* BridgePort::release_status() { + + ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* temp = status_; + status_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* BridgePort::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.BridgePort.status) + + ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* temp = status_; + status_ = nullptr; + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* BridgePort::_internal_mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus>(GetArenaForAllocation()); + status_ = p; + } + return status_; +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* BridgePort::mutable_status() { + ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.BridgePort.status) + return _msg; +} +inline void BridgePort::set_allocated_status(::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete status_; + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus>::GetOwningArena(status); + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.BridgePort.status) +} + +// ------------------------------------------------------------------- + +// BridgePortSpec + +// bytes mac_address = 1 [(.google.api.field_behavior) = REQUIRED]; +inline void BridgePortSpec::clear_mac_address() { + mac_address_.ClearToEmpty(); +} +inline const std::string& BridgePortSpec::mac_address() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.mac_address) + return _internal_mac_address(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BridgePortSpec::set_mac_address(ArgT0&& arg0, ArgT... args) { + + mac_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.mac_address) +} +inline std::string* BridgePortSpec::mutable_mac_address() { + std::string* _s = _internal_mutable_mac_address(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.mac_address) + return _s; +} +inline const std::string& BridgePortSpec::_internal_mac_address() const { + return mac_address_.Get(); +} +inline void BridgePortSpec::_internal_set_mac_address(const std::string& value) { + + mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* BridgePortSpec::_internal_mutable_mac_address() { + + return mac_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* BridgePortSpec::release_mac_address() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.mac_address) + return mac_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void BridgePortSpec::set_allocated_mac_address(std::string* mac_address) { + if (mac_address != nullptr) { + + } else { + + } + mac_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mac_address, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (mac_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.mac_address) +} + +// .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED]; +inline void BridgePortSpec::clear_ptype() { + ptype_ = 0; +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortType BridgePortSpec::_internal_ptype() const { + return static_cast< ::opi_api::network::evpn_gw::v1alpha1::BridgePortType >(ptype_); +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortType BridgePortSpec::ptype() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.ptype) + return _internal_ptype(); +} +inline void BridgePortSpec::_internal_set_ptype(::opi_api::network::evpn_gw::v1alpha1::BridgePortType value) { + + ptype_ = value; +} +inline void BridgePortSpec::set_ptype(::opi_api::network::evpn_gw::v1alpha1::BridgePortType value) { + _internal_set_ptype(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.ptype) +} + +// repeated string logical_bridges = 3; +inline int BridgePortSpec::_internal_logical_bridges_size() const { + return logical_bridges_.size(); +} +inline int BridgePortSpec::logical_bridges_size() const { + return _internal_logical_bridges_size(); +} +inline void BridgePortSpec::clear_logical_bridges() { + logical_bridges_.Clear(); +} +inline std::string* BridgePortSpec::add_logical_bridges() { + std::string* _s = _internal_add_logical_bridges(); + // @@protoc_insertion_point(field_add_mutable:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) + return _s; +} +inline const std::string& BridgePortSpec::_internal_logical_bridges(int index) const { + return logical_bridges_.Get(index); +} +inline const std::string& BridgePortSpec::logical_bridges(int index) const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) + return _internal_logical_bridges(index); +} +inline std::string* BridgePortSpec::mutable_logical_bridges(int index) { + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) + return logical_bridges_.Mutable(index); +} +inline void BridgePortSpec::set_logical_bridges(int index, const std::string& value) { + logical_bridges_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) +} +inline void BridgePortSpec::set_logical_bridges(int index, std::string&& value) { + logical_bridges_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) +} +inline void BridgePortSpec::set_logical_bridges(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + logical_bridges_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) +} +inline void BridgePortSpec::set_logical_bridges(int index, const char* value, size_t size) { + logical_bridges_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) +} +inline std::string* BridgePortSpec::_internal_add_logical_bridges() { + return logical_bridges_.Add(); +} +inline void BridgePortSpec::add_logical_bridges(const std::string& value) { + logical_bridges_.Add()->assign(value); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) +} +inline void BridgePortSpec::add_logical_bridges(std::string&& value) { + logical_bridges_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) +} +inline void BridgePortSpec::add_logical_bridges(const char* value) { + GOOGLE_DCHECK(value != nullptr); + logical_bridges_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) +} +inline void BridgePortSpec::add_logical_bridges(const char* value, size_t size) { + logical_bridges_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +BridgePortSpec::logical_bridges() const { + // @@protoc_insertion_point(field_list:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) + return logical_bridges_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +BridgePortSpec::mutable_logical_bridges() { + // @@protoc_insertion_point(field_mutable_list:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges) + return &logical_bridges_; +} + +// ------------------------------------------------------------------- + +// BridgePortStatus + +// .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1; +inline void BridgePortStatus::clear_oper_status() { + oper_status_ = 0; +} +inline ::opi_api::network::evpn_gw::v1alpha1::BPOperStatus BridgePortStatus::_internal_oper_status() const { + return static_cast< ::opi_api::network::evpn_gw::v1alpha1::BPOperStatus >(oper_status_); +} +inline ::opi_api::network::evpn_gw::v1alpha1::BPOperStatus BridgePortStatus::oper_status() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.oper_status) + return _internal_oper_status(); +} +inline void BridgePortStatus::_internal_set_oper_status(::opi_api::network::evpn_gw::v1alpha1::BPOperStatus value) { + + oper_status_ = value; +} +inline void BridgePortStatus::set_oper_status(::opi_api::network::evpn_gw::v1alpha1::BPOperStatus value) { + _internal_set_oper_status(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.oper_status) +} + +// ------------------------------------------------------------------- + +// CreateBridgePortRequest + +// string bridge_port_id = 1; +inline void CreateBridgePortRequest::clear_bridge_port_id() { + bridge_port_id_.ClearToEmpty(); +} +inline const std::string& CreateBridgePortRequest::bridge_port_id() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port_id) + return _internal_bridge_port_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateBridgePortRequest::set_bridge_port_id(ArgT0&& arg0, ArgT... args) { + + bridge_port_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port_id) +} +inline std::string* CreateBridgePortRequest::mutable_bridge_port_id() { + std::string* _s = _internal_mutable_bridge_port_id(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port_id) + return _s; +} +inline const std::string& CreateBridgePortRequest::_internal_bridge_port_id() const { + return bridge_port_id_.Get(); +} +inline void CreateBridgePortRequest::_internal_set_bridge_port_id(const std::string& value) { + + bridge_port_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* CreateBridgePortRequest::_internal_mutable_bridge_port_id() { + + return bridge_port_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* CreateBridgePortRequest::release_bridge_port_id() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port_id) + return bridge_port_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void CreateBridgePortRequest::set_allocated_bridge_port_id(std::string* bridge_port_id) { + if (bridge_port_id != nullptr) { + + } else { + + } + bridge_port_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bridge_port_id, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (bridge_port_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + bridge_port_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port_id) +} + +// .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; +inline bool CreateBridgePortRequest::_internal_has_bridge_port() const { + return this != internal_default_instance() && bridge_port_ != nullptr; +} +inline bool CreateBridgePortRequest::has_bridge_port() const { + return _internal_has_bridge_port(); +} +inline void CreateBridgePortRequest::clear_bridge_port() { + if (GetArenaForAllocation() == nullptr && bridge_port_ != nullptr) { + delete bridge_port_; + } + bridge_port_ = nullptr; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& CreateBridgePortRequest::_internal_bridge_port() const { + const ::opi_api::network::evpn_gw::v1alpha1::BridgePort* p = bridge_port_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::evpn_gw::v1alpha1::_BridgePort_default_instance_); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& CreateBridgePortRequest::bridge_port() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port) + return _internal_bridge_port(); +} +inline void CreateBridgePortRequest::unsafe_arena_set_allocated_bridge_port( + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* bridge_port) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(bridge_port_); + } + bridge_port_ = bridge_port; + if (bridge_port) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port) +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePort* CreateBridgePortRequest::release_bridge_port() { + + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* temp = bridge_port_; + bridge_port_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePort* CreateBridgePortRequest::unsafe_arena_release_bridge_port() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port) + + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* temp = bridge_port_; + bridge_port_ = nullptr; + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePort* CreateBridgePortRequest::_internal_mutable_bridge_port() { + + if (bridge_port_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::BridgePort>(GetArenaForAllocation()); + bridge_port_ = p; + } + return bridge_port_; +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePort* CreateBridgePortRequest::mutable_bridge_port() { + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* _msg = _internal_mutable_bridge_port(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port) + return _msg; +} +inline void CreateBridgePortRequest::set_allocated_bridge_port(::opi_api::network::evpn_gw::v1alpha1::BridgePort* bridge_port) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete bridge_port_; + } + if (bridge_port) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::network::evpn_gw::v1alpha1::BridgePort>::GetOwningArena(bridge_port); + if (message_arena != submessage_arena) { + bridge_port = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, bridge_port, submessage_arena); + } + + } else { + + } + bridge_port_ = bridge_port; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port) +} + +// ------------------------------------------------------------------- + +// ListBridgePortsRequest + +// int32 page_size = 1; +inline void ListBridgePortsRequest::clear_page_size() { + page_size_ = 0; +} +inline int32_t ListBridgePortsRequest::_internal_page_size() const { + return page_size_; +} +inline int32_t ListBridgePortsRequest::page_size() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.page_size) + return _internal_page_size(); +} +inline void ListBridgePortsRequest::_internal_set_page_size(int32_t value) { + + page_size_ = value; +} +inline void ListBridgePortsRequest::set_page_size(int32_t value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.page_size) +} + +// string page_token = 2; +inline void ListBridgePortsRequest::clear_page_token() { + page_token_.ClearToEmpty(); +} +inline const std::string& ListBridgePortsRequest::page_token() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.page_token) + return _internal_page_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListBridgePortsRequest::set_page_token(ArgT0&& arg0, ArgT... args) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.page_token) +} +inline std::string* ListBridgePortsRequest::mutable_page_token() { + std::string* _s = _internal_mutable_page_token(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.page_token) + return _s; +} +inline const std::string& ListBridgePortsRequest::_internal_page_token() const { + return page_token_.Get(); +} +inline void ListBridgePortsRequest::_internal_set_page_token(const std::string& value) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ListBridgePortsRequest::_internal_mutable_page_token() { + + return page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ListBridgePortsRequest::release_page_token() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.page_token) + return page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ListBridgePortsRequest::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + + } else { + + } + page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.page_token) +} + +// ------------------------------------------------------------------- + +// ListBridgePortsResponse + +// repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; +inline int ListBridgePortsResponse::_internal_bridge_ports_size() const { + return bridge_ports_.size(); +} +inline int ListBridgePortsResponse::bridge_ports_size() const { + return _internal_bridge_ports_size(); +} +inline void ListBridgePortsResponse::clear_bridge_ports() { + bridge_ports_.Clear(); +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePort* ListBridgePortsResponse::mutable_bridge_ports(int index) { + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.bridge_ports) + return bridge_ports_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::BridgePort >* +ListBridgePortsResponse::mutable_bridge_ports() { + // @@protoc_insertion_point(field_mutable_list:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.bridge_ports) + return &bridge_ports_; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& ListBridgePortsResponse::_internal_bridge_ports(int index) const { + return bridge_ports_.Get(index); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& ListBridgePortsResponse::bridge_ports(int index) const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.bridge_ports) + return _internal_bridge_ports(index); +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePort* ListBridgePortsResponse::_internal_add_bridge_ports() { + return bridge_ports_.Add(); +} +inline ::opi_api::network::evpn_gw::v1alpha1::BridgePort* ListBridgePortsResponse::add_bridge_ports() { + ::opi_api::network::evpn_gw::v1alpha1::BridgePort* _add = _internal_add_bridge_ports(); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.bridge_ports) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::BridgePort >& +ListBridgePortsResponse::bridge_ports() const { + // @@protoc_insertion_point(field_list:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.bridge_ports) + return bridge_ports_; +} + +// string next_page_token = 2; +inline void ListBridgePortsResponse::clear_next_page_token() { + next_page_token_.ClearToEmpty(); +} +inline const std::string& ListBridgePortsResponse::next_page_token() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.next_page_token) + return _internal_next_page_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListBridgePortsResponse::set_next_page_token(ArgT0&& arg0, ArgT... args) { + + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.next_page_token) +} +inline std::string* ListBridgePortsResponse::mutable_next_page_token() { + std::string* _s = _internal_mutable_next_page_token(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.next_page_token) + return _s; +} +inline const std::string& ListBridgePortsResponse::_internal_next_page_token() const { + return next_page_token_.Get(); +} +inline void ListBridgePortsResponse::_internal_set_next_page_token(const std::string& value) { + + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ListBridgePortsResponse::_internal_mutable_next_page_token() { + + return next_page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ListBridgePortsResponse::release_next_page_token() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.next_page_token) + return next_page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ListBridgePortsResponse::set_allocated_next_page_token(std::string* next_page_token) { + if (next_page_token != nullptr) { + + } else { + + } + next_page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (next_page_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + next_page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.next_page_token) +} + +// ------------------------------------------------------------------- + +// GetBridgePortRequest + +// string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { +inline void GetBridgePortRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& GetBridgePortRequest::name() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetBridgePortRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.name) +} +inline std::string* GetBridgePortRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.name) + return _s; +} +inline const std::string& GetBridgePortRequest::_internal_name() const { + return name_.Get(); +} +inline void GetBridgePortRequest::_internal_set_name(const std::string& value) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* GetBridgePortRequest::_internal_mutable_name() { + + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* GetBridgePortRequest::release_name() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.name) + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void GetBridgePortRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.name) +} + +// ------------------------------------------------------------------- + +// DeleteBridgePortRequest + +// string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { +inline void DeleteBridgePortRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& DeleteBridgePortRequest::name() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteBridgePortRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.name) +} +inline std::string* DeleteBridgePortRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.name) + return _s; +} +inline const std::string& DeleteBridgePortRequest::_internal_name() const { + return name_.Get(); +} +inline void DeleteBridgePortRequest::_internal_set_name(const std::string& value) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* DeleteBridgePortRequest::_internal_mutable_name() { + + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* DeleteBridgePortRequest::release_name() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.name) + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void DeleteBridgePortRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.name) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1alpha1 +} // namespace evpn_gw +} // namespace network +} // namespace opi_api + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::opi_api::network::evpn_gw::v1alpha1::LBOperStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::opi_api::network::evpn_gw::v1alpha1::LBOperStatus>() { + return ::opi_api::network::evpn_gw::v1alpha1::LBOperStatus_descriptor(); +} +template <> struct is_proto_enum< ::opi_api::network::evpn_gw::v1alpha1::BPOperStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::opi_api::network::evpn_gw::v1alpha1::BPOperStatus>() { + return ::opi_api::network::evpn_gw::v1alpha1::BPOperStatus_descriptor(); +} +template <> struct is_proto_enum< ::opi_api::network::evpn_gw::v1alpha1::BridgePortType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::opi_api::network::evpn_gw::v1alpha1::BridgePortType>() { + return ::opi_api::network::evpn_gw::v1alpha1::BridgePortType_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_l2_5fxpu_5finfra_5fmgr_2eproto diff --git a/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.grpc.pb.cc b/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.grpc.pb.cc new file mode 100644 index 00000000..e997608c --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/cpp/l3_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: l3_xpu_infra_mgr.proto + +#include "l3_xpu_infra_mgr.pb.h" +#include "l3_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* VrfService_method_names[] = { + "/opi_api.network.evpn_gw.v1alpha1.VrfService/CreateVrf", + "/opi_api.network.evpn_gw.v1alpha1.VrfService/ListVrfs", + "/opi_api.network.evpn_gw.v1alpha1.VrfService/GetVrf", + "/opi_api.network.evpn_gw.v1alpha1.VrfService/DeleteVrf", +}; + +std::unique_ptr< VrfService::Stub> VrfService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< VrfService::Stub> stub(new VrfService::Stub(channel, options)); + return stub; +} + +VrfService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_CreateVrf_(VrfService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListVrfs_(VrfService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetVrf_(VrfService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteVrf_(VrfService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status VrfService::Stub::CreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateVrf_, context, request, response); +} + +void VrfService::Stub::async::CreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateVrf_, context, request, response, std::move(f)); +} + +void VrfService::Stub::async::CreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateVrf_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* VrfService::Stub::PrepareAsyncCreateVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::Vrf, ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateVrf_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* VrfService::Stub::AsyncCreateVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncCreateVrfRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VrfService::Stub::ListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListVrfs_, context, request, response); +} + +void VrfService::Stub::async::ListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListVrfs_, context, request, response, std::move(f)); +} + +void VrfService::Stub::async::ListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListVrfs_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>* VrfService::Stub::PrepareAsyncListVrfsRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListVrfs_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>* VrfService::Stub::AsyncListVrfsRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListVrfsRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VrfService::Stub::GetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetVrf_, context, request, response); +} + +void VrfService::Stub::async::GetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVrf_, context, request, response, std::move(f)); +} + +void VrfService::Stub::async::GetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetVrf_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* VrfService::Stub::PrepareAsyncGetVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::Vrf, ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetVrf_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* VrfService::Stub::AsyncGetVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetVrfRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status VrfService::Stub::DeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& request, ::google::protobuf::Empty* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteVrf_, context, request, response); +} + +void VrfService::Stub::async::DeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* request, ::google::protobuf::Empty* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteVrf_, context, request, response, std::move(f)); +} + +void VrfService::Stub::async::DeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteVrf_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* VrfService::Stub::PrepareAsyncDeleteVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::protobuf::Empty, ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteVrf_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* VrfService::Stub::AsyncDeleteVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDeleteVrfRaw(context, request, cq); + result->StartCall(); + return result; +} + +VrfService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + VrfService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VrfService::Service, ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VrfService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* req, + ::opi_api::network::evpn_gw::v1alpha1::Vrf* resp) { + return service->CreateVrf(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VrfService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VrfService::Service, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VrfService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* req, + ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* resp) { + return service->ListVrfs(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VrfService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VrfService::Service, ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VrfService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* req, + ::opi_api::network::evpn_gw::v1alpha1::Vrf* resp) { + return service->GetVrf(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + VrfService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< VrfService::Service, ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](VrfService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* req, + ::google::protobuf::Empty* resp) { + return service->DeleteVrf(ctx, req, resp); + }, this))); +} + +VrfService::Service::~Service() { +} + +::grpc::Status VrfService::Service::CreateVrf(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VrfService::Service::ListVrfs(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VrfService::Service::GetVrf(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status VrfService::Service::DeleteVrf(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* request, ::google::protobuf::Empty* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +static const char* SviService_method_names[] = { + "/opi_api.network.evpn_gw.v1alpha1.SviService/CreateSvi", + "/opi_api.network.evpn_gw.v1alpha1.SviService/ListSvis", + "/opi_api.network.evpn_gw.v1alpha1.SviService/GetSvi", + "/opi_api.network.evpn_gw.v1alpha1.SviService/DeleteSvi", +}; + +std::unique_ptr< SviService::Stub> SviService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< SviService::Stub> stub(new SviService::Stub(channel, options)); + return stub; +} + +SviService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_CreateSvi_(SviService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListSvis_(SviService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetSvi_(SviService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteSvi_(SviService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status SviService::Stub::CreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CreateSvi_, context, request, response); +} + +void SviService::Stub::async::CreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateSvi_, context, request, response, std::move(f)); +} + +void SviService::Stub::async::CreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CreateSvi_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>* SviService::Stub::PrepareAsyncCreateSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::Svi, ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CreateSvi_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>* SviService::Stub::AsyncCreateSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncCreateSviRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status SviService::Stub::ListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ListSvis_, context, request, response); +} + +void SviService::Stub::async::ListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListSvis_, context, request, response, std::move(f)); +} + +void SviService::Stub::async::ListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ListSvis_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>* SviService::Stub::PrepareAsyncListSvisRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse, ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ListSvis_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>* SviService::Stub::AsyncListSvisRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncListSvisRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status SviService::Stub::GetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetSvi_, context, request, response); +} + +void SviService::Stub::async::GetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSvi_, context, request, response, std::move(f)); +} + +void SviService::Stub::async::GetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetSvi_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>* SviService::Stub::PrepareAsyncGetSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::Svi, ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetSvi_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>* SviService::Stub::AsyncGetSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetSviRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status SviService::Stub::DeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& request, ::google::protobuf::Empty* response) { + return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DeleteSvi_, context, request, response); +} + +void SviService::Stub::async::DeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* request, ::google::protobuf::Empty* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteSvi_, context, request, response, std::move(f)); +} + +void SviService::Stub::async::DeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DeleteSvi_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* SviService::Stub::PrepareAsyncDeleteSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::protobuf::Empty, ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DeleteSvi_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* SviService::Stub::AsyncDeleteSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDeleteSviRaw(context, request, cq); + result->StartCall(); + return result; +} + +SviService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + SviService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SviService::Service, ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SviService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* req, + ::opi_api::network::evpn_gw::v1alpha1::Svi* resp) { + return service->CreateSvi(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + SviService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SviService::Service, ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SviService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* req, + ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* resp) { + return service->ListSvis(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + SviService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SviService::Service, ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SviService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* req, + ::opi_api::network::evpn_gw::v1alpha1::Svi* resp) { + return service->GetSvi(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + SviService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SviService::Service, ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](SviService::Service* service, + ::grpc::ServerContext* ctx, + const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* req, + ::google::protobuf::Empty* resp) { + return service->DeleteSvi(ctx, req, resp); + }, this))); +} + +SviService::Service::~Service() { +} + +::grpc::Status SviService::Service::CreateSvi(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status SviService::Service::ListSvis(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status SviService::Service::GetSvi(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status SviService::Service::DeleteSvi(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* 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/l3_xpu_infra_mgr.grpc.pb.h b/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.grpc.pb.h new file mode 100644 index 00000000..e7c06fb8 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/cpp/l3_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: l3_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_l3_5fxpu_5finfra_5fmgr_2eproto__INCLUDED +#define GRPC_l3_5fxpu_5finfra_5fmgr_2eproto__INCLUDED + +#include "l3_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 Vrf Resources +class VrfService final { + public: + static constexpr char const* service_full_name() { + return "opi_api.network.evpn_gw.v1alpha1.VrfService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Create a Vrf + virtual ::grpc::Status CreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>> AsyncCreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>>(AsyncCreateVrfRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>> PrepareAsyncCreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>>(PrepareAsyncCreateVrfRaw(context, request, cq)); + } + // List Vrfs + virtual ::grpc::Status ListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>> AsyncListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>>(AsyncListVrfsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>> PrepareAsyncListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>>(PrepareAsyncListVrfsRaw(context, request, cq)); + } + // Retrieve a Vrf + virtual ::grpc::Status GetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>> AsyncGetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>>(AsyncGetVrfRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>> PrepareAsyncGetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>>(PrepareAsyncGetVrfRaw(context, request, cq)); + } + // Delete a Vrf + virtual ::grpc::Status DeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& request, ::google::protobuf::Empty* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncDeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncDeleteVrfRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncDeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncDeleteVrfRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // Create a Vrf + virtual void CreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, std::function) = 0; + virtual void CreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // List Vrfs + virtual void ListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* response, std::function) = 0; + virtual void ListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Retrieve a Vrf + virtual void GetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, std::function) = 0; + virtual void GetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Delete a Vrf + virtual void DeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* request, ::google::protobuf::Empty* response, std::function) = 0; + virtual void DeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* 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::Vrf>* AsyncCreateVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* PrepareAsyncCreateVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>* AsyncListVrfsRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>* PrepareAsyncListVrfsRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* AsyncGetVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* PrepareAsyncGetVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncDeleteVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncDeleteVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& 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 CreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>> AsyncCreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>>(AsyncCreateVrfRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>> PrepareAsyncCreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>>(PrepareAsyncCreateVrfRaw(context, request, cq)); + } + ::grpc::Status ListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>> AsyncListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>>(AsyncListVrfsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>> PrepareAsyncListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>>(PrepareAsyncListVrfsRaw(context, request, cq)); + } + ::grpc::Status GetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>> AsyncGetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>>(AsyncGetVrfRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>> PrepareAsyncGetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>>(PrepareAsyncGetVrfRaw(context, request, cq)); + } + ::grpc::Status DeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& request, ::google::protobuf::Empty* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncDeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncDeleteVrfRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncDeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncDeleteVrfRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void CreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, std::function) override; + void CreateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, ::grpc::ClientUnaryReactor* reactor) override; + void ListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* response, std::function) override; + void ListVrfs(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, std::function) override; + void GetVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, ::grpc::ClientUnaryReactor* reactor) override; + void DeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* request, ::google::protobuf::Empty* response, std::function) override; + void DeleteVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* 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::Vrf>* AsyncCreateVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* PrepareAsyncCreateVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>* AsyncListVrfsRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>* PrepareAsyncListVrfsRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* AsyncGetVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* PrepareAsyncGetVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncDeleteVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncDeleteVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_CreateVrf_; + const ::grpc::internal::RpcMethod rpcmethod_ListVrfs_; + const ::grpc::internal::RpcMethod rpcmethod_GetVrf_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteVrf_; + }; + 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 Vrf + virtual ::grpc::Status CreateVrf(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response); + // List Vrfs + virtual ::grpc::Status ListVrfs(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* response); + // Retrieve a Vrf + virtual ::grpc::Status GetVrf(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response); + // Delete a Vrf + virtual ::grpc::Status DeleteVrf(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* request, ::google::protobuf::Empty* response); + }; + template + class WithAsyncMethod_CreateVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_CreateVrf() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_CreateVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateVrf(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* 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_ListVrfs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListVrfs() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_ListVrfs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListVrfs(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListVrfs(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>* 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_GetVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetVrf() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_GetVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetVrf(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* 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_DeleteVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DeleteVrf() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_DeleteVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteVrf(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* 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_CreateVrf > > > AsyncService; + template + class WithCallbackMethod_CreateVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_CreateVrf() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) { return this->CreateVrf(context, request, response); }));} + void SetMessageAllocatorFor_CreateVrf( + ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_CreateVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CreateVrf( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_ListVrfs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ListVrfs() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* response) { return this->ListVrfs(context, request, response); }));} + void SetMessageAllocatorFor_ListVrfs( + ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ListVrfs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListVrfs(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListVrfs( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetVrf() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) { return this->GetVrf(context, request, response); }));} + void SetMessageAllocatorFor_GetVrf( + ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetVrf( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DeleteVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DeleteVrf() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest, ::google::protobuf::Empty>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* request, ::google::protobuf::Empty* response) { return this->DeleteVrf(context, request, response); }));} + void SetMessageAllocatorFor_DeleteVrf( + ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest, ::google::protobuf::Empty>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest, ::google::protobuf::Empty>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DeleteVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteVrf( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_CreateVrf > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_CreateVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_CreateVrf() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_CreateVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListVrfs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListVrfs() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_ListVrfs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListVrfs(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetVrf() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_GetVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DeleteVrf() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_DeleteVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_CreateVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_CreateVrf() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_CreateVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateVrf(::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_ListVrfs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListVrfs() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_ListVrfs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListVrfs(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListVrfs(::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_GetVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetVrf() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_GetVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetVrf(::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_DeleteVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DeleteVrf() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_DeleteVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteVrf(::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_CreateVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_CreateVrf() { + ::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->CreateVrf(context, request, response); })); + } + ~WithRawCallbackMethod_CreateVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CreateVrf( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ListVrfs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ListVrfs() { + ::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->ListVrfs(context, request, response); })); + } + ~WithRawCallbackMethod_ListVrfs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListVrfs(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListVrfs( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetVrf() { + ::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->GetVrf(context, request, response); })); + } + ~WithRawCallbackMethod_GetVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetVrf( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DeleteVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DeleteVrf() { + ::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->DeleteVrf(context, request, response); })); + } + ~WithRawCallbackMethod_DeleteVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteVrf( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_CreateVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_CreateVrf() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>* streamer) { + return this->StreamedCreateVrf(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_CreateVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateVrf(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest,::opi_api::network::evpn_gw::v1alpha1::Vrf>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListVrfs : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListVrfs() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>* streamer) { + return this->StreamedListVrfs(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListVrfs() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListVrfs(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListVrfs(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest,::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetVrf() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>* streamer) { + return this->StreamedGetVrf(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetVrf(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest,::opi_api::network::evpn_gw::v1alpha1::Vrf>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteVrf : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DeleteVrf() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest, ::google::protobuf::Empty>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest, ::google::protobuf::Empty>* streamer) { + return this->StreamedDeleteVrf(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DeleteVrf() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteVrf(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest,::google::protobuf::Empty>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateVrf > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_CreateVrf > > > StreamedService; +}; + +// Management of switch virtual interfaces (SVIs) binding LogicalBridges to VRFs. +class SviService final { + public: + static constexpr char const* service_full_name() { + return "opi_api.network.evpn_gw.v1alpha1.SviService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Create a Svi + virtual ::grpc::Status CreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>> AsyncCreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>>(AsyncCreateSviRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>> PrepareAsyncCreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>>(PrepareAsyncCreateSviRaw(context, request, cq)); + } + // List Svis + virtual ::grpc::Status ListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>> AsyncListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>>(AsyncListSvisRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>> PrepareAsyncListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>>(PrepareAsyncListSvisRaw(context, request, cq)); + } + // Retrieve a Svi + virtual ::grpc::Status GetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>> AsyncGetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>>(AsyncGetSviRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>> PrepareAsyncGetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>>(PrepareAsyncGetSviRaw(context, request, cq)); + } + // Delete a Svi + virtual ::grpc::Status DeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& request, ::google::protobuf::Empty* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncDeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncDeleteSviRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncDeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncDeleteSviRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // Create a Svi + virtual void CreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, std::function) = 0; + virtual void CreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // List Svis + virtual void ListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* response, std::function) = 0; + virtual void ListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Retrieve a Svi + virtual void GetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, std::function) = 0; + virtual void GetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Delete a Svi + virtual void DeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* request, ::google::protobuf::Empty* response, std::function) = 0; + virtual void DeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* 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::Svi>* AsyncCreateSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>* PrepareAsyncCreateSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>* AsyncListSvisRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>* PrepareAsyncListSvisRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>* AsyncGetSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>* PrepareAsyncGetSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncDeleteSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncDeleteSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& 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 CreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>> AsyncCreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>>(AsyncCreateSviRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>> PrepareAsyncCreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>>(PrepareAsyncCreateSviRaw(context, request, cq)); + } + ::grpc::Status ListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>> AsyncListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>>(AsyncListSvisRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>> PrepareAsyncListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>>(PrepareAsyncListSvisRaw(context, request, cq)); + } + ::grpc::Status GetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>> AsyncGetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>>(AsyncGetSviRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>> PrepareAsyncGetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>>(PrepareAsyncGetSviRaw(context, request, cq)); + } + ::grpc::Status DeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& request, ::google::protobuf::Empty* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncDeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncDeleteSviRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncDeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncDeleteSviRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void CreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, std::function) override; + void CreateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, ::grpc::ClientUnaryReactor* reactor) override; + void ListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* response, std::function) override; + void ListSvis(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, std::function) override; + void GetSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, ::grpc::ClientUnaryReactor* reactor) override; + void DeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* request, ::google::protobuf::Empty* response, std::function) override; + void DeleteSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* 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::Svi>* AsyncCreateSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>* PrepareAsyncCreateSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>* AsyncListSvisRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>* PrepareAsyncListSvisRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>* AsyncGetSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>* PrepareAsyncGetSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncDeleteSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncDeleteSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_CreateSvi_; + const ::grpc::internal::RpcMethod rpcmethod_ListSvis_; + const ::grpc::internal::RpcMethod rpcmethod_GetSvi_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteSvi_; + }; + 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 Svi + virtual ::grpc::Status CreateSvi(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response); + // List Svis + virtual ::grpc::Status ListSvis(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* response); + // Retrieve a Svi + virtual ::grpc::Status GetSvi(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response); + // Delete a Svi + virtual ::grpc::Status DeleteSvi(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* request, ::google::protobuf::Empty* response); + }; + template + class WithAsyncMethod_CreateSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_CreateSvi() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_CreateSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateSvi(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::network::evpn_gw::v1alpha1::Svi>* 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_ListSvis : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ListSvis() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_ListSvis() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListSvis(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListSvis(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>* 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_GetSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetSvi() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_GetSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetSvi(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* request, ::grpc::ServerAsyncResponseWriter< ::opi_api::network::evpn_gw::v1alpha1::Svi>* 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_DeleteSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DeleteSvi() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_DeleteSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteSvi(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* 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_CreateSvi > > > AsyncService; + template + class WithCallbackMethod_CreateSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_CreateSvi() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) { return this->CreateSvi(context, request, response); }));} + void SetMessageAllocatorFor_CreateSvi( + ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_CreateSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CreateSvi( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_ListSvis : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ListSvis() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* request, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* response) { return this->ListSvis(context, request, response); }));} + void SetMessageAllocatorFor_ListSvis( + ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ListSvis() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListSvis(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListSvis( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_GetSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetSvi() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) { return this->GetSvi(context, request, response); }));} + void SetMessageAllocatorFor_GetSvi( + ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetSvi( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DeleteSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DeleteSvi() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest, ::google::protobuf::Empty>( + [this]( + ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* request, ::google::protobuf::Empty* response) { return this->DeleteSvi(context, request, response); }));} + void SetMessageAllocatorFor_DeleteSvi( + ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest, ::google::protobuf::Empty>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest, ::google::protobuf::Empty>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DeleteSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteSvi( + ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_CreateSvi > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_CreateSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_CreateSvi() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_CreateSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListSvis : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ListSvis() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_ListSvis() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListSvis(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetSvi() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_GetSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DeleteSvi() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_DeleteSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_CreateSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_CreateSvi() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_CreateSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateSvi(::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_ListSvis : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ListSvis() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_ListSvis() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListSvis(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListSvis(::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_GetSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetSvi() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_GetSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetSvi(::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_DeleteSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DeleteSvi() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_DeleteSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteSvi(::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_CreateSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_CreateSvi() { + ::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->CreateSvi(context, request, response); })); + } + ~WithRawCallbackMethod_CreateSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CreateSvi( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ListSvis : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ListSvis() { + ::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->ListSvis(context, request, response); })); + } + ~WithRawCallbackMethod_ListSvis() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListSvis(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ListSvis( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_GetSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetSvi() { + ::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->GetSvi(context, request, response); })); + } + ~WithRawCallbackMethod_GetSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetSvi( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DeleteSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DeleteSvi() { + ::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->DeleteSvi(context, request, response); })); + } + ~WithRawCallbackMethod_DeleteSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DeleteSvi( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_CreateSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_CreateSvi() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>* streamer) { + return this->StreamedCreateSvi(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_CreateSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateSvi(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest,::opi_api::network::evpn_gw::v1alpha1::Svi>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListSvis : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ListSvis() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>* streamer) { + return this->StreamedListSvis(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ListSvis() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListSvis(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListSvis(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest,::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetSvi() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>* streamer) { + return this->StreamedGetSvi(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetSvi(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest,::opi_api::network::evpn_gw::v1alpha1::Svi>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteSvi : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DeleteSvi() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest, ::google::protobuf::Empty>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest, ::google::protobuf::Empty>* streamer) { + return this->StreamedDeleteSvi(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DeleteSvi() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteSvi(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest,::google::protobuf::Empty>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateSvi > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_CreateSvi > > > StreamedService; +}; + +} // namespace v1alpha1 +} // namespace evpn_gw +} // namespace network +} // namespace opi_api + + +#endif // GRPC_l3_5fxpu_5finfra_5fmgr_2eproto__INCLUDED diff --git a/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.pb.cc b/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.pb.cc new file mode 100644 index 00000000..cbf0970e --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.pb.cc @@ -0,0 +1,4754 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +#include "l3_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 Vrf::Vrf( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , spec_(nullptr) + , status_(nullptr){} +struct VrfDefaultTypeInternal { + constexpr VrfDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~VrfDefaultTypeInternal() {} + union { + Vrf _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT VrfDefaultTypeInternal _Vrf_default_instance_; +constexpr VrfSpec::VrfSpec( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : loopback_ip_prefix_(nullptr) + , vtep_ip_prefix_(nullptr) + , vni_(0u){} +struct VrfSpecDefaultTypeInternal { + constexpr VrfSpecDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~VrfSpecDefaultTypeInternal() {} + union { + VrfSpec _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT VrfSpecDefaultTypeInternal _VrfSpec_default_instance_; +constexpr VrfStatus::VrfStatus( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : import_rts_() + , export_rts_() + , logical_bridges_() + , rd_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , rmac_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , routing_table_(0u) + , local_as_(0u) + , oper_status_(0) +{} +struct VrfStatusDefaultTypeInternal { + constexpr VrfStatusDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~VrfStatusDefaultTypeInternal() {} + union { + VrfStatus _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT VrfStatusDefaultTypeInternal _VrfStatus_default_instance_; +constexpr CreateVrfRequest::CreateVrfRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : vrf_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , vrf_(nullptr){} +struct CreateVrfRequestDefaultTypeInternal { + constexpr CreateVrfRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~CreateVrfRequestDefaultTypeInternal() {} + union { + CreateVrfRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateVrfRequestDefaultTypeInternal _CreateVrfRequest_default_instance_; +constexpr ListVrfsRequest::ListVrfsRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : page_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , page_size_(0){} +struct ListVrfsRequestDefaultTypeInternal { + constexpr ListVrfsRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ListVrfsRequestDefaultTypeInternal() {} + union { + ListVrfsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListVrfsRequestDefaultTypeInternal _ListVrfsRequest_default_instance_; +constexpr ListVrfsResponse::ListVrfsResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : vrfs_() + , next_page_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct ListVrfsResponseDefaultTypeInternal { + constexpr ListVrfsResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ListVrfsResponseDefaultTypeInternal() {} + union { + ListVrfsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListVrfsResponseDefaultTypeInternal _ListVrfsResponse_default_instance_; +constexpr GetVrfRequest::GetVrfRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct GetVrfRequestDefaultTypeInternal { + constexpr GetVrfRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~GetVrfRequestDefaultTypeInternal() {} + union { + GetVrfRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetVrfRequestDefaultTypeInternal _GetVrfRequest_default_instance_; +constexpr DeleteVrfRequest::DeleteVrfRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct DeleteVrfRequestDefaultTypeInternal { + constexpr DeleteVrfRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~DeleteVrfRequestDefaultTypeInternal() {} + union { + DeleteVrfRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteVrfRequestDefaultTypeInternal _DeleteVrfRequest_default_instance_; +constexpr Svi::Svi( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , spec_(nullptr) + , status_(nullptr){} +struct SviDefaultTypeInternal { + constexpr SviDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~SviDefaultTypeInternal() {} + union { + Svi _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SviDefaultTypeInternal _Svi_default_instance_; +constexpr SviSpec::SviSpec( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : gw_ip_prefix_() + , vrf_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , logical_bridge_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , mac_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , enable_bgp_(false) + , remote_as_(0u){} +struct SviSpecDefaultTypeInternal { + constexpr SviSpecDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~SviSpecDefaultTypeInternal() {} + union { + SviSpec _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SviSpecDefaultTypeInternal _SviSpec_default_instance_; +constexpr SviStatus::SviStatus( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : oper_status_(0) +{} +struct SviStatusDefaultTypeInternal { + constexpr SviStatusDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~SviStatusDefaultTypeInternal() {} + union { + SviStatus _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SviStatusDefaultTypeInternal _SviStatus_default_instance_; +constexpr CreateSviRequest::CreateSviRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : svi_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , svi_(nullptr){} +struct CreateSviRequestDefaultTypeInternal { + constexpr CreateSviRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~CreateSviRequestDefaultTypeInternal() {} + union { + CreateSviRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CreateSviRequestDefaultTypeInternal _CreateSviRequest_default_instance_; +constexpr ListSvisRequest::ListSvisRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : page_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , page_size_(0){} +struct ListSvisRequestDefaultTypeInternal { + constexpr ListSvisRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ListSvisRequestDefaultTypeInternal() {} + union { + ListSvisRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListSvisRequestDefaultTypeInternal _ListSvisRequest_default_instance_; +constexpr ListSvisResponse::ListSvisResponse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : svis_() + , next_page_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct ListSvisResponseDefaultTypeInternal { + constexpr ListSvisResponseDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ListSvisResponseDefaultTypeInternal() {} + union { + ListSvisResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListSvisResponseDefaultTypeInternal _ListSvisResponse_default_instance_; +constexpr GetSviRequest::GetSviRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct GetSviRequestDefaultTypeInternal { + constexpr GetSviRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~GetSviRequestDefaultTypeInternal() {} + union { + GetSviRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GetSviRequestDefaultTypeInternal _GetSviRequest_default_instance_; +constexpr DeleteSviRequest::DeleteSviRequest( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct DeleteSviRequestDefaultTypeInternal { + constexpr DeleteSviRequestDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~DeleteSviRequestDefaultTypeInternal() {} + union { + DeleteSviRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeleteSviRequestDefaultTypeInternal _DeleteSviRequest_default_instance_; +} // namespace v1alpha1 +} // namespace evpn_gw +} // namespace network +} // namespace opi_api +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[16]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_l3_5fxpu_5finfra_5fmgr_2eproto[2]; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_l3_5fxpu_5finfra_5fmgr_2eproto = nullptr; + +const uint32_t TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::Vrf, _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::Vrf, name_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::Vrf, spec_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::Vrf, status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfSpec, _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::VrfSpec, vni_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfSpec, loopback_ip_prefix_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfSpec, vtep_ip_prefix_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, _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::VrfStatus, routing_table_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, local_as_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, rd_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, rmac_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, import_rts_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, export_rts_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, logical_bridges_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, oper_status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest, _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::CreateVrfRequest, vrf_id_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest, vrf_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest, _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::ListVrfsRequest, page_size_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest, page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse, _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::ListVrfsResponse, vrfs_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse, next_page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest, _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::GetVrfRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest, _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::DeleteVrfRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::Svi, _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::Svi, name_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::Svi, spec_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::Svi, status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::SviSpec, _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::SviSpec, vrf_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::SviSpec, logical_bridge_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::SviSpec, mac_address_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::SviSpec, gw_ip_prefix_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::SviSpec, enable_bgp_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::SviSpec, remote_as_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::SviStatus, _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::SviStatus, oper_status_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest, _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::CreateSviRequest, svi_id_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest, svi_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest, _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::ListSvisRequest, page_size_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest, page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse, _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::ListSvisResponse, svis_), + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse, next_page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::GetSviRequest, _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::GetSviRequest, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest, _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::DeleteSviRequest, name_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::Vrf)}, + { 9, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::VrfSpec)}, + { 18, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::VrfStatus)}, + { 32, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest)}, + { 40, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest)}, + { 48, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse)}, + { 56, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest)}, + { 63, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest)}, + { 70, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::Svi)}, + { 79, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::SviSpec)}, + { 91, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::SviStatus)}, + { 98, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest)}, + { 106, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest)}, + { 114, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse)}, + { 122, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::GetSviRequest)}, + { 129, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_Vrf_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_VrfSpec_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_VrfStatus_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_CreateVrfRequest_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_ListVrfsRequest_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_ListVrfsResponse_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_GetVrfRequest_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_DeleteVrfRequest_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_Svi_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_SviSpec_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_SviStatus_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_CreateSviRequest_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_ListSvisRequest_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_ListSvisResponse_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_GetSviRequest_default_instance_), + reinterpret_cast(&::opi_api::network::evpn_gw::v1alpha1::_DeleteSviRequest_default_instance_), +}; + +const char descriptor_table_protodef_l3_5fxpu_5finfra_5fmgr_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\026l3_xpu_infra_mgr.proto\022 opi_api.networ" + "k.evpn_gw.v1alpha1\032\022networktypes.proto\032\034" + "google/api/annotations.proto\032\027google/api" + "/client.proto\032\033google/protobuf/empty.pro" + "to\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\"\305\001\n\003Vrf\022\014\n\004name\030\001" + " \001(\t\022<\n\004spec\030\002 \001(\0132).opi_api.network.evp" + "n_gw.v1alpha1.VrfSpecB\003\340A\002\022;\n\006status\030\003 \001" + "(\0132+.opi_api.network.evpn_gw.v1alpha1.Vr" + "fStatus:5\352A2\n$opi_api.network.evpn_gw.v1" + "alpha1/Vrf\022\nvrfs/{vrf}\"\261\001\n\007VrfSpec\022\013\n\003vn" + "i\030\001 \001(\r\022P\n\022loopback_ip_prefix\030\002 \001(\0132/.op" + "i_api.network.opinetcommon.v1alpha1.IPPr" + "efixB\003\340A\002\022G\n\016vtep_ip_prefix\030\003 \001(\0132/.opi_" + "api.network.opinetcommon.v1alpha1.IPPref" + "ix\"\325\001\n\tVrfStatus\022\025\n\rrouting_table\030\001 \001(\r\022" + "\020\n\010local_as\030\002 \001(\r\022\n\n\002rd\030\003 \001(\t\022\014\n\004rmac\030\004 " + "\001(\014\022\022\n\nimport_rts\030\005 \003(\t\022\022\n\nexport_rts\030\006 " + "\003(\t\022\027\n\017logical_bridges\030\007 \003(\t\022D\n\013oper_sta" + "tus\030\010 \001(\0162/.opi_api.network.evpn_gw.v1al" + "pha1.VRFOperStatus\"[\n\020CreateVrfRequest\022\016" + "\n\006vrf_id\030\001 \001(\t\0227\n\003vrf\030\002 \001(\0132%.opi_api.ne" + "twork.evpn_gw.v1alpha1.VrfB\003\340A\002\"8\n\017ListV" + "rfsRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_to" + "ken\030\002 \001(\t\"`\n\020ListVrfsResponse\0223\n\004vrfs\030\001 " + "\003(\0132%.opi_api.network.evpn_gw.v1alpha1.V" + "rf\022\027\n\017next_page_token\030\002 \001(\t\"K\n\rGetVrfReq" + "uest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$opi_api.netw" + "ork.evpn_gw.v1alpha1/Vrf\"N\n\020DeleteVrfReq" + "uest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$opi_api.netw" + "ork.evpn_gw.v1alpha1/Vrf\"\305\001\n\003Svi\022\014\n\004name" + "\030\001 \001(\t\022<\n\004spec\030\002 \001(\0132).opi_api.network.e" + "vpn_gw.v1alpha1.SviSpecB\003\340A\002\022;\n\006status\030\003" + " \001(\0132+.opi_api.network.evpn_gw.v1alpha1." + "SviStatus:5\352A2\n$opi_api.network.evpn_gw." + "v1alpha1/Svi\022\nsvis/{svi}\"\241\002\n\007SviSpec\0229\n\003" + "vrf\030\001 \001(\tB,\340A\002\372A&\n$opi_api.network.evpn_" + "gw.v1alpha1/Vrf\022N\n\016logical_bridge\030\002 \001(\tB" + "6\340A\002\372A0\n.opi_api.network.evpn_gw.v1alpha" + "1/LogicalBridge\022\030\n\013mac_address\030\003 \001(\014B\003\340A" + "\002\022J\n\014gw_ip_prefix\030\004 \003(\0132/.opi_api.networ" + "k.opinetcommon.v1alpha1.IPPrefixB\003\340A\002\022\022\n" + "\nenable_bgp\030\005 \001(\010\022\021\n\tremote_as\030\006 \001(\r\"Q\n\t" + "SviStatus\022D\n\013oper_status\030\001 \001(\0162/.opi_api" + ".network.evpn_gw.v1alpha1.SVIOperStatus\"" + "[\n\020CreateSviRequest\022\016\n\006svi_id\030\001 \001(\t\0227\n\003s" + "vi\030\002 \001(\0132%.opi_api.network.evpn_gw.v1alp" + "ha1.SviB\003\340A\002\"8\n\017ListSvisRequest\022\021\n\tpage_" + "size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"`\n\020ListSv" + "isResponse\0223\n\004svis\030\001 \003(\0132%.opi_api.netwo" + "rk.evpn_gw.v1alpha1.Svi\022\027\n\017next_page_tok" + "en\030\002 \001(\t\"K\n\rGetSviRequest\022:\n\004name\030\001 \001(\tB" + ",\340A\002\372A&\n$opi_api.network.evpn_gw.v1alpha" + "1/Svi\"N\n\020DeleteSviRequest\022:\n\004name\030\001 \001(\tB" + ",\340A\002\372A&\n$opi_api.network.evpn_gw.v1alpha" + "1/Svi*b\n\rVRFOperStatus\022\037\n\033VRF_OPER_STATU" + "S_UNSPECIFIED\020\000\022\026\n\022VRF_OPER_STATUS_UP\020\001\022" + "\030\n\024VRF_OPER_STATUS_DOWN\020\002*b\n\rSVIOperStat" + "us\022\037\n\033SVI_OPER_STATUS_UNSPECIFIED\020\000\022\026\n\022S" + "VI_OPER_STATUS_UP\020\001\022\030\n\024SVI_OPER_STATUS_D" + "OWN\020\0022\237\004\n\nVrfService\022\212\001\n\tCreateVrf\0222.opi" + "_api.network.evpn_gw.v1alpha1.CreateVrfR" + "equest\032%.opi_api.network.evpn_gw.v1alpha" + "1.Vrf\"\"\202\323\344\223\002\017\"\010/v1/vrfs:\003vrf\332A\nvrf,vrf_i" + "d\022\203\001\n\010ListVrfs\0221.opi_api.network.evpn_gw" + ".v1alpha1.ListVrfsRequest\0322.opi_api.netw" + "ork.evpn_gw.v1alpha1.ListVrfsResponse\"\020\202" + "\323\344\223\002\n\022\010/v1/vrfs\022\202\001\n\006GetVrf\022/.opi_api.net" + "work.evpn_gw.v1alpha1.GetVrfRequest\032%.op" + "i_api.network.evpn_gw.v1alpha1.Vrf\" \202\323\344\223" + "\002\023\022\021/v1/{name=vrfs/*}\332A\004name\022y\n\tDeleteVr" + "f\0222.opi_api.network.evpn_gw.v1alpha1.Del" + "eteVrfRequest\032\026.google.protobuf.Empty\" \202" + "\323\344\223\002\023*\021/v1/{name=vrfs/*}\332A\004name2\237\004\n\nSviS" + "ervice\022\212\001\n\tCreateSvi\0222.opi_api.network.e" + "vpn_gw.v1alpha1.CreateSviRequest\032%.opi_a" + "pi.network.evpn_gw.v1alpha1.Svi\"\"\202\323\344\223\002\017\"" + "\010/v1/svis:\003svi\332A\nsvi,svi_id\022\203\001\n\010ListSvis" + "\0221.opi_api.network.evpn_gw.v1alpha1.List" + "SvisRequest\0322.opi_api.network.evpn_gw.v1" + "alpha1.ListSvisResponse\"\020\202\323\344\223\002\n\022\010/v1/svi" + "s\022\202\001\n\006GetSvi\022/.opi_api.network.evpn_gw.v" + "1alpha1.GetSviRequest\032%.opi_api.network." + "evpn_gw.v1alpha1.Svi\" \202\323\344\223\002\023\022\021/v1/{name=" + "svis/*}\332A\004name\022y\n\tDeleteSvi\0222.opi_api.ne" + "twork.evpn_gw.v1alpha1.DeleteSviRequest\032" + "\026.google.protobuf.Empty\" \202\323\344\223\002\023*\021/v1/{na" + "me=svis/*}\332A\004nameBw\n opi_api.network.evp" + "n_gw.v1alpha1B\022L3XpuInfraMgrProtoP\001Z=git" + "hub.com/opiproject/opi-api/network/evpn-" + "gw/v1alpha1/gen/gob\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_deps[6] = { + &::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, + &::descriptor_table_networktypes_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto = { + false, false, 3626, descriptor_table_protodef_l3_5fxpu_5finfra_5fmgr_2eproto, "l3_xpu_infra_mgr.proto", + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_deps, 6, 16, + schemas, file_default_instances, TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto::offsets, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto, file_level_enum_descriptors_l3_5fxpu_5finfra_5fmgr_2eproto, file_level_service_descriptors_l3_5fxpu_5finfra_5fmgr_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter() { + return &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_l3_5fxpu_5finfra_5fmgr_2eproto(&descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto); +namespace opi_api { +namespace network { +namespace evpn_gw { +namespace v1alpha1 { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VRFOperStatus_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto); + return file_level_enum_descriptors_l3_5fxpu_5finfra_5fmgr_2eproto[0]; +} +bool VRFOperStatus_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SVIOperStatus_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto); + return file_level_enum_descriptors_l3_5fxpu_5finfra_5fmgr_2eproto[1]; +} +bool SVIOperStatus_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + + +// =================================================================== + +class Vrf::_Internal { + public: + static const ::opi_api::network::evpn_gw::v1alpha1::VrfSpec& spec(const Vrf* msg); + static const ::opi_api::network::evpn_gw::v1alpha1::VrfStatus& status(const Vrf* msg); +}; + +const ::opi_api::network::evpn_gw::v1alpha1::VrfSpec& +Vrf::_Internal::spec(const Vrf* msg) { + return *msg->spec_; +} +const ::opi_api::network::evpn_gw::v1alpha1::VrfStatus& +Vrf::_Internal::status(const Vrf* msg) { + return *msg->status_; +} +Vrf::Vrf(::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.Vrf) +} +Vrf::Vrf(const Vrf& 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::VrfSpec(*from.spec_); + } else { + spec_ = nullptr; + } + if (from._internal_has_status()) { + status_ = new ::opi_api::network::evpn_gw::v1alpha1::VrfStatus(*from.status_); + } else { + status_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.Vrf) +} + +inline void Vrf::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_)); +} + +Vrf::~Vrf() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.Vrf) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Vrf::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 Vrf::ArenaDtor(void* object) { + Vrf* _this = reinterpret_cast< Vrf* >(object); + (void)_this; +} +void Vrf::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Vrf::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Vrf::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.Vrf) + 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* Vrf::_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.Vrf.name")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .opi_api.network.evpn_gw.v1alpha1.VrfSpec 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.VrfStatus 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* Vrf::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.Vrf) + 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.Vrf.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .opi_api.network.evpn_gw.v1alpha1.VrfSpec 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.VrfStatus 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.Vrf) + return target; +} + +size_t Vrf::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.Vrf) + 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.VrfSpec 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.VrfStatus 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 Vrf::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Vrf::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Vrf::GetClassData() const { return &_class_data_; } + +void Vrf::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Vrf::MergeFrom(const Vrf& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.Vrf) + 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::VrfSpec::MergeFrom(from._internal_spec()); + } + if (from._internal_has_status()) { + _internal_mutable_status()->::opi_api::network::evpn_gw::v1alpha1::VrfStatus::MergeFrom(from._internal_status()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Vrf::CopyFrom(const Vrf& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.Vrf) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Vrf::IsInitialized() const { + return true; +} + +void Vrf::InternalSwap(Vrf* 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(Vrf, status_) + + sizeof(Vrf::status_) + - PROTOBUF_FIELD_OFFSET(Vrf, spec_)>( + reinterpret_cast(&spec_), + reinterpret_cast(&other->spec_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Vrf::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[0]); +} + +// =================================================================== + +class VrfSpec::_Internal { + public: + static const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& loopback_ip_prefix(const VrfSpec* msg); + static const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& vtep_ip_prefix(const VrfSpec* msg); +}; + +const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& +VrfSpec::_Internal::loopback_ip_prefix(const VrfSpec* msg) { + return *msg->loopback_ip_prefix_; +} +const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& +VrfSpec::_Internal::vtep_ip_prefix(const VrfSpec* msg) { + return *msg->vtep_ip_prefix_; +} +void VrfSpec::clear_loopback_ip_prefix() { + if (GetArenaForAllocation() == nullptr && loopback_ip_prefix_ != nullptr) { + delete loopback_ip_prefix_; + } + loopback_ip_prefix_ = nullptr; +} +void VrfSpec::clear_vtep_ip_prefix() { + if (GetArenaForAllocation() == nullptr && vtep_ip_prefix_ != nullptr) { + delete vtep_ip_prefix_; + } + vtep_ip_prefix_ = nullptr; +} +VrfSpec::VrfSpec(::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.VrfSpec) +} +VrfSpec::VrfSpec(const VrfSpec& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_loopback_ip_prefix()) { + loopback_ip_prefix_ = new ::opi_api::network::opinetcommon::v1alpha1::IPPrefix(*from.loopback_ip_prefix_); + } else { + loopback_ip_prefix_ = nullptr; + } + if (from._internal_has_vtep_ip_prefix()) { + vtep_ip_prefix_ = new ::opi_api::network::opinetcommon::v1alpha1::IPPrefix(*from.vtep_ip_prefix_); + } else { + vtep_ip_prefix_ = nullptr; + } + vni_ = from.vni_; + // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.VrfSpec) +} + +inline void VrfSpec::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&loopback_ip_prefix_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&vni_) - + reinterpret_cast(&loopback_ip_prefix_)) + sizeof(vni_)); +} + +VrfSpec::~VrfSpec() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void VrfSpec::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete loopback_ip_prefix_; + if (this != internal_default_instance()) delete vtep_ip_prefix_; +} + +void VrfSpec::ArenaDtor(void* object) { + VrfSpec* _this = reinterpret_cast< VrfSpec* >(object); + (void)_this; +} +void VrfSpec::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void VrfSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void VrfSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && loopback_ip_prefix_ != nullptr) { + delete loopback_ip_prefix_; + } + loopback_ip_prefix_ = nullptr; + if (GetArenaForAllocation() == nullptr && vtep_ip_prefix_ != nullptr) { + delete vtep_ip_prefix_; + } + vtep_ip_prefix_ = nullptr; + vni_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* VrfSpec::_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 vni = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + vni_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_loopback_ip_prefix(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_vtep_ip_prefix(), 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* VrfSpec::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 vni = 1; + if (this->_internal_vni() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_vni(), target); + } + + // .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + if (this->_internal_has_loopback_ip_prefix()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::loopback_ip_prefix(this), target, stream); + } + + // .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + if (this->_internal_has_vtep_ip_prefix()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::vtep_ip_prefix(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.VrfSpec) + return target; +} + +size_t VrfSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + 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.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + if (this->_internal_has_loopback_ip_prefix()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *loopback_ip_prefix_); + } + + // .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + if (this->_internal_has_vtep_ip_prefix()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *vtep_ip_prefix_); + } + + // uint32 vni = 1; + 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 VrfSpec::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + VrfSpec::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VrfSpec::GetClassData() const { return &_class_data_; } + +void VrfSpec::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void VrfSpec::MergeFrom(const VrfSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_loopback_ip_prefix()) { + _internal_mutable_loopback_ip_prefix()->::opi_api::network::opinetcommon::v1alpha1::IPPrefix::MergeFrom(from._internal_loopback_ip_prefix()); + } + if (from._internal_has_vtep_ip_prefix()) { + _internal_mutable_vtep_ip_prefix()->::opi_api::network::opinetcommon::v1alpha1::IPPrefix::MergeFrom(from._internal_vtep_ip_prefix()); + } + if (from._internal_vni() != 0) { + _internal_set_vni(from._internal_vni()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void VrfSpec::CopyFrom(const VrfSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VrfSpec::IsInitialized() const { + return true; +} + +void VrfSpec::InternalSwap(VrfSpec* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(VrfSpec, vni_) + + sizeof(VrfSpec::vni_) + - PROTOBUF_FIELD_OFFSET(VrfSpec, loopback_ip_prefix_)>( + reinterpret_cast(&loopback_ip_prefix_), + reinterpret_cast(&other->loopback_ip_prefix_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata VrfSpec::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[1]); +} + +// =================================================================== + +class VrfStatus::_Internal { + public: +}; + +VrfStatus::VrfStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + import_rts_(arena), + export_rts_(arena), + logical_bridges_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.VrfStatus) +} +VrfStatus::VrfStatus(const VrfStatus& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + import_rts_(from.import_rts_), + export_rts_(from.export_rts_), + logical_bridges_(from.logical_bridges_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + rd_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + rd_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_rd().empty()) { + rd_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_rd(), + GetArenaForAllocation()); + } + rmac_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + rmac_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_rmac().empty()) { + rmac_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_rmac(), + GetArenaForAllocation()); + } + ::memcpy(&routing_table_, &from.routing_table_, + static_cast(reinterpret_cast(&oper_status_) - + reinterpret_cast(&routing_table_)) + sizeof(oper_status_)); + // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.VrfStatus) +} + +inline void VrfStatus::SharedCtor() { +rd_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + rd_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +rmac_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + rmac_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&routing_table_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&oper_status_) - + reinterpret_cast(&routing_table_)) + sizeof(oper_status_)); +} + +VrfStatus::~VrfStatus() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void VrfStatus::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + rd_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + rmac_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void VrfStatus::ArenaDtor(void* object) { + VrfStatus* _this = reinterpret_cast< VrfStatus* >(object); + (void)_this; +} +void VrfStatus::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void VrfStatus::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void VrfStatus::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + import_rts_.Clear(); + export_rts_.Clear(); + logical_bridges_.Clear(); + rd_.ClearToEmpty(); + rmac_.ClearToEmpty(); + ::memset(&routing_table_, 0, static_cast( + reinterpret_cast(&oper_status_) - + reinterpret_cast(&routing_table_)) + sizeof(oper_status_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* VrfStatus::_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 routing_table = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + routing_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 local_as = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + local_as_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string rd = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_rd(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.VrfStatus.rd")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes rmac = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_rmac(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated string import_rts = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_import_rts(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts")); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string export_rts = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_export_rts(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts")); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // repeated string logical_bridges = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + 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.VrfStatus.logical_bridges")); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); + } else + goto handle_unusual; + continue; + // .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_oper_status(static_cast<::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus>(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* VrfStatus::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 routing_table = 1; + if (this->_internal_routing_table() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_routing_table(), target); + } + + // uint32 local_as = 2; + if (this->_internal_local_as() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_local_as(), target); + } + + // string rd = 3; + if (!this->_internal_rd().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_rd().data(), static_cast(this->_internal_rd().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "opi_api.network.evpn_gw.v1alpha1.VrfStatus.rd"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_rd(), target); + } + + // bytes rmac = 4; + if (!this->_internal_rmac().empty()) { + target = stream->WriteBytesMaybeAliased( + 4, this->_internal_rmac(), target); + } + + // repeated string import_rts = 5; + for (int i = 0, n = this->_internal_import_rts_size(); i < n; i++) { + const auto& s = this->_internal_import_rts(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.VrfStatus.import_rts"); + target = stream->WriteString(5, s, target); + } + + // repeated string export_rts = 6; + for (int i = 0, n = this->_internal_export_rts_size(); i < n; i++) { + const auto& s = this->_internal_export_rts(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.VrfStatus.export_rts"); + target = stream->WriteString(6, s, target); + } + + // repeated string logical_bridges = 7; + 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.VrfStatus.logical_bridges"); + target = stream->WriteString(7, s, target); + } + + // .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + if (this->_internal_oper_status() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 8, 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.VrfStatus) + return target; +} + +size_t VrfStatus::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + 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 import_rts = 5; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(import_rts_.size()); + for (int i = 0, n = import_rts_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + import_rts_.Get(i)); + } + + // repeated string export_rts = 6; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(export_rts_.size()); + for (int i = 0, n = export_rts_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + export_rts_.Get(i)); + } + + // repeated string logical_bridges = 7; + 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)); + } + + // string rd = 3; + if (!this->_internal_rd().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_rd()); + } + + // bytes rmac = 4; + if (!this->_internal_rmac().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_rmac()); + } + + // uint32 routing_table = 1; + if (this->_internal_routing_table() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_routing_table()); + } + + // uint32 local_as = 2; + if (this->_internal_local_as() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_local_as()); + } + + // .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + 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 VrfStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + VrfStatus::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VrfStatus::GetClassData() const { return &_class_data_; } + +void VrfStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void VrfStatus::MergeFrom(const VrfStatus& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + import_rts_.MergeFrom(from.import_rts_); + export_rts_.MergeFrom(from.export_rts_); + logical_bridges_.MergeFrom(from.logical_bridges_); + if (!from._internal_rd().empty()) { + _internal_set_rd(from._internal_rd()); + } + if (!from._internal_rmac().empty()) { + _internal_set_rmac(from._internal_rmac()); + } + if (from._internal_routing_table() != 0) { + _internal_set_routing_table(from._internal_routing_table()); + } + if (from._internal_local_as() != 0) { + _internal_set_local_as(from._internal_local_as()); + } + 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 VrfStatus::CopyFrom(const VrfStatus& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VrfStatus::IsInitialized() const { + return true; +} + +void VrfStatus::InternalSwap(VrfStatus* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + import_rts_.InternalSwap(&other->import_rts_); + export_rts_.InternalSwap(&other->export_rts_); + logical_bridges_.InternalSwap(&other->logical_bridges_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &rd_, lhs_arena, + &other->rd_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &rmac_, lhs_arena, + &other->rmac_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(VrfStatus, oper_status_) + + sizeof(VrfStatus::oper_status_) + - PROTOBUF_FIELD_OFFSET(VrfStatus, routing_table_)>( + reinterpret_cast(&routing_table_), + reinterpret_cast(&other->routing_table_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata VrfStatus::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[2]); +} + +// =================================================================== + +class CreateVrfRequest::_Internal { + public: + static const ::opi_api::network::evpn_gw::v1alpha1::Vrf& vrf(const CreateVrfRequest* msg); +}; + +const ::opi_api::network::evpn_gw::v1alpha1::Vrf& +CreateVrfRequest::_Internal::vrf(const CreateVrfRequest* msg) { + return *msg->vrf_; +} +CreateVrfRequest::CreateVrfRequest(::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.CreateVrfRequest) +} +CreateVrfRequest::CreateVrfRequest(const CreateVrfRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + vrf_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + vrf_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_vrf_id().empty()) { + vrf_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_vrf_id(), + GetArenaForAllocation()); + } + if (from._internal_has_vrf()) { + vrf_ = new ::opi_api::network::evpn_gw::v1alpha1::Vrf(*from.vrf_); + } else { + vrf_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) +} + +inline void CreateVrfRequest::SharedCtor() { +vrf_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + vrf_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +vrf_ = nullptr; +} + +CreateVrfRequest::~CreateVrfRequest() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void CreateVrfRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + vrf_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete vrf_; +} + +void CreateVrfRequest::ArenaDtor(void* object) { + CreateVrfRequest* _this = reinterpret_cast< CreateVrfRequest* >(object); + (void)_this; +} +void CreateVrfRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void CreateVrfRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CreateVrfRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + vrf_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && vrf_ != nullptr) { + delete vrf_; + } + vrf_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateVrfRequest::_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 vrf_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_vrf_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf_id")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_vrf(), 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* CreateVrfRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string vrf_id = 1; + if (!this->_internal_vrf_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_vrf_id().data(), static_cast(this->_internal_vrf_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_vrf_id(), target); + } + + // .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + if (this->_internal_has_vrf()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::vrf(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.CreateVrfRequest) + return target; +} + +size_t CreateVrfRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + 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 vrf_id = 1; + if (!this->_internal_vrf_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_vrf_id()); + } + + // .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + if (this->_internal_has_vrf()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *vrf_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateVrfRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateVrfRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateVrfRequest::GetClassData() const { return &_class_data_; } + +void CreateVrfRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CreateVrfRequest::MergeFrom(const CreateVrfRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_vrf_id().empty()) { + _internal_set_vrf_id(from._internal_vrf_id()); + } + if (from._internal_has_vrf()) { + _internal_mutable_vrf()->::opi_api::network::evpn_gw::v1alpha1::Vrf::MergeFrom(from._internal_vrf()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateVrfRequest::CopyFrom(const CreateVrfRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateVrfRequest::IsInitialized() const { + return true; +} + +void CreateVrfRequest::InternalSwap(CreateVrfRequest* 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(), + &vrf_id_, lhs_arena, + &other->vrf_id_, rhs_arena + ); + swap(vrf_, other->vrf_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateVrfRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[3]); +} + +// =================================================================== + +class ListVrfsRequest::_Internal { + public: +}; + +ListVrfsRequest::ListVrfsRequest(::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.ListVrfsRequest) +} +ListVrfsRequest::ListVrfsRequest(const ListVrfsRequest& 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.ListVrfsRequest) +} + +inline void ListVrfsRequest::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; +} + +ListVrfsRequest::~ListVrfsRequest() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ListVrfsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListVrfsRequest::ArenaDtor(void* object) { + ListVrfsRequest* _this = reinterpret_cast< ListVrfsRequest* >(object); + (void)_this; +} +void ListVrfsRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListVrfsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListVrfsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + 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* ListVrfsRequest::_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.ListVrfsRequest.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* ListVrfsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + 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.ListVrfsRequest.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.ListVrfsRequest) + return target; +} + +size_t ListVrfsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + 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 ListVrfsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListVrfsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListVrfsRequest::GetClassData() const { return &_class_data_; } + +void ListVrfsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ListVrfsRequest::MergeFrom(const ListVrfsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + 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 ListVrfsRequest::CopyFrom(const ListVrfsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListVrfsRequest::IsInitialized() const { + return true; +} + +void ListVrfsRequest::InternalSwap(ListVrfsRequest* 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 ListVrfsRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[4]); +} + +// =================================================================== + +class ListVrfsResponse::_Internal { + public: +}; + +ListVrfsResponse::ListVrfsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + vrfs_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) +} +ListVrfsResponse::ListVrfsResponse(const ListVrfsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + vrfs_(from.vrfs_) { + _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.ListVrfsResponse) +} + +inline void ListVrfsResponse::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 +} + +ListVrfsResponse::~ListVrfsResponse() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ListVrfsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + next_page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListVrfsResponse::ArenaDtor(void* object) { + ListVrfsResponse* _this = reinterpret_cast< ListVrfsResponse* >(object); + (void)_this; +} +void ListVrfsResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListVrfsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListVrfsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + vrfs_.Clear(); + next_page_token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListVrfsResponse::_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.Vrf vrfs = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_vrfs(), 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.ListVrfsResponse.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* ListVrfsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + for (unsigned int i = 0, + n = static_cast(this->_internal_vrfs_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_vrfs(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.ListVrfsResponse.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.ListVrfsResponse) + return target; +} + +size_t ListVrfsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + 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.Vrf vrfs = 1; + total_size += 1UL * this->_internal_vrfs_size(); + for (const auto& msg : this->vrfs_) { + 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 ListVrfsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListVrfsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListVrfsResponse::GetClassData() const { return &_class_data_; } + +void ListVrfsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ListVrfsResponse::MergeFrom(const ListVrfsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + vrfs_.MergeFrom(from.vrfs_); + 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 ListVrfsResponse::CopyFrom(const ListVrfsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListVrfsResponse::IsInitialized() const { + return true; +} + +void ListVrfsResponse::InternalSwap(ListVrfsResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + vrfs_.InternalSwap(&other->vrfs_); + ::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 ListVrfsResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[5]); +} + +// =================================================================== + +class GetVrfRequest::_Internal { + public: +}; + +GetVrfRequest::GetVrfRequest(::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.GetVrfRequest) +} +GetVrfRequest::GetVrfRequest(const GetVrfRequest& 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.GetVrfRequest) +} + +inline void GetVrfRequest::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 +} + +GetVrfRequest::~GetVrfRequest() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void GetVrfRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void GetVrfRequest::ArenaDtor(void* object) { + GetVrfRequest* _this = reinterpret_cast< GetVrfRequest* >(object); + (void)_this; +} +void GetVrfRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GetVrfRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetVrfRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + 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* GetVrfRequest::_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.GetVrfRequest.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* GetVrfRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + 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.GetVrfRequest.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.GetVrfRequest) + return target; +} + +size_t GetVrfRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + 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 GetVrfRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetVrfRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetVrfRequest::GetClassData() const { return &_class_data_; } + +void GetVrfRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetVrfRequest::MergeFrom(const GetVrfRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + 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 GetVrfRequest::CopyFrom(const GetVrfRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetVrfRequest::IsInitialized() const { + return true; +} + +void GetVrfRequest::InternalSwap(GetVrfRequest* 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 GetVrfRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[6]); +} + +// =================================================================== + +class DeleteVrfRequest::_Internal { + public: +}; + +DeleteVrfRequest::DeleteVrfRequest(::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.DeleteVrfRequest) +} +DeleteVrfRequest::DeleteVrfRequest(const DeleteVrfRequest& 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.DeleteVrfRequest) +} + +inline void DeleteVrfRequest::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 +} + +DeleteVrfRequest::~DeleteVrfRequest() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void DeleteVrfRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void DeleteVrfRequest::ArenaDtor(void* object) { + DeleteVrfRequest* _this = reinterpret_cast< DeleteVrfRequest* >(object); + (void)_this; +} +void DeleteVrfRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void DeleteVrfRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void DeleteVrfRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + 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* DeleteVrfRequest::_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.DeleteVrfRequest.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* DeleteVrfRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + 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.DeleteVrfRequest.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.DeleteVrfRequest) + return target; +} + +size_t DeleteVrfRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + 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 DeleteVrfRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteVrfRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteVrfRequest::GetClassData() const { return &_class_data_; } + +void DeleteVrfRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void DeleteVrfRequest::MergeFrom(const DeleteVrfRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + 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 DeleteVrfRequest::CopyFrom(const DeleteVrfRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteVrfRequest::IsInitialized() const { + return true; +} + +void DeleteVrfRequest::InternalSwap(DeleteVrfRequest* 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 DeleteVrfRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[7]); +} + +// =================================================================== + +class Svi::_Internal { + public: + static const ::opi_api::network::evpn_gw::v1alpha1::SviSpec& spec(const Svi* msg); + static const ::opi_api::network::evpn_gw::v1alpha1::SviStatus& status(const Svi* msg); +}; + +const ::opi_api::network::evpn_gw::v1alpha1::SviSpec& +Svi::_Internal::spec(const Svi* msg) { + return *msg->spec_; +} +const ::opi_api::network::evpn_gw::v1alpha1::SviStatus& +Svi::_Internal::status(const Svi* msg) { + return *msg->status_; +} +Svi::Svi(::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.Svi) +} +Svi::Svi(const Svi& 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::SviSpec(*from.spec_); + } else { + spec_ = nullptr; + } + if (from._internal_has_status()) { + status_ = new ::opi_api::network::evpn_gw::v1alpha1::SviStatus(*from.status_); + } else { + status_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.Svi) +} + +inline void Svi::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_)); +} + +Svi::~Svi() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.Svi) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void Svi::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 Svi::ArenaDtor(void* object) { + Svi* _this = reinterpret_cast< Svi* >(object); + (void)_this; +} +void Svi::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Svi::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Svi::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.Svi) + 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* Svi::_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.Svi.name")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .opi_api.network.evpn_gw.v1alpha1.SviSpec 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.SviStatus 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* Svi::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.Svi) + 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.Svi.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .opi_api.network.evpn_gw.v1alpha1.SviSpec 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.SviStatus 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.Svi) + return target; +} + +size_t Svi::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.Svi) + 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.SviSpec 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.SviStatus 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 Svi::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Svi::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Svi::GetClassData() const { return &_class_data_; } + +void Svi::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void Svi::MergeFrom(const Svi& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.Svi) + 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::SviSpec::MergeFrom(from._internal_spec()); + } + if (from._internal_has_status()) { + _internal_mutable_status()->::opi_api::network::evpn_gw::v1alpha1::SviStatus::MergeFrom(from._internal_status()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Svi::CopyFrom(const Svi& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.Svi) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Svi::IsInitialized() const { + return true; +} + +void Svi::InternalSwap(Svi* 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(Svi, status_) + + sizeof(Svi::status_) + - PROTOBUF_FIELD_OFFSET(Svi, spec_)>( + reinterpret_cast(&spec_), + reinterpret_cast(&other->spec_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Svi::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[8]); +} + +// =================================================================== + +class SviSpec::_Internal { + public: +}; + +void SviSpec::clear_gw_ip_prefix() { + gw_ip_prefix_.Clear(); +} +SviSpec::SviSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + gw_ip_prefix_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.SviSpec) +} +SviSpec::SviSpec(const SviSpec& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + gw_ip_prefix_(from.gw_ip_prefix_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + vrf_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + vrf_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_vrf().empty()) { + vrf_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_vrf(), + GetArenaForAllocation()); + } + logical_bridge_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logical_bridge_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_logical_bridge().empty()) { + logical_bridge_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_logical_bridge(), + GetArenaForAllocation()); + } + 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()); + } + ::memcpy(&enable_bgp_, &from.enable_bgp_, + static_cast(reinterpret_cast(&remote_as_) - + reinterpret_cast(&enable_bgp_)) + sizeof(remote_as_)); + // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.SviSpec) +} + +inline void SviSpec::SharedCtor() { +vrf_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + vrf_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +logical_bridge_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + logical_bridge_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +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 +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&enable_bgp_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&remote_as_) - + reinterpret_cast(&enable_bgp_)) + sizeof(remote_as_)); +} + +SviSpec::~SviSpec() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.SviSpec) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void SviSpec::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + vrf_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + logical_bridge_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + mac_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void SviSpec::ArenaDtor(void* object) { + SviSpec* _this = reinterpret_cast< SviSpec* >(object); + (void)_this; +} +void SviSpec::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void SviSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SviSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.SviSpec) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + gw_ip_prefix_.Clear(); + vrf_.ClearToEmpty(); + logical_bridge_.ClearToEmpty(); + mac_address_.ClearToEmpty(); + ::memset(&enable_bgp_, 0, static_cast( + reinterpret_cast(&remote_as_) - + reinterpret_cast(&enable_bgp_)) + sizeof(remote_as_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SviSpec::_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 vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_vrf(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.SviSpec.vrf")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_logical_bridge(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.SviSpec.logical_bridge")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes mac_address = 3 [(.google.api.field_behavior) = REQUIRED]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_mac_address(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_gw_ip_prefix(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; + // bool enable_bgp = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + enable_bgp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 remote_as = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + remote_as_ = ::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* SviSpec::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.SviSpec) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + if (!this->_internal_vrf().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_vrf().data(), static_cast(this->_internal_vrf().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "opi_api.network.evpn_gw.v1alpha1.SviSpec.vrf"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_vrf(), target); + } + + // string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + if (!this->_internal_logical_bridge().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_logical_bridge().data(), static_cast(this->_internal_logical_bridge().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "opi_api.network.evpn_gw.v1alpha1.SviSpec.logical_bridge"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_logical_bridge(), target); + } + + // bytes mac_address = 3 [(.google.api.field_behavior) = REQUIRED]; + if (!this->_internal_mac_address().empty()) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_mac_address(), target); + } + + // repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + for (unsigned int i = 0, + n = static_cast(this->_internal_gw_ip_prefix_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, this->_internal_gw_ip_prefix(i), target, stream); + } + + // bool enable_bgp = 5; + if (this->_internal_enable_bgp() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_enable_bgp(), target); + } + + // uint32 remote_as = 6; + if (this->_internal_remote_as() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_remote_as(), 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.SviSpec) + return target; +} + +size_t SviSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.SviSpec) + 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.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + total_size += 1UL * this->_internal_gw_ip_prefix_size(); + for (const auto& msg : this->gw_ip_prefix_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + if (!this->_internal_vrf().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_vrf()); + } + + // string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + if (!this->_internal_logical_bridge().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_logical_bridge()); + } + + // bytes mac_address = 3 [(.google.api.field_behavior) = REQUIRED]; + if (!this->_internal_mac_address().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_mac_address()); + } + + // bool enable_bgp = 5; + if (this->_internal_enable_bgp() != 0) { + total_size += 1 + 1; + } + + // uint32 remote_as = 6; + if (this->_internal_remote_as() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_remote_as()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SviSpec::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SviSpec::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SviSpec::GetClassData() const { return &_class_data_; } + +void SviSpec::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SviSpec::MergeFrom(const SviSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.SviSpec) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + gw_ip_prefix_.MergeFrom(from.gw_ip_prefix_); + if (!from._internal_vrf().empty()) { + _internal_set_vrf(from._internal_vrf()); + } + if (!from._internal_logical_bridge().empty()) { + _internal_set_logical_bridge(from._internal_logical_bridge()); + } + if (!from._internal_mac_address().empty()) { + _internal_set_mac_address(from._internal_mac_address()); + } + if (from._internal_enable_bgp() != 0) { + _internal_set_enable_bgp(from._internal_enable_bgp()); + } + if (from._internal_remote_as() != 0) { + _internal_set_remote_as(from._internal_remote_as()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SviSpec::CopyFrom(const SviSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.SviSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SviSpec::IsInitialized() const { + return true; +} + +void SviSpec::InternalSwap(SviSpec* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + gw_ip_prefix_.InternalSwap(&other->gw_ip_prefix_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &vrf_, lhs_arena, + &other->vrf_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &logical_bridge_, lhs_arena, + &other->logical_bridge_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mac_address_, lhs_arena, + &other->mac_address_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SviSpec, remote_as_) + + sizeof(SviSpec::remote_as_) + - PROTOBUF_FIELD_OFFSET(SviSpec, enable_bgp_)>( + reinterpret_cast(&enable_bgp_), + reinterpret_cast(&other->enable_bgp_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SviSpec::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[9]); +} + +// =================================================================== + +class SviStatus::_Internal { + public: +}; + +SviStatus::SviStatus(::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.SviStatus) +} +SviStatus::SviStatus(const SviStatus& 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.SviStatus) +} + +inline void SviStatus::SharedCtor() { +oper_status_ = 0; +} + +SviStatus::~SviStatus() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.SviStatus) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void SviStatus::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void SviStatus::ArenaDtor(void* object) { + SviStatus* _this = reinterpret_cast< SviStatus* >(object); + (void)_this; +} +void SviStatus::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void SviStatus::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SviStatus::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.SviStatus) + 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* SviStatus::_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.SVIOperStatus 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::SVIOperStatus>(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* SviStatus::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.SviStatus) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus 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.SviStatus) + return target; +} + +size_t SviStatus::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.SviStatus) + 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.SVIOperStatus 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 SviStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SviStatus::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SviStatus::GetClassData() const { return &_class_data_; } + +void SviStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SviStatus::MergeFrom(const SviStatus& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.SviStatus) + 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 SviStatus::CopyFrom(const SviStatus& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.SviStatus) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SviStatus::IsInitialized() const { + return true; +} + +void SviStatus::InternalSwap(SviStatus* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(oper_status_, other->oper_status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SviStatus::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[10]); +} + +// =================================================================== + +class CreateSviRequest::_Internal { + public: + static const ::opi_api::network::evpn_gw::v1alpha1::Svi& svi(const CreateSviRequest* msg); +}; + +const ::opi_api::network::evpn_gw::v1alpha1::Svi& +CreateSviRequest::_Internal::svi(const CreateSviRequest* msg) { + return *msg->svi_; +} +CreateSviRequest::CreateSviRequest(::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.CreateSviRequest) +} +CreateSviRequest::CreateSviRequest(const CreateSviRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + svi_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + svi_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_svi_id().empty()) { + svi_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_svi_id(), + GetArenaForAllocation()); + } + if (from._internal_has_svi()) { + svi_ = new ::opi_api::network::evpn_gw::v1alpha1::Svi(*from.svi_); + } else { + svi_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) +} + +inline void CreateSviRequest::SharedCtor() { +svi_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + svi_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +svi_ = nullptr; +} + +CreateSviRequest::~CreateSviRequest() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void CreateSviRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + svi_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete svi_; +} + +void CreateSviRequest::ArenaDtor(void* object) { + CreateSviRequest* _this = reinterpret_cast< CreateSviRequest* >(object); + (void)_this; +} +void CreateSviRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void CreateSviRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void CreateSviRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + svi_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && svi_ != nullptr) { + delete svi_; + } + svi_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* CreateSviRequest::_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 svi_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_svi_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi_id")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_svi(), 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* CreateSviRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string svi_id = 1; + if (!this->_internal_svi_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_svi_id().data(), static_cast(this->_internal_svi_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi_id"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_svi_id(), target); + } + + // .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + if (this->_internal_has_svi()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::svi(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.CreateSviRequest) + return target; +} + +size_t CreateSviRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + 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 svi_id = 1; + if (!this->_internal_svi_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_svi_id()); + } + + // .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + if (this->_internal_has_svi()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *svi_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateSviRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CreateSviRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateSviRequest::GetClassData() const { return &_class_data_; } + +void CreateSviRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void CreateSviRequest::MergeFrom(const CreateSviRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_svi_id().empty()) { + _internal_set_svi_id(from._internal_svi_id()); + } + if (from._internal_has_svi()) { + _internal_mutable_svi()->::opi_api::network::evpn_gw::v1alpha1::Svi::MergeFrom(from._internal_svi()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void CreateSviRequest::CopyFrom(const CreateSviRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateSviRequest::IsInitialized() const { + return true; +} + +void CreateSviRequest::InternalSwap(CreateSviRequest* 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(), + &svi_id_, lhs_arena, + &other->svi_id_, rhs_arena + ); + swap(svi_, other->svi_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CreateSviRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[11]); +} + +// =================================================================== + +class ListSvisRequest::_Internal { + public: +}; + +ListSvisRequest::ListSvisRequest(::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.ListSvisRequest) +} +ListSvisRequest::ListSvisRequest(const ListSvisRequest& 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.ListSvisRequest) +} + +inline void ListSvisRequest::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; +} + +ListSvisRequest::~ListSvisRequest() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ListSvisRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListSvisRequest::ArenaDtor(void* object) { + ListSvisRequest* _this = reinterpret_cast< ListSvisRequest* >(object); + (void)_this; +} +void ListSvisRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListSvisRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListSvisRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + 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* ListSvisRequest::_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.ListSvisRequest.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* ListSvisRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + 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.ListSvisRequest.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.ListSvisRequest) + return target; +} + +size_t ListSvisRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + 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 ListSvisRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListSvisRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListSvisRequest::GetClassData() const { return &_class_data_; } + +void ListSvisRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ListSvisRequest::MergeFrom(const ListSvisRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + 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 ListSvisRequest::CopyFrom(const ListSvisRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListSvisRequest::IsInitialized() const { + return true; +} + +void ListSvisRequest::InternalSwap(ListSvisRequest* 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 ListSvisRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[12]); +} + +// =================================================================== + +class ListSvisResponse::_Internal { + public: +}; + +ListSvisResponse::ListSvisResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + svis_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) +} +ListSvisResponse::ListSvisResponse(const ListSvisResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + svis_(from.svis_) { + _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.ListSvisResponse) +} + +inline void ListSvisResponse::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 +} + +ListSvisResponse::~ListSvisResponse() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void ListSvisResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + next_page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ListSvisResponse::ArenaDtor(void* object) { + ListSvisResponse* _this = reinterpret_cast< ListSvisResponse* >(object); + (void)_this; +} +void ListSvisResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ListSvisResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ListSvisResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + svis_.Clear(); + next_page_token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListSvisResponse::_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.Svi svis = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_svis(), 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.ListSvisResponse.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* ListSvisResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + for (unsigned int i = 0, + n = static_cast(this->_internal_svis_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_svis(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.ListSvisResponse.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.ListSvisResponse) + return target; +} + +size_t ListSvisResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + 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.Svi svis = 1; + total_size += 1UL * this->_internal_svis_size(); + for (const auto& msg : this->svis_) { + 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 ListSvisResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListSvisResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListSvisResponse::GetClassData() const { return &_class_data_; } + +void ListSvisResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ListSvisResponse::MergeFrom(const ListSvisResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + svis_.MergeFrom(from.svis_); + 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 ListSvisResponse::CopyFrom(const ListSvisResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListSvisResponse::IsInitialized() const { + return true; +} + +void ListSvisResponse::InternalSwap(ListSvisResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + svis_.InternalSwap(&other->svis_); + ::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 ListSvisResponse::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[13]); +} + +// =================================================================== + +class GetSviRequest::_Internal { + public: +}; + +GetSviRequest::GetSviRequest(::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.GetSviRequest) +} +GetSviRequest::GetSviRequest(const GetSviRequest& 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.GetSviRequest) +} + +inline void GetSviRequest::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 +} + +GetSviRequest::~GetSviRequest() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void GetSviRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void GetSviRequest::ArenaDtor(void* object) { + GetSviRequest* _this = reinterpret_cast< GetSviRequest* >(object); + (void)_this; +} +void GetSviRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void GetSviRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetSviRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + 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* GetSviRequest::_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.GetSviRequest.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* GetSviRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + 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.GetSviRequest.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.GetSviRequest) + return target; +} + +size_t GetSviRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + 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 GetSviRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetSviRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSviRequest::GetClassData() const { return &_class_data_; } + +void GetSviRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetSviRequest::MergeFrom(const GetSviRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + 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 GetSviRequest::CopyFrom(const GetSviRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetSviRequest::IsInitialized() const { + return true; +} + +void GetSviRequest::InternalSwap(GetSviRequest* 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 GetSviRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[14]); +} + +// =================================================================== + +class DeleteSviRequest::_Internal { + public: +}; + +DeleteSviRequest::DeleteSviRequest(::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.DeleteSviRequest) +} +DeleteSviRequest::DeleteSviRequest(const DeleteSviRequest& 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.DeleteSviRequest) +} + +inline void DeleteSviRequest::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 +} + +DeleteSviRequest::~DeleteSviRequest() { + // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void DeleteSviRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void DeleteSviRequest::ArenaDtor(void* object) { + DeleteSviRequest* _this = reinterpret_cast< DeleteSviRequest* >(object); + (void)_this; +} +void DeleteSviRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void DeleteSviRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void DeleteSviRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + 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* DeleteSviRequest::_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.DeleteSviRequest.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* DeleteSviRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + 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.DeleteSviRequest.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.DeleteSviRequest) + return target; +} + +size_t DeleteSviRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + 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 DeleteSviRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeleteSviRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteSviRequest::GetClassData() const { return &_class_data_; } + +void DeleteSviRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void DeleteSviRequest::MergeFrom(const DeleteSviRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + 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 DeleteSviRequest::CopyFrom(const DeleteSviRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteSviRequest::IsInitialized() const { + return true; +} + +void DeleteSviRequest::InternalSwap(DeleteSviRequest* 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 DeleteSviRequest::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_getter, &descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once, + file_level_metadata_l3_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::Vrf* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::Vrf >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::Vrf >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::VrfSpec >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::VrfSpec >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::VrfStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::VrfStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::Svi* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::Svi >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::Svi >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::SviSpec* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::SviSpec >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::SviSpec >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::SviStatus* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::SviStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::SviStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.pb.h b/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.pb.h new file mode 100644 index 00000000..e886fbaf --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.pb.h @@ -0,0 +1,5254 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_l3_5fxpu_5finfra_5fmgr_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_l3_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 +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "networktypes.pb.h" +#include "google/api/annotations.pb.h" +#include "google/api/client.pb.h" +#include +#include "google/api/field_behavior.pb.h" +#include "google/api/resource.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_l3_5fxpu_5finfra_5fmgr_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[16] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto; +namespace opi_api { +namespace network { +namespace evpn_gw { +namespace v1alpha1 { +class CreateSviRequest; +struct CreateSviRequestDefaultTypeInternal; +extern CreateSviRequestDefaultTypeInternal _CreateSviRequest_default_instance_; +class CreateVrfRequest; +struct CreateVrfRequestDefaultTypeInternal; +extern CreateVrfRequestDefaultTypeInternal _CreateVrfRequest_default_instance_; +class DeleteSviRequest; +struct DeleteSviRequestDefaultTypeInternal; +extern DeleteSviRequestDefaultTypeInternal _DeleteSviRequest_default_instance_; +class DeleteVrfRequest; +struct DeleteVrfRequestDefaultTypeInternal; +extern DeleteVrfRequestDefaultTypeInternal _DeleteVrfRequest_default_instance_; +class GetSviRequest; +struct GetSviRequestDefaultTypeInternal; +extern GetSviRequestDefaultTypeInternal _GetSviRequest_default_instance_; +class GetVrfRequest; +struct GetVrfRequestDefaultTypeInternal; +extern GetVrfRequestDefaultTypeInternal _GetVrfRequest_default_instance_; +class ListSvisRequest; +struct ListSvisRequestDefaultTypeInternal; +extern ListSvisRequestDefaultTypeInternal _ListSvisRequest_default_instance_; +class ListSvisResponse; +struct ListSvisResponseDefaultTypeInternal; +extern ListSvisResponseDefaultTypeInternal _ListSvisResponse_default_instance_; +class ListVrfsRequest; +struct ListVrfsRequestDefaultTypeInternal; +extern ListVrfsRequestDefaultTypeInternal _ListVrfsRequest_default_instance_; +class ListVrfsResponse; +struct ListVrfsResponseDefaultTypeInternal; +extern ListVrfsResponseDefaultTypeInternal _ListVrfsResponse_default_instance_; +class Svi; +struct SviDefaultTypeInternal; +extern SviDefaultTypeInternal _Svi_default_instance_; +class SviSpec; +struct SviSpecDefaultTypeInternal; +extern SviSpecDefaultTypeInternal _SviSpec_default_instance_; +class SviStatus; +struct SviStatusDefaultTypeInternal; +extern SviStatusDefaultTypeInternal _SviStatus_default_instance_; +class Vrf; +struct VrfDefaultTypeInternal; +extern VrfDefaultTypeInternal _Vrf_default_instance_; +class VrfSpec; +struct VrfSpecDefaultTypeInternal; +extern VrfSpecDefaultTypeInternal _VrfSpec_default_instance_; +class VrfStatus; +struct VrfStatusDefaultTypeInternal; +extern VrfStatusDefaultTypeInternal _VrfStatus_default_instance_; +} // namespace v1alpha1 +} // namespace evpn_gw +} // namespace network +} // namespace opi_api +PROTOBUF_NAMESPACE_OPEN +template<> ::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::GetSviRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::GetSviRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::Svi* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::Svi>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::SviSpec* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::SviSpec>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::SviStatus* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::SviStatus>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::Vrf* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::Vrf>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::VrfSpec>(Arena*); +template<> ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::VrfStatus>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace opi_api { +namespace network { +namespace evpn_gw { +namespace v1alpha1 { + +enum VRFOperStatus : int { + VRF_OPER_STATUS_UNSPECIFIED = 0, + VRF_OPER_STATUS_UP = 1, + VRF_OPER_STATUS_DOWN = 2, + VRFOperStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + VRFOperStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool VRFOperStatus_IsValid(int value); +constexpr VRFOperStatus VRFOperStatus_MIN = VRF_OPER_STATUS_UNSPECIFIED; +constexpr VRFOperStatus VRFOperStatus_MAX = VRF_OPER_STATUS_DOWN; +constexpr int VRFOperStatus_ARRAYSIZE = VRFOperStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VRFOperStatus_descriptor(); +template +inline const std::string& VRFOperStatus_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function VRFOperStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + VRFOperStatus_descriptor(), enum_t_value); +} +inline bool VRFOperStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, VRFOperStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + VRFOperStatus_descriptor(), name, value); +} +enum SVIOperStatus : int { + SVI_OPER_STATUS_UNSPECIFIED = 0, + SVI_OPER_STATUS_UP = 1, + SVI_OPER_STATUS_DOWN = 2, + SVIOperStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + SVIOperStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool SVIOperStatus_IsValid(int value); +constexpr SVIOperStatus SVIOperStatus_MIN = SVI_OPER_STATUS_UNSPECIFIED; +constexpr SVIOperStatus SVIOperStatus_MAX = SVI_OPER_STATUS_DOWN; +constexpr int SVIOperStatus_ARRAYSIZE = SVIOperStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SVIOperStatus_descriptor(); +template +inline const std::string& SVIOperStatus_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SVIOperStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + SVIOperStatus_descriptor(), enum_t_value); +} +inline bool SVIOperStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SVIOperStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + SVIOperStatus_descriptor(), name, value); +} +// =================================================================== + +class Vrf final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.Vrf) */ { + public: + inline Vrf() : Vrf(nullptr) {} + ~Vrf() override; + explicit constexpr Vrf(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Vrf(const Vrf& from); + Vrf(Vrf&& from) noexcept + : Vrf() { + *this = ::std::move(from); + } + + inline Vrf& operator=(const Vrf& from) { + CopyFrom(from); + return *this; + } + inline Vrf& operator=(Vrf&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Vrf& default_instance() { + return *internal_default_instance(); + } + static inline const Vrf* internal_default_instance() { + return reinterpret_cast( + &_Vrf_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(Vrf& a, Vrf& b) { + a.Swap(&b); + } + inline void Swap(Vrf* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Vrf* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Vrf* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Vrf& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Vrf& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Vrf* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.Vrf"; + } + protected: + explicit Vrf(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kSpecFieldNumber = 2, + kStatusFieldNumber = 3, + }; + // string name = 1; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + bool has_spec() const; + private: + bool _internal_has_spec() const; + public: + void clear_spec(); + const ::opi_api::network::evpn_gw::v1alpha1::VrfSpec& spec() const; + PROTOBUF_NODISCARD ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* release_spec(); + ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* mutable_spec(); + void set_allocated_spec(::opi_api::network::evpn_gw::v1alpha1::VrfSpec* spec); + private: + const ::opi_api::network::evpn_gw::v1alpha1::VrfSpec& _internal_spec() const; + ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* _internal_mutable_spec(); + public: + void unsafe_arena_set_allocated_spec( + ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* spec); + ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* unsafe_arena_release_spec(); + + // .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::opi_api::network::evpn_gw::v1alpha1::VrfStatus& status() const; + PROTOBUF_NODISCARD ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* release_status(); + ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* mutable_status(); + void set_allocated_status(::opi_api::network::evpn_gw::v1alpha1::VrfStatus* status); + private: + const ::opi_api::network::evpn_gw::v1alpha1::VrfStatus& _internal_status() const; + ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* status); + ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* unsafe_arena_release_status(); + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.Vrf) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* spec_; + ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class VrfSpec final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.VrfSpec) */ { + public: + inline VrfSpec() : VrfSpec(nullptr) {} + ~VrfSpec() override; + explicit constexpr VrfSpec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + VrfSpec(const VrfSpec& from); + VrfSpec(VrfSpec&& from) noexcept + : VrfSpec() { + *this = ::std::move(from); + } + + inline VrfSpec& operator=(const VrfSpec& from) { + CopyFrom(from); + return *this; + } + inline VrfSpec& operator=(VrfSpec&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const VrfSpec& default_instance() { + return *internal_default_instance(); + } + static inline const VrfSpec* internal_default_instance() { + return reinterpret_cast( + &_VrfSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(VrfSpec& a, VrfSpec& b) { + a.Swap(&b); + } + inline void Swap(VrfSpec* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(VrfSpec* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + VrfSpec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const VrfSpec& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const VrfSpec& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(VrfSpec* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.VrfSpec"; + } + protected: + explicit VrfSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kLoopbackIpPrefixFieldNumber = 2, + kVtepIpPrefixFieldNumber = 3, + kVniFieldNumber = 1, + }; + // .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + bool has_loopback_ip_prefix() const; + private: + bool _internal_has_loopback_ip_prefix() const; + public: + void clear_loopback_ip_prefix(); + const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& loopback_ip_prefix() const; + PROTOBUF_NODISCARD ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* release_loopback_ip_prefix(); + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* mutable_loopback_ip_prefix(); + void set_allocated_loopback_ip_prefix(::opi_api::network::opinetcommon::v1alpha1::IPPrefix* loopback_ip_prefix); + private: + const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& _internal_loopback_ip_prefix() const; + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* _internal_mutable_loopback_ip_prefix(); + public: + void unsafe_arena_set_allocated_loopback_ip_prefix( + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* loopback_ip_prefix); + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* unsafe_arena_release_loopback_ip_prefix(); + + // .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + bool has_vtep_ip_prefix() const; + private: + bool _internal_has_vtep_ip_prefix() const; + public: + void clear_vtep_ip_prefix(); + const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& vtep_ip_prefix() const; + PROTOBUF_NODISCARD ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* release_vtep_ip_prefix(); + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* mutable_vtep_ip_prefix(); + void set_allocated_vtep_ip_prefix(::opi_api::network::opinetcommon::v1alpha1::IPPrefix* vtep_ip_prefix); + private: + const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& _internal_vtep_ip_prefix() const; + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* _internal_mutable_vtep_ip_prefix(); + public: + void unsafe_arena_set_allocated_vtep_ip_prefix( + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* vtep_ip_prefix); + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* unsafe_arena_release_vtep_ip_prefix(); + + // uint32 vni = 1; + void clear_vni(); + uint32_t vni() const; + void set_vni(uint32_t value); + private: + uint32_t _internal_vni() const; + void _internal_set_vni(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* loopback_ip_prefix_; + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* vtep_ip_prefix_; + uint32_t vni_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class VrfStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.VrfStatus) */ { + public: + inline VrfStatus() : VrfStatus(nullptr) {} + ~VrfStatus() override; + explicit constexpr VrfStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + VrfStatus(const VrfStatus& from); + VrfStatus(VrfStatus&& from) noexcept + : VrfStatus() { + *this = ::std::move(from); + } + + inline VrfStatus& operator=(const VrfStatus& from) { + CopyFrom(from); + return *this; + } + inline VrfStatus& operator=(VrfStatus&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const VrfStatus& default_instance() { + return *internal_default_instance(); + } + static inline const VrfStatus* internal_default_instance() { + return reinterpret_cast( + &_VrfStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(VrfStatus& a, VrfStatus& b) { + a.Swap(&b); + } + inline void Swap(VrfStatus* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(VrfStatus* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + VrfStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const VrfStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const VrfStatus& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(VrfStatus* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.VrfStatus"; + } + protected: + explicit VrfStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kImportRtsFieldNumber = 5, + kExportRtsFieldNumber = 6, + kLogicalBridgesFieldNumber = 7, + kRdFieldNumber = 3, + kRmacFieldNumber = 4, + kRoutingTableFieldNumber = 1, + kLocalAsFieldNumber = 2, + kOperStatusFieldNumber = 8, + }; + // repeated string import_rts = 5; + int import_rts_size() const; + private: + int _internal_import_rts_size() const; + public: + void clear_import_rts(); + const std::string& import_rts(int index) const; + std::string* mutable_import_rts(int index); + void set_import_rts(int index, const std::string& value); + void set_import_rts(int index, std::string&& value); + void set_import_rts(int index, const char* value); + void set_import_rts(int index, const char* value, size_t size); + std::string* add_import_rts(); + void add_import_rts(const std::string& value); + void add_import_rts(std::string&& value); + void add_import_rts(const char* value); + void add_import_rts(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& import_rts() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_import_rts(); + private: + const std::string& _internal_import_rts(int index) const; + std::string* _internal_add_import_rts(); + public: + + // repeated string export_rts = 6; + int export_rts_size() const; + private: + int _internal_export_rts_size() const; + public: + void clear_export_rts(); + const std::string& export_rts(int index) const; + std::string* mutable_export_rts(int index); + void set_export_rts(int index, const std::string& value); + void set_export_rts(int index, std::string&& value); + void set_export_rts(int index, const char* value); + void set_export_rts(int index, const char* value, size_t size); + std::string* add_export_rts(); + void add_export_rts(const std::string& value); + void add_export_rts(std::string&& value); + void add_export_rts(const char* value); + void add_export_rts(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& export_rts() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_export_rts(); + private: + const std::string& _internal_export_rts(int index) const; + std::string* _internal_add_export_rts(); + public: + + // repeated string logical_bridges = 7; + int logical_bridges_size() const; + private: + int _internal_logical_bridges_size() const; + public: + void clear_logical_bridges(); + const std::string& logical_bridges(int index) const; + std::string* mutable_logical_bridges(int index); + void set_logical_bridges(int index, const std::string& value); + void set_logical_bridges(int index, std::string&& value); + void set_logical_bridges(int index, const char* value); + void set_logical_bridges(int index, const char* value, size_t size); + std::string* add_logical_bridges(); + void add_logical_bridges(const std::string& value); + void add_logical_bridges(std::string&& value); + void add_logical_bridges(const char* value); + void add_logical_bridges(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& logical_bridges() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_logical_bridges(); + private: + const std::string& _internal_logical_bridges(int index) const; + std::string* _internal_add_logical_bridges(); + public: + + // string rd = 3; + void clear_rd(); + const std::string& rd() const; + template + void set_rd(ArgT0&& arg0, ArgT... args); + std::string* mutable_rd(); + PROTOBUF_NODISCARD std::string* release_rd(); + void set_allocated_rd(std::string* rd); + private: + const std::string& _internal_rd() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_rd(const std::string& value); + std::string* _internal_mutable_rd(); + public: + + // bytes rmac = 4; + void clear_rmac(); + const std::string& rmac() const; + template + void set_rmac(ArgT0&& arg0, ArgT... args); + std::string* mutable_rmac(); + PROTOBUF_NODISCARD std::string* release_rmac(); + void set_allocated_rmac(std::string* rmac); + private: + const std::string& _internal_rmac() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_rmac(const std::string& value); + std::string* _internal_mutable_rmac(); + public: + + // uint32 routing_table = 1; + void clear_routing_table(); + uint32_t routing_table() const; + void set_routing_table(uint32_t value); + private: + uint32_t _internal_routing_table() const; + void _internal_set_routing_table(uint32_t value); + public: + + // uint32 local_as = 2; + void clear_local_as(); + uint32_t local_as() const; + void set_local_as(uint32_t value); + private: + uint32_t _internal_local_as() const; + void _internal_set_local_as(uint32_t value); + public: + + // .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + void clear_oper_status(); + ::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus oper_status() const; + void set_oper_status(::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus value); + private: + ::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus _internal_oper_status() const; + void _internal_set_oper_status(::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField import_rts_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField export_rts_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField logical_bridges_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rd_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rmac_; + uint32_t routing_table_; + uint32_t local_as_; + int oper_status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateVrfRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) */ { + public: + inline CreateVrfRequest() : CreateVrfRequest(nullptr) {} + ~CreateVrfRequest() override; + explicit constexpr CreateVrfRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateVrfRequest(const CreateVrfRequest& from); + CreateVrfRequest(CreateVrfRequest&& from) noexcept + : CreateVrfRequest() { + *this = ::std::move(from); + } + + inline CreateVrfRequest& operator=(const CreateVrfRequest& from) { + CopyFrom(from); + return *this; + } + inline CreateVrfRequest& operator=(CreateVrfRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CreateVrfRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CreateVrfRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateVrfRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(CreateVrfRequest& a, CreateVrfRequest& b) { + a.Swap(&b); + } + inline void Swap(CreateVrfRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CreateVrfRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateVrfRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateVrfRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateVrfRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateVrfRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest"; + } + protected: + explicit CreateVrfRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kVrfIdFieldNumber = 1, + kVrfFieldNumber = 2, + }; + // string vrf_id = 1; + void clear_vrf_id(); + const std::string& vrf_id() const; + template + void set_vrf_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_vrf_id(); + PROTOBUF_NODISCARD std::string* release_vrf_id(); + void set_allocated_vrf_id(std::string* vrf_id); + private: + const std::string& _internal_vrf_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_vrf_id(const std::string& value); + std::string* _internal_mutable_vrf_id(); + public: + + // .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + bool has_vrf() const; + private: + bool _internal_has_vrf() const; + public: + void clear_vrf(); + const ::opi_api::network::evpn_gw::v1alpha1::Vrf& vrf() const; + PROTOBUF_NODISCARD ::opi_api::network::evpn_gw::v1alpha1::Vrf* release_vrf(); + ::opi_api::network::evpn_gw::v1alpha1::Vrf* mutable_vrf(); + void set_allocated_vrf(::opi_api::network::evpn_gw::v1alpha1::Vrf* vrf); + private: + const ::opi_api::network::evpn_gw::v1alpha1::Vrf& _internal_vrf() const; + ::opi_api::network::evpn_gw::v1alpha1::Vrf* _internal_mutable_vrf(); + public: + void unsafe_arena_set_allocated_vrf( + ::opi_api::network::evpn_gw::v1alpha1::Vrf* vrf); + ::opi_api::network::evpn_gw::v1alpha1::Vrf* unsafe_arena_release_vrf(); + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vrf_id_; + ::opi_api::network::evpn_gw::v1alpha1::Vrf* vrf_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class ListVrfsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) */ { + public: + inline ListVrfsRequest() : ListVrfsRequest(nullptr) {} + ~ListVrfsRequest() override; + explicit constexpr ListVrfsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListVrfsRequest(const ListVrfsRequest& from); + ListVrfsRequest(ListVrfsRequest&& from) noexcept + : ListVrfsRequest() { + *this = ::std::move(from); + } + + inline ListVrfsRequest& operator=(const ListVrfsRequest& from) { + CopyFrom(from); + return *this; + } + inline ListVrfsRequest& operator=(ListVrfsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListVrfsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ListVrfsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListVrfsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(ListVrfsRequest& a, ListVrfsRequest& b) { + a.Swap(&b); + } + inline void Swap(ListVrfsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListVrfsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListVrfsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListVrfsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListVrfsRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListVrfsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest"; + } + protected: + explicit ListVrfsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPageTokenFieldNumber = 2, + kPageSizeFieldNumber = 1, + }; + // string page_token = 2; + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // int32 page_size = 1; + void clear_page_size(); + int32_t page_size() const; + void set_page_size(int32_t value); + private: + int32_t _internal_page_size() const; + void _internal_set_page_size(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + int32_t page_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class ListVrfsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) */ { + public: + inline ListVrfsResponse() : ListVrfsResponse(nullptr) {} + ~ListVrfsResponse() override; + explicit constexpr ListVrfsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListVrfsResponse(const ListVrfsResponse& from); + ListVrfsResponse(ListVrfsResponse&& from) noexcept + : ListVrfsResponse() { + *this = ::std::move(from); + } + + inline ListVrfsResponse& operator=(const ListVrfsResponse& from) { + CopyFrom(from); + return *this; + } + inline ListVrfsResponse& operator=(ListVrfsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListVrfsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ListVrfsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListVrfsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(ListVrfsResponse& a, ListVrfsResponse& b) { + a.Swap(&b); + } + inline void Swap(ListVrfsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListVrfsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListVrfsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListVrfsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListVrfsResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListVrfsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse"; + } + protected: + explicit ListVrfsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kVrfsFieldNumber = 1, + kNextPageTokenFieldNumber = 2, + }; + // repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + int vrfs_size() const; + private: + int _internal_vrfs_size() const; + public: + void clear_vrfs(); + ::opi_api::network::evpn_gw::v1alpha1::Vrf* mutable_vrfs(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::Vrf >* + mutable_vrfs(); + private: + const ::opi_api::network::evpn_gw::v1alpha1::Vrf& _internal_vrfs(int index) const; + ::opi_api::network::evpn_gw::v1alpha1::Vrf* _internal_add_vrfs(); + public: + const ::opi_api::network::evpn_gw::v1alpha1::Vrf& vrfs(int index) const; + ::opi_api::network::evpn_gw::v1alpha1::Vrf* add_vrfs(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::Vrf >& + vrfs() const; + + // string next_page_token = 2; + void clear_next_page_token(); + const std::string& next_page_token() const; + template + void set_next_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_next_page_token(); + PROTOBUF_NODISCARD std::string* release_next_page_token(); + void set_allocated_next_page_token(std::string* next_page_token); + private: + const std::string& _internal_next_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token(const std::string& value); + std::string* _internal_mutable_next_page_token(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::Vrf > vrfs_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class GetVrfRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) */ { + public: + inline GetVrfRequest() : GetVrfRequest(nullptr) {} + ~GetVrfRequest() override; + explicit constexpr GetVrfRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetVrfRequest(const GetVrfRequest& from); + GetVrfRequest(GetVrfRequest&& from) noexcept + : GetVrfRequest() { + *this = ::std::move(from); + } + + inline GetVrfRequest& operator=(const GetVrfRequest& from) { + CopyFrom(from); + return *this; + } + inline GetVrfRequest& operator=(GetVrfRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetVrfRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetVrfRequest* internal_default_instance() { + return reinterpret_cast( + &_GetVrfRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(GetVrfRequest& a, GetVrfRequest& b) { + a.Swap(&b); + } + inline void Swap(GetVrfRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetVrfRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetVrfRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetVrfRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetVrfRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetVrfRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.GetVrfRequest"; + } + protected: + explicit GetVrfRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + }; + // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteVrfRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) */ { + public: + inline DeleteVrfRequest() : DeleteVrfRequest(nullptr) {} + ~DeleteVrfRequest() override; + explicit constexpr DeleteVrfRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteVrfRequest(const DeleteVrfRequest& from); + DeleteVrfRequest(DeleteVrfRequest&& from) noexcept + : DeleteVrfRequest() { + *this = ::std::move(from); + } + + inline DeleteVrfRequest& operator=(const DeleteVrfRequest& from) { + CopyFrom(from); + return *this; + } + inline DeleteVrfRequest& operator=(DeleteVrfRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DeleteVrfRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteVrfRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteVrfRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(DeleteVrfRequest& a, DeleteVrfRequest& b) { + a.Swap(&b); + } + inline void Swap(DeleteVrfRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeleteVrfRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteVrfRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteVrfRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteVrfRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteVrfRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest"; + } + protected: + explicit DeleteVrfRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + }; + // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class Svi final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.Svi) */ { + public: + inline Svi() : Svi(nullptr) {} + ~Svi() override; + explicit constexpr Svi(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Svi(const Svi& from); + Svi(Svi&& from) noexcept + : Svi() { + *this = ::std::move(from); + } + + inline Svi& operator=(const Svi& from) { + CopyFrom(from); + return *this; + } + inline Svi& operator=(Svi&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Svi& default_instance() { + return *internal_default_instance(); + } + static inline const Svi* internal_default_instance() { + return reinterpret_cast( + &_Svi_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(Svi& a, Svi& b) { + a.Swap(&b); + } + inline void Swap(Svi* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Svi* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Svi* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Svi& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const Svi& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Svi* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.Svi"; + } + protected: + explicit Svi(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kSpecFieldNumber = 2, + kStatusFieldNumber = 3, + }; + // string name = 1; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + bool has_spec() const; + private: + bool _internal_has_spec() const; + public: + void clear_spec(); + const ::opi_api::network::evpn_gw::v1alpha1::SviSpec& spec() const; + PROTOBUF_NODISCARD ::opi_api::network::evpn_gw::v1alpha1::SviSpec* release_spec(); + ::opi_api::network::evpn_gw::v1alpha1::SviSpec* mutable_spec(); + void set_allocated_spec(::opi_api::network::evpn_gw::v1alpha1::SviSpec* spec); + private: + const ::opi_api::network::evpn_gw::v1alpha1::SviSpec& _internal_spec() const; + ::opi_api::network::evpn_gw::v1alpha1::SviSpec* _internal_mutable_spec(); + public: + void unsafe_arena_set_allocated_spec( + ::opi_api::network::evpn_gw::v1alpha1::SviSpec* spec); + ::opi_api::network::evpn_gw::v1alpha1::SviSpec* unsafe_arena_release_spec(); + + // .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::opi_api::network::evpn_gw::v1alpha1::SviStatus& status() const; + PROTOBUF_NODISCARD ::opi_api::network::evpn_gw::v1alpha1::SviStatus* release_status(); + ::opi_api::network::evpn_gw::v1alpha1::SviStatus* mutable_status(); + void set_allocated_status(::opi_api::network::evpn_gw::v1alpha1::SviStatus* status); + private: + const ::opi_api::network::evpn_gw::v1alpha1::SviStatus& _internal_status() const; + ::opi_api::network::evpn_gw::v1alpha1::SviStatus* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::opi_api::network::evpn_gw::v1alpha1::SviStatus* status); + ::opi_api::network::evpn_gw::v1alpha1::SviStatus* unsafe_arena_release_status(); + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.Svi) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::opi_api::network::evpn_gw::v1alpha1::SviSpec* spec_; + ::opi_api::network::evpn_gw::v1alpha1::SviStatus* status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class SviSpec final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.SviSpec) */ { + public: + inline SviSpec() : SviSpec(nullptr) {} + ~SviSpec() override; + explicit constexpr SviSpec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SviSpec(const SviSpec& from); + SviSpec(SviSpec&& from) noexcept + : SviSpec() { + *this = ::std::move(from); + } + + inline SviSpec& operator=(const SviSpec& from) { + CopyFrom(from); + return *this; + } + inline SviSpec& operator=(SviSpec&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SviSpec& default_instance() { + return *internal_default_instance(); + } + static inline const SviSpec* internal_default_instance() { + return reinterpret_cast( + &_SviSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(SviSpec& a, SviSpec& b) { + a.Swap(&b); + } + inline void Swap(SviSpec* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SviSpec* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SviSpec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SviSpec& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SviSpec& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SviSpec* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.SviSpec"; + } + protected: + explicit SviSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kGwIpPrefixFieldNumber = 4, + kVrfFieldNumber = 1, + kLogicalBridgeFieldNumber = 2, + kMacAddressFieldNumber = 3, + kEnableBgpFieldNumber = 5, + kRemoteAsFieldNumber = 6, + }; + // repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + int gw_ip_prefix_size() const; + private: + int _internal_gw_ip_prefix_size() const; + public: + void clear_gw_ip_prefix(); + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* mutable_gw_ip_prefix(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::opinetcommon::v1alpha1::IPPrefix >* + mutable_gw_ip_prefix(); + private: + const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& _internal_gw_ip_prefix(int index) const; + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* _internal_add_gw_ip_prefix(); + public: + const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& gw_ip_prefix(int index) const; + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* add_gw_ip_prefix(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::opinetcommon::v1alpha1::IPPrefix >& + gw_ip_prefix() const; + + // string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + void clear_vrf(); + const std::string& vrf() const; + template + void set_vrf(ArgT0&& arg0, ArgT... args); + std::string* mutable_vrf(); + PROTOBUF_NODISCARD std::string* release_vrf(); + void set_allocated_vrf(std::string* vrf); + private: + const std::string& _internal_vrf() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_vrf(const std::string& value); + std::string* _internal_mutable_vrf(); + public: + + // string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + void clear_logical_bridge(); + const std::string& logical_bridge() const; + template + void set_logical_bridge(ArgT0&& arg0, ArgT... args); + std::string* mutable_logical_bridge(); + PROTOBUF_NODISCARD std::string* release_logical_bridge(); + void set_allocated_logical_bridge(std::string* logical_bridge); + private: + const std::string& _internal_logical_bridge() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_logical_bridge(const std::string& value); + std::string* _internal_mutable_logical_bridge(); + public: + + // bytes mac_address = 3 [(.google.api.field_behavior) = REQUIRED]; + void clear_mac_address(); + const std::string& mac_address() const; + template + void set_mac_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_mac_address(); + PROTOBUF_NODISCARD std::string* release_mac_address(); + void set_allocated_mac_address(std::string* mac_address); + private: + const std::string& _internal_mac_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mac_address(const std::string& value); + std::string* _internal_mutable_mac_address(); + public: + + // bool enable_bgp = 5; + void clear_enable_bgp(); + bool enable_bgp() const; + void set_enable_bgp(bool value); + private: + bool _internal_enable_bgp() const; + void _internal_set_enable_bgp(bool value); + public: + + // uint32 remote_as = 6; + void clear_remote_as(); + uint32_t remote_as() const; + void set_remote_as(uint32_t value); + private: + uint32_t _internal_remote_as() const; + void _internal_set_remote_as(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.SviSpec) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::opinetcommon::v1alpha1::IPPrefix > gw_ip_prefix_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vrf_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr logical_bridge_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mac_address_; + bool enable_bgp_; + uint32_t remote_as_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class SviStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.SviStatus) */ { + public: + inline SviStatus() : SviStatus(nullptr) {} + ~SviStatus() override; + explicit constexpr SviStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SviStatus(const SviStatus& from); + SviStatus(SviStatus&& from) noexcept + : SviStatus() { + *this = ::std::move(from); + } + + inline SviStatus& operator=(const SviStatus& from) { + CopyFrom(from); + return *this; + } + inline SviStatus& operator=(SviStatus&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SviStatus& default_instance() { + return *internal_default_instance(); + } + static inline const SviStatus* internal_default_instance() { + return reinterpret_cast( + &_SviStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(SviStatus& a, SviStatus& b) { + a.Swap(&b); + } + inline void Swap(SviStatus* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SviStatus* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SviStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SviStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SviStatus& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SviStatus* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.SviStatus"; + } + protected: + explicit SviStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kOperStatusFieldNumber = 1, + }; + // .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus oper_status = 1; + void clear_oper_status(); + ::opi_api::network::evpn_gw::v1alpha1::SVIOperStatus oper_status() const; + void set_oper_status(::opi_api::network::evpn_gw::v1alpha1::SVIOperStatus value); + private: + ::opi_api::network::evpn_gw::v1alpha1::SVIOperStatus _internal_oper_status() const; + void _internal_set_oper_status(::opi_api::network::evpn_gw::v1alpha1::SVIOperStatus value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.SviStatus) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int oper_status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateSviRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) */ { + public: + inline CreateSviRequest() : CreateSviRequest(nullptr) {} + ~CreateSviRequest() override; + explicit constexpr CreateSviRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CreateSviRequest(const CreateSviRequest& from); + CreateSviRequest(CreateSviRequest&& from) noexcept + : CreateSviRequest() { + *this = ::std::move(from); + } + + inline CreateSviRequest& operator=(const CreateSviRequest& from) { + CopyFrom(from); + return *this; + } + inline CreateSviRequest& operator=(CreateSviRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const CreateSviRequest& default_instance() { + return *internal_default_instance(); + } + static inline const CreateSviRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateSviRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(CreateSviRequest& a, CreateSviRequest& b) { + a.Swap(&b); + } + inline void Swap(CreateSviRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CreateSviRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + CreateSviRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const CreateSviRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const CreateSviRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateSviRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.CreateSviRequest"; + } + protected: + explicit CreateSviRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kSviIdFieldNumber = 1, + kSviFieldNumber = 2, + }; + // string svi_id = 1; + void clear_svi_id(); + const std::string& svi_id() const; + template + void set_svi_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_svi_id(); + PROTOBUF_NODISCARD std::string* release_svi_id(); + void set_allocated_svi_id(std::string* svi_id); + private: + const std::string& _internal_svi_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_svi_id(const std::string& value); + std::string* _internal_mutable_svi_id(); + public: + + // .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + bool has_svi() const; + private: + bool _internal_has_svi() const; + public: + void clear_svi(); + const ::opi_api::network::evpn_gw::v1alpha1::Svi& svi() const; + PROTOBUF_NODISCARD ::opi_api::network::evpn_gw::v1alpha1::Svi* release_svi(); + ::opi_api::network::evpn_gw::v1alpha1::Svi* mutable_svi(); + void set_allocated_svi(::opi_api::network::evpn_gw::v1alpha1::Svi* svi); + private: + const ::opi_api::network::evpn_gw::v1alpha1::Svi& _internal_svi() const; + ::opi_api::network::evpn_gw::v1alpha1::Svi* _internal_mutable_svi(); + public: + void unsafe_arena_set_allocated_svi( + ::opi_api::network::evpn_gw::v1alpha1::Svi* svi); + ::opi_api::network::evpn_gw::v1alpha1::Svi* unsafe_arena_release_svi(); + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr svi_id_; + ::opi_api::network::evpn_gw::v1alpha1::Svi* svi_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class ListSvisRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) */ { + public: + inline ListSvisRequest() : ListSvisRequest(nullptr) {} + ~ListSvisRequest() override; + explicit constexpr ListSvisRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListSvisRequest(const ListSvisRequest& from); + ListSvisRequest(ListSvisRequest&& from) noexcept + : ListSvisRequest() { + *this = ::std::move(from); + } + + inline ListSvisRequest& operator=(const ListSvisRequest& from) { + CopyFrom(from); + return *this; + } + inline ListSvisRequest& operator=(ListSvisRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListSvisRequest& default_instance() { + return *internal_default_instance(); + } + static inline const ListSvisRequest* internal_default_instance() { + return reinterpret_cast( + &_ListSvisRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(ListSvisRequest& a, ListSvisRequest& b) { + a.Swap(&b); + } + inline void Swap(ListSvisRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListSvisRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListSvisRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListSvisRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListSvisRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListSvisRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.ListSvisRequest"; + } + protected: + explicit ListSvisRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPageTokenFieldNumber = 2, + kPageSizeFieldNumber = 1, + }; + // string page_token = 2; + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // int32 page_size = 1; + void clear_page_size(); + int32_t page_size() const; + void set_page_size(int32_t value); + private: + int32_t _internal_page_size() const; + void _internal_set_page_size(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + int32_t page_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class ListSvisResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) */ { + public: + inline ListSvisResponse() : ListSvisResponse(nullptr) {} + ~ListSvisResponse() override; + explicit constexpr ListSvisResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListSvisResponse(const ListSvisResponse& from); + ListSvisResponse(ListSvisResponse&& from) noexcept + : ListSvisResponse() { + *this = ::std::move(from); + } + + inline ListSvisResponse& operator=(const ListSvisResponse& from) { + CopyFrom(from); + return *this; + } + inline ListSvisResponse& operator=(ListSvisResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ListSvisResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ListSvisResponse* internal_default_instance() { + return reinterpret_cast( + &_ListSvisResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(ListSvisResponse& a, ListSvisResponse& b) { + a.Swap(&b); + } + inline void Swap(ListSvisResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListSvisResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListSvisResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListSvisResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ListSvisResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListSvisResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.ListSvisResponse"; + } + protected: + explicit ListSvisResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kSvisFieldNumber = 1, + kNextPageTokenFieldNumber = 2, + }; + // repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + int svis_size() const; + private: + int _internal_svis_size() const; + public: + void clear_svis(); + ::opi_api::network::evpn_gw::v1alpha1::Svi* mutable_svis(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::Svi >* + mutable_svis(); + private: + const ::opi_api::network::evpn_gw::v1alpha1::Svi& _internal_svis(int index) const; + ::opi_api::network::evpn_gw::v1alpha1::Svi* _internal_add_svis(); + public: + const ::opi_api::network::evpn_gw::v1alpha1::Svi& svis(int index) const; + ::opi_api::network::evpn_gw::v1alpha1::Svi* add_svis(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::Svi >& + svis() const; + + // string next_page_token = 2; + void clear_next_page_token(); + const std::string& next_page_token() const; + template + void set_next_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_next_page_token(); + PROTOBUF_NODISCARD std::string* release_next_page_token(); + void set_allocated_next_page_token(std::string* next_page_token); + private: + const std::string& _internal_next_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token(const std::string& value); + std::string* _internal_mutable_next_page_token(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::Svi > svis_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class GetSviRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) */ { + public: + inline GetSviRequest() : GetSviRequest(nullptr) {} + ~GetSviRequest() override; + explicit constexpr GetSviRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetSviRequest(const GetSviRequest& from); + GetSviRequest(GetSviRequest&& from) noexcept + : GetSviRequest() { + *this = ::std::move(from); + } + + inline GetSviRequest& operator=(const GetSviRequest& from) { + CopyFrom(from); + return *this; + } + inline GetSviRequest& operator=(GetSviRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetSviRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetSviRequest* internal_default_instance() { + return reinterpret_cast( + &_GetSviRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(GetSviRequest& a, GetSviRequest& b) { + a.Swap(&b); + } + inline void Swap(GetSviRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetSviRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetSviRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetSviRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetSviRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetSviRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.GetSviRequest"; + } + protected: + explicit GetSviRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + }; + // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteSviRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) */ { + public: + inline DeleteSviRequest() : DeleteSviRequest(nullptr) {} + ~DeleteSviRequest() override; + explicit constexpr DeleteSviRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeleteSviRequest(const DeleteSviRequest& from); + DeleteSviRequest(DeleteSviRequest&& from) noexcept + : DeleteSviRequest() { + *this = ::std::move(from); + } + + inline DeleteSviRequest& operator=(const DeleteSviRequest& from) { + CopyFrom(from); + return *this; + } + inline DeleteSviRequest& operator=(DeleteSviRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DeleteSviRequest& default_instance() { + return *internal_default_instance(); + } + static inline const DeleteSviRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteSviRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(DeleteSviRequest& a, DeleteSviRequest& b) { + a.Swap(&b); + } + inline void Swap(DeleteSviRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeleteSviRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DeleteSviRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DeleteSviRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const DeleteSviRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteSviRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest"; + } + protected: + explicit DeleteSviRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + }; + // string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Vrf + +// string name = 1; +inline void Vrf::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& Vrf::name() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.Vrf.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Vrf::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.Vrf.name) +} +inline std::string* Vrf::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.Vrf.name) + return _s; +} +inline const std::string& Vrf::_internal_name() const { + return name_.Get(); +} +inline void Vrf::_internal_set_name(const std::string& value) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Vrf::_internal_mutable_name() { + + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Vrf::release_name() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.Vrf.name) + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Vrf::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.Vrf.name) +} + +// .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; +inline bool Vrf::_internal_has_spec() const { + return this != internal_default_instance() && spec_ != nullptr; +} +inline bool Vrf::has_spec() const { + return _internal_has_spec(); +} +inline void Vrf::clear_spec() { + if (GetArenaForAllocation() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::VrfSpec& Vrf::_internal_spec() const { + const ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* p = spec_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::evpn_gw::v1alpha1::_VrfSpec_default_instance_); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::VrfSpec& Vrf::spec() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.Vrf.spec) + return _internal_spec(); +} +inline void Vrf::unsafe_arena_set_allocated_spec( + ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* spec) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(spec_); + } + spec_ = spec; + if (spec) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.Vrf.spec) +} +inline ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* Vrf::release_spec() { + + ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* temp = spec_; + spec_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* Vrf::unsafe_arena_release_spec() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.Vrf.spec) + + ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* temp = spec_; + spec_ = nullptr; + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* Vrf::_internal_mutable_spec() { + + if (spec_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::VrfSpec>(GetArenaForAllocation()); + spec_ = p; + } + return spec_; +} +inline ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* Vrf::mutable_spec() { + ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* _msg = _internal_mutable_spec(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.Vrf.spec) + return _msg; +} +inline void Vrf::set_allocated_spec(::opi_api::network::evpn_gw::v1alpha1::VrfSpec* spec) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete spec_; + } + if (spec) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::network::evpn_gw::v1alpha1::VrfSpec>::GetOwningArena(spec); + if (message_arena != submessage_arena) { + spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.Vrf.spec) +} + +// .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; +inline bool Vrf::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline bool Vrf::has_status() const { + return _internal_has_status(); +} +inline void Vrf::clear_status() { + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::VrfStatus& Vrf::_internal_status() const { + const ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::evpn_gw::v1alpha1::_VrfStatus_default_instance_); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::VrfStatus& Vrf::status() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.Vrf.status) + return _internal_status(); +} +inline void Vrf::unsafe_arena_set_allocated_status( + ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.Vrf.status) +} +inline ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* Vrf::release_status() { + + ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* temp = status_; + status_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* Vrf::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.Vrf.status) + + ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* temp = status_; + status_ = nullptr; + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* Vrf::_internal_mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::VrfStatus>(GetArenaForAllocation()); + status_ = p; + } + return status_; +} +inline ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* Vrf::mutable_status() { + ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.Vrf.status) + return _msg; +} +inline void Vrf::set_allocated_status(::opi_api::network::evpn_gw::v1alpha1::VrfStatus* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete status_; + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::network::evpn_gw::v1alpha1::VrfStatus>::GetOwningArena(status); + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.Vrf.status) +} + +// ------------------------------------------------------------------- + +// VrfSpec + +// uint32 vni = 1; +inline void VrfSpec::clear_vni() { + vni_ = 0u; +} +inline uint32_t VrfSpec::_internal_vni() const { + return vni_; +} +inline uint32_t VrfSpec::vni() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.VrfSpec.vni) + return _internal_vni(); +} +inline void VrfSpec::_internal_set_vni(uint32_t value) { + + vni_ = value; +} +inline void VrfSpec::set_vni(uint32_t value) { + _internal_set_vni(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.VrfSpec.vni) +} + +// .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; +inline bool VrfSpec::_internal_has_loopback_ip_prefix() const { + return this != internal_default_instance() && loopback_ip_prefix_ != nullptr; +} +inline bool VrfSpec::has_loopback_ip_prefix() const { + return _internal_has_loopback_ip_prefix(); +} +inline const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& VrfSpec::_internal_loopback_ip_prefix() const { + const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* p = loopback_ip_prefix_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::opinetcommon::v1alpha1::_IPPrefix_default_instance_); +} +inline const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& VrfSpec::loopback_ip_prefix() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.VrfSpec.loopback_ip_prefix) + return _internal_loopback_ip_prefix(); +} +inline void VrfSpec::unsafe_arena_set_allocated_loopback_ip_prefix( + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* loopback_ip_prefix) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(loopback_ip_prefix_); + } + loopback_ip_prefix_ = loopback_ip_prefix; + if (loopback_ip_prefix) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.VrfSpec.loopback_ip_prefix) +} +inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* VrfSpec::release_loopback_ip_prefix() { + + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* temp = loopback_ip_prefix_; + loopback_ip_prefix_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* VrfSpec::unsafe_arena_release_loopback_ip_prefix() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.VrfSpec.loopback_ip_prefix) + + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* temp = loopback_ip_prefix_; + loopback_ip_prefix_ = nullptr; + return temp; +} +inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* VrfSpec::_internal_mutable_loopback_ip_prefix() { + + if (loopback_ip_prefix_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::opinetcommon::v1alpha1::IPPrefix>(GetArenaForAllocation()); + loopback_ip_prefix_ = p; + } + return loopback_ip_prefix_; +} +inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* VrfSpec::mutable_loopback_ip_prefix() { + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* _msg = _internal_mutable_loopback_ip_prefix(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.VrfSpec.loopback_ip_prefix) + return _msg; +} +inline void VrfSpec::set_allocated_loopback_ip_prefix(::opi_api::network::opinetcommon::v1alpha1::IPPrefix* loopback_ip_prefix) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(loopback_ip_prefix_); + } + if (loopback_ip_prefix) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(loopback_ip_prefix)); + if (message_arena != submessage_arena) { + loopback_ip_prefix = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, loopback_ip_prefix, submessage_arena); + } + + } else { + + } + loopback_ip_prefix_ = loopback_ip_prefix; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.VrfSpec.loopback_ip_prefix) +} + +// .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; +inline bool VrfSpec::_internal_has_vtep_ip_prefix() const { + return this != internal_default_instance() && vtep_ip_prefix_ != nullptr; +} +inline bool VrfSpec::has_vtep_ip_prefix() const { + return _internal_has_vtep_ip_prefix(); +} +inline const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& VrfSpec::_internal_vtep_ip_prefix() const { + const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* p = vtep_ip_prefix_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::opinetcommon::v1alpha1::_IPPrefix_default_instance_); +} +inline const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& VrfSpec::vtep_ip_prefix() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.VrfSpec.vtep_ip_prefix) + return _internal_vtep_ip_prefix(); +} +inline void VrfSpec::unsafe_arena_set_allocated_vtep_ip_prefix( + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* vtep_ip_prefix) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vtep_ip_prefix_); + } + vtep_ip_prefix_ = vtep_ip_prefix; + if (vtep_ip_prefix) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.VrfSpec.vtep_ip_prefix) +} +inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* VrfSpec::release_vtep_ip_prefix() { + + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* temp = vtep_ip_prefix_; + vtep_ip_prefix_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* VrfSpec::unsafe_arena_release_vtep_ip_prefix() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.VrfSpec.vtep_ip_prefix) + + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* temp = vtep_ip_prefix_; + vtep_ip_prefix_ = nullptr; + return temp; +} +inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* VrfSpec::_internal_mutable_vtep_ip_prefix() { + + if (vtep_ip_prefix_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::opinetcommon::v1alpha1::IPPrefix>(GetArenaForAllocation()); + vtep_ip_prefix_ = p; + } + return vtep_ip_prefix_; +} +inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* VrfSpec::mutable_vtep_ip_prefix() { + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* _msg = _internal_mutable_vtep_ip_prefix(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.VrfSpec.vtep_ip_prefix) + return _msg; +} +inline void VrfSpec::set_allocated_vtep_ip_prefix(::opi_api::network::opinetcommon::v1alpha1::IPPrefix* vtep_ip_prefix) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(vtep_ip_prefix_); + } + if (vtep_ip_prefix) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< + ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vtep_ip_prefix)); + if (message_arena != submessage_arena) { + vtep_ip_prefix = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vtep_ip_prefix, submessage_arena); + } + + } else { + + } + vtep_ip_prefix_ = vtep_ip_prefix; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.VrfSpec.vtep_ip_prefix) +} + +// ------------------------------------------------------------------- + +// VrfStatus + +// uint32 routing_table = 1; +inline void VrfStatus::clear_routing_table() { + routing_table_ = 0u; +} +inline uint32_t VrfStatus::_internal_routing_table() const { + return routing_table_; +} +inline uint32_t VrfStatus::routing_table() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.VrfStatus.routing_table) + return _internal_routing_table(); +} +inline void VrfStatus::_internal_set_routing_table(uint32_t value) { + + routing_table_ = value; +} +inline void VrfStatus::set_routing_table(uint32_t value) { + _internal_set_routing_table(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.VrfStatus.routing_table) +} + +// uint32 local_as = 2; +inline void VrfStatus::clear_local_as() { + local_as_ = 0u; +} +inline uint32_t VrfStatus::_internal_local_as() const { + return local_as_; +} +inline uint32_t VrfStatus::local_as() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.VrfStatus.local_as) + return _internal_local_as(); +} +inline void VrfStatus::_internal_set_local_as(uint32_t value) { + + local_as_ = value; +} +inline void VrfStatus::set_local_as(uint32_t value) { + _internal_set_local_as(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.VrfStatus.local_as) +} + +// string rd = 3; +inline void VrfStatus::clear_rd() { + rd_.ClearToEmpty(); +} +inline const std::string& VrfStatus::rd() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rd) + return _internal_rd(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void VrfStatus::set_rd(ArgT0&& arg0, ArgT... args) { + + rd_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rd) +} +inline std::string* VrfStatus::mutable_rd() { + std::string* _s = _internal_mutable_rd(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rd) + return _s; +} +inline const std::string& VrfStatus::_internal_rd() const { + return rd_.Get(); +} +inline void VrfStatus::_internal_set_rd(const std::string& value) { + + rd_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* VrfStatus::_internal_mutable_rd() { + + return rd_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* VrfStatus::release_rd() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rd) + return rd_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void VrfStatus::set_allocated_rd(std::string* rd) { + if (rd != nullptr) { + + } else { + + } + rd_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), rd, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (rd_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + rd_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rd) +} + +// bytes rmac = 4; +inline void VrfStatus::clear_rmac() { + rmac_.ClearToEmpty(); +} +inline const std::string& VrfStatus::rmac() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rmac) + return _internal_rmac(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void VrfStatus::set_rmac(ArgT0&& arg0, ArgT... args) { + + rmac_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rmac) +} +inline std::string* VrfStatus::mutable_rmac() { + std::string* _s = _internal_mutable_rmac(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rmac) + return _s; +} +inline const std::string& VrfStatus::_internal_rmac() const { + return rmac_.Get(); +} +inline void VrfStatus::_internal_set_rmac(const std::string& value) { + + rmac_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* VrfStatus::_internal_mutable_rmac() { + + return rmac_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* VrfStatus::release_rmac() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rmac) + return rmac_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void VrfStatus::set_allocated_rmac(std::string* rmac) { + if (rmac != nullptr) { + + } else { + + } + rmac_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), rmac, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (rmac_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + rmac_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rmac) +} + +// repeated string import_rts = 5; +inline int VrfStatus::_internal_import_rts_size() const { + return import_rts_.size(); +} +inline int VrfStatus::import_rts_size() const { + return _internal_import_rts_size(); +} +inline void VrfStatus::clear_import_rts() { + import_rts_.Clear(); +} +inline std::string* VrfStatus::add_import_rts() { + std::string* _s = _internal_add_import_rts(); + // @@protoc_insertion_point(field_add_mutable:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) + return _s; +} +inline const std::string& VrfStatus::_internal_import_rts(int index) const { + return import_rts_.Get(index); +} +inline const std::string& VrfStatus::import_rts(int index) const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) + return _internal_import_rts(index); +} +inline std::string* VrfStatus::mutable_import_rts(int index) { + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) + return import_rts_.Mutable(index); +} +inline void VrfStatus::set_import_rts(int index, const std::string& value) { + import_rts_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) +} +inline void VrfStatus::set_import_rts(int index, std::string&& value) { + import_rts_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) +} +inline void VrfStatus::set_import_rts(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + import_rts_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) +} +inline void VrfStatus::set_import_rts(int index, const char* value, size_t size) { + import_rts_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) +} +inline std::string* VrfStatus::_internal_add_import_rts() { + return import_rts_.Add(); +} +inline void VrfStatus::add_import_rts(const std::string& value) { + import_rts_.Add()->assign(value); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) +} +inline void VrfStatus::add_import_rts(std::string&& value) { + import_rts_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) +} +inline void VrfStatus::add_import_rts(const char* value) { + GOOGLE_DCHECK(value != nullptr); + import_rts_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) +} +inline void VrfStatus::add_import_rts(const char* value, size_t size) { + import_rts_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +VrfStatus::import_rts() const { + // @@protoc_insertion_point(field_list:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) + return import_rts_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +VrfStatus::mutable_import_rts() { + // @@protoc_insertion_point(field_mutable_list:opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts) + return &import_rts_; +} + +// repeated string export_rts = 6; +inline int VrfStatus::_internal_export_rts_size() const { + return export_rts_.size(); +} +inline int VrfStatus::export_rts_size() const { + return _internal_export_rts_size(); +} +inline void VrfStatus::clear_export_rts() { + export_rts_.Clear(); +} +inline std::string* VrfStatus::add_export_rts() { + std::string* _s = _internal_add_export_rts(); + // @@protoc_insertion_point(field_add_mutable:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) + return _s; +} +inline const std::string& VrfStatus::_internal_export_rts(int index) const { + return export_rts_.Get(index); +} +inline const std::string& VrfStatus::export_rts(int index) const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) + return _internal_export_rts(index); +} +inline std::string* VrfStatus::mutable_export_rts(int index) { + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) + return export_rts_.Mutable(index); +} +inline void VrfStatus::set_export_rts(int index, const std::string& value) { + export_rts_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) +} +inline void VrfStatus::set_export_rts(int index, std::string&& value) { + export_rts_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) +} +inline void VrfStatus::set_export_rts(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + export_rts_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) +} +inline void VrfStatus::set_export_rts(int index, const char* value, size_t size) { + export_rts_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) +} +inline std::string* VrfStatus::_internal_add_export_rts() { + return export_rts_.Add(); +} +inline void VrfStatus::add_export_rts(const std::string& value) { + export_rts_.Add()->assign(value); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) +} +inline void VrfStatus::add_export_rts(std::string&& value) { + export_rts_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) +} +inline void VrfStatus::add_export_rts(const char* value) { + GOOGLE_DCHECK(value != nullptr); + export_rts_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) +} +inline void VrfStatus::add_export_rts(const char* value, size_t size) { + export_rts_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +VrfStatus::export_rts() const { + // @@protoc_insertion_point(field_list:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) + return export_rts_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +VrfStatus::mutable_export_rts() { + // @@protoc_insertion_point(field_mutable_list:opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts) + return &export_rts_; +} + +// repeated string logical_bridges = 7; +inline int VrfStatus::_internal_logical_bridges_size() const { + return logical_bridges_.size(); +} +inline int VrfStatus::logical_bridges_size() const { + return _internal_logical_bridges_size(); +} +inline void VrfStatus::clear_logical_bridges() { + logical_bridges_.Clear(); +} +inline std::string* VrfStatus::add_logical_bridges() { + std::string* _s = _internal_add_logical_bridges(); + // @@protoc_insertion_point(field_add_mutable:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) + return _s; +} +inline const std::string& VrfStatus::_internal_logical_bridges(int index) const { + return logical_bridges_.Get(index); +} +inline const std::string& VrfStatus::logical_bridges(int index) const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) + return _internal_logical_bridges(index); +} +inline std::string* VrfStatus::mutable_logical_bridges(int index) { + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) + return logical_bridges_.Mutable(index); +} +inline void VrfStatus::set_logical_bridges(int index, const std::string& value) { + logical_bridges_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) +} +inline void VrfStatus::set_logical_bridges(int index, std::string&& value) { + logical_bridges_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) +} +inline void VrfStatus::set_logical_bridges(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + logical_bridges_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) +} +inline void VrfStatus::set_logical_bridges(int index, const char* value, size_t size) { + logical_bridges_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) +} +inline std::string* VrfStatus::_internal_add_logical_bridges() { + return logical_bridges_.Add(); +} +inline void VrfStatus::add_logical_bridges(const std::string& value) { + logical_bridges_.Add()->assign(value); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) +} +inline void VrfStatus::add_logical_bridges(std::string&& value) { + logical_bridges_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) +} +inline void VrfStatus::add_logical_bridges(const char* value) { + GOOGLE_DCHECK(value != nullptr); + logical_bridges_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) +} +inline void VrfStatus::add_logical_bridges(const char* value, size_t size) { + logical_bridges_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +VrfStatus::logical_bridges() const { + // @@protoc_insertion_point(field_list:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) + return logical_bridges_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +VrfStatus::mutable_logical_bridges() { + // @@protoc_insertion_point(field_mutable_list:opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges) + return &logical_bridges_; +} + +// .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; +inline void VrfStatus::clear_oper_status() { + oper_status_ = 0; +} +inline ::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus VrfStatus::_internal_oper_status() const { + return static_cast< ::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus >(oper_status_); +} +inline ::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus VrfStatus::oper_status() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.VrfStatus.oper_status) + return _internal_oper_status(); +} +inline void VrfStatus::_internal_set_oper_status(::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus value) { + + oper_status_ = value; +} +inline void VrfStatus::set_oper_status(::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus value) { + _internal_set_oper_status(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.VrfStatus.oper_status) +} + +// ------------------------------------------------------------------- + +// CreateVrfRequest + +// string vrf_id = 1; +inline void CreateVrfRequest::clear_vrf_id() { + vrf_id_.ClearToEmpty(); +} +inline const std::string& CreateVrfRequest::vrf_id() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf_id) + return _internal_vrf_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateVrfRequest::set_vrf_id(ArgT0&& arg0, ArgT... args) { + + vrf_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf_id) +} +inline std::string* CreateVrfRequest::mutable_vrf_id() { + std::string* _s = _internal_mutable_vrf_id(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf_id) + return _s; +} +inline const std::string& CreateVrfRequest::_internal_vrf_id() const { + return vrf_id_.Get(); +} +inline void CreateVrfRequest::_internal_set_vrf_id(const std::string& value) { + + vrf_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* CreateVrfRequest::_internal_mutable_vrf_id() { + + return vrf_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* CreateVrfRequest::release_vrf_id() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf_id) + return vrf_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void CreateVrfRequest::set_allocated_vrf_id(std::string* vrf_id) { + if (vrf_id != nullptr) { + + } else { + + } + vrf_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vrf_id, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (vrf_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + vrf_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf_id) +} + +// .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; +inline bool CreateVrfRequest::_internal_has_vrf() const { + return this != internal_default_instance() && vrf_ != nullptr; +} +inline bool CreateVrfRequest::has_vrf() const { + return _internal_has_vrf(); +} +inline void CreateVrfRequest::clear_vrf() { + if (GetArenaForAllocation() == nullptr && vrf_ != nullptr) { + delete vrf_; + } + vrf_ = nullptr; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::Vrf& CreateVrfRequest::_internal_vrf() const { + const ::opi_api::network::evpn_gw::v1alpha1::Vrf* p = vrf_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::evpn_gw::v1alpha1::_Vrf_default_instance_); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::Vrf& CreateVrfRequest::vrf() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf) + return _internal_vrf(); +} +inline void CreateVrfRequest::unsafe_arena_set_allocated_vrf( + ::opi_api::network::evpn_gw::v1alpha1::Vrf* vrf) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vrf_); + } + vrf_ = vrf; + if (vrf) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf) +} +inline ::opi_api::network::evpn_gw::v1alpha1::Vrf* CreateVrfRequest::release_vrf() { + + ::opi_api::network::evpn_gw::v1alpha1::Vrf* temp = vrf_; + vrf_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::Vrf* CreateVrfRequest::unsafe_arena_release_vrf() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf) + + ::opi_api::network::evpn_gw::v1alpha1::Vrf* temp = vrf_; + vrf_ = nullptr; + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::Vrf* CreateVrfRequest::_internal_mutable_vrf() { + + if (vrf_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::Vrf>(GetArenaForAllocation()); + vrf_ = p; + } + return vrf_; +} +inline ::opi_api::network::evpn_gw::v1alpha1::Vrf* CreateVrfRequest::mutable_vrf() { + ::opi_api::network::evpn_gw::v1alpha1::Vrf* _msg = _internal_mutable_vrf(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf) + return _msg; +} +inline void CreateVrfRequest::set_allocated_vrf(::opi_api::network::evpn_gw::v1alpha1::Vrf* vrf) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete vrf_; + } + if (vrf) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::network::evpn_gw::v1alpha1::Vrf>::GetOwningArena(vrf); + if (message_arena != submessage_arena) { + vrf = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vrf, submessage_arena); + } + + } else { + + } + vrf_ = vrf; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf) +} + +// ------------------------------------------------------------------- + +// ListVrfsRequest + +// int32 page_size = 1; +inline void ListVrfsRequest::clear_page_size() { + page_size_ = 0; +} +inline int32_t ListVrfsRequest::_internal_page_size() const { + return page_size_; +} +inline int32_t ListVrfsRequest::page_size() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.page_size) + return _internal_page_size(); +} +inline void ListVrfsRequest::_internal_set_page_size(int32_t value) { + + page_size_ = value; +} +inline void ListVrfsRequest::set_page_size(int32_t value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.page_size) +} + +// string page_token = 2; +inline void ListVrfsRequest::clear_page_token() { + page_token_.ClearToEmpty(); +} +inline const std::string& ListVrfsRequest::page_token() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.page_token) + return _internal_page_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListVrfsRequest::set_page_token(ArgT0&& arg0, ArgT... args) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.page_token) +} +inline std::string* ListVrfsRequest::mutable_page_token() { + std::string* _s = _internal_mutable_page_token(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.page_token) + return _s; +} +inline const std::string& ListVrfsRequest::_internal_page_token() const { + return page_token_.Get(); +} +inline void ListVrfsRequest::_internal_set_page_token(const std::string& value) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ListVrfsRequest::_internal_mutable_page_token() { + + return page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ListVrfsRequest::release_page_token() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.page_token) + return page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ListVrfsRequest::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + + } else { + + } + page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.page_token) +} + +// ------------------------------------------------------------------- + +// ListVrfsResponse + +// repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; +inline int ListVrfsResponse::_internal_vrfs_size() const { + return vrfs_.size(); +} +inline int ListVrfsResponse::vrfs_size() const { + return _internal_vrfs_size(); +} +inline void ListVrfsResponse::clear_vrfs() { + vrfs_.Clear(); +} +inline ::opi_api::network::evpn_gw::v1alpha1::Vrf* ListVrfsResponse::mutable_vrfs(int index) { + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.vrfs) + return vrfs_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::Vrf >* +ListVrfsResponse::mutable_vrfs() { + // @@protoc_insertion_point(field_mutable_list:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.vrfs) + return &vrfs_; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::Vrf& ListVrfsResponse::_internal_vrfs(int index) const { + return vrfs_.Get(index); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::Vrf& ListVrfsResponse::vrfs(int index) const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.vrfs) + return _internal_vrfs(index); +} +inline ::opi_api::network::evpn_gw::v1alpha1::Vrf* ListVrfsResponse::_internal_add_vrfs() { + return vrfs_.Add(); +} +inline ::opi_api::network::evpn_gw::v1alpha1::Vrf* ListVrfsResponse::add_vrfs() { + ::opi_api::network::evpn_gw::v1alpha1::Vrf* _add = _internal_add_vrfs(); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.vrfs) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::Vrf >& +ListVrfsResponse::vrfs() const { + // @@protoc_insertion_point(field_list:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.vrfs) + return vrfs_; +} + +// string next_page_token = 2; +inline void ListVrfsResponse::clear_next_page_token() { + next_page_token_.ClearToEmpty(); +} +inline const std::string& ListVrfsResponse::next_page_token() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.next_page_token) + return _internal_next_page_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListVrfsResponse::set_next_page_token(ArgT0&& arg0, ArgT... args) { + + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.next_page_token) +} +inline std::string* ListVrfsResponse::mutable_next_page_token() { + std::string* _s = _internal_mutable_next_page_token(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.next_page_token) + return _s; +} +inline const std::string& ListVrfsResponse::_internal_next_page_token() const { + return next_page_token_.Get(); +} +inline void ListVrfsResponse::_internal_set_next_page_token(const std::string& value) { + + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ListVrfsResponse::_internal_mutable_next_page_token() { + + return next_page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ListVrfsResponse::release_next_page_token() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.next_page_token) + return next_page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ListVrfsResponse::set_allocated_next_page_token(std::string* next_page_token) { + if (next_page_token != nullptr) { + + } else { + + } + next_page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (next_page_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + next_page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.next_page_token) +} + +// ------------------------------------------------------------------- + +// GetVrfRequest + +// string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { +inline void GetVrfRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& GetVrfRequest::name() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetVrfRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.name) +} +inline std::string* GetVrfRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.name) + return _s; +} +inline const std::string& GetVrfRequest::_internal_name() const { + return name_.Get(); +} +inline void GetVrfRequest::_internal_set_name(const std::string& value) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* GetVrfRequest::_internal_mutable_name() { + + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* GetVrfRequest::release_name() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.name) + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void GetVrfRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.name) +} + +// ------------------------------------------------------------------- + +// DeleteVrfRequest + +// string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { +inline void DeleteVrfRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& DeleteVrfRequest::name() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteVrfRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.name) +} +inline std::string* DeleteVrfRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.name) + return _s; +} +inline const std::string& DeleteVrfRequest::_internal_name() const { + return name_.Get(); +} +inline void DeleteVrfRequest::_internal_set_name(const std::string& value) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* DeleteVrfRequest::_internal_mutable_name() { + + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* DeleteVrfRequest::release_name() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.name) + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void DeleteVrfRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.name) +} + +// ------------------------------------------------------------------- + +// Svi + +// string name = 1; +inline void Svi::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& Svi::name() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.Svi.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Svi::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.Svi.name) +} +inline std::string* Svi::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.Svi.name) + return _s; +} +inline const std::string& Svi::_internal_name() const { + return name_.Get(); +} +inline void Svi::_internal_set_name(const std::string& value) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* Svi::_internal_mutable_name() { + + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* Svi::release_name() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.Svi.name) + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void Svi::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.Svi.name) +} + +// .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; +inline bool Svi::_internal_has_spec() const { + return this != internal_default_instance() && spec_ != nullptr; +} +inline bool Svi::has_spec() const { + return _internal_has_spec(); +} +inline void Svi::clear_spec() { + if (GetArenaForAllocation() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::SviSpec& Svi::_internal_spec() const { + const ::opi_api::network::evpn_gw::v1alpha1::SviSpec* p = spec_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::evpn_gw::v1alpha1::_SviSpec_default_instance_); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::SviSpec& Svi::spec() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.Svi.spec) + return _internal_spec(); +} +inline void Svi::unsafe_arena_set_allocated_spec( + ::opi_api::network::evpn_gw::v1alpha1::SviSpec* spec) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(spec_); + } + spec_ = spec; + if (spec) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.Svi.spec) +} +inline ::opi_api::network::evpn_gw::v1alpha1::SviSpec* Svi::release_spec() { + + ::opi_api::network::evpn_gw::v1alpha1::SviSpec* temp = spec_; + spec_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::SviSpec* Svi::unsafe_arena_release_spec() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.Svi.spec) + + ::opi_api::network::evpn_gw::v1alpha1::SviSpec* temp = spec_; + spec_ = nullptr; + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::SviSpec* Svi::_internal_mutable_spec() { + + if (spec_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::SviSpec>(GetArenaForAllocation()); + spec_ = p; + } + return spec_; +} +inline ::opi_api::network::evpn_gw::v1alpha1::SviSpec* Svi::mutable_spec() { + ::opi_api::network::evpn_gw::v1alpha1::SviSpec* _msg = _internal_mutable_spec(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.Svi.spec) + return _msg; +} +inline void Svi::set_allocated_spec(::opi_api::network::evpn_gw::v1alpha1::SviSpec* spec) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete spec_; + } + if (spec) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::network::evpn_gw::v1alpha1::SviSpec>::GetOwningArena(spec); + if (message_arena != submessage_arena) { + spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.Svi.spec) +} + +// .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; +inline bool Svi::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline bool Svi::has_status() const { + return _internal_has_status(); +} +inline void Svi::clear_status() { + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::SviStatus& Svi::_internal_status() const { + const ::opi_api::network::evpn_gw::v1alpha1::SviStatus* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::evpn_gw::v1alpha1::_SviStatus_default_instance_); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::SviStatus& Svi::status() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.Svi.status) + return _internal_status(); +} +inline void Svi::unsafe_arena_set_allocated_status( + ::opi_api::network::evpn_gw::v1alpha1::SviStatus* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.Svi.status) +} +inline ::opi_api::network::evpn_gw::v1alpha1::SviStatus* Svi::release_status() { + + ::opi_api::network::evpn_gw::v1alpha1::SviStatus* temp = status_; + status_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::SviStatus* Svi::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.Svi.status) + + ::opi_api::network::evpn_gw::v1alpha1::SviStatus* temp = status_; + status_ = nullptr; + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::SviStatus* Svi::_internal_mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::SviStatus>(GetArenaForAllocation()); + status_ = p; + } + return status_; +} +inline ::opi_api::network::evpn_gw::v1alpha1::SviStatus* Svi::mutable_status() { + ::opi_api::network::evpn_gw::v1alpha1::SviStatus* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.Svi.status) + return _msg; +} +inline void Svi::set_allocated_status(::opi_api::network::evpn_gw::v1alpha1::SviStatus* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete status_; + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::network::evpn_gw::v1alpha1::SviStatus>::GetOwningArena(status); + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.Svi.status) +} + +// ------------------------------------------------------------------- + +// SviSpec + +// string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { +inline void SviSpec::clear_vrf() { + vrf_.ClearToEmpty(); +} +inline const std::string& SviSpec::vrf() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.SviSpec.vrf) + return _internal_vrf(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SviSpec::set_vrf(ArgT0&& arg0, ArgT... args) { + + vrf_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.SviSpec.vrf) +} +inline std::string* SviSpec::mutable_vrf() { + std::string* _s = _internal_mutable_vrf(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.SviSpec.vrf) + return _s; +} +inline const std::string& SviSpec::_internal_vrf() const { + return vrf_.Get(); +} +inline void SviSpec::_internal_set_vrf(const std::string& value) { + + vrf_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* SviSpec::_internal_mutable_vrf() { + + return vrf_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* SviSpec::release_vrf() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.SviSpec.vrf) + return vrf_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void SviSpec::set_allocated_vrf(std::string* vrf) { + if (vrf != nullptr) { + + } else { + + } + vrf_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vrf, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (vrf_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + vrf_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.SviSpec.vrf) +} + +// string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { +inline void SviSpec::clear_logical_bridge() { + logical_bridge_.ClearToEmpty(); +} +inline const std::string& SviSpec::logical_bridge() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.SviSpec.logical_bridge) + return _internal_logical_bridge(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SviSpec::set_logical_bridge(ArgT0&& arg0, ArgT... args) { + + logical_bridge_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.SviSpec.logical_bridge) +} +inline std::string* SviSpec::mutable_logical_bridge() { + std::string* _s = _internal_mutable_logical_bridge(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.SviSpec.logical_bridge) + return _s; +} +inline const std::string& SviSpec::_internal_logical_bridge() const { + return logical_bridge_.Get(); +} +inline void SviSpec::_internal_set_logical_bridge(const std::string& value) { + + logical_bridge_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* SviSpec::_internal_mutable_logical_bridge() { + + return logical_bridge_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* SviSpec::release_logical_bridge() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.SviSpec.logical_bridge) + return logical_bridge_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void SviSpec::set_allocated_logical_bridge(std::string* logical_bridge) { + if (logical_bridge != nullptr) { + + } else { + + } + logical_bridge_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), logical_bridge, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (logical_bridge_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + logical_bridge_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.SviSpec.logical_bridge) +} + +// bytes mac_address = 3 [(.google.api.field_behavior) = REQUIRED]; +inline void SviSpec::clear_mac_address() { + mac_address_.ClearToEmpty(); +} +inline const std::string& SviSpec::mac_address() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.SviSpec.mac_address) + return _internal_mac_address(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SviSpec::set_mac_address(ArgT0&& arg0, ArgT... args) { + + mac_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.SviSpec.mac_address) +} +inline std::string* SviSpec::mutable_mac_address() { + std::string* _s = _internal_mutable_mac_address(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.SviSpec.mac_address) + return _s; +} +inline const std::string& SviSpec::_internal_mac_address() const { + return mac_address_.Get(); +} +inline void SviSpec::_internal_set_mac_address(const std::string& value) { + + mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* SviSpec::_internal_mutable_mac_address() { + + return mac_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* SviSpec::release_mac_address() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.SviSpec.mac_address) + return mac_address_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void SviSpec::set_allocated_mac_address(std::string* mac_address) { + if (mac_address != nullptr) { + + } else { + + } + mac_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mac_address, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (mac_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.SviSpec.mac_address) +} + +// repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; +inline int SviSpec::_internal_gw_ip_prefix_size() const { + return gw_ip_prefix_.size(); +} +inline int SviSpec::gw_ip_prefix_size() const { + return _internal_gw_ip_prefix_size(); +} +inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* SviSpec::mutable_gw_ip_prefix(int index) { + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.SviSpec.gw_ip_prefix) + return gw_ip_prefix_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::opinetcommon::v1alpha1::IPPrefix >* +SviSpec::mutable_gw_ip_prefix() { + // @@protoc_insertion_point(field_mutable_list:opi_api.network.evpn_gw.v1alpha1.SviSpec.gw_ip_prefix) + return &gw_ip_prefix_; +} +inline const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& SviSpec::_internal_gw_ip_prefix(int index) const { + return gw_ip_prefix_.Get(index); +} +inline const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& SviSpec::gw_ip_prefix(int index) const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.SviSpec.gw_ip_prefix) + return _internal_gw_ip_prefix(index); +} +inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* SviSpec::_internal_add_gw_ip_prefix() { + return gw_ip_prefix_.Add(); +} +inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* SviSpec::add_gw_ip_prefix() { + ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* _add = _internal_add_gw_ip_prefix(); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.SviSpec.gw_ip_prefix) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::opinetcommon::v1alpha1::IPPrefix >& +SviSpec::gw_ip_prefix() const { + // @@protoc_insertion_point(field_list:opi_api.network.evpn_gw.v1alpha1.SviSpec.gw_ip_prefix) + return gw_ip_prefix_; +} + +// bool enable_bgp = 5; +inline void SviSpec::clear_enable_bgp() { + enable_bgp_ = false; +} +inline bool SviSpec::_internal_enable_bgp() const { + return enable_bgp_; +} +inline bool SviSpec::enable_bgp() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.SviSpec.enable_bgp) + return _internal_enable_bgp(); +} +inline void SviSpec::_internal_set_enable_bgp(bool value) { + + enable_bgp_ = value; +} +inline void SviSpec::set_enable_bgp(bool value) { + _internal_set_enable_bgp(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.SviSpec.enable_bgp) +} + +// uint32 remote_as = 6; +inline void SviSpec::clear_remote_as() { + remote_as_ = 0u; +} +inline uint32_t SviSpec::_internal_remote_as() const { + return remote_as_; +} +inline uint32_t SviSpec::remote_as() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.SviSpec.remote_as) + return _internal_remote_as(); +} +inline void SviSpec::_internal_set_remote_as(uint32_t value) { + + remote_as_ = value; +} +inline void SviSpec::set_remote_as(uint32_t value) { + _internal_set_remote_as(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.SviSpec.remote_as) +} + +// ------------------------------------------------------------------- + +// SviStatus + +// .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus oper_status = 1; +inline void SviStatus::clear_oper_status() { + oper_status_ = 0; +} +inline ::opi_api::network::evpn_gw::v1alpha1::SVIOperStatus SviStatus::_internal_oper_status() const { + return static_cast< ::opi_api::network::evpn_gw::v1alpha1::SVIOperStatus >(oper_status_); +} +inline ::opi_api::network::evpn_gw::v1alpha1::SVIOperStatus SviStatus::oper_status() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.SviStatus.oper_status) + return _internal_oper_status(); +} +inline void SviStatus::_internal_set_oper_status(::opi_api::network::evpn_gw::v1alpha1::SVIOperStatus value) { + + oper_status_ = value; +} +inline void SviStatus::set_oper_status(::opi_api::network::evpn_gw::v1alpha1::SVIOperStatus value) { + _internal_set_oper_status(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.SviStatus.oper_status) +} + +// ------------------------------------------------------------------- + +// CreateSviRequest + +// string svi_id = 1; +inline void CreateSviRequest::clear_svi_id() { + svi_id_.ClearToEmpty(); +} +inline const std::string& CreateSviRequest::svi_id() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi_id) + return _internal_svi_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void CreateSviRequest::set_svi_id(ArgT0&& arg0, ArgT... args) { + + svi_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi_id) +} +inline std::string* CreateSviRequest::mutable_svi_id() { + std::string* _s = _internal_mutable_svi_id(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi_id) + return _s; +} +inline const std::string& CreateSviRequest::_internal_svi_id() const { + return svi_id_.Get(); +} +inline void CreateSviRequest::_internal_set_svi_id(const std::string& value) { + + svi_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* CreateSviRequest::_internal_mutable_svi_id() { + + return svi_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* CreateSviRequest::release_svi_id() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi_id) + return svi_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void CreateSviRequest::set_allocated_svi_id(std::string* svi_id) { + if (svi_id != nullptr) { + + } else { + + } + svi_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), svi_id, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (svi_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + svi_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi_id) +} + +// .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; +inline bool CreateSviRequest::_internal_has_svi() const { + return this != internal_default_instance() && svi_ != nullptr; +} +inline bool CreateSviRequest::has_svi() const { + return _internal_has_svi(); +} +inline void CreateSviRequest::clear_svi() { + if (GetArenaForAllocation() == nullptr && svi_ != nullptr) { + delete svi_; + } + svi_ = nullptr; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::Svi& CreateSviRequest::_internal_svi() const { + const ::opi_api::network::evpn_gw::v1alpha1::Svi* p = svi_; + return p != nullptr ? *p : reinterpret_cast( + ::opi_api::network::evpn_gw::v1alpha1::_Svi_default_instance_); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::Svi& CreateSviRequest::svi() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi) + return _internal_svi(); +} +inline void CreateSviRequest::unsafe_arena_set_allocated_svi( + ::opi_api::network::evpn_gw::v1alpha1::Svi* svi) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(svi_); + } + svi_ = svi; + if (svi) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi) +} +inline ::opi_api::network::evpn_gw::v1alpha1::Svi* CreateSviRequest::release_svi() { + + ::opi_api::network::evpn_gw::v1alpha1::Svi* temp = svi_; + svi_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::Svi* CreateSviRequest::unsafe_arena_release_svi() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi) + + ::opi_api::network::evpn_gw::v1alpha1::Svi* temp = svi_; + svi_ = nullptr; + return temp; +} +inline ::opi_api::network::evpn_gw::v1alpha1::Svi* CreateSviRequest::_internal_mutable_svi() { + + if (svi_ == nullptr) { + auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::Svi>(GetArenaForAllocation()); + svi_ = p; + } + return svi_; +} +inline ::opi_api::network::evpn_gw::v1alpha1::Svi* CreateSviRequest::mutable_svi() { + ::opi_api::network::evpn_gw::v1alpha1::Svi* _msg = _internal_mutable_svi(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi) + return _msg; +} +inline void CreateSviRequest::set_allocated_svi(::opi_api::network::evpn_gw::v1alpha1::Svi* svi) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete svi_; + } + if (svi) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opi_api::network::evpn_gw::v1alpha1::Svi>::GetOwningArena(svi); + if (message_arena != submessage_arena) { + svi = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, svi, submessage_arena); + } + + } else { + + } + svi_ = svi; + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi) +} + +// ------------------------------------------------------------------- + +// ListSvisRequest + +// int32 page_size = 1; +inline void ListSvisRequest::clear_page_size() { + page_size_ = 0; +} +inline int32_t ListSvisRequest::_internal_page_size() const { + return page_size_; +} +inline int32_t ListSvisRequest::page_size() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.page_size) + return _internal_page_size(); +} +inline void ListSvisRequest::_internal_set_page_size(int32_t value) { + + page_size_ = value; +} +inline void ListSvisRequest::set_page_size(int32_t value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.page_size) +} + +// string page_token = 2; +inline void ListSvisRequest::clear_page_token() { + page_token_.ClearToEmpty(); +} +inline const std::string& ListSvisRequest::page_token() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.page_token) + return _internal_page_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListSvisRequest::set_page_token(ArgT0&& arg0, ArgT... args) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.page_token) +} +inline std::string* ListSvisRequest::mutable_page_token() { + std::string* _s = _internal_mutable_page_token(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.page_token) + return _s; +} +inline const std::string& ListSvisRequest::_internal_page_token() const { + return page_token_.Get(); +} +inline void ListSvisRequest::_internal_set_page_token(const std::string& value) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ListSvisRequest::_internal_mutable_page_token() { + + return page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ListSvisRequest::release_page_token() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.page_token) + return page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ListSvisRequest::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + + } else { + + } + page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (page_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.page_token) +} + +// ------------------------------------------------------------------- + +// ListSvisResponse + +// repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; +inline int ListSvisResponse::_internal_svis_size() const { + return svis_.size(); +} +inline int ListSvisResponse::svis_size() const { + return _internal_svis_size(); +} +inline void ListSvisResponse::clear_svis() { + svis_.Clear(); +} +inline ::opi_api::network::evpn_gw::v1alpha1::Svi* ListSvisResponse::mutable_svis(int index) { + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.svis) + return svis_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::Svi >* +ListSvisResponse::mutable_svis() { + // @@protoc_insertion_point(field_mutable_list:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.svis) + return &svis_; +} +inline const ::opi_api::network::evpn_gw::v1alpha1::Svi& ListSvisResponse::_internal_svis(int index) const { + return svis_.Get(index); +} +inline const ::opi_api::network::evpn_gw::v1alpha1::Svi& ListSvisResponse::svis(int index) const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.svis) + return _internal_svis(index); +} +inline ::opi_api::network::evpn_gw::v1alpha1::Svi* ListSvisResponse::_internal_add_svis() { + return svis_.Add(); +} +inline ::opi_api::network::evpn_gw::v1alpha1::Svi* ListSvisResponse::add_svis() { + ::opi_api::network::evpn_gw::v1alpha1::Svi* _add = _internal_add_svis(); + // @@protoc_insertion_point(field_add:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.svis) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opi_api::network::evpn_gw::v1alpha1::Svi >& +ListSvisResponse::svis() const { + // @@protoc_insertion_point(field_list:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.svis) + return svis_; +} + +// string next_page_token = 2; +inline void ListSvisResponse::clear_next_page_token() { + next_page_token_.ClearToEmpty(); +} +inline const std::string& ListSvisResponse::next_page_token() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.next_page_token) + return _internal_next_page_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ListSvisResponse::set_next_page_token(ArgT0&& arg0, ArgT... args) { + + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.next_page_token) +} +inline std::string* ListSvisResponse::mutable_next_page_token() { + std::string* _s = _internal_mutable_next_page_token(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.next_page_token) + return _s; +} +inline const std::string& ListSvisResponse::_internal_next_page_token() const { + return next_page_token_.Get(); +} +inline void ListSvisResponse::_internal_set_next_page_token(const std::string& value) { + + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ListSvisResponse::_internal_mutable_next_page_token() { + + return next_page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ListSvisResponse::release_next_page_token() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.next_page_token) + return next_page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void ListSvisResponse::set_allocated_next_page_token(std::string* next_page_token) { + if (next_page_token != nullptr) { + + } else { + + } + next_page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (next_page_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + next_page_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.next_page_token) +} + +// ------------------------------------------------------------------- + +// GetSviRequest + +// string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { +inline void GetSviRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& GetSviRequest::name() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.GetSviRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetSviRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.GetSviRequest.name) +} +inline std::string* GetSviRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.GetSviRequest.name) + return _s; +} +inline const std::string& GetSviRequest::_internal_name() const { + return name_.Get(); +} +inline void GetSviRequest::_internal_set_name(const std::string& value) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* GetSviRequest::_internal_mutable_name() { + + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* GetSviRequest::release_name() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.GetSviRequest.name) + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void GetSviRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.GetSviRequest.name) +} + +// ------------------------------------------------------------------- + +// DeleteSviRequest + +// string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { +inline void DeleteSviRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& DeleteSviRequest::name() const { + // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void DeleteSviRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.name) +} +inline std::string* DeleteSviRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.name) + return _s; +} +inline const std::string& DeleteSviRequest::_internal_name() const { + return name_.Get(); +} +inline void DeleteSviRequest::_internal_set_name(const std::string& value) { + + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* DeleteSviRequest::_internal_mutable_name() { + + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* DeleteSviRequest::release_name() { + // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.name) + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void DeleteSviRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.name) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace v1alpha1 +} // namespace evpn_gw +} // namespace network +} // namespace opi_api + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus>() { + return ::opi_api::network::evpn_gw::v1alpha1::VRFOperStatus_descriptor(); +} +template <> struct is_proto_enum< ::opi_api::network::evpn_gw::v1alpha1::SVIOperStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::opi_api::network::evpn_gw::v1alpha1::SVIOperStatus>() { + return ::opi_api::network::evpn_gw::v1alpha1::SVIOperStatus_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_l3_5fxpu_5finfra_5fmgr_2eproto diff --git a/network/evpn-gw/v1alpha1/gen/go/l2_xpu_infra_mgr.pb.go b/network/evpn-gw/v1alpha1/gen/go/l2_xpu_infra_mgr.pb.go new file mode 100644 index 00000000..e1f79dcc --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/go/l2_xpu_infra_mgr.pb.go @@ -0,0 +1,2069 @@ +// 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". --) + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0 +// protoc v3.19.4 +// source: l2_xpu_infra_mgr.proto + +package _go + +import ( + context "context" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// LBOperStatus status reflects the operational status of a Logical Bridge +type LBOperStatus int32 + +const ( + // unknown + LBOperStatus_LB_OPER_STATUS_UNSPECIFIED LBOperStatus = 0 + // Logical Bridge is up + LBOperStatus_LB_OPER_STATUS_UP LBOperStatus = 1 + // Logical Bridge is down + LBOperStatus_LB_OPER_STATUS_DOWN LBOperStatus = 2 +) + +// Enum value maps for LBOperStatus. +var ( + LBOperStatus_name = map[int32]string{ + 0: "LB_OPER_STATUS_UNSPECIFIED", + 1: "LB_OPER_STATUS_UP", + 2: "LB_OPER_STATUS_DOWN", + } + LBOperStatus_value = map[string]int32{ + "LB_OPER_STATUS_UNSPECIFIED": 0, + "LB_OPER_STATUS_UP": 1, + "LB_OPER_STATUS_DOWN": 2, + } +) + +func (x LBOperStatus) Enum() *LBOperStatus { + p := new(LBOperStatus) + *p = x + return p +} + +func (x LBOperStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (LBOperStatus) Descriptor() protoreflect.EnumDescriptor { + return file_l2_xpu_infra_mgr_proto_enumTypes[0].Descriptor() +} + +func (LBOperStatus) Type() protoreflect.EnumType { + return &file_l2_xpu_infra_mgr_proto_enumTypes[0] +} + +func (x LBOperStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use LBOperStatus.Descriptor instead. +func (LBOperStatus) EnumDescriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{0} +} + +// BPOperStatus status reflects the operational status of a Bridge Port +type BPOperStatus int32 + +const ( + // unknown + BPOperStatus_BP_OPER_STATUS_UNSPECIFIED BPOperStatus = 0 + // Bridge Port is up + BPOperStatus_BP_OPER_STATUS_UP BPOperStatus = 1 + // Bridge Port is down + BPOperStatus_BP_OPER_STATUS_DOWN BPOperStatus = 2 +) + +// Enum value maps for BPOperStatus. +var ( + BPOperStatus_name = map[int32]string{ + 0: "BP_OPER_STATUS_UNSPECIFIED", + 1: "BP_OPER_STATUS_UP", + 2: "BP_OPER_STATUS_DOWN", + } + BPOperStatus_value = map[string]int32{ + "BP_OPER_STATUS_UNSPECIFIED": 0, + "BP_OPER_STATUS_UP": 1, + "BP_OPER_STATUS_DOWN": 2, + } +) + +func (x BPOperStatus) Enum() *BPOperStatus { + p := new(BPOperStatus) + *p = x + return p +} + +func (x BPOperStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BPOperStatus) Descriptor() protoreflect.EnumDescriptor { + return file_l2_xpu_infra_mgr_proto_enumTypes[1].Descriptor() +} + +func (BPOperStatus) Type() protoreflect.EnumType { + return &file_l2_xpu_infra_mgr_proto_enumTypes[1] +} + +func (x BPOperStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BPOperStatus.Descriptor instead. +func (BPOperStatus) EnumDescriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{1} +} + +// BridgePortType reflects the different types of a Bridge Port +type BridgePortType int32 + +const ( + // "unknown" bridge port type + BridgePortType_UNKNOWN BridgePortType = 0 + // "access" bridge port type + BridgePortType_ACCESS BridgePortType = 1 + // "trunk" bridge port type + BridgePortType_TRUNK BridgePortType = 2 +) + +// Enum value maps for BridgePortType. +var ( + BridgePortType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "ACCESS", + 2: "TRUNK", + } + BridgePortType_value = map[string]int32{ + "UNKNOWN": 0, + "ACCESS": 1, + "TRUNK": 2, + } +) + +func (x BridgePortType) Enum() *BridgePortType { + p := new(BridgePortType) + *p = x + return p +} + +func (x BridgePortType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BridgePortType) Descriptor() protoreflect.EnumDescriptor { + return file_l2_xpu_infra_mgr_proto_enumTypes[2].Descriptor() +} + +func (BridgePortType) Type() protoreflect.EnumType { + return &file_l2_xpu_infra_mgr_proto_enumTypes[2] +} + +func (x BridgePortType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BridgePortType.Descriptor instead. +func (BridgePortType) EnumDescriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{2} +} + +// Logical Bridge network configuration and status +type LogicalBridge struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // 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} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Logical Bridge network configuration + Spec *LogicalBridgeSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + // Logical Bridge network status + Status *LogicalBridgeStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *LogicalBridge) Reset() { + *x = LogicalBridge{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LogicalBridge) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LogicalBridge) ProtoMessage() {} + +func (x *LogicalBridge) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LogicalBridge.ProtoReflect.Descriptor instead. +func (*LogicalBridge) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{0} +} + +func (x *LogicalBridge) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *LogicalBridge) GetSpec() *LogicalBridgeSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *LogicalBridge) GetStatus() *LogicalBridgeStatus { + if x != nil { + return x.Status + } + return nil +} + +// Logical Bridge network configuration +type LogicalBridgeSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the VLAN of the L2 domain + // (-- api-linter: core::0141::forbidden-types=disabled + // aip.dev/not-precedent: vlan cannot be negative number. --) + VlanId uint32 `protobuf:"varint,1,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"` + //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. --) + Vni uint32 `protobuf:"varint,2,opt,name=vni,proto3" json:"vni,omitempty"` +} + +func (x *LogicalBridgeSpec) Reset() { + *x = LogicalBridgeSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LogicalBridgeSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LogicalBridgeSpec) ProtoMessage() {} + +func (x *LogicalBridgeSpec) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LogicalBridgeSpec.ProtoReflect.Descriptor instead. +func (*LogicalBridgeSpec) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{1} +} + +func (x *LogicalBridgeSpec) GetVlanId() uint32 { + if x != nil { + return x.VlanId + } + return 0 +} + +func (x *LogicalBridgeSpec) GetVni() uint32 { + if x != nil { + return x.Vni + } + return 0 +} + +// operational status of a Logical Bridge +type LogicalBridgeStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // operational state of a Logical Bridge + OperStatus LBOperStatus `protobuf:"varint,1,opt,name=oper_status,json=operStatus,proto3,enum=opi_api.network.evpn_gw.v1alpha1.LBOperStatus" json:"oper_status,omitempty"` +} + +func (x *LogicalBridgeStatus) Reset() { + *x = LogicalBridgeStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LogicalBridgeStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LogicalBridgeStatus) ProtoMessage() {} + +func (x *LogicalBridgeStatus) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LogicalBridgeStatus.ProtoReflect.Descriptor instead. +func (*LogicalBridgeStatus) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{2} +} + +func (x *LogicalBridgeStatus) GetOperStatus() LBOperStatus { + if x != nil { + return x.OperStatus + } + return LBOperStatus_LB_OPER_STATUS_UNSPECIFIED +} + +// CreateLogicalBridgeRequest structure +type CreateLogicalBridgeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // 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. + LogicalBridgeId string `protobuf:"bytes,1,opt,name=logical_bridge_id,json=logicalBridgeId,proto3" json:"logical_bridge_id,omitempty"` + // The logical bridge to create + LogicalBridge *LogicalBridge `protobuf:"bytes,2,opt,name=logical_bridge,json=logicalBridge,proto3" json:"logical_bridge,omitempty"` +} + +func (x *CreateLogicalBridgeRequest) Reset() { + *x = CreateLogicalBridgeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateLogicalBridgeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateLogicalBridgeRequest) ProtoMessage() {} + +func (x *CreateLogicalBridgeRequest) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateLogicalBridgeRequest.ProtoReflect.Descriptor instead. +func (*CreateLogicalBridgeRequest) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{3} +} + +func (x *CreateLogicalBridgeRequest) GetLogicalBridgeId() string { + if x != nil { + return x.LogicalBridgeId + } + return "" +} + +func (x *CreateLogicalBridgeRequest) GetLogicalBridge() *LogicalBridge { + if x != nil { + return x.LogicalBridge + } + return nil +} + +// ListLogicalBridgesRequest structure +type ListLogicalBridgesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // page size of list request + PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // page token of list request + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` +} + +func (x *ListLogicalBridgesRequest) Reset() { + *x = ListLogicalBridgesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListLogicalBridgesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListLogicalBridgesRequest) ProtoMessage() {} + +func (x *ListLogicalBridgesRequest) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListLogicalBridgesRequest.ProtoReflect.Descriptor instead. +func (*ListLogicalBridgesRequest) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{4} +} + +func (x *ListLogicalBridgesRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListLogicalBridgesRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +// ListLogicalBridgesResponse structure +type ListLogicalBridgesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of all the logical bridges + LogicalBridges []*LogicalBridge `protobuf:"bytes,1,rep,name=logical_bridges,json=logicalBridges,proto3" json:"logical_bridges,omitempty"` + // Next page token of list response + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListLogicalBridgesResponse) Reset() { + *x = ListLogicalBridgesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListLogicalBridgesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListLogicalBridgesResponse) ProtoMessage() {} + +func (x *ListLogicalBridgesResponse) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListLogicalBridgesResponse.ProtoReflect.Descriptor instead. +func (*ListLogicalBridgesResponse) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{5} +} + +func (x *ListLogicalBridgesResponse) GetLogicalBridges() []*LogicalBridge { + if x != nil { + return x.LogicalBridges + } + return nil +} + +func (x *ListLogicalBridgesResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +// GetLogicalBridgeRequest structure +type GetLogicalBridgeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the logical bridge to retrieve + // Format: logicalBridges/{logical_bridge} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *GetLogicalBridgeRequest) Reset() { + *x = GetLogicalBridgeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetLogicalBridgeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetLogicalBridgeRequest) ProtoMessage() {} + +func (x *GetLogicalBridgeRequest) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetLogicalBridgeRequest.ProtoReflect.Descriptor instead. +func (*GetLogicalBridgeRequest) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{6} +} + +func (x *GetLogicalBridgeRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// DeleteLogicalBridgeRequest structure +type DeleteLogicalBridgeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the logical bridge to retrieve + // Format: logicalBridges/{logical_bridge} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *DeleteLogicalBridgeRequest) Reset() { + *x = DeleteLogicalBridgeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteLogicalBridgeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteLogicalBridgeRequest) ProtoMessage() {} + +func (x *DeleteLogicalBridgeRequest) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteLogicalBridgeRequest.ProtoReflect.Descriptor instead. +func (*DeleteLogicalBridgeRequest) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{7} +} + +func (x *DeleteLogicalBridgeRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Bridge Port network configuration and status +type BridgePort struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // 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} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Bridge Port network configuration + Spec *BridgePortSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + // Bridge Port network status + Status *BridgePortStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *BridgePort) Reset() { + *x = BridgePort{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BridgePort) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BridgePort) ProtoMessage() {} + +func (x *BridgePort) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BridgePort.ProtoReflect.Descriptor instead. +func (*BridgePort) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{8} +} + +func (x *BridgePort) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *BridgePort) GetSpec() *BridgePortSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *BridgePort) GetStatus() *BridgePortStatus { + if x != nil { + return x.Status + } + return nil +} + +// Bridge Port network configuration +type BridgePortSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Bridge Port's MAC address. + MacAddress []byte `protobuf:"bytes,1,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` + // Type of Bridge Port + Ptype BridgePortType `protobuf:"varint,2,opt,name=ptype,proto3,enum=opi_api.network.evpn_gw.v1alpha1.BridgePortType" json:"ptype,omitempty"` + // List of Logical Bridges this Bridge Port will attach. + // This will define the VLANs that will be enabled in this Bridge Port + LogicalBridges []string `protobuf:"bytes,3,rep,name=logical_bridges,json=logicalBridges,proto3" json:"logical_bridges,omitempty"` +} + +func (x *BridgePortSpec) Reset() { + *x = BridgePortSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BridgePortSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BridgePortSpec) ProtoMessage() {} + +func (x *BridgePortSpec) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BridgePortSpec.ProtoReflect.Descriptor instead. +func (*BridgePortSpec) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{9} +} + +func (x *BridgePortSpec) GetMacAddress() []byte { + if x != nil { + return x.MacAddress + } + return nil +} + +func (x *BridgePortSpec) GetPtype() BridgePortType { + if x != nil { + return x.Ptype + } + return BridgePortType_UNKNOWN +} + +func (x *BridgePortSpec) GetLogicalBridges() []string { + if x != nil { + return x.LogicalBridges + } + return nil +} + +// operational status of a Bridge Port +type BridgePortStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // operational status of a Bridge Port + OperStatus BPOperStatus `protobuf:"varint,1,opt,name=oper_status,json=operStatus,proto3,enum=opi_api.network.evpn_gw.v1alpha1.BPOperStatus" json:"oper_status,omitempty"` +} + +func (x *BridgePortStatus) Reset() { + *x = BridgePortStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BridgePortStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BridgePortStatus) ProtoMessage() {} + +func (x *BridgePortStatus) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BridgePortStatus.ProtoReflect.Descriptor instead. +func (*BridgePortStatus) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{10} +} + +func (x *BridgePortStatus) GetOperStatus() BPOperStatus { + if x != nil { + return x.OperStatus + } + return BPOperStatus_BP_OPER_STATUS_UNSPECIFIED +} + +// CreateBridgePortRequest structure +type CreateBridgePortRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // 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. + BridgePortId string `protobuf:"bytes,1,opt,name=bridge_port_id,json=bridgePortId,proto3" json:"bridge_port_id,omitempty"` + // The bridge port to create + BridgePort *BridgePort `protobuf:"bytes,2,opt,name=bridge_port,json=bridgePort,proto3" json:"bridge_port,omitempty"` +} + +func (x *CreateBridgePortRequest) Reset() { + *x = CreateBridgePortRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateBridgePortRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateBridgePortRequest) ProtoMessage() {} + +func (x *CreateBridgePortRequest) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateBridgePortRequest.ProtoReflect.Descriptor instead. +func (*CreateBridgePortRequest) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{11} +} + +func (x *CreateBridgePortRequest) GetBridgePortId() string { + if x != nil { + return x.BridgePortId + } + return "" +} + +func (x *CreateBridgePortRequest) GetBridgePort() *BridgePort { + if x != nil { + return x.BridgePort + } + return nil +} + +// ListBridgePortsRequest structure +type ListBridgePortsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // page size of list request + PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // page token of list request + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` +} + +func (x *ListBridgePortsRequest) Reset() { + *x = ListBridgePortsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBridgePortsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBridgePortsRequest) ProtoMessage() {} + +func (x *ListBridgePortsRequest) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListBridgePortsRequest.ProtoReflect.Descriptor instead. +func (*ListBridgePortsRequest) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{12} +} + +func (x *ListBridgePortsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListBridgePortsRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +// ListBridgePortsResponse structure +type ListBridgePortsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of all the bridge ports + BridgePorts []*BridgePort `protobuf:"bytes,1,rep,name=bridge_ports,json=bridgePorts,proto3" json:"bridge_ports,omitempty"` + // Next page token of list response + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListBridgePortsResponse) Reset() { + *x = ListBridgePortsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBridgePortsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBridgePortsResponse) ProtoMessage() {} + +func (x *ListBridgePortsResponse) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListBridgePortsResponse.ProtoReflect.Descriptor instead. +func (*ListBridgePortsResponse) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{13} +} + +func (x *ListBridgePortsResponse) GetBridgePorts() []*BridgePort { + if x != nil { + return x.BridgePorts + } + return nil +} + +func (x *ListBridgePortsResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +// GetBridgePortRequest structure +type GetBridgePortRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the bridge port to retrieve + // Format: bridgePorts/{bridge_port} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *GetBridgePortRequest) Reset() { + *x = GetBridgePortRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetBridgePortRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBridgePortRequest) ProtoMessage() {} + +func (x *GetBridgePortRequest) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetBridgePortRequest.ProtoReflect.Descriptor instead. +func (*GetBridgePortRequest) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{14} +} + +func (x *GetBridgePortRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// DeleteBridgePortRequest structure +type DeleteBridgePortRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the bridge port to retrieve + // Format: bridgePorts/{bridge_port} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *DeleteBridgePortRequest) Reset() { + *x = DeleteBridgePortRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteBridgePortRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteBridgePortRequest) ProtoMessage() {} + +func (x *DeleteBridgePortRequest) ProtoReflect() protoreflect.Message { + mi := &file_l2_xpu_infra_mgr_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteBridgePortRequest.ProtoReflect.Descriptor instead. +func (*DeleteBridgePortRequest) Descriptor() ([]byte, []int) { + return file_l2_xpu_infra_mgr_proto_rawDescGZIP(), []int{15} +} + +func (x *DeleteBridgePortRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +var File_l2_xpu_infra_mgr_proto protoreflect.FileDescriptor + +var file_l2_xpu_infra_mgr_proto_rawDesc = []byte{ + 0x0a, 0x16, 0x6c, 0x32, 0x5f, 0x78, 0x70, 0x75, 0x5f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x5f, 0x6d, + 0x67, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, + 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x02, 0x0a, 0x0d, 0x4c, + 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x4c, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, + 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x53, + 0x70, 0x65, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x4d, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, + 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x3a, 0x54, 0xea, + 0x41, 0x51, 0x0a, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2f, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x12, 0x1f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x7d, 0x22, 0x43, 0x0a, 0x11, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x1c, 0x0a, 0x07, 0x76, 0x6c, 0x61, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, + 0x76, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x6e, 0x69, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x03, 0x76, 0x6e, 0x69, 0x22, 0x66, 0x0a, 0x13, 0x4c, 0x6f, 0x67, 0x69, + 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x4f, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x42, 0x4f, 0x70, 0x65, 0x72, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x22, 0xa5, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x63, + 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x2a, 0x0a, 0x11, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x6f, 0x67, 0x69, + 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x49, 0x64, 0x12, 0x5b, 0x0a, 0x0e, 0x6c, + 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x6c, 0x6f, 0x67, 0x69, 0x63, + 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x22, 0x57, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, + 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, + 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, + 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x22, 0x9e, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, + 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x58, 0x0a, 0x0f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, + 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x67, + 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x0e, 0x6c, 0x6f, 0x67, 0x69, + 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, + 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x22, 0x65, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, + 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, + 0xfa, 0x41, 0x30, 0x0a, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x68, 0x0a, 0x1a, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x0a, 0x2e, 0x6f, + 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, + 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, + 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x22, 0xff, 0x01, 0x0a, 0x0a, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, + 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x44, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, + 0x72, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x4a, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6f, + 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, + 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x3a, 0x4b, 0xea, 0x41, 0x48, 0x0a, 0x2b, 0x6f, + 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, + 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, + 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x19, 0x62, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x7b, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, + 0x70, 0x6f, 0x72, 0x74, 0x7d, 0x22, 0xac, 0x01, 0x0a, 0x0e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x50, 0x6f, 0x72, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x24, 0x0a, 0x0b, 0x6d, 0x61, 0x63, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x0a, 0x6d, 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x4b, + 0x0a, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, + 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, + 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x70, 0x74, 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6c, + 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x73, 0x22, 0x63, 0x0a, 0x10, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, + 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4f, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x72, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, + 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, + 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2e, 0x42, 0x50, 0x4f, 0x70, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0a, 0x6f, + 0x70, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x17, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, + 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x0b, 0x62, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x42, 0x03, + 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x22, + 0x54, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, + 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4f, 0x0a, 0x0c, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x0b, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, + 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, + 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5f, 0x0a, 0x14, 0x47, 0x65, + 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x47, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x33, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x42, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x62, 0x0a, 0x17, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x6f, 0x70, + 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, + 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x42, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x2a, + 0x5e, 0x0a, 0x0c, 0x4c, 0x42, 0x4f, 0x70, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x1e, 0x0a, 0x1a, 0x4c, 0x42, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x15, 0x0a, 0x11, 0x4c, 0x42, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x55, 0x50, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x4c, 0x42, 0x5f, 0x4f, 0x50, 0x45, + 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x2a, + 0x5e, 0x0a, 0x0c, 0x42, 0x50, 0x4f, 0x70, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x1e, 0x0a, 0x1a, 0x42, 0x50, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x15, 0x0a, 0x11, 0x42, 0x50, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x55, 0x50, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x42, 0x50, 0x5f, 0x4f, 0x50, 0x45, + 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x2a, + 0x34, 0x0a, 0x0e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, + 0x0a, 0x06, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x52, + 0x55, 0x4e, 0x4b, 0x10, 0x02, 0x32, 0xe1, 0x05, 0x0a, 0x14, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, + 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xd3, + 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, + 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x3c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, + 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x22, 0x12, 0x2f, + 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x73, 0x3a, 0x0e, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, 0x67, + 0x65, 0xda, 0x41, 0x20, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x2c, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x5f, 0x69, 0x64, 0x12, 0xab, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x67, + 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x12, 0x3b, 0x2e, 0x6f, 0x70, + 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, + 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, + 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, + 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, + 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x73, 0x12, 0xaa, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, + 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x39, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, + 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x76, 0x31, + 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x97, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, + 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x3c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2a, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x2a, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, + 0x3d, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x2f, + 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xa8, 0x05, 0x0a, 0x11, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0xbe, 0x01, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x50, 0x6f, 0x72, 0x74, 0x12, 0x39, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2c, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x41, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x3a, 0x0b, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x70, + 0x6f, 0x72, 0x74, 0xda, 0x41, 0x1a, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x72, + 0x74, 0x2c, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, + 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, + 0x6f, 0x72, 0x74, 0x73, 0x12, 0x38, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x69, 0x64, + 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, + 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x11, 0x12, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, + 0x74, 0x73, 0x12, 0x9e, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x50, 0x6f, 0x72, 0x74, 0x12, 0x36, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6f, + 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, + 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x62, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x8e, 0x01, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x39, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, + 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, + 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x1a, 0x2a, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x62, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x77, 0x0a, 0x20, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x12, 0x4c, 0x32, 0x58, 0x70, 0x75, 0x49, + 0x6e, 0x66, 0x72, 0x61, 0x4d, 0x67, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x69, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x70, 0x69, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x65, 0x76, 0x70, 0x6e, 0x2d, 0x67, 0x77, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_l2_xpu_infra_mgr_proto_rawDescOnce sync.Once + file_l2_xpu_infra_mgr_proto_rawDescData = file_l2_xpu_infra_mgr_proto_rawDesc +) + +func file_l2_xpu_infra_mgr_proto_rawDescGZIP() []byte { + file_l2_xpu_infra_mgr_proto_rawDescOnce.Do(func() { + file_l2_xpu_infra_mgr_proto_rawDescData = protoimpl.X.CompressGZIP(file_l2_xpu_infra_mgr_proto_rawDescData) + }) + return file_l2_xpu_infra_mgr_proto_rawDescData +} + +var file_l2_xpu_infra_mgr_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_l2_xpu_infra_mgr_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_l2_xpu_infra_mgr_proto_goTypes = []interface{}{ + (LBOperStatus)(0), // 0: opi_api.network.evpn_gw.v1alpha1.LBOperStatus + (BPOperStatus)(0), // 1: opi_api.network.evpn_gw.v1alpha1.BPOperStatus + (BridgePortType)(0), // 2: opi_api.network.evpn_gw.v1alpha1.BridgePortType + (*LogicalBridge)(nil), // 3: opi_api.network.evpn_gw.v1alpha1.LogicalBridge + (*LogicalBridgeSpec)(nil), // 4: opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec + (*LogicalBridgeStatus)(nil), // 5: opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus + (*CreateLogicalBridgeRequest)(nil), // 6: opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest + (*ListLogicalBridgesRequest)(nil), // 7: opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest + (*ListLogicalBridgesResponse)(nil), // 8: opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse + (*GetLogicalBridgeRequest)(nil), // 9: opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest + (*DeleteLogicalBridgeRequest)(nil), // 10: opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest + (*BridgePort)(nil), // 11: opi_api.network.evpn_gw.v1alpha1.BridgePort + (*BridgePortSpec)(nil), // 12: opi_api.network.evpn_gw.v1alpha1.BridgePortSpec + (*BridgePortStatus)(nil), // 13: opi_api.network.evpn_gw.v1alpha1.BridgePortStatus + (*CreateBridgePortRequest)(nil), // 14: opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest + (*ListBridgePortsRequest)(nil), // 15: opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest + (*ListBridgePortsResponse)(nil), // 16: opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse + (*GetBridgePortRequest)(nil), // 17: opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest + (*DeleteBridgePortRequest)(nil), // 18: opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest + (*emptypb.Empty)(nil), // 19: google.protobuf.Empty +} +var file_l2_xpu_infra_mgr_proto_depIdxs = []int32{ + 4, // 0: opi_api.network.evpn_gw.v1alpha1.LogicalBridge.spec:type_name -> opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec + 5, // 1: opi_api.network.evpn_gw.v1alpha1.LogicalBridge.status:type_name -> opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus + 0, // 2: opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.oper_status:type_name -> opi_api.network.evpn_gw.v1alpha1.LBOperStatus + 3, // 3: opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge:type_name -> opi_api.network.evpn_gw.v1alpha1.LogicalBridge + 3, // 4: opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.logical_bridges:type_name -> opi_api.network.evpn_gw.v1alpha1.LogicalBridge + 12, // 5: opi_api.network.evpn_gw.v1alpha1.BridgePort.spec:type_name -> opi_api.network.evpn_gw.v1alpha1.BridgePortSpec + 13, // 6: opi_api.network.evpn_gw.v1alpha1.BridgePort.status:type_name -> opi_api.network.evpn_gw.v1alpha1.BridgePortStatus + 2, // 7: opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.ptype:type_name -> opi_api.network.evpn_gw.v1alpha1.BridgePortType + 1, // 8: opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.oper_status:type_name -> opi_api.network.evpn_gw.v1alpha1.BPOperStatus + 11, // 9: opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port:type_name -> opi_api.network.evpn_gw.v1alpha1.BridgePort + 11, // 10: opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.bridge_ports:type_name -> opi_api.network.evpn_gw.v1alpha1.BridgePort + 6, // 11: opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService.CreateLogicalBridge:input_type -> opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest + 7, // 12: opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService.ListLogicalBridges:input_type -> opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest + 9, // 13: opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService.GetLogicalBridge:input_type -> opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest + 10, // 14: opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService.DeleteLogicalBridge:input_type -> opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest + 14, // 15: opi_api.network.evpn_gw.v1alpha1.BridgePortService.CreateBridgePort:input_type -> opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest + 15, // 16: opi_api.network.evpn_gw.v1alpha1.BridgePortService.ListBridgePorts:input_type -> opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest + 17, // 17: opi_api.network.evpn_gw.v1alpha1.BridgePortService.GetBridgePort:input_type -> opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest + 18, // 18: opi_api.network.evpn_gw.v1alpha1.BridgePortService.DeleteBridgePort:input_type -> opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest + 3, // 19: opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService.CreateLogicalBridge:output_type -> opi_api.network.evpn_gw.v1alpha1.LogicalBridge + 8, // 20: opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService.ListLogicalBridges:output_type -> opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse + 3, // 21: opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService.GetLogicalBridge:output_type -> opi_api.network.evpn_gw.v1alpha1.LogicalBridge + 19, // 22: opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService.DeleteLogicalBridge:output_type -> google.protobuf.Empty + 11, // 23: opi_api.network.evpn_gw.v1alpha1.BridgePortService.CreateBridgePort:output_type -> opi_api.network.evpn_gw.v1alpha1.BridgePort + 16, // 24: opi_api.network.evpn_gw.v1alpha1.BridgePortService.ListBridgePorts:output_type -> opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse + 11, // 25: opi_api.network.evpn_gw.v1alpha1.BridgePortService.GetBridgePort:output_type -> opi_api.network.evpn_gw.v1alpha1.BridgePort + 19, // 26: opi_api.network.evpn_gw.v1alpha1.BridgePortService.DeleteBridgePort:output_type -> google.protobuf.Empty + 19, // [19:27] is the sub-list for method output_type + 11, // [11:19] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_l2_xpu_infra_mgr_proto_init() } +func file_l2_xpu_infra_mgr_proto_init() { + if File_l2_xpu_infra_mgr_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_l2_xpu_infra_mgr_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LogicalBridge); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LogicalBridgeSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LogicalBridgeStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateLogicalBridgeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListLogicalBridgesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListLogicalBridgesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLogicalBridgeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteLogicalBridgeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BridgePort); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BridgePortSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BridgePortStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateBridgePortRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBridgePortsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBridgePortsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBridgePortRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l2_xpu_infra_mgr_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteBridgePortRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_l2_xpu_infra_mgr_proto_rawDesc, + NumEnums: 3, + NumMessages: 16, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_l2_xpu_infra_mgr_proto_goTypes, + DependencyIndexes: file_l2_xpu_infra_mgr_proto_depIdxs, + EnumInfos: file_l2_xpu_infra_mgr_proto_enumTypes, + MessageInfos: file_l2_xpu_infra_mgr_proto_msgTypes, + }.Build() + File_l2_xpu_infra_mgr_proto = out.File + file_l2_xpu_infra_mgr_proto_rawDesc = nil + file_l2_xpu_infra_mgr_proto_goTypes = nil + file_l2_xpu_infra_mgr_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// LogicalBridgeServiceClient is the client API for LogicalBridgeService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type LogicalBridgeServiceClient interface { + // Create a Logical Bridge + CreateLogicalBridge(ctx context.Context, in *CreateLogicalBridgeRequest, opts ...grpc.CallOption) (*LogicalBridge, error) + // List Logical Bridges + ListLogicalBridges(ctx context.Context, in *ListLogicalBridgesRequest, opts ...grpc.CallOption) (*ListLogicalBridgesResponse, error) + // Retrieve a Logical Bridge + GetLogicalBridge(ctx context.Context, in *GetLogicalBridgeRequest, opts ...grpc.CallOption) (*LogicalBridge, error) + // Delete a Logical Bridge + DeleteLogicalBridge(ctx context.Context, in *DeleteLogicalBridgeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) +} + +type logicalBridgeServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewLogicalBridgeServiceClient(cc grpc.ClientConnInterface) LogicalBridgeServiceClient { + return &logicalBridgeServiceClient{cc} +} + +func (c *logicalBridgeServiceClient) CreateLogicalBridge(ctx context.Context, in *CreateLogicalBridgeRequest, opts ...grpc.CallOption) (*LogicalBridge, error) { + out := new(LogicalBridge) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/CreateLogicalBridge", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *logicalBridgeServiceClient) ListLogicalBridges(ctx context.Context, in *ListLogicalBridgesRequest, opts ...grpc.CallOption) (*ListLogicalBridgesResponse, error) { + out := new(ListLogicalBridgesResponse) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/ListLogicalBridges", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *logicalBridgeServiceClient) GetLogicalBridge(ctx context.Context, in *GetLogicalBridgeRequest, opts ...grpc.CallOption) (*LogicalBridge, error) { + out := new(LogicalBridge) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/GetLogicalBridge", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *logicalBridgeServiceClient) DeleteLogicalBridge(ctx context.Context, in *DeleteLogicalBridgeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/DeleteLogicalBridge", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// LogicalBridgeServiceServer is the server API for LogicalBridgeService service. +type LogicalBridgeServiceServer interface { + // Create a Logical Bridge + CreateLogicalBridge(context.Context, *CreateLogicalBridgeRequest) (*LogicalBridge, error) + // List Logical Bridges + ListLogicalBridges(context.Context, *ListLogicalBridgesRequest) (*ListLogicalBridgesResponse, error) + // Retrieve a Logical Bridge + GetLogicalBridge(context.Context, *GetLogicalBridgeRequest) (*LogicalBridge, error) + // Delete a Logical Bridge + DeleteLogicalBridge(context.Context, *DeleteLogicalBridgeRequest) (*emptypb.Empty, error) +} + +// UnimplementedLogicalBridgeServiceServer can be embedded to have forward compatible implementations. +type UnimplementedLogicalBridgeServiceServer struct { +} + +func (*UnimplementedLogicalBridgeServiceServer) CreateLogicalBridge(context.Context, *CreateLogicalBridgeRequest) (*LogicalBridge, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateLogicalBridge not implemented") +} +func (*UnimplementedLogicalBridgeServiceServer) ListLogicalBridges(context.Context, *ListLogicalBridgesRequest) (*ListLogicalBridgesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListLogicalBridges not implemented") +} +func (*UnimplementedLogicalBridgeServiceServer) GetLogicalBridge(context.Context, *GetLogicalBridgeRequest) (*LogicalBridge, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetLogicalBridge not implemented") +} +func (*UnimplementedLogicalBridgeServiceServer) DeleteLogicalBridge(context.Context, *DeleteLogicalBridgeRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteLogicalBridge not implemented") +} + +func RegisterLogicalBridgeServiceServer(s *grpc.Server, srv LogicalBridgeServiceServer) { + s.RegisterService(&_LogicalBridgeService_serviceDesc, srv) +} + +func _LogicalBridgeService_CreateLogicalBridge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateLogicalBridgeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LogicalBridgeServiceServer).CreateLogicalBridge(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/CreateLogicalBridge", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LogicalBridgeServiceServer).CreateLogicalBridge(ctx, req.(*CreateLogicalBridgeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LogicalBridgeService_ListLogicalBridges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListLogicalBridgesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LogicalBridgeServiceServer).ListLogicalBridges(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/ListLogicalBridges", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LogicalBridgeServiceServer).ListLogicalBridges(ctx, req.(*ListLogicalBridgesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LogicalBridgeService_GetLogicalBridge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetLogicalBridgeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LogicalBridgeServiceServer).GetLogicalBridge(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/GetLogicalBridge", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LogicalBridgeServiceServer).GetLogicalBridge(ctx, req.(*GetLogicalBridgeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _LogicalBridgeService_DeleteLogicalBridge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteLogicalBridgeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LogicalBridgeServiceServer).DeleteLogicalBridge(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/DeleteLogicalBridge", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LogicalBridgeServiceServer).DeleteLogicalBridge(ctx, req.(*DeleteLogicalBridgeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _LogicalBridgeService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService", + HandlerType: (*LogicalBridgeServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateLogicalBridge", + Handler: _LogicalBridgeService_CreateLogicalBridge_Handler, + }, + { + MethodName: "ListLogicalBridges", + Handler: _LogicalBridgeService_ListLogicalBridges_Handler, + }, + { + MethodName: "GetLogicalBridge", + Handler: _LogicalBridgeService_GetLogicalBridge_Handler, + }, + { + MethodName: "DeleteLogicalBridge", + Handler: _LogicalBridgeService_DeleteLogicalBridge_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "l2_xpu_infra_mgr.proto", +} + +// BridgePortServiceClient is the client API for BridgePortService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type BridgePortServiceClient interface { + // Create a Bridge Port + CreateBridgePort(ctx context.Context, in *CreateBridgePortRequest, opts ...grpc.CallOption) (*BridgePort, error) + // List Bridge Ports + ListBridgePorts(ctx context.Context, in *ListBridgePortsRequest, opts ...grpc.CallOption) (*ListBridgePortsResponse, error) + // Retrieve a Bridge Port + GetBridgePort(ctx context.Context, in *GetBridgePortRequest, opts ...grpc.CallOption) (*BridgePort, error) + // Delete a Bridge Port + DeleteBridgePort(ctx context.Context, in *DeleteBridgePortRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) +} + +type bridgePortServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewBridgePortServiceClient(cc grpc.ClientConnInterface) BridgePortServiceClient { + return &bridgePortServiceClient{cc} +} + +func (c *bridgePortServiceClient) CreateBridgePort(ctx context.Context, in *CreateBridgePortRequest, opts ...grpc.CallOption) (*BridgePort, error) { + out := new(BridgePort) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/CreateBridgePort", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bridgePortServiceClient) ListBridgePorts(ctx context.Context, in *ListBridgePortsRequest, opts ...grpc.CallOption) (*ListBridgePortsResponse, error) { + out := new(ListBridgePortsResponse) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/ListBridgePorts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bridgePortServiceClient) GetBridgePort(ctx context.Context, in *GetBridgePortRequest, opts ...grpc.CallOption) (*BridgePort, error) { + out := new(BridgePort) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/GetBridgePort", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *bridgePortServiceClient) DeleteBridgePort(ctx context.Context, in *DeleteBridgePortRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/DeleteBridgePort", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// BridgePortServiceServer is the server API for BridgePortService service. +type BridgePortServiceServer interface { + // Create a Bridge Port + CreateBridgePort(context.Context, *CreateBridgePortRequest) (*BridgePort, error) + // List Bridge Ports + ListBridgePorts(context.Context, *ListBridgePortsRequest) (*ListBridgePortsResponse, error) + // Retrieve a Bridge Port + GetBridgePort(context.Context, *GetBridgePortRequest) (*BridgePort, error) + // Delete a Bridge Port + DeleteBridgePort(context.Context, *DeleteBridgePortRequest) (*emptypb.Empty, error) +} + +// UnimplementedBridgePortServiceServer can be embedded to have forward compatible implementations. +type UnimplementedBridgePortServiceServer struct { +} + +func (*UnimplementedBridgePortServiceServer) CreateBridgePort(context.Context, *CreateBridgePortRequest) (*BridgePort, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateBridgePort not implemented") +} +func (*UnimplementedBridgePortServiceServer) ListBridgePorts(context.Context, *ListBridgePortsRequest) (*ListBridgePortsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListBridgePorts not implemented") +} +func (*UnimplementedBridgePortServiceServer) GetBridgePort(context.Context, *GetBridgePortRequest) (*BridgePort, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetBridgePort not implemented") +} +func (*UnimplementedBridgePortServiceServer) DeleteBridgePort(context.Context, *DeleteBridgePortRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteBridgePort not implemented") +} + +func RegisterBridgePortServiceServer(s *grpc.Server, srv BridgePortServiceServer) { + s.RegisterService(&_BridgePortService_serviceDesc, srv) +} + +func _BridgePortService_CreateBridgePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateBridgePortRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BridgePortServiceServer).CreateBridgePort(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/CreateBridgePort", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BridgePortServiceServer).CreateBridgePort(ctx, req.(*CreateBridgePortRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _BridgePortService_ListBridgePorts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListBridgePortsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BridgePortServiceServer).ListBridgePorts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/ListBridgePorts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BridgePortServiceServer).ListBridgePorts(ctx, req.(*ListBridgePortsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _BridgePortService_GetBridgePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetBridgePortRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BridgePortServiceServer).GetBridgePort(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/GetBridgePort", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BridgePortServiceServer).GetBridgePort(ctx, req.(*GetBridgePortRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _BridgePortService_DeleteBridgePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteBridgePortRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BridgePortServiceServer).DeleteBridgePort(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/DeleteBridgePort", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BridgePortServiceServer).DeleteBridgePort(ctx, req.(*DeleteBridgePortRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _BridgePortService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "opi_api.network.evpn_gw.v1alpha1.BridgePortService", + HandlerType: (*BridgePortServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateBridgePort", + Handler: _BridgePortService_CreateBridgePort_Handler, + }, + { + MethodName: "ListBridgePorts", + Handler: _BridgePortService_ListBridgePorts_Handler, + }, + { + MethodName: "GetBridgePort", + Handler: _BridgePortService_GetBridgePort_Handler, + }, + { + MethodName: "DeleteBridgePort", + Handler: _BridgePortService_DeleteBridgePort_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "l2_xpu_infra_mgr.proto", +} diff --git a/network/evpn-gw/v1alpha1/gen/go/l3_xpu_infra_mgr.pb.go b/network/evpn-gw/v1alpha1/gen/go/l3_xpu_infra_mgr.pb.go new file mode 100644 index 00000000..992993cf --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/go/l3_xpu_infra_mgr.pb.go @@ -0,0 +1,2111 @@ +// 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". --) + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0 +// protoc v3.19.4 +// source: l3_xpu_infra_mgr.proto + +package _go + +import ( + context "context" + _go "github.com/opiproject/opi-api/network/opinetcommon/v1alpha1/gen/go" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// VRFOperStatus status reflects the operational status of a Vrf +type VRFOperStatus int32 + +const ( + // unknown + VRFOperStatus_VRF_OPER_STATUS_UNSPECIFIED VRFOperStatus = 0 + // Vrf is up + VRFOperStatus_VRF_OPER_STATUS_UP VRFOperStatus = 1 + // Vrf is down + VRFOperStatus_VRF_OPER_STATUS_DOWN VRFOperStatus = 2 +) + +// Enum value maps for VRFOperStatus. +var ( + VRFOperStatus_name = map[int32]string{ + 0: "VRF_OPER_STATUS_UNSPECIFIED", + 1: "VRF_OPER_STATUS_UP", + 2: "VRF_OPER_STATUS_DOWN", + } + VRFOperStatus_value = map[string]int32{ + "VRF_OPER_STATUS_UNSPECIFIED": 0, + "VRF_OPER_STATUS_UP": 1, + "VRF_OPER_STATUS_DOWN": 2, + } +) + +func (x VRFOperStatus) Enum() *VRFOperStatus { + p := new(VRFOperStatus) + *p = x + return p +} + +func (x VRFOperStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (VRFOperStatus) Descriptor() protoreflect.EnumDescriptor { + return file_l3_xpu_infra_mgr_proto_enumTypes[0].Descriptor() +} + +func (VRFOperStatus) Type() protoreflect.EnumType { + return &file_l3_xpu_infra_mgr_proto_enumTypes[0] +} + +func (x VRFOperStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use VRFOperStatus.Descriptor instead. +func (VRFOperStatus) EnumDescriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{0} +} + +// SVIOperStatus status reflects the operational status of a Svi +type SVIOperStatus int32 + +const ( + // unknown + SVIOperStatus_SVI_OPER_STATUS_UNSPECIFIED SVIOperStatus = 0 + // Svi is up + SVIOperStatus_SVI_OPER_STATUS_UP SVIOperStatus = 1 + // Svi is down + SVIOperStatus_SVI_OPER_STATUS_DOWN SVIOperStatus = 2 +) + +// Enum value maps for SVIOperStatus. +var ( + SVIOperStatus_name = map[int32]string{ + 0: "SVI_OPER_STATUS_UNSPECIFIED", + 1: "SVI_OPER_STATUS_UP", + 2: "SVI_OPER_STATUS_DOWN", + } + SVIOperStatus_value = map[string]int32{ + "SVI_OPER_STATUS_UNSPECIFIED": 0, + "SVI_OPER_STATUS_UP": 1, + "SVI_OPER_STATUS_DOWN": 2, + } +) + +func (x SVIOperStatus) Enum() *SVIOperStatus { + p := new(SVIOperStatus) + *p = x + return p +} + +func (x SVIOperStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SVIOperStatus) Descriptor() protoreflect.EnumDescriptor { + return file_l3_xpu_infra_mgr_proto_enumTypes[1].Descriptor() +} + +func (SVIOperStatus) Type() protoreflect.EnumType { + return &file_l3_xpu_infra_mgr_proto_enumTypes[1] +} + +func (x SVIOperStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SVIOperStatus.Descriptor instead. +func (SVIOperStatus) EnumDescriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{1} +} + +// Vrf level network configuration +type Vrf struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // 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} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Vrf's network configuration + Spec *VrfSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + // Vrf's network status + Status *VrfStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *Vrf) Reset() { + *x = Vrf{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Vrf) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Vrf) ProtoMessage() {} + +func (x *Vrf) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Vrf.ProtoReflect.Descriptor instead. +func (*Vrf) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{0} +} + +func (x *Vrf) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Vrf) GetSpec() *VrfSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *Vrf) GetStatus() *VrfStatus { + if x != nil { + return x.Status + } + return nil +} + +// Vrf network configuration +type VrfSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // 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. --) + Vni uint32 `protobuf:"varint,1,opt,name=vni,proto3" json:"vni,omitempty"` + // IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR + LoopbackIpPrefix *_go.IPPrefix `protobuf:"bytes,2,opt,name=loopback_ip_prefix,json=loopbackIpPrefix,proto3" json:"loopback_ip_prefix,omitempty"` + // IPv4 or IPv6 IP address prefix for the VXLAN TEP + VtepIpPrefix *_go.IPPrefix `protobuf:"bytes,3,opt,name=vtep_ip_prefix,json=vtepIpPrefix,proto3" json:"vtep_ip_prefix,omitempty"` +} + +func (x *VrfSpec) Reset() { + *x = VrfSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VrfSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VrfSpec) ProtoMessage() {} + +func (x *VrfSpec) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VrfSpec.ProtoReflect.Descriptor instead. +func (*VrfSpec) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{1} +} + +func (x *VrfSpec) GetVni() uint32 { + if x != nil { + return x.Vni + } + return 0 +} + +func (x *VrfSpec) GetLoopbackIpPrefix() *_go.IPPrefix { + if x != nil { + return x.LoopbackIpPrefix + } + return nil +} + +func (x *VrfSpec) GetVtepIpPrefix() *_go.IPPrefix { + if x != nil { + return x.VtepIpPrefix + } + return nil +} + +// operational status of a Vrf +type VrfStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Routing table number + // (-- api-linter: core::0141::forbidden-types=disabled + // aip.dev/not-precedent: routing_table cannot be negative number. --) + RoutingTable uint32 `protobuf:"varint,1,opt,name=routing_table,json=routingTable,proto3" json:"routing_table,omitempty"` + // Local AS configured for VRF + // (-- api-linter: core::0141::forbidden-types=disabled + // aip.dev/not-precedent: local_as cannot be negative number. --) + LocalAs uint32 `protobuf:"varint,2,opt,name=local_as,json=localAs,proto3" json:"local_as,omitempty"` + // Route distinguisher + Rd string `protobuf:"bytes,3,opt,name=rd,proto3" json:"rd,omitempty"` + // Router MAC address of the Vrf + Rmac []byte `protobuf:"bytes,4,opt,name=rmac,proto3" json:"rmac,omitempty"` + // List of import RTs + ImportRts []string `protobuf:"bytes,5,rep,name=import_rts,json=importRts,proto3" json:"import_rts,omitempty"` + // List of export RTs + ExportRts []string `protobuf:"bytes,6,rep,name=export_rts,json=exportRts,proto3" json:"export_rts,omitempty"` + // List of connected Logical Bridges to Vrf + // This defines the VLANs that are connected to the Vrf + LogicalBridges []string `protobuf:"bytes,7,rep,name=logical_bridges,json=logicalBridges,proto3" json:"logical_bridges,omitempty"` + // operational status of a Vrf + OperStatus VRFOperStatus `protobuf:"varint,8,opt,name=oper_status,json=operStatus,proto3,enum=opi_api.network.evpn_gw.v1alpha1.VRFOperStatus" json:"oper_status,omitempty"` +} + +func (x *VrfStatus) Reset() { + *x = VrfStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VrfStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VrfStatus) ProtoMessage() {} + +func (x *VrfStatus) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VrfStatus.ProtoReflect.Descriptor instead. +func (*VrfStatus) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{2} +} + +func (x *VrfStatus) GetRoutingTable() uint32 { + if x != nil { + return x.RoutingTable + } + return 0 +} + +func (x *VrfStatus) GetLocalAs() uint32 { + if x != nil { + return x.LocalAs + } + return 0 +} + +func (x *VrfStatus) GetRd() string { + if x != nil { + return x.Rd + } + return "" +} + +func (x *VrfStatus) GetRmac() []byte { + if x != nil { + return x.Rmac + } + return nil +} + +func (x *VrfStatus) GetImportRts() []string { + if x != nil { + return x.ImportRts + } + return nil +} + +func (x *VrfStatus) GetExportRts() []string { + if x != nil { + return x.ExportRts + } + return nil +} + +func (x *VrfStatus) GetLogicalBridges() []string { + if x != nil { + return x.LogicalBridges + } + return nil +} + +func (x *VrfStatus) GetOperStatus() VRFOperStatus { + if x != nil { + return x.OperStatus + } + return VRFOperStatus_VRF_OPER_STATUS_UNSPECIFIED +} + +// CreateVrfRequest structure +type CreateVrfRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // 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. + VrfId string `protobuf:"bytes,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"` + // The vrf to create + Vrf *Vrf `protobuf:"bytes,2,opt,name=vrf,proto3" json:"vrf,omitempty"` +} + +func (x *CreateVrfRequest) Reset() { + *x = CreateVrfRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateVrfRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateVrfRequest) ProtoMessage() {} + +func (x *CreateVrfRequest) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateVrfRequest.ProtoReflect.Descriptor instead. +func (*CreateVrfRequest) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{3} +} + +func (x *CreateVrfRequest) GetVrfId() string { + if x != nil { + return x.VrfId + } + return "" +} + +func (x *CreateVrfRequest) GetVrf() *Vrf { + if x != nil { + return x.Vrf + } + return nil +} + +// ListVrfsRequest structure +type ListVrfsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // page size of list request + PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // page token of list request + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` +} + +func (x *ListVrfsRequest) Reset() { + *x = ListVrfsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListVrfsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListVrfsRequest) ProtoMessage() {} + +func (x *ListVrfsRequest) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListVrfsRequest.ProtoReflect.Descriptor instead. +func (*ListVrfsRequest) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{4} +} + +func (x *ListVrfsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListVrfsRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +// ListVrfsResponse structure +type ListVrfsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of all the vrfs + Vrfs []*Vrf `protobuf:"bytes,1,rep,name=vrfs,proto3" json:"vrfs,omitempty"` + // Next page token of list response + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListVrfsResponse) Reset() { + *x = ListVrfsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListVrfsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListVrfsResponse) ProtoMessage() {} + +func (x *ListVrfsResponse) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListVrfsResponse.ProtoReflect.Descriptor instead. +func (*ListVrfsResponse) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{5} +} + +func (x *ListVrfsResponse) GetVrfs() []*Vrf { + if x != nil { + return x.Vrfs + } + return nil +} + +func (x *ListVrfsResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +// GetVrfRequest structure +type GetVrfRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the vrf to retrieve + // Format: vrfs/{vrf} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *GetVrfRequest) Reset() { + *x = GetVrfRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetVrfRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetVrfRequest) ProtoMessage() {} + +func (x *GetVrfRequest) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetVrfRequest.ProtoReflect.Descriptor instead. +func (*GetVrfRequest) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{6} +} + +func (x *GetVrfRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// DeleteVrfRequest structure +type DeleteVrfRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the vrf to delete + // Format: vrfs/{vrf} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *DeleteVrfRequest) Reset() { + *x = DeleteVrfRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteVrfRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteVrfRequest) ProtoMessage() {} + +func (x *DeleteVrfRequest) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteVrfRequest.ProtoReflect.Descriptor instead. +func (*DeleteVrfRequest) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{7} +} + +func (x *DeleteVrfRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Svi network configuration +type Svi struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // 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} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Svi's network configuration + Spec *SviSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + // Svi's network status + Status *SviStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *Svi) Reset() { + *x = Svi{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Svi) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Svi) ProtoMessage() {} + +func (x *Svi) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Svi.ProtoReflect.Descriptor instead. +func (*Svi) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{8} +} + +func (x *Svi) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Svi) GetSpec() *SviSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *Svi) GetStatus() *SviStatus { + if x != nil { + return x.Status + } + return nil +} + +// Svi's network configuration +type SviSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + //Vrf name + // Format is `vrfs/{vrf}` + Vrf string `protobuf:"bytes,1,opt,name=vrf,proto3" json:"vrf,omitempty"` + // Logical Bridge name + // Format is `logicalBridges/{logical_bridge}` + LogicalBridge string `protobuf:"bytes,2,opt,name=logical_bridge,json=logicalBridge,proto3" json:"logical_bridge,omitempty"` + // Svi's MAC address. + MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` + // The GW IP addresses assigned to the SVI + GwIpPrefix []*_go.IPPrefix `protobuf:"bytes,4,rep,name=gw_ip_prefix,json=gwIpPrefix,proto3" json:"gw_ip_prefix,omitempty"` + // Set to true to enable BGP peering with Vrf on Svi + EnableBgp bool `protobuf:"varint,5,opt,name=enable_bgp,json=enableBgp,proto3" json:"enable_bgp,omitempty"` + // 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. --) + RemoteAs uint32 `protobuf:"varint,6,opt,name=remote_as,json=remoteAs,proto3" json:"remote_as,omitempty"` +} + +func (x *SviSpec) Reset() { + *x = SviSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SviSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SviSpec) ProtoMessage() {} + +func (x *SviSpec) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SviSpec.ProtoReflect.Descriptor instead. +func (*SviSpec) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{9} +} + +func (x *SviSpec) GetVrf() string { + if x != nil { + return x.Vrf + } + return "" +} + +func (x *SviSpec) GetLogicalBridge() string { + if x != nil { + return x.LogicalBridge + } + return "" +} + +func (x *SviSpec) GetMacAddress() []byte { + if x != nil { + return x.MacAddress + } + return nil +} + +func (x *SviSpec) GetGwIpPrefix() []*_go.IPPrefix { + if x != nil { + return x.GwIpPrefix + } + return nil +} + +func (x *SviSpec) GetEnableBgp() bool { + if x != nil { + return x.EnableBgp + } + return false +} + +func (x *SviSpec) GetRemoteAs() uint32 { + if x != nil { + return x.RemoteAs + } + return 0 +} + +// operational status of a Svi +type SviStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // operational status of a Svi + OperStatus SVIOperStatus `protobuf:"varint,1,opt,name=oper_status,json=operStatus,proto3,enum=opi_api.network.evpn_gw.v1alpha1.SVIOperStatus" json:"oper_status,omitempty"` +} + +func (x *SviStatus) Reset() { + *x = SviStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SviStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SviStatus) ProtoMessage() {} + +func (x *SviStatus) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SviStatus.ProtoReflect.Descriptor instead. +func (*SviStatus) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{10} +} + +func (x *SviStatus) GetOperStatus() SVIOperStatus { + if x != nil { + return x.OperStatus + } + return SVIOperStatus_SVI_OPER_STATUS_UNSPECIFIED +} + +// CreateSviRequest structure +type CreateSviRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // 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. + SviId string `protobuf:"bytes,1,opt,name=svi_id,json=sviId,proto3" json:"svi_id,omitempty"` + // The Svi to create + Svi *Svi `protobuf:"bytes,2,opt,name=svi,proto3" json:"svi,omitempty"` +} + +func (x *CreateSviRequest) Reset() { + *x = CreateSviRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateSviRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateSviRequest) ProtoMessage() {} + +func (x *CreateSviRequest) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateSviRequest.ProtoReflect.Descriptor instead. +func (*CreateSviRequest) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{11} +} + +func (x *CreateSviRequest) GetSviId() string { + if x != nil { + return x.SviId + } + return "" +} + +func (x *CreateSviRequest) GetSvi() *Svi { + if x != nil { + return x.Svi + } + return nil +} + +// ListSvisRequest structure +type ListSvisRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // page size of list request + PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // page token of list request + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` +} + +func (x *ListSvisRequest) Reset() { + *x = ListSvisRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSvisRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSvisRequest) ProtoMessage() {} + +func (x *ListSvisRequest) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSvisRequest.ProtoReflect.Descriptor instead. +func (*ListSvisRequest) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{12} +} + +func (x *ListSvisRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListSvisRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +// ListSvisResponse structure +type ListSvisResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of all the svis + Svis []*Svi `protobuf:"bytes,1,rep,name=svis,proto3" json:"svis,omitempty"` + // Next page token of list response + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListSvisResponse) Reset() { + *x = ListSvisResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSvisResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSvisResponse) ProtoMessage() {} + +func (x *ListSvisResponse) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSvisResponse.ProtoReflect.Descriptor instead. +func (*ListSvisResponse) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{13} +} + +func (x *ListSvisResponse) GetSvis() []*Svi { + if x != nil { + return x.Svis + } + return nil +} + +func (x *ListSvisResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +// GetSviRequest structure +type GetSviRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the svi to retrieve + // Format: svis/{svi} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *GetSviRequest) Reset() { + *x = GetSviRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSviRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSviRequest) ProtoMessage() {} + +func (x *GetSviRequest) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSviRequest.ProtoReflect.Descriptor instead. +func (*GetSviRequest) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{14} +} + +func (x *GetSviRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// DeleteSviRequest structure +type DeleteSviRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the svi to delete + // Format: svis/{svi} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *DeleteSviRequest) Reset() { + *x = DeleteSviRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteSviRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteSviRequest) ProtoMessage() {} + +func (x *DeleteSviRequest) ProtoReflect() protoreflect.Message { + mi := &file_l3_xpu_infra_mgr_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteSviRequest.ProtoReflect.Descriptor instead. +func (*DeleteSviRequest) Descriptor() ([]byte, []int) { + return file_l3_xpu_infra_mgr_proto_rawDescGZIP(), []int{15} +} + +func (x *DeleteSviRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +var File_l3_xpu_infra_mgr_proto protoreflect.FileDescriptor + +var file_l3_xpu_infra_mgr_proto_rawDesc = []byte{ + 0x0a, 0x16, 0x6c, 0x33, 0x5f, 0x78, 0x70, 0x75, 0x5f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x5f, 0x6d, + 0x67, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x12, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd9, + 0x01, 0x0a, 0x03, 0x56, 0x72, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x04, 0x73, 0x70, + 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, + 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, + 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x72, 0x66, 0x53, + 0x70, 0x65, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x43, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, + 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x56, 0x72, 0x66, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x3a, 0x35, 0xea, 0x41, 0x32, 0x0a, 0x24, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x56, 0x72, 0x66, 0x12, 0x0a, + 0x76, 0x72, 0x66, 0x73, 0x2f, 0x7b, 0x76, 0x72, 0x66, 0x7d, 0x22, 0xd6, 0x01, 0x0a, 0x07, 0x56, + 0x72, 0x66, 0x53, 0x70, 0x65, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x6e, 0x69, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x03, 0x76, 0x6e, 0x69, 0x12, 0x62, 0x0a, 0x12, 0x6c, 0x6f, 0x6f, 0x70, + 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x6f, 0x70, 0x69, 0x6e, 0x65, 0x74, 0x63, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x49, 0x50, 0x50, + 0x72, 0x65, 0x66, 0x69, 0x78, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x6c, 0x6f, 0x6f, 0x70, + 0x62, 0x61, 0x63, 0x6b, 0x49, 0x70, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x55, 0x0a, 0x0e, + 0x76, 0x74, 0x65, 0x70, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x6f, 0x70, 0x69, 0x6e, 0x65, 0x74, 0x63, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x49, 0x50, 0x50, + 0x72, 0x65, 0x66, 0x69, 0x78, 0x52, 0x0c, 0x76, 0x74, 0x65, 0x70, 0x49, 0x70, 0x50, 0x72, 0x65, + 0x66, 0x69, 0x78, 0x22, 0xa8, 0x02, 0x0a, 0x09, 0x56, 0x72, 0x66, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, + 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, + 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, + 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x72, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6d, 0x61, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x04, 0x72, 0x6d, 0x61, 0x63, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, + 0x72, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x70, 0x6f, 0x72, + 0x74, 0x52, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, + 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x52, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, + 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6c, 0x6f, + 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x12, 0x50, 0x0a, 0x0b, + 0x6f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x2f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x52, 0x46, 0x4f, 0x70, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x67, + 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x72, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x72, 0x66, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x03, 0x76, 0x72, 0x66, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, + 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x72, 0x66, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x03, 0x76, 0x72, 0x66, 0x22, 0x4d, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x56, + 0x72, 0x66, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, + 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x75, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x72, + 0x66, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x76, 0x72, + 0x66, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, + 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, + 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x72, 0x66, 0x52, + 0x04, 0x76, 0x72, 0x66, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x51, 0x0a, + 0x0d, 0x47, 0x65, 0x74, 0x56, 0x72, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41, + 0x02, 0xfa, 0x41, 0x26, 0x0a, 0x24, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x56, 0x72, 0x66, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x54, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x72, 0x66, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x26, 0x0a, 0x24, 0x6f, 0x70, 0x69, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, + 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x56, 0x72, 0x66, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd9, 0x01, 0x0a, 0x03, 0x53, 0x76, 0x69, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x53, 0x76, 0x69, 0x53, 0x70, 0x65, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x43, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, + 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x76, 0x69, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x3a, 0x35, 0xea, 0x41, 0x32, + 0x0a, 0x24, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2f, 0x53, 0x76, 0x69, 0x12, 0x0a, 0x73, 0x76, 0x69, 0x73, 0x2f, 0x7b, 0x73, 0x76, + 0x69, 0x7d, 0x22, 0xe2, 0x02, 0x0a, 0x07, 0x53, 0x76, 0x69, 0x53, 0x70, 0x65, 0x63, 0x12, 0x3e, + 0x0a, 0x03, 0x76, 0x72, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41, 0x02, + 0xfa, 0x41, 0x26, 0x0a, 0x24, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x56, 0x72, 0x66, 0x52, 0x03, 0x76, 0x72, 0x66, 0x12, 0x5d, + 0x0a, 0x0e, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x0a, 0x2e, + 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, + 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2f, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x0d, + 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x12, 0x24, 0x0a, + 0x0b, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x6d, 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x56, 0x0a, 0x0c, 0x67, 0x77, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x72, 0x65, + 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x6f, 0x70, 0x69, 0x6e, + 0x65, 0x74, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x49, 0x50, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x0a, 0x67, 0x77, 0x49, 0x70, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x1d, 0x0a, 0x0a, 0x65, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x62, 0x67, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x09, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x67, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, + 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x61, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x41, 0x73, 0x22, 0x5d, 0x0a, 0x09, 0x53, 0x76, 0x69, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x50, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, + 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x56, 0x49, + 0x4f, 0x70, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x67, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x53, 0x76, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x76, + 0x69, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x76, 0x69, 0x49, + 0x64, 0x12, 0x3c, 0x0a, 0x03, 0x73, 0x76, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x31, 0x2e, 0x53, 0x76, 0x69, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x73, 0x76, 0x69, 0x22, + 0x4d, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x76, 0x69, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x75, + 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x76, 0x69, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x73, 0x76, 0x69, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x31, 0x2e, 0x53, 0x76, 0x69, 0x52, 0x04, 0x73, 0x76, 0x69, 0x73, 0x12, 0x26, 0x0a, + 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x51, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x53, 0x76, 0x69, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x26, 0x0a, 0x24, 0x6f, 0x70, + 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, + 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x53, + 0x76, 0x69, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x54, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x53, 0x76, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41, 0x02, 0xfa, + 0x41, 0x26, 0x0a, 0x24, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2f, 0x53, 0x76, 0x69, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x2a, 0x62, + 0x0a, 0x0d, 0x56, 0x52, 0x46, 0x4f, 0x70, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x1f, 0x0a, 0x1b, 0x56, 0x52, 0x46, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x16, 0x0a, 0x12, 0x56, 0x52, 0x46, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x52, 0x46, 0x5f, + 0x4f, 0x50, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x4f, 0x57, 0x4e, + 0x10, 0x02, 0x2a, 0x62, 0x0a, 0x0d, 0x53, 0x56, 0x49, 0x4f, 0x70, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x56, 0x49, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x56, 0x49, 0x5f, 0x4f, 0x50, 0x45, 0x52, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x50, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, + 0x53, 0x56, 0x49, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x32, 0x9f, 0x04, 0x0a, 0x0a, 0x56, 0x72, 0x66, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x56, 0x72, 0x66, 0x12, 0x32, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x72, 0x66, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, + 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x72, 0x66, 0x22, 0x22, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x22, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x72, 0x66, 0x73, + 0x3a, 0x03, 0x76, 0x72, 0x66, 0xda, 0x41, 0x0a, 0x76, 0x72, 0x66, 0x2c, 0x76, 0x72, 0x66, 0x5f, + 0x69, 0x64, 0x12, 0x83, 0x01, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x72, 0x66, 0x73, 0x12, + 0x31, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x72, 0x66, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x72, 0x66, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x10, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x12, 0x08, + 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x72, 0x66, 0x73, 0x12, 0x82, 0x01, 0x0a, 0x06, 0x47, 0x65, 0x74, + 0x56, 0x72, 0x66, 0x12, 0x2f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x72, 0x66, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x72, 0x66, 0x22, 0x20, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76, + 0x72, 0x66, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x79, 0x0a, + 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x72, 0x66, 0x12, 0x32, 0x2e, 0x6f, 0x70, 0x69, + 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, + 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x56, 0x72, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x2a, 0x11, + 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76, 0x72, 0x66, 0x73, 0x2f, 0x2a, + 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0x9f, 0x04, 0x0a, 0x0a, 0x53, 0x76, 0x69, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x53, 0x76, 0x69, 0x12, 0x32, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, + 0x76, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6f, 0x70, 0x69, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, + 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x76, 0x69, + 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x22, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x76, + 0x69, 0x73, 0x3a, 0x03, 0x73, 0x76, 0x69, 0xda, 0x41, 0x0a, 0x73, 0x76, 0x69, 0x2c, 0x73, 0x76, + 0x69, 0x5f, 0x69, 0x64, 0x12, 0x83, 0x01, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x76, 0x69, + 0x73, 0x12, 0x31, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x76, 0x69, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x76, 0x69, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x10, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, + 0x12, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x76, 0x69, 0x73, 0x12, 0x82, 0x01, 0x0a, 0x06, 0x47, + 0x65, 0x74, 0x53, 0x76, 0x69, 0x12, 0x2f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x76, 0x69, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, + 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x76, 0x69, 0x22, 0x20, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, + 0x3d, 0x73, 0x76, 0x69, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x79, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x76, 0x69, 0x12, 0x32, 0x2e, 0x6f, + 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, + 0x76, 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x76, 0x69, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, + 0x2a, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x76, 0x69, 0x73, + 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x77, 0x0a, 0x20, 0x6f, 0x70, + 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, + 0x70, 0x6e, 0x5f, 0x67, 0x77, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x12, + 0x4c, 0x33, 0x58, 0x70, 0x75, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x4d, 0x67, 0x72, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x6f, 0x70, 0x69, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x70, 0x69, 0x2d, + 0x61, 0x70, 0x69, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x65, 0x76, 0x70, 0x6e, + 0x2d, 0x67, 0x77, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_l3_xpu_infra_mgr_proto_rawDescOnce sync.Once + file_l3_xpu_infra_mgr_proto_rawDescData = file_l3_xpu_infra_mgr_proto_rawDesc +) + +func file_l3_xpu_infra_mgr_proto_rawDescGZIP() []byte { + file_l3_xpu_infra_mgr_proto_rawDescOnce.Do(func() { + file_l3_xpu_infra_mgr_proto_rawDescData = protoimpl.X.CompressGZIP(file_l3_xpu_infra_mgr_proto_rawDescData) + }) + return file_l3_xpu_infra_mgr_proto_rawDescData +} + +var file_l3_xpu_infra_mgr_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_l3_xpu_infra_mgr_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_l3_xpu_infra_mgr_proto_goTypes = []interface{}{ + (VRFOperStatus)(0), // 0: opi_api.network.evpn_gw.v1alpha1.VRFOperStatus + (SVIOperStatus)(0), // 1: opi_api.network.evpn_gw.v1alpha1.SVIOperStatus + (*Vrf)(nil), // 2: opi_api.network.evpn_gw.v1alpha1.Vrf + (*VrfSpec)(nil), // 3: opi_api.network.evpn_gw.v1alpha1.VrfSpec + (*VrfStatus)(nil), // 4: opi_api.network.evpn_gw.v1alpha1.VrfStatus + (*CreateVrfRequest)(nil), // 5: opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest + (*ListVrfsRequest)(nil), // 6: opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest + (*ListVrfsResponse)(nil), // 7: opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse + (*GetVrfRequest)(nil), // 8: opi_api.network.evpn_gw.v1alpha1.GetVrfRequest + (*DeleteVrfRequest)(nil), // 9: opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest + (*Svi)(nil), // 10: opi_api.network.evpn_gw.v1alpha1.Svi + (*SviSpec)(nil), // 11: opi_api.network.evpn_gw.v1alpha1.SviSpec + (*SviStatus)(nil), // 12: opi_api.network.evpn_gw.v1alpha1.SviStatus + (*CreateSviRequest)(nil), // 13: opi_api.network.evpn_gw.v1alpha1.CreateSviRequest + (*ListSvisRequest)(nil), // 14: opi_api.network.evpn_gw.v1alpha1.ListSvisRequest + (*ListSvisResponse)(nil), // 15: opi_api.network.evpn_gw.v1alpha1.ListSvisResponse + (*GetSviRequest)(nil), // 16: opi_api.network.evpn_gw.v1alpha1.GetSviRequest + (*DeleteSviRequest)(nil), // 17: opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest + (*_go.IPPrefix)(nil), // 18: opi_api.network.opinetcommon.v1alpha1.IPPrefix + (*emptypb.Empty)(nil), // 19: google.protobuf.Empty +} +var file_l3_xpu_infra_mgr_proto_depIdxs = []int32{ + 3, // 0: opi_api.network.evpn_gw.v1alpha1.Vrf.spec:type_name -> opi_api.network.evpn_gw.v1alpha1.VrfSpec + 4, // 1: opi_api.network.evpn_gw.v1alpha1.Vrf.status:type_name -> opi_api.network.evpn_gw.v1alpha1.VrfStatus + 18, // 2: opi_api.network.evpn_gw.v1alpha1.VrfSpec.loopback_ip_prefix:type_name -> opi_api.network.opinetcommon.v1alpha1.IPPrefix + 18, // 3: opi_api.network.evpn_gw.v1alpha1.VrfSpec.vtep_ip_prefix:type_name -> opi_api.network.opinetcommon.v1alpha1.IPPrefix + 0, // 4: opi_api.network.evpn_gw.v1alpha1.VrfStatus.oper_status:type_name -> opi_api.network.evpn_gw.v1alpha1.VRFOperStatus + 2, // 5: opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf:type_name -> opi_api.network.evpn_gw.v1alpha1.Vrf + 2, // 6: opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.vrfs:type_name -> opi_api.network.evpn_gw.v1alpha1.Vrf + 11, // 7: opi_api.network.evpn_gw.v1alpha1.Svi.spec:type_name -> opi_api.network.evpn_gw.v1alpha1.SviSpec + 12, // 8: opi_api.network.evpn_gw.v1alpha1.Svi.status:type_name -> opi_api.network.evpn_gw.v1alpha1.SviStatus + 18, // 9: opi_api.network.evpn_gw.v1alpha1.SviSpec.gw_ip_prefix:type_name -> opi_api.network.opinetcommon.v1alpha1.IPPrefix + 1, // 10: opi_api.network.evpn_gw.v1alpha1.SviStatus.oper_status:type_name -> opi_api.network.evpn_gw.v1alpha1.SVIOperStatus + 10, // 11: opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi:type_name -> opi_api.network.evpn_gw.v1alpha1.Svi + 10, // 12: opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.svis:type_name -> opi_api.network.evpn_gw.v1alpha1.Svi + 5, // 13: opi_api.network.evpn_gw.v1alpha1.VrfService.CreateVrf:input_type -> opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest + 6, // 14: opi_api.network.evpn_gw.v1alpha1.VrfService.ListVrfs:input_type -> opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest + 8, // 15: opi_api.network.evpn_gw.v1alpha1.VrfService.GetVrf:input_type -> opi_api.network.evpn_gw.v1alpha1.GetVrfRequest + 9, // 16: opi_api.network.evpn_gw.v1alpha1.VrfService.DeleteVrf:input_type -> opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest + 13, // 17: opi_api.network.evpn_gw.v1alpha1.SviService.CreateSvi:input_type -> opi_api.network.evpn_gw.v1alpha1.CreateSviRequest + 14, // 18: opi_api.network.evpn_gw.v1alpha1.SviService.ListSvis:input_type -> opi_api.network.evpn_gw.v1alpha1.ListSvisRequest + 16, // 19: opi_api.network.evpn_gw.v1alpha1.SviService.GetSvi:input_type -> opi_api.network.evpn_gw.v1alpha1.GetSviRequest + 17, // 20: opi_api.network.evpn_gw.v1alpha1.SviService.DeleteSvi:input_type -> opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest + 2, // 21: opi_api.network.evpn_gw.v1alpha1.VrfService.CreateVrf:output_type -> opi_api.network.evpn_gw.v1alpha1.Vrf + 7, // 22: opi_api.network.evpn_gw.v1alpha1.VrfService.ListVrfs:output_type -> opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse + 2, // 23: opi_api.network.evpn_gw.v1alpha1.VrfService.GetVrf:output_type -> opi_api.network.evpn_gw.v1alpha1.Vrf + 19, // 24: opi_api.network.evpn_gw.v1alpha1.VrfService.DeleteVrf:output_type -> google.protobuf.Empty + 10, // 25: opi_api.network.evpn_gw.v1alpha1.SviService.CreateSvi:output_type -> opi_api.network.evpn_gw.v1alpha1.Svi + 15, // 26: opi_api.network.evpn_gw.v1alpha1.SviService.ListSvis:output_type -> opi_api.network.evpn_gw.v1alpha1.ListSvisResponse + 10, // 27: opi_api.network.evpn_gw.v1alpha1.SviService.GetSvi:output_type -> opi_api.network.evpn_gw.v1alpha1.Svi + 19, // 28: opi_api.network.evpn_gw.v1alpha1.SviService.DeleteSvi:output_type -> google.protobuf.Empty + 21, // [21:29] is the sub-list for method output_type + 13, // [13:21] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name +} + +func init() { file_l3_xpu_infra_mgr_proto_init() } +func file_l3_xpu_infra_mgr_proto_init() { + if File_l3_xpu_infra_mgr_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_l3_xpu_infra_mgr_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Vrf); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VrfSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VrfStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateVrfRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListVrfsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListVrfsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetVrfRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteVrfRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Svi); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SviSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SviStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateSviRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSvisRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSvisResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSviRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_l3_xpu_infra_mgr_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteSviRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_l3_xpu_infra_mgr_proto_rawDesc, + NumEnums: 2, + NumMessages: 16, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_l3_xpu_infra_mgr_proto_goTypes, + DependencyIndexes: file_l3_xpu_infra_mgr_proto_depIdxs, + EnumInfos: file_l3_xpu_infra_mgr_proto_enumTypes, + MessageInfos: file_l3_xpu_infra_mgr_proto_msgTypes, + }.Build() + File_l3_xpu_infra_mgr_proto = out.File + file_l3_xpu_infra_mgr_proto_rawDesc = nil + file_l3_xpu_infra_mgr_proto_goTypes = nil + file_l3_xpu_infra_mgr_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// VrfServiceClient is the client API for VrfService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type VrfServiceClient interface { + // Create a Vrf + CreateVrf(ctx context.Context, in *CreateVrfRequest, opts ...grpc.CallOption) (*Vrf, error) + // List Vrfs + ListVrfs(ctx context.Context, in *ListVrfsRequest, opts ...grpc.CallOption) (*ListVrfsResponse, error) + // Retrieve a Vrf + GetVrf(ctx context.Context, in *GetVrfRequest, opts ...grpc.CallOption) (*Vrf, error) + // Delete a Vrf + DeleteVrf(ctx context.Context, in *DeleteVrfRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) +} + +type vrfServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewVrfServiceClient(cc grpc.ClientConnInterface) VrfServiceClient { + return &vrfServiceClient{cc} +} + +func (c *vrfServiceClient) CreateVrf(ctx context.Context, in *CreateVrfRequest, opts ...grpc.CallOption) (*Vrf, error) { + out := new(Vrf) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.VrfService/CreateVrf", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vrfServiceClient) ListVrfs(ctx context.Context, in *ListVrfsRequest, opts ...grpc.CallOption) (*ListVrfsResponse, error) { + out := new(ListVrfsResponse) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.VrfService/ListVrfs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vrfServiceClient) GetVrf(ctx context.Context, in *GetVrfRequest, opts ...grpc.CallOption) (*Vrf, error) { + out := new(Vrf) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.VrfService/GetVrf", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vrfServiceClient) DeleteVrf(ctx context.Context, in *DeleteVrfRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.VrfService/DeleteVrf", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// VrfServiceServer is the server API for VrfService service. +type VrfServiceServer interface { + // Create a Vrf + CreateVrf(context.Context, *CreateVrfRequest) (*Vrf, error) + // List Vrfs + ListVrfs(context.Context, *ListVrfsRequest) (*ListVrfsResponse, error) + // Retrieve a Vrf + GetVrf(context.Context, *GetVrfRequest) (*Vrf, error) + // Delete a Vrf + DeleteVrf(context.Context, *DeleteVrfRequest) (*emptypb.Empty, error) +} + +// UnimplementedVrfServiceServer can be embedded to have forward compatible implementations. +type UnimplementedVrfServiceServer struct { +} + +func (*UnimplementedVrfServiceServer) CreateVrf(context.Context, *CreateVrfRequest) (*Vrf, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateVrf not implemented") +} +func (*UnimplementedVrfServiceServer) ListVrfs(context.Context, *ListVrfsRequest) (*ListVrfsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListVrfs not implemented") +} +func (*UnimplementedVrfServiceServer) GetVrf(context.Context, *GetVrfRequest) (*Vrf, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetVrf not implemented") +} +func (*UnimplementedVrfServiceServer) DeleteVrf(context.Context, *DeleteVrfRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteVrf not implemented") +} + +func RegisterVrfServiceServer(s *grpc.Server, srv VrfServiceServer) { + s.RegisterService(&_VrfService_serviceDesc, srv) +} + +func _VrfService_CreateVrf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateVrfRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VrfServiceServer).CreateVrf(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.VrfService/CreateVrf", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VrfServiceServer).CreateVrf(ctx, req.(*CreateVrfRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VrfService_ListVrfs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListVrfsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VrfServiceServer).ListVrfs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.VrfService/ListVrfs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VrfServiceServer).ListVrfs(ctx, req.(*ListVrfsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VrfService_GetVrf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetVrfRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VrfServiceServer).GetVrf(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.VrfService/GetVrf", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VrfServiceServer).GetVrf(ctx, req.(*GetVrfRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VrfService_DeleteVrf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteVrfRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VrfServiceServer).DeleteVrf(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.VrfService/DeleteVrf", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VrfServiceServer).DeleteVrf(ctx, req.(*DeleteVrfRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _VrfService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "opi_api.network.evpn_gw.v1alpha1.VrfService", + HandlerType: (*VrfServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateVrf", + Handler: _VrfService_CreateVrf_Handler, + }, + { + MethodName: "ListVrfs", + Handler: _VrfService_ListVrfs_Handler, + }, + { + MethodName: "GetVrf", + Handler: _VrfService_GetVrf_Handler, + }, + { + MethodName: "DeleteVrf", + Handler: _VrfService_DeleteVrf_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "l3_xpu_infra_mgr.proto", +} + +// SviServiceClient is the client API for SviService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SviServiceClient interface { + // Create a Svi + CreateSvi(ctx context.Context, in *CreateSviRequest, opts ...grpc.CallOption) (*Svi, error) + // List Svis + ListSvis(ctx context.Context, in *ListSvisRequest, opts ...grpc.CallOption) (*ListSvisResponse, error) + // Retrieve a Svi + GetSvi(ctx context.Context, in *GetSviRequest, opts ...grpc.CallOption) (*Svi, error) + // Delete a Svi + DeleteSvi(ctx context.Context, in *DeleteSviRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) +} + +type sviServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSviServiceClient(cc grpc.ClientConnInterface) SviServiceClient { + return &sviServiceClient{cc} +} + +func (c *sviServiceClient) CreateSvi(ctx context.Context, in *CreateSviRequest, opts ...grpc.CallOption) (*Svi, error) { + out := new(Svi) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.SviService/CreateSvi", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *sviServiceClient) ListSvis(ctx context.Context, in *ListSvisRequest, opts ...grpc.CallOption) (*ListSvisResponse, error) { + out := new(ListSvisResponse) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.SviService/ListSvis", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *sviServiceClient) GetSvi(ctx context.Context, in *GetSviRequest, opts ...grpc.CallOption) (*Svi, error) { + out := new(Svi) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.SviService/GetSvi", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *sviServiceClient) DeleteSvi(ctx context.Context, in *DeleteSviRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.SviService/DeleteSvi", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SviServiceServer is the server API for SviService service. +type SviServiceServer interface { + // Create a Svi + CreateSvi(context.Context, *CreateSviRequest) (*Svi, error) + // List Svis + ListSvis(context.Context, *ListSvisRequest) (*ListSvisResponse, error) + // Retrieve a Svi + GetSvi(context.Context, *GetSviRequest) (*Svi, error) + // Delete a Svi + DeleteSvi(context.Context, *DeleteSviRequest) (*emptypb.Empty, error) +} + +// UnimplementedSviServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSviServiceServer struct { +} + +func (*UnimplementedSviServiceServer) CreateSvi(context.Context, *CreateSviRequest) (*Svi, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateSvi not implemented") +} +func (*UnimplementedSviServiceServer) ListSvis(context.Context, *ListSvisRequest) (*ListSvisResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSvis not implemented") +} +func (*UnimplementedSviServiceServer) GetSvi(context.Context, *GetSviRequest) (*Svi, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSvi not implemented") +} +func (*UnimplementedSviServiceServer) DeleteSvi(context.Context, *DeleteSviRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteSvi not implemented") +} + +func RegisterSviServiceServer(s *grpc.Server, srv SviServiceServer) { + s.RegisterService(&_SviService_serviceDesc, srv) +} + +func _SviService_CreateSvi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateSviRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SviServiceServer).CreateSvi(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.SviService/CreateSvi", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SviServiceServer).CreateSvi(ctx, req.(*CreateSviRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SviService_ListSvis_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSvisRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SviServiceServer).ListSvis(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.SviService/ListSvis", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SviServiceServer).ListSvis(ctx, req.(*ListSvisRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SviService_GetSvi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSviRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SviServiceServer).GetSvi(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.SviService/GetSvi", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SviServiceServer).GetSvi(ctx, req.(*GetSviRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SviService_DeleteSvi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteSviRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SviServiceServer).DeleteSvi(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/opi_api.network.evpn_gw.v1alpha1.SviService/DeleteSvi", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SviServiceServer).DeleteSvi(ctx, req.(*DeleteSviRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _SviService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "opi_api.network.evpn_gw.v1alpha1.SviService", + HandlerType: (*SviServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateSvi", + Handler: _SviService_CreateSvi_Handler, + }, + { + MethodName: "ListSvis", + Handler: _SviService_ListSvis_Handler, + }, + { + MethodName: "GetSvi", + Handler: _SviService_GetSvi_Handler, + }, + { + MethodName: "DeleteSvi", + Handler: _SviService_DeleteSvi_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "l3_xpu_infra_mgr.proto", +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BPOperStatus.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BPOperStatus.java new file mode 100644 index 00000000..a7db95c9 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BPOperStatus.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * BPOperStatus status reflects the operational status of a Bridge Port
+ * 
+ * + * Protobuf enum {@code opi_api.network.evpn_gw.v1alpha1.BPOperStatus} + */ +public enum BPOperStatus + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * unknown
+   * 
+ * + * BP_OPER_STATUS_UNSPECIFIED = 0; + */ + BP_OPER_STATUS_UNSPECIFIED(0), + /** + *
+   * Bridge Port is up
+   * 
+ * + * BP_OPER_STATUS_UP = 1; + */ + BP_OPER_STATUS_UP(1), + /** + *
+   * Bridge Port is down
+   * 
+ * + * BP_OPER_STATUS_DOWN = 2; + */ + BP_OPER_STATUS_DOWN(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * unknown
+   * 
+ * + * BP_OPER_STATUS_UNSPECIFIED = 0; + */ + public static final int BP_OPER_STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+   * Bridge Port is up
+   * 
+ * + * BP_OPER_STATUS_UP = 1; + */ + public static final int BP_OPER_STATUS_UP_VALUE = 1; + /** + *
+   * Bridge Port is down
+   * 
+ * + * BP_OPER_STATUS_DOWN = 2; + */ + public static final int BP_OPER_STATUS_DOWN_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BPOperStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BPOperStatus forNumber(int value) { + switch (value) { + case 0: return BP_OPER_STATUS_UNSPECIFIED; + case 1: return BP_OPER_STATUS_UP; + case 2: return BP_OPER_STATUS_DOWN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + BPOperStatus> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BPOperStatus findValueByNumber(int number) { + return BPOperStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.getDescriptor().getEnumTypes().get(1); + } + + private static final BPOperStatus[] VALUES = values(); + + public static BPOperStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BPOperStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:opi_api.network.evpn_gw.v1alpha1.BPOperStatus) +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePort.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePort.java new file mode 100644 index 00000000..5b92c1dd --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePort.java @@ -0,0 +1,1093 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * Bridge Port network configuration and status
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.BridgePort} + */ +public final class BridgePort extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.BridgePort) + BridgePortOrBuilder { +private static final long serialVersionUID = 0L; + // Use BridgePort.newBuilder() to construct. + private BridgePort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BridgePort() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BridgePort(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BridgePort( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.BridgePort.class, opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPEC_FIELD_NUMBER = 2; + private opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec_; + /** + *
+   * Bridge Port network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + * @return Whether the spec field is set. + */ + @java.lang.Override + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+   * Bridge Port network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + * @return The spec. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortSpec getSpec() { + return spec_ == null ? opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.getDefaultInstance() : spec_; + } + /** + *
+   * Bridge Port network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int STATUS_FIELD_NUMBER = 3; + private opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status_; + /** + *
+   * Bridge Port network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + *
+   * Bridge Port network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + * @return The status. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortStatus getStatus() { + return status_ == null ? opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.getDefaultInstance() : status_; + } + /** + *
+   * Bridge Port network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortStatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + if (status_ != null) { + output.writeMessage(3, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.BridgePort)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.BridgePort other = (opi_api.network.evpn_gw.v1alpha1.BridgePort) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.BridgePort parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePort parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePort parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePort parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePort parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePort parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePort parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePort parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePort parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePort parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.BridgePort prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Bridge Port network configuration and status
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.BridgePort} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.BridgePort) + opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.BridgePort.class, opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.BridgePort.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePort_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePort getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.BridgePort.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePort build() { + opi_api.network.evpn_gw.v1alpha1.BridgePort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePort buildPartial() { + opi_api.network.evpn_gw.v1alpha1.BridgePort result = new opi_api.network.evpn_gw.v1alpha1.BridgePort(this); + result.name_ = name_; + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.BridgePort) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.BridgePort)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.BridgePort other) { + if (other == opi_api.network.evpn_gw.v1alpha1.BridgePort.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.BridgePort parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.BridgePort) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec, opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.Builder, opi_api.network.evpn_gw.v1alpha1.BridgePortSpecOrBuilder> specBuilder_; + /** + *
+     * Bridge Port network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + * @return Whether the spec field is set. + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+     * Bridge Port network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + * @return The spec. + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePortSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+     * Bridge Port network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + */ + public Builder setSpec(opi_api.network.evpn_gw.v1alpha1.BridgePortSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Bridge Port network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + */ + public Builder setSpec( + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Bridge Port network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + */ + public Builder mergeSpec(opi_api.network.evpn_gw.v1alpha1.BridgePortSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Bridge Port network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+     * Bridge Port network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+     * Bridge Port network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePortSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.getDefaultInstance() : spec_; + } + } + /** + *
+     * Bridge Port network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec, opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.Builder, opi_api.network.evpn_gw.v1alpha1.BridgePortSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec, opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.Builder, opi_api.network.evpn_gw.v1alpha1.BridgePortSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus, opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.Builder, opi_api.network.evpn_gw.v1alpha1.BridgePortStatusOrBuilder> statusBuilder_; + /** + *
+     * Bridge Port network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + *
+     * Bridge Port network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + * @return The status. + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePortStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+     * Bridge Port network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + */ + public Builder setStatus(opi_api.network.evpn_gw.v1alpha1.BridgePortStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Bridge Port network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + */ + public Builder setStatus( + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Bridge Port network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + */ + public Builder mergeStatus(opi_api.network.evpn_gw.v1alpha1.BridgePortStatus value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Bridge Port network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; + } + /** + *
+     * Bridge Port network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.Builder getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+     * Bridge Port network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePortStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.getDefaultInstance() : status_; + } + } + /** + *
+     * Bridge Port network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus, opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.Builder, opi_api.network.evpn_gw.v1alpha1.BridgePortStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus, opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.Builder, opi_api.network.evpn_gw.v1alpha1.BridgePortStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.BridgePort) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.BridgePort) + private static final opi_api.network.evpn_gw.v1alpha1.BridgePort DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.BridgePort(); + } + + public static opi_api.network.evpn_gw.v1alpha1.BridgePort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BridgePort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BridgePort(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortOrBuilder.java new file mode 100644 index 00000000..b33d1ae1 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortOrBuilder.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface BridgePortOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.BridgePort) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Bridge Port network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + * @return Whether the spec field is set. + */ + boolean hasSpec(); + /** + *
+   * Bridge Port network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + * @return The spec. + */ + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec getSpec(); + /** + *
+   * Bridge Port network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2; + */ + opi_api.network.evpn_gw.v1alpha1.BridgePortSpecOrBuilder getSpecOrBuilder(); + + /** + *
+   * Bridge Port network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+   * Bridge Port network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + * @return The status. + */ + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus getStatus(); + /** + *
+   * Bridge Port network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3; + */ + opi_api.network.evpn_gw.v1alpha1.BridgePortStatusOrBuilder getStatusOrBuilder(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortServiceGrpc.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortServiceGrpc.java new file mode 100644 index 00000000..e82b68ec --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortServiceGrpc.java @@ -0,0 +1,561 @@ +package opi_api.network.evpn_gw.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Management of BridgePort resources
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: l2_xpu_infra_mgr.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BridgePortServiceGrpc { + + private BridgePortServiceGrpc() {} + + public static final String SERVICE_NAME = "opi_api.network.evpn_gw.v1alpha1.BridgePortService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateBridgePortMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBridgePort", + requestType = opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.class, + responseType = opi_api.network.evpn_gw.v1alpha1.BridgePort.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateBridgePortMethod() { + io.grpc.MethodDescriptor getCreateBridgePortMethod; + if ((getCreateBridgePortMethod = BridgePortServiceGrpc.getCreateBridgePortMethod) == null) { + synchronized (BridgePortServiceGrpc.class) { + if ((getCreateBridgePortMethod = BridgePortServiceGrpc.getCreateBridgePortMethod) == null) { + BridgePortServiceGrpc.getCreateBridgePortMethod = getCreateBridgePortMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBridgePort")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.BridgePort.getDefaultInstance())) + .setSchemaDescriptor(new BridgePortServiceMethodDescriptorSupplier("CreateBridgePort")) + .build(); + } + } + } + return getCreateBridgePortMethod; + } + + private static volatile io.grpc.MethodDescriptor getListBridgePortsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBridgePorts", + requestType = opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.class, + responseType = opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListBridgePortsMethod() { + io.grpc.MethodDescriptor getListBridgePortsMethod; + if ((getListBridgePortsMethod = BridgePortServiceGrpc.getListBridgePortsMethod) == null) { + synchronized (BridgePortServiceGrpc.class) { + if ((getListBridgePortsMethod = BridgePortServiceGrpc.getListBridgePortsMethod) == null) { + BridgePortServiceGrpc.getListBridgePortsMethod = getListBridgePortsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBridgePorts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BridgePortServiceMethodDescriptorSupplier("ListBridgePorts")) + .build(); + } + } + } + return getListBridgePortsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetBridgePortMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBridgePort", + requestType = opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.class, + responseType = opi_api.network.evpn_gw.v1alpha1.BridgePort.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBridgePortMethod() { + io.grpc.MethodDescriptor getGetBridgePortMethod; + if ((getGetBridgePortMethod = BridgePortServiceGrpc.getGetBridgePortMethod) == null) { + synchronized (BridgePortServiceGrpc.class) { + if ((getGetBridgePortMethod = BridgePortServiceGrpc.getGetBridgePortMethod) == null) { + BridgePortServiceGrpc.getGetBridgePortMethod = getGetBridgePortMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBridgePort")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.BridgePort.getDefaultInstance())) + .setSchemaDescriptor(new BridgePortServiceMethodDescriptorSupplier("GetBridgePort")) + .build(); + } + } + } + return getGetBridgePortMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteBridgePortMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBridgePort", + requestType = opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteBridgePortMethod() { + io.grpc.MethodDescriptor getDeleteBridgePortMethod; + if ((getDeleteBridgePortMethod = BridgePortServiceGrpc.getDeleteBridgePortMethod) == null) { + synchronized (BridgePortServiceGrpc.class) { + if ((getDeleteBridgePortMethod = BridgePortServiceGrpc.getDeleteBridgePortMethod) == null) { + BridgePortServiceGrpc.getDeleteBridgePortMethod = getDeleteBridgePortMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBridgePort")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new BridgePortServiceMethodDescriptorSupplier("DeleteBridgePort")) + .build(); + } + } + } + return getDeleteBridgePortMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static BridgePortServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BridgePortServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BridgePortServiceStub(channel, callOptions); + } + }; + return BridgePortServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BridgePortServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BridgePortServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BridgePortServiceBlockingStub(channel, callOptions); + } + }; + return BridgePortServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static BridgePortServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BridgePortServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BridgePortServiceFutureStub(channel, callOptions); + } + }; + return BridgePortServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Management of BridgePort resources
+   * 
+ */ + public static abstract class BridgePortServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Create a Bridge Port
+     * 
+ */ + public void createBridgePort(opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBridgePortMethod(), responseObserver); + } + + /** + *
+     * List Bridge Ports
+     * 
+ */ + public void listBridgePorts(opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBridgePortsMethod(), responseObserver); + } + + /** + *
+     * Retrieve a Bridge Port
+     * 
+ */ + public void getBridgePort(opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBridgePortMethod(), responseObserver); + } + + /** + *
+     * Delete a Bridge Port
+     * 
+ */ + public void deleteBridgePort(opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBridgePortMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateBridgePortMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest, + opi_api.network.evpn_gw.v1alpha1.BridgePort>( + this, METHODID_CREATE_BRIDGE_PORT))) + .addMethod( + getListBridgePortsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest, + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse>( + this, METHODID_LIST_BRIDGE_PORTS))) + .addMethod( + getGetBridgePortMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest, + opi_api.network.evpn_gw.v1alpha1.BridgePort>( + this, METHODID_GET_BRIDGE_PORT))) + .addMethod( + getDeleteBridgePortMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_BRIDGE_PORT))) + .build(); + } + } + + /** + *
+   * Management of BridgePort resources
+   * 
+ */ + public static final class BridgePortServiceStub extends io.grpc.stub.AbstractAsyncStub { + private BridgePortServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BridgePortServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BridgePortServiceStub(channel, callOptions); + } + + /** + *
+     * Create a Bridge Port
+     * 
+ */ + public void createBridgePort(opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBridgePortMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List Bridge Ports
+     * 
+ */ + public void listBridgePorts(opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBridgePortsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieve a Bridge Port
+     * 
+ */ + public void getBridgePort(opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBridgePortMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a Bridge Port
+     * 
+ */ + public void deleteBridgePort(opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBridgePortMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Management of BridgePort resources
+   * 
+ */ + public static final class BridgePortServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BridgePortServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BridgePortServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BridgePortServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Create a Bridge Port
+     * 
+ */ + public opi_api.network.evpn_gw.v1alpha1.BridgePort createBridgePort(opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBridgePortMethod(), getCallOptions(), request); + } + + /** + *
+     * List Bridge Ports
+     * 
+ */ + public opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse listBridgePorts(opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBridgePortsMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieve a Bridge Port
+     * 
+ */ + public opi_api.network.evpn_gw.v1alpha1.BridgePort getBridgePort(opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBridgePortMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a Bridge Port
+     * 
+ */ + public com.google.protobuf.Empty deleteBridgePort(opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBridgePortMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Management of BridgePort resources
+   * 
+ */ + public static final class BridgePortServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private BridgePortServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BridgePortServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BridgePortServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Create a Bridge Port
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createBridgePort( + opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBridgePortMethod(), getCallOptions()), request); + } + + /** + *
+     * List Bridge Ports
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listBridgePorts( + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBridgePortsMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieve a Bridge Port
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBridgePort( + opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBridgePortMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a Bridge Port
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteBridgePort( + opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBridgePortMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_BRIDGE_PORT = 0; + private static final int METHODID_LIST_BRIDGE_PORTS = 1; + private static final int METHODID_GET_BRIDGE_PORT = 2; + private static final int METHODID_DELETE_BRIDGE_PORT = 3; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final BridgePortServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BridgePortServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_BRIDGE_PORT: + serviceImpl.createBridgePort((opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BRIDGE_PORTS: + serviceImpl.listBridgePorts((opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BRIDGE_PORT: + serviceImpl.getBridgePort((opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BRIDGE_PORT: + serviceImpl.deleteBridgePort((opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class BridgePortServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BridgePortServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BridgePortService"); + } + } + + private static final class BridgePortServiceFileDescriptorSupplier + extends BridgePortServiceBaseDescriptorSupplier { + BridgePortServiceFileDescriptorSupplier() {} + } + + private static final class BridgePortServiceMethodDescriptorSupplier + extends BridgePortServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BridgePortServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (BridgePortServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BridgePortServiceFileDescriptorSupplier()) + .addMethod(getCreateBridgePortMethod()) + .addMethod(getListBridgePortsMethod()) + .addMethod(getGetBridgePortMethod()) + .addMethod(getDeleteBridgePortMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortSpec.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortSpec.java new file mode 100644 index 00000000..f646bf16 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortSpec.java @@ -0,0 +1,895 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * Bridge Port network configuration
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.BridgePortSpec} + */ +public final class BridgePortSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) + BridgePortSpecOrBuilder { +private static final long serialVersionUID = 0L; + // Use BridgePortSpec.newBuilder() to construct. + private BridgePortSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BridgePortSpec() { + macAddress_ = com.google.protobuf.ByteString.EMPTY; + ptype_ = 0; + logicalBridges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BridgePortSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BridgePortSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + macAddress_ = input.readBytes(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + ptype_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + logicalBridges_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + logicalBridges_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + logicalBridges_ = logicalBridges_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.class, opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.Builder.class); + } + + public static final int MAC_ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString macAddress_; + /** + *
+   * Bridge Port's MAC address.
+   * 
+ * + * bytes mac_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The macAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMacAddress() { + return macAddress_; + } + + public static final int PTYPE_FIELD_NUMBER = 2; + private int ptype_; + /** + *
+   * Type of Bridge Port
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for ptype. + */ + @java.lang.Override public int getPtypeValue() { + return ptype_; + } + /** + *
+   * Type of Bridge Port
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The ptype. + */ + @java.lang.Override public opi_api.network.evpn_gw.v1alpha1.BridgePortType getPtype() { + @SuppressWarnings("deprecation") + opi_api.network.evpn_gw.v1alpha1.BridgePortType result = opi_api.network.evpn_gw.v1alpha1.BridgePortType.valueOf(ptype_); + return result == null ? opi_api.network.evpn_gw.v1alpha1.BridgePortType.UNRECOGNIZED : result; + } + + public static final int LOGICAL_BRIDGES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList logicalBridges_; + /** + *
+   * List of Logical Bridges this Bridge Port will attach.
+   * This will define the VLANs that will be enabled in this Bridge Port
+   * 
+ * + * repeated string logical_bridges = 3; + * @return A list containing the logicalBridges. + */ + public com.google.protobuf.ProtocolStringList + getLogicalBridgesList() { + return logicalBridges_; + } + /** + *
+   * List of Logical Bridges this Bridge Port will attach.
+   * This will define the VLANs that will be enabled in this Bridge Port
+   * 
+ * + * repeated string logical_bridges = 3; + * @return The count of logicalBridges. + */ + public int getLogicalBridgesCount() { + return logicalBridges_.size(); + } + /** + *
+   * List of Logical Bridges this Bridge Port will attach.
+   * This will define the VLANs that will be enabled in this Bridge Port
+   * 
+ * + * repeated string logical_bridges = 3; + * @param index The index of the element to return. + * @return The logicalBridges at the given index. + */ + public java.lang.String getLogicalBridges(int index) { + return logicalBridges_.get(index); + } + /** + *
+   * List of Logical Bridges this Bridge Port will attach.
+   * This will define the VLANs that will be enabled in this Bridge Port
+   * 
+ * + * repeated string logical_bridges = 3; + * @param index The index of the value to return. + * @return The bytes of the logicalBridges at the given index. + */ + public com.google.protobuf.ByteString + getLogicalBridgesBytes(int index) { + return logicalBridges_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!macAddress_.isEmpty()) { + output.writeBytes(1, macAddress_); + } + if (ptype_ != opi_api.network.evpn_gw.v1alpha1.BridgePortType.UNKNOWN.getNumber()) { + output.writeEnum(2, ptype_); + } + for (int i = 0; i < logicalBridges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, logicalBridges_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!macAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, macAddress_); + } + if (ptype_ != opi_api.network.evpn_gw.v1alpha1.BridgePortType.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, ptype_); + } + { + int dataSize = 0; + for (int i = 0; i < logicalBridges_.size(); i++) { + dataSize += computeStringSizeNoTag(logicalBridges_.getRaw(i)); + } + size += dataSize; + size += 1 * getLogicalBridgesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.BridgePortSpec)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec other = (opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) obj; + + if (!getMacAddress() + .equals(other.getMacAddress())) return false; + if (ptype_ != other.ptype_) return false; + if (!getLogicalBridgesList() + .equals(other.getLogicalBridgesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAC_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMacAddress().hashCode(); + hash = (37 * hash) + PTYPE_FIELD_NUMBER; + hash = (53 * hash) + ptype_; + if (getLogicalBridgesCount() > 0) { + hash = (37 * hash) + LOGICAL_BRIDGES_FIELD_NUMBER; + hash = (53 * hash) + getLogicalBridgesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.BridgePortSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Bridge Port network configuration
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.BridgePortSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) + opi_api.network.evpn_gw.v1alpha1.BridgePortSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.class, opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + macAddress_ = com.google.protobuf.ByteString.EMPTY; + + ptype_ = 0; + + logicalBridges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortSpec_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortSpec getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortSpec build() { + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortSpec buildPartial() { + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec result = new opi_api.network.evpn_gw.v1alpha1.BridgePortSpec(this); + int from_bitField0_ = bitField0_; + result.macAddress_ = macAddress_; + result.ptype_ = ptype_; + if (((bitField0_ & 0x00000001) != 0)) { + logicalBridges_ = logicalBridges_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.logicalBridges_ = logicalBridges_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.BridgePortSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.BridgePortSpec other) { + if (other == opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.getDefaultInstance()) return this; + if (other.getMacAddress() != com.google.protobuf.ByteString.EMPTY) { + setMacAddress(other.getMacAddress()); + } + if (other.ptype_ != 0) { + setPtypeValue(other.getPtypeValue()); + } + if (!other.logicalBridges_.isEmpty()) { + if (logicalBridges_.isEmpty()) { + logicalBridges_ = other.logicalBridges_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLogicalBridgesIsMutable(); + logicalBridges_.addAll(other.logicalBridges_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.BridgePortSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString macAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Bridge Port's MAC address.
+     * 
+ * + * bytes mac_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The macAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMacAddress() { + return macAddress_; + } + /** + *
+     * Bridge Port's MAC address.
+     * 
+ * + * bytes mac_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The macAddress to set. + * @return This builder for chaining. + */ + public Builder setMacAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + macAddress_ = value; + onChanged(); + return this; + } + /** + *
+     * Bridge Port's MAC address.
+     * 
+ * + * bytes mac_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearMacAddress() { + + macAddress_ = getDefaultInstance().getMacAddress(); + onChanged(); + return this; + } + + private int ptype_ = 0; + /** + *
+     * Type of Bridge Port
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for ptype. + */ + @java.lang.Override public int getPtypeValue() { + return ptype_; + } + /** + *
+     * Type of Bridge Port
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The enum numeric value on the wire for ptype to set. + * @return This builder for chaining. + */ + public Builder setPtypeValue(int value) { + + ptype_ = value; + onChanged(); + return this; + } + /** + *
+     * Type of Bridge Port
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The ptype. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortType getPtype() { + @SuppressWarnings("deprecation") + opi_api.network.evpn_gw.v1alpha1.BridgePortType result = opi_api.network.evpn_gw.v1alpha1.BridgePortType.valueOf(ptype_); + return result == null ? opi_api.network.evpn_gw.v1alpha1.BridgePortType.UNRECOGNIZED : result; + } + /** + *
+     * Type of Bridge Port
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The ptype to set. + * @return This builder for chaining. + */ + public Builder setPtype(opi_api.network.evpn_gw.v1alpha1.BridgePortType value) { + if (value == null) { + throw new NullPointerException(); + } + + ptype_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Type of Bridge Port
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearPtype() { + + ptype_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList logicalBridges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLogicalBridgesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + logicalBridges_ = new com.google.protobuf.LazyStringArrayList(logicalBridges_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * List of Logical Bridges this Bridge Port will attach.
+     * This will define the VLANs that will be enabled in this Bridge Port
+     * 
+ * + * repeated string logical_bridges = 3; + * @return A list containing the logicalBridges. + */ + public com.google.protobuf.ProtocolStringList + getLogicalBridgesList() { + return logicalBridges_.getUnmodifiableView(); + } + /** + *
+     * List of Logical Bridges this Bridge Port will attach.
+     * This will define the VLANs that will be enabled in this Bridge Port
+     * 
+ * + * repeated string logical_bridges = 3; + * @return The count of logicalBridges. + */ + public int getLogicalBridgesCount() { + return logicalBridges_.size(); + } + /** + *
+     * List of Logical Bridges this Bridge Port will attach.
+     * This will define the VLANs that will be enabled in this Bridge Port
+     * 
+ * + * repeated string logical_bridges = 3; + * @param index The index of the element to return. + * @return The logicalBridges at the given index. + */ + public java.lang.String getLogicalBridges(int index) { + return logicalBridges_.get(index); + } + /** + *
+     * List of Logical Bridges this Bridge Port will attach.
+     * This will define the VLANs that will be enabled in this Bridge Port
+     * 
+ * + * repeated string logical_bridges = 3; + * @param index The index of the value to return. + * @return The bytes of the logicalBridges at the given index. + */ + public com.google.protobuf.ByteString + getLogicalBridgesBytes(int index) { + return logicalBridges_.getByteString(index); + } + /** + *
+     * List of Logical Bridges this Bridge Port will attach.
+     * This will define the VLANs that will be enabled in this Bridge Port
+     * 
+ * + * repeated string logical_bridges = 3; + * @param index The index to set the value at. + * @param value The logicalBridges to set. + * @return This builder for chaining. + */ + public Builder setLogicalBridges( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalBridgesIsMutable(); + logicalBridges_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of Logical Bridges this Bridge Port will attach.
+     * This will define the VLANs that will be enabled in this Bridge Port
+     * 
+ * + * repeated string logical_bridges = 3; + * @param value The logicalBridges to add. + * @return This builder for chaining. + */ + public Builder addLogicalBridges( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalBridgesIsMutable(); + logicalBridges_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of Logical Bridges this Bridge Port will attach.
+     * This will define the VLANs that will be enabled in this Bridge Port
+     * 
+ * + * repeated string logical_bridges = 3; + * @param values The logicalBridges to add. + * @return This builder for chaining. + */ + public Builder addAllLogicalBridges( + java.lang.Iterable values) { + ensureLogicalBridgesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logicalBridges_); + onChanged(); + return this; + } + /** + *
+     * List of Logical Bridges this Bridge Port will attach.
+     * This will define the VLANs that will be enabled in this Bridge Port
+     * 
+ * + * repeated string logical_bridges = 3; + * @return This builder for chaining. + */ + public Builder clearLogicalBridges() { + logicalBridges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * List of Logical Bridges this Bridge Port will attach.
+     * This will define the VLANs that will be enabled in this Bridge Port
+     * 
+ * + * repeated string logical_bridges = 3; + * @param value The bytes of the logicalBridges to add. + * @return This builder for chaining. + */ + public Builder addLogicalBridgesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLogicalBridgesIsMutable(); + logicalBridges_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) + private static final opi_api.network.evpn_gw.v1alpha1.BridgePortSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.BridgePortSpec(); + } + + public static opi_api.network.evpn_gw.v1alpha1.BridgePortSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BridgePortSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BridgePortSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortSpecOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortSpecOrBuilder.java new file mode 100644 index 00000000..df703637 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortSpecOrBuilder.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface BridgePortSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Bridge Port's MAC address.
+   * 
+ * + * bytes mac_address = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The macAddress. + */ + com.google.protobuf.ByteString getMacAddress(); + + /** + *
+   * Type of Bridge Port
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for ptype. + */ + int getPtypeValue(); + /** + *
+   * Type of Bridge Port
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePortType ptype = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The ptype. + */ + opi_api.network.evpn_gw.v1alpha1.BridgePortType getPtype(); + + /** + *
+   * List of Logical Bridges this Bridge Port will attach.
+   * This will define the VLANs that will be enabled in this Bridge Port
+   * 
+ * + * repeated string logical_bridges = 3; + * @return A list containing the logicalBridges. + */ + java.util.List + getLogicalBridgesList(); + /** + *
+   * List of Logical Bridges this Bridge Port will attach.
+   * This will define the VLANs that will be enabled in this Bridge Port
+   * 
+ * + * repeated string logical_bridges = 3; + * @return The count of logicalBridges. + */ + int getLogicalBridgesCount(); + /** + *
+   * List of Logical Bridges this Bridge Port will attach.
+   * This will define the VLANs that will be enabled in this Bridge Port
+   * 
+ * + * repeated string logical_bridges = 3; + * @param index The index of the element to return. + * @return The logicalBridges at the given index. + */ + java.lang.String getLogicalBridges(int index); + /** + *
+   * List of Logical Bridges this Bridge Port will attach.
+   * This will define the VLANs that will be enabled in this Bridge Port
+   * 
+ * + * repeated string logical_bridges = 3; + * @param index The index of the value to return. + * @return The bytes of the logicalBridges at the given index. + */ + com.google.protobuf.ByteString + getLogicalBridgesBytes(int index); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortStatus.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortStatus.java new file mode 100644 index 00000000..9ab77d25 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortStatus.java @@ -0,0 +1,551 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * operational status of a Bridge Port
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.BridgePortStatus} + */ +public final class BridgePortStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) + BridgePortStatusOrBuilder { +private static final long serialVersionUID = 0L; + // Use BridgePortStatus.newBuilder() to construct. + private BridgePortStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BridgePortStatus() { + operStatus_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BridgePortStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BridgePortStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + operStatus_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.class, opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.Builder.class); + } + + public static final int OPER_STATUS_FIELD_NUMBER = 1; + private int operStatus_; + /** + *
+   * operational status of a Bridge Port
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1; + * @return The enum numeric value on the wire for operStatus. + */ + @java.lang.Override public int getOperStatusValue() { + return operStatus_; + } + /** + *
+   * operational status of a Bridge Port
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1; + * @return The operStatus. + */ + @java.lang.Override public opi_api.network.evpn_gw.v1alpha1.BPOperStatus getOperStatus() { + @SuppressWarnings("deprecation") + opi_api.network.evpn_gw.v1alpha1.BPOperStatus result = opi_api.network.evpn_gw.v1alpha1.BPOperStatus.valueOf(operStatus_); + return result == null ? opi_api.network.evpn_gw.v1alpha1.BPOperStatus.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operStatus_ != opi_api.network.evpn_gw.v1alpha1.BPOperStatus.BP_OPER_STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(1, operStatus_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operStatus_ != opi_api.network.evpn_gw.v1alpha1.BPOperStatus.BP_OPER_STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operStatus_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.BridgePortStatus)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus other = (opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) obj; + + if (operStatus_ != other.operStatus_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPER_STATUS_FIELD_NUMBER; + hash = (53 * hash) + operStatus_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.BridgePortStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * operational status of a Bridge Port
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.BridgePortStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) + opi_api.network.evpn_gw.v1alpha1.BridgePortStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.class, opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + operStatus_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortStatus_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortStatus getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortStatus build() { + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortStatus buildPartial() { + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus result = new opi_api.network.evpn_gw.v1alpha1.BridgePortStatus(this); + result.operStatus_ = operStatus_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.BridgePortStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.BridgePortStatus other) { + if (other == opi_api.network.evpn_gw.v1alpha1.BridgePortStatus.getDefaultInstance()) return this; + if (other.operStatus_ != 0) { + setOperStatusValue(other.getOperStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.BridgePortStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operStatus_ = 0; + /** + *
+     * operational status of a Bridge Port
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1; + * @return The enum numeric value on the wire for operStatus. + */ + @java.lang.Override public int getOperStatusValue() { + return operStatus_; + } + /** + *
+     * operational status of a Bridge Port
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1; + * @param value The enum numeric value on the wire for operStatus to set. + * @return This builder for chaining. + */ + public Builder setOperStatusValue(int value) { + + operStatus_ = value; + onChanged(); + return this; + } + /** + *
+     * operational status of a Bridge Port
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1; + * @return The operStatus. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BPOperStatus getOperStatus() { + @SuppressWarnings("deprecation") + opi_api.network.evpn_gw.v1alpha1.BPOperStatus result = opi_api.network.evpn_gw.v1alpha1.BPOperStatus.valueOf(operStatus_); + return result == null ? opi_api.network.evpn_gw.v1alpha1.BPOperStatus.UNRECOGNIZED : result; + } + /** + *
+     * operational status of a Bridge Port
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1; + * @param value The operStatus to set. + * @return This builder for chaining. + */ + public Builder setOperStatus(opi_api.network.evpn_gw.v1alpha1.BPOperStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + operStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * operational status of a Bridge Port
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1; + * @return This builder for chaining. + */ + public Builder clearOperStatus() { + + operStatus_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) + private static final opi_api.network.evpn_gw.v1alpha1.BridgePortStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.BridgePortStatus(); + } + + public static opi_api.network.evpn_gw.v1alpha1.BridgePortStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BridgePortStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BridgePortStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortStatusOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortStatusOrBuilder.java new file mode 100644 index 00000000..f88cc563 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortStatusOrBuilder.java @@ -0,0 +1,28 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface BridgePortStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * operational status of a Bridge Port
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1; + * @return The enum numeric value on the wire for operStatus. + */ + int getOperStatusValue(); + /** + *
+   * operational status of a Bridge Port
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1; + * @return The operStatus. + */ + opi_api.network.evpn_gw.v1alpha1.BPOperStatus getOperStatus(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortType.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortType.java new file mode 100644 index 00000000..4296499c --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortType.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * BridgePortType reflects the different types of a Bridge Port
+ * 
+ * + * Protobuf enum {@code opi_api.network.evpn_gw.v1alpha1.BridgePortType} + */ +public enum BridgePortType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * "unknown" bridge port type
+   * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + *
+   * "access" bridge port type 
+   * 
+ * + * ACCESS = 1; + */ + ACCESS(1), + /** + *
+   * "trunk" bridge port type
+   * 
+ * + * TRUNK = 2; + */ + TRUNK(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * "unknown" bridge port type
+   * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + *
+   * "access" bridge port type 
+   * 
+ * + * ACCESS = 1; + */ + public static final int ACCESS_VALUE = 1; + /** + *
+   * "trunk" bridge port type
+   * 
+ * + * TRUNK = 2; + */ + public static final int TRUNK_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BridgePortType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BridgePortType forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return ACCESS; + case 2: return TRUNK; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + BridgePortType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BridgePortType findValueByNumber(int number) { + return BridgePortType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.getDescriptor().getEnumTypes().get(2); + } + + private static final BridgePortType[] VALUES = values(); + + public static BridgePortType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BridgePortType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:opi_api.network.evpn_gw.v1alpha1.BridgePortType) +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateBridgePortRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateBridgePortRequest.java new file mode 100644 index 00000000..d1514c5d --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateBridgePortRequest.java @@ -0,0 +1,857 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * CreateBridgePortRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest} + */ +public final class CreateBridgePortRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) + CreateBridgePortRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateBridgePortRequest.newBuilder() to construct. + private CreateBridgePortRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateBridgePortRequest() { + bridgePortId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateBridgePortRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateBridgePortRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + bridgePortId_ = s; + break; + } + case 18: { + opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder subBuilder = null; + if (bridgePort_ != null) { + subBuilder = bridgePort_.toBuilder(); + } + bridgePort_ = input.readMessage(opi_api.network.evpn_gw.v1alpha1.BridgePort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bridgePort_); + bridgePort_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateBridgePortRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateBridgePortRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.class, opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.Builder.class); + } + + public static final int BRIDGE_PORT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object bridgePortId_; + /** + *
+   * 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.
+   * 
+ * + * string bridge_port_id = 1; + * @return The bridgePortId. + */ + @java.lang.Override + public java.lang.String getBridgePortId() { + java.lang.Object ref = bridgePortId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bridgePortId_ = s; + return s; + } + } + /** + *
+   * 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.
+   * 
+ * + * string bridge_port_id = 1; + * @return The bytes for bridgePortId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBridgePortIdBytes() { + java.lang.Object ref = bridgePortId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bridgePortId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRIDGE_PORT_FIELD_NUMBER = 2; + private opi_api.network.evpn_gw.v1alpha1.BridgePort bridgePort_; + /** + *
+   * The bridge port to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the bridgePort field is set. + */ + @java.lang.Override + public boolean hasBridgePort() { + return bridgePort_ != null; + } + /** + *
+   * The bridge port to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bridgePort. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePort getBridgePort() { + return bridgePort_ == null ? opi_api.network.evpn_gw.v1alpha1.BridgePort.getDefaultInstance() : bridgePort_; + } + /** + *
+   * The bridge port to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder getBridgePortOrBuilder() { + return getBridgePort(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bridgePortId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bridgePortId_); + } + if (bridgePort_ != null) { + output.writeMessage(2, getBridgePort()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bridgePortId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bridgePortId_); + } + if (bridgePort_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBridgePort()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest other = (opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) obj; + + if (!getBridgePortId() + .equals(other.getBridgePortId())) return false; + if (hasBridgePort() != other.hasBridgePort()) return false; + if (hasBridgePort()) { + if (!getBridgePort() + .equals(other.getBridgePort())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BRIDGE_PORT_ID_FIELD_NUMBER; + hash = (53 * hash) + getBridgePortId().hashCode(); + if (hasBridgePort()) { + hash = (37 * hash) + BRIDGE_PORT_FIELD_NUMBER; + hash = (53 * hash) + getBridgePort().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateBridgePortRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) + opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateBridgePortRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateBridgePortRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.class, opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bridgePortId_ = ""; + + if (bridgePortBuilder_ == null) { + bridgePort_ = null; + } else { + bridgePort_ = null; + bridgePortBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateBridgePortRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest build() { + opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest result = new opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest(this); + result.bridgePortId_ = bridgePortId_; + if (bridgePortBuilder_ == null) { + result.bridgePort_ = bridgePort_; + } else { + result.bridgePort_ = bridgePortBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.getDefaultInstance()) return this; + if (!other.getBridgePortId().isEmpty()) { + bridgePortId_ = other.bridgePortId_; + onChanged(); + } + if (other.hasBridgePort()) { + mergeBridgePort(other.getBridgePort()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object bridgePortId_ = ""; + /** + *
+     * 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.
+     * 
+ * + * string bridge_port_id = 1; + * @return The bridgePortId. + */ + public java.lang.String getBridgePortId() { + java.lang.Object ref = bridgePortId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bridgePortId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string bridge_port_id = 1; + * @return The bytes for bridgePortId. + */ + public com.google.protobuf.ByteString + getBridgePortIdBytes() { + java.lang.Object ref = bridgePortId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bridgePortId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string bridge_port_id = 1; + * @param value The bridgePortId to set. + * @return This builder for chaining. + */ + public Builder setBridgePortId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bridgePortId_ = value; + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string bridge_port_id = 1; + * @return This builder for chaining. + */ + public Builder clearBridgePortId() { + + bridgePortId_ = getDefaultInstance().getBridgePortId(); + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string bridge_port_id = 1; + * @param value The bytes for bridgePortId to set. + * @return This builder for chaining. + */ + public Builder setBridgePortIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bridgePortId_ = value; + onChanged(); + return this; + } + + private opi_api.network.evpn_gw.v1alpha1.BridgePort bridgePort_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.BridgePort, opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder, opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder> bridgePortBuilder_; + /** + *
+     * The bridge port to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the bridgePort field is set. + */ + public boolean hasBridgePort() { + return bridgePortBuilder_ != null || bridgePort_ != null; + } + /** + *
+     * The bridge port to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bridgePort. + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePort getBridgePort() { + if (bridgePortBuilder_ == null) { + return bridgePort_ == null ? opi_api.network.evpn_gw.v1alpha1.BridgePort.getDefaultInstance() : bridgePort_; + } else { + return bridgePortBuilder_.getMessage(); + } + } + /** + *
+     * The bridge port to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setBridgePort(opi_api.network.evpn_gw.v1alpha1.BridgePort value) { + if (bridgePortBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bridgePort_ = value; + onChanged(); + } else { + bridgePortBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The bridge port to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setBridgePort( + opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder builderForValue) { + if (bridgePortBuilder_ == null) { + bridgePort_ = builderForValue.build(); + onChanged(); + } else { + bridgePortBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The bridge port to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeBridgePort(opi_api.network.evpn_gw.v1alpha1.BridgePort value) { + if (bridgePortBuilder_ == null) { + if (bridgePort_ != null) { + bridgePort_ = + opi_api.network.evpn_gw.v1alpha1.BridgePort.newBuilder(bridgePort_).mergeFrom(value).buildPartial(); + } else { + bridgePort_ = value; + } + onChanged(); + } else { + bridgePortBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The bridge port to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearBridgePort() { + if (bridgePortBuilder_ == null) { + bridgePort_ = null; + onChanged(); + } else { + bridgePort_ = null; + bridgePortBuilder_ = null; + } + + return this; + } + /** + *
+     * The bridge port to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder getBridgePortBuilder() { + + onChanged(); + return getBridgePortFieldBuilder().getBuilder(); + } + /** + *
+     * The bridge port to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder getBridgePortOrBuilder() { + if (bridgePortBuilder_ != null) { + return bridgePortBuilder_.getMessageOrBuilder(); + } else { + return bridgePort_ == null ? + opi_api.network.evpn_gw.v1alpha1.BridgePort.getDefaultInstance() : bridgePort_; + } + } + /** + *
+     * The bridge port to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.BridgePort, opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder, opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder> + getBridgePortFieldBuilder() { + if (bridgePortBuilder_ == null) { + bridgePortBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.BridgePort, opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder, opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder>( + getBridgePort(), + getParentForChildren(), + isClean()); + bridgePort_ = null; + } + return bridgePortBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) + private static final opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBridgePortRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateBridgePortRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateBridgePortRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateBridgePortRequestOrBuilder.java new file mode 100644 index 00000000..42bccbc5 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateBridgePortRequestOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface CreateBridgePortRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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.
+   * 
+ * + * string bridge_port_id = 1; + * @return The bridgePortId. + */ + java.lang.String getBridgePortId(); + /** + *
+   * 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.
+   * 
+ * + * string bridge_port_id = 1; + * @return The bytes for bridgePortId. + */ + com.google.protobuf.ByteString + getBridgePortIdBytes(); + + /** + *
+   * The bridge port to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the bridgePort field is set. + */ + boolean hasBridgePort(); + /** + *
+   * The bridge port to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bridgePort. + */ + opi_api.network.evpn_gw.v1alpha1.BridgePort getBridgePort(); + /** + *
+   * The bridge port to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder getBridgePortOrBuilder(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateLogicalBridgeRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateLogicalBridgeRequest.java new file mode 100644 index 00000000..cfaf51d0 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateLogicalBridgeRequest.java @@ -0,0 +1,857 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * CreateLogicalBridgeRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest} + */ +public final class CreateLogicalBridgeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) + CreateLogicalBridgeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateLogicalBridgeRequest.newBuilder() to construct. + private CreateLogicalBridgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateLogicalBridgeRequest() { + logicalBridgeId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateLogicalBridgeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateLogicalBridgeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + logicalBridgeId_ = s; + break; + } + case 18: { + opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder subBuilder = null; + if (logicalBridge_ != null) { + subBuilder = logicalBridge_.toBuilder(); + } + logicalBridge_ = input.readMessage(opi_api.network.evpn_gw.v1alpha1.LogicalBridge.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(logicalBridge_); + logicalBridge_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateLogicalBridgeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateLogicalBridgeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.class, opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.Builder.class); + } + + public static final int LOGICAL_BRIDGE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object logicalBridgeId_; + /** + *
+   * 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.
+   * 
+ * + * string logical_bridge_id = 1; + * @return The logicalBridgeId. + */ + @java.lang.Override + public java.lang.String getLogicalBridgeId() { + java.lang.Object ref = logicalBridgeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logicalBridgeId_ = s; + return s; + } + } + /** + *
+   * 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.
+   * 
+ * + * string logical_bridge_id = 1; + * @return The bytes for logicalBridgeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLogicalBridgeIdBytes() { + java.lang.Object ref = logicalBridgeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logicalBridgeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGICAL_BRIDGE_FIELD_NUMBER = 2; + private opi_api.network.evpn_gw.v1alpha1.LogicalBridge logicalBridge_; + /** + *
+   * The logical bridge to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the logicalBridge field is set. + */ + @java.lang.Override + public boolean hasLogicalBridge() { + return logicalBridge_ != null; + } + /** + *
+   * The logical bridge to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The logicalBridge. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge getLogicalBridge() { + return logicalBridge_ == null ? opi_api.network.evpn_gw.v1alpha1.LogicalBridge.getDefaultInstance() : logicalBridge_; + } + /** + *
+   * The logical bridge to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder getLogicalBridgeOrBuilder() { + return getLogicalBridge(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logicalBridgeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logicalBridgeId_); + } + if (logicalBridge_ != null) { + output.writeMessage(2, getLogicalBridge()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logicalBridgeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, logicalBridgeId_); + } + if (logicalBridge_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLogicalBridge()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest other = (opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) obj; + + if (!getLogicalBridgeId() + .equals(other.getLogicalBridgeId())) return false; + if (hasLogicalBridge() != other.hasLogicalBridge()) return false; + if (hasLogicalBridge()) { + if (!getLogicalBridge() + .equals(other.getLogicalBridge())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOGICAL_BRIDGE_ID_FIELD_NUMBER; + hash = (53 * hash) + getLogicalBridgeId().hashCode(); + if (hasLogicalBridge()) { + hash = (37 * hash) + LOGICAL_BRIDGE_FIELD_NUMBER; + hash = (53 * hash) + getLogicalBridge().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateLogicalBridgeRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) + opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateLogicalBridgeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateLogicalBridgeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.class, opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + logicalBridgeId_ = ""; + + if (logicalBridgeBuilder_ == null) { + logicalBridge_ = null; + } else { + logicalBridge_ = null; + logicalBridgeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateLogicalBridgeRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest build() { + opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest result = new opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest(this); + result.logicalBridgeId_ = logicalBridgeId_; + if (logicalBridgeBuilder_ == null) { + result.logicalBridge_ = logicalBridge_; + } else { + result.logicalBridge_ = logicalBridgeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.getDefaultInstance()) return this; + if (!other.getLogicalBridgeId().isEmpty()) { + logicalBridgeId_ = other.logicalBridgeId_; + onChanged(); + } + if (other.hasLogicalBridge()) { + mergeLogicalBridge(other.getLogicalBridge()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object logicalBridgeId_ = ""; + /** + *
+     * 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.
+     * 
+ * + * string logical_bridge_id = 1; + * @return The logicalBridgeId. + */ + public java.lang.String getLogicalBridgeId() { + java.lang.Object ref = logicalBridgeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logicalBridgeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string logical_bridge_id = 1; + * @return The bytes for logicalBridgeId. + */ + public com.google.protobuf.ByteString + getLogicalBridgeIdBytes() { + java.lang.Object ref = logicalBridgeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logicalBridgeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string logical_bridge_id = 1; + * @param value The logicalBridgeId to set. + * @return This builder for chaining. + */ + public Builder setLogicalBridgeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + logicalBridgeId_ = value; + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string logical_bridge_id = 1; + * @return This builder for chaining. + */ + public Builder clearLogicalBridgeId() { + + logicalBridgeId_ = getDefaultInstance().getLogicalBridgeId(); + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string logical_bridge_id = 1; + * @param value The bytes for logicalBridgeId to set. + * @return This builder for chaining. + */ + public Builder setLogicalBridgeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + logicalBridgeId_ = value; + onChanged(); + return this; + } + + private opi_api.network.evpn_gw.v1alpha1.LogicalBridge logicalBridge_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.LogicalBridge, opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder> logicalBridgeBuilder_; + /** + *
+     * The logical bridge to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the logicalBridge field is set. + */ + public boolean hasLogicalBridge() { + return logicalBridgeBuilder_ != null || logicalBridge_ != null; + } + /** + *
+     * The logical bridge to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The logicalBridge. + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge getLogicalBridge() { + if (logicalBridgeBuilder_ == null) { + return logicalBridge_ == null ? opi_api.network.evpn_gw.v1alpha1.LogicalBridge.getDefaultInstance() : logicalBridge_; + } else { + return logicalBridgeBuilder_.getMessage(); + } + } + /** + *
+     * The logical bridge to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setLogicalBridge(opi_api.network.evpn_gw.v1alpha1.LogicalBridge value) { + if (logicalBridgeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + logicalBridge_ = value; + onChanged(); + } else { + logicalBridgeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The logical bridge to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setLogicalBridge( + opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder builderForValue) { + if (logicalBridgeBuilder_ == null) { + logicalBridge_ = builderForValue.build(); + onChanged(); + } else { + logicalBridgeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The logical bridge to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeLogicalBridge(opi_api.network.evpn_gw.v1alpha1.LogicalBridge value) { + if (logicalBridgeBuilder_ == null) { + if (logicalBridge_ != null) { + logicalBridge_ = + opi_api.network.evpn_gw.v1alpha1.LogicalBridge.newBuilder(logicalBridge_).mergeFrom(value).buildPartial(); + } else { + logicalBridge_ = value; + } + onChanged(); + } else { + logicalBridgeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The logical bridge to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearLogicalBridge() { + if (logicalBridgeBuilder_ == null) { + logicalBridge_ = null; + onChanged(); + } else { + logicalBridge_ = null; + logicalBridgeBuilder_ = null; + } + + return this; + } + /** + *
+     * The logical bridge to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder getLogicalBridgeBuilder() { + + onChanged(); + return getLogicalBridgeFieldBuilder().getBuilder(); + } + /** + *
+     * The logical bridge to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder getLogicalBridgeOrBuilder() { + if (logicalBridgeBuilder_ != null) { + return logicalBridgeBuilder_.getMessageOrBuilder(); + } else { + return logicalBridge_ == null ? + opi_api.network.evpn_gw.v1alpha1.LogicalBridge.getDefaultInstance() : logicalBridge_; + } + } + /** + *
+     * The logical bridge to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.LogicalBridge, opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder> + getLogicalBridgeFieldBuilder() { + if (logicalBridgeBuilder_ == null) { + logicalBridgeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.LogicalBridge, opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder>( + getLogicalBridge(), + getParentForChildren(), + isClean()); + logicalBridge_ = null; + } + return logicalBridgeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) + private static final opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateLogicalBridgeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateLogicalBridgeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateLogicalBridgeRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateLogicalBridgeRequestOrBuilder.java new file mode 100644 index 00000000..e966474d --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateLogicalBridgeRequestOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface CreateLogicalBridgeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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.
+   * 
+ * + * string logical_bridge_id = 1; + * @return The logicalBridgeId. + */ + java.lang.String getLogicalBridgeId(); + /** + *
+   * 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.
+   * 
+ * + * string logical_bridge_id = 1; + * @return The bytes for logicalBridgeId. + */ + com.google.protobuf.ByteString + getLogicalBridgeIdBytes(); + + /** + *
+   * The logical bridge to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the logicalBridge field is set. + */ + boolean hasLogicalBridge(); + /** + *
+   * The logical bridge to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The logicalBridge. + */ + opi_api.network.evpn_gw.v1alpha1.LogicalBridge getLogicalBridge(); + /** + *
+   * The logical bridge to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder getLogicalBridgeOrBuilder(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateSviRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateSviRequest.java new file mode 100644 index 00000000..b146131d --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateSviRequest.java @@ -0,0 +1,857 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * CreateSviRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.CreateSviRequest} + */ +public final class CreateSviRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + CreateSviRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateSviRequest.newBuilder() to construct. + private CreateSviRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateSviRequest() { + sviId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateSviRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateSviRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + sviId_ = s; + break; + } + case 18: { + opi_api.network.evpn_gw.v1alpha1.Svi.Builder subBuilder = null; + if (svi_ != null) { + subBuilder = svi_.toBuilder(); + } + svi_ = input.readMessage(opi_api.network.evpn_gw.v1alpha1.Svi.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(svi_); + svi_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateSviRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateSviRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.class, opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.Builder.class); + } + + public static final int SVI_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object sviId_; + /** + *
+   * 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.
+   * 
+ * + * string svi_id = 1; + * @return The sviId. + */ + @java.lang.Override + public java.lang.String getSviId() { + java.lang.Object ref = sviId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sviId_ = s; + return s; + } + } + /** + *
+   * 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.
+   * 
+ * + * string svi_id = 1; + * @return The bytes for sviId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSviIdBytes() { + java.lang.Object ref = sviId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sviId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SVI_FIELD_NUMBER = 2; + private opi_api.network.evpn_gw.v1alpha1.Svi svi_; + /** + *
+   * The Svi to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the svi field is set. + */ + @java.lang.Override + public boolean hasSvi() { + return svi_ != null; + } + /** + *
+   * The Svi to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The svi. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.Svi getSvi() { + return svi_ == null ? opi_api.network.evpn_gw.v1alpha1.Svi.getDefaultInstance() : svi_; + } + /** + *
+   * The Svi to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviOrBuilder getSviOrBuilder() { + return getSvi(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sviId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sviId_); + } + if (svi_ != null) { + output.writeMessage(2, getSvi()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sviId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sviId_); + } + if (svi_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSvi()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.CreateSviRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.CreateSviRequest other = (opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) obj; + + if (!getSviId() + .equals(other.getSviId())) return false; + if (hasSvi() != other.hasSvi()) return false; + if (hasSvi()) { + if (!getSvi() + .equals(other.getSvi())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SVI_ID_FIELD_NUMBER; + hash = (53 * hash) + getSviId().hashCode(); + if (hasSvi()) { + hash = (37 * hash) + SVI_FIELD_NUMBER; + hash = (53 * hash) + getSvi().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.CreateSviRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateSviRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.CreateSviRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + opi_api.network.evpn_gw.v1alpha1.CreateSviRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateSviRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateSviRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.class, opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + sviId_ = ""; + + if (sviBuilder_ == null) { + svi_ = null; + } else { + svi_ = null; + sviBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateSviRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateSviRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateSviRequest build() { + opi_api.network.evpn_gw.v1alpha1.CreateSviRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateSviRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.CreateSviRequest result = new opi_api.network.evpn_gw.v1alpha1.CreateSviRequest(this); + result.sviId_ = sviId_; + if (sviBuilder_ == null) { + result.svi_ = svi_; + } else { + result.svi_ = sviBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.CreateSviRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.CreateSviRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.getDefaultInstance()) return this; + if (!other.getSviId().isEmpty()) { + sviId_ = other.sviId_; + onChanged(); + } + if (other.hasSvi()) { + mergeSvi(other.getSvi()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.CreateSviRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object sviId_ = ""; + /** + *
+     * 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.
+     * 
+ * + * string svi_id = 1; + * @return The sviId. + */ + public java.lang.String getSviId() { + java.lang.Object ref = sviId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sviId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string svi_id = 1; + * @return The bytes for sviId. + */ + public com.google.protobuf.ByteString + getSviIdBytes() { + java.lang.Object ref = sviId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sviId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string svi_id = 1; + * @param value The sviId to set. + * @return This builder for chaining. + */ + public Builder setSviId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sviId_ = value; + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string svi_id = 1; + * @return This builder for chaining. + */ + public Builder clearSviId() { + + sviId_ = getDefaultInstance().getSviId(); + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string svi_id = 1; + * @param value The bytes for sviId to set. + * @return This builder for chaining. + */ + public Builder setSviIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sviId_ = value; + onChanged(); + return this; + } + + private opi_api.network.evpn_gw.v1alpha1.Svi svi_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.Svi, opi_api.network.evpn_gw.v1alpha1.Svi.Builder, opi_api.network.evpn_gw.v1alpha1.SviOrBuilder> sviBuilder_; + /** + *
+     * The Svi to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the svi field is set. + */ + public boolean hasSvi() { + return sviBuilder_ != null || svi_ != null; + } + /** + *
+     * The Svi to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The svi. + */ + public opi_api.network.evpn_gw.v1alpha1.Svi getSvi() { + if (sviBuilder_ == null) { + return svi_ == null ? opi_api.network.evpn_gw.v1alpha1.Svi.getDefaultInstance() : svi_; + } else { + return sviBuilder_.getMessage(); + } + } + /** + *
+     * The Svi to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSvi(opi_api.network.evpn_gw.v1alpha1.Svi value) { + if (sviBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + svi_ = value; + onChanged(); + } else { + sviBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The Svi to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSvi( + opi_api.network.evpn_gw.v1alpha1.Svi.Builder builderForValue) { + if (sviBuilder_ == null) { + svi_ = builderForValue.build(); + onChanged(); + } else { + sviBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The Svi to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSvi(opi_api.network.evpn_gw.v1alpha1.Svi value) { + if (sviBuilder_ == null) { + if (svi_ != null) { + svi_ = + opi_api.network.evpn_gw.v1alpha1.Svi.newBuilder(svi_).mergeFrom(value).buildPartial(); + } else { + svi_ = value; + } + onChanged(); + } else { + sviBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The Svi to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSvi() { + if (sviBuilder_ == null) { + svi_ = null; + onChanged(); + } else { + svi_ = null; + sviBuilder_ = null; + } + + return this; + } + /** + *
+     * The Svi to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.Svi.Builder getSviBuilder() { + + onChanged(); + return getSviFieldBuilder().getBuilder(); + } + /** + *
+     * The Svi to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.SviOrBuilder getSviOrBuilder() { + if (sviBuilder_ != null) { + return sviBuilder_.getMessageOrBuilder(); + } else { + return svi_ == null ? + opi_api.network.evpn_gw.v1alpha1.Svi.getDefaultInstance() : svi_; + } + } + /** + *
+     * The Svi to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.Svi, opi_api.network.evpn_gw.v1alpha1.Svi.Builder, opi_api.network.evpn_gw.v1alpha1.SviOrBuilder> + getSviFieldBuilder() { + if (sviBuilder_ == null) { + sviBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.Svi, opi_api.network.evpn_gw.v1alpha1.Svi.Builder, opi_api.network.evpn_gw.v1alpha1.SviOrBuilder>( + getSvi(), + getParentForChildren(), + isClean()); + svi_ = null; + } + return sviBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + private static final opi_api.network.evpn_gw.v1alpha1.CreateSviRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.CreateSviRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.CreateSviRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSviRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSviRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateSviRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateSviRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateSviRequestOrBuilder.java new file mode 100644 index 00000000..e3422885 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateSviRequestOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface CreateSviRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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.
+   * 
+ * + * string svi_id = 1; + * @return The sviId. + */ + java.lang.String getSviId(); + /** + *
+   * 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.
+   * 
+ * + * string svi_id = 1; + * @return The bytes for sviId. + */ + com.google.protobuf.ByteString + getSviIdBytes(); + + /** + *
+   * The Svi to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the svi field is set. + */ + boolean hasSvi(); + /** + *
+   * The Svi to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The svi. + */ + opi_api.network.evpn_gw.v1alpha1.Svi getSvi(); + /** + *
+   * The Svi to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + opi_api.network.evpn_gw.v1alpha1.SviOrBuilder getSviOrBuilder(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateVrfRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateVrfRequest.java new file mode 100644 index 00000000..fc2b6843 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateVrfRequest.java @@ -0,0 +1,857 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * CreateVrfRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest} + */ +public final class CreateVrfRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + CreateVrfRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateVrfRequest.newBuilder() to construct. + private CreateVrfRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateVrfRequest() { + vrfId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateVrfRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateVrfRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + vrfId_ = s; + break; + } + case 18: { + opi_api.network.evpn_gw.v1alpha1.Vrf.Builder subBuilder = null; + if (vrf_ != null) { + subBuilder = vrf_.toBuilder(); + } + vrf_ = input.readMessage(opi_api.network.evpn_gw.v1alpha1.Vrf.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(vrf_); + vrf_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateVrfRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateVrfRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.class, opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.Builder.class); + } + + public static final int VRF_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object vrfId_; + /** + *
+   * 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.
+   * 
+ * + * string vrf_id = 1; + * @return The vrfId. + */ + @java.lang.Override + public java.lang.String getVrfId() { + java.lang.Object ref = vrfId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vrfId_ = s; + return s; + } + } + /** + *
+   * 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.
+   * 
+ * + * string vrf_id = 1; + * @return The bytes for vrfId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVrfIdBytes() { + java.lang.Object ref = vrfId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vrfId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VRF_FIELD_NUMBER = 2; + private opi_api.network.evpn_gw.v1alpha1.Vrf vrf_; + /** + *
+   * The vrf to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the vrf field is set. + */ + @java.lang.Override + public boolean hasVrf() { + return vrf_ != null; + } + /** + *
+   * The vrf to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The vrf. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.Vrf getVrf() { + return vrf_ == null ? opi_api.network.evpn_gw.v1alpha1.Vrf.getDefaultInstance() : vrf_; + } + /** + *
+   * The vrf to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder getVrfOrBuilder() { + return getVrf(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vrfId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vrfId_); + } + if (vrf_ != null) { + output.writeMessage(2, getVrf()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vrfId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vrfId_); + } + if (vrf_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getVrf()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest other = (opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) obj; + + if (!getVrfId() + .equals(other.getVrfId())) return false; + if (hasVrf() != other.hasVrf()) return false; + if (hasVrf()) { + if (!getVrf() + .equals(other.getVrf())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VRF_ID_FIELD_NUMBER; + hash = (53 * hash) + getVrfId().hashCode(); + if (hasVrf()) { + hash = (37 * hash) + VRF_FIELD_NUMBER; + hash = (53 * hash) + getVrf().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateVrfRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + opi_api.network.evpn_gw.v1alpha1.CreateVrfRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateVrfRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateVrfRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.class, opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + vrfId_ = ""; + + if (vrfBuilder_ == null) { + vrf_ = null; + } else { + vrf_ = null; + vrfBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_CreateVrfRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest build() { + opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest result = new opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest(this); + result.vrfId_ = vrfId_; + if (vrfBuilder_ == null) { + result.vrf_ = vrf_; + } else { + result.vrf_ = vrfBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.getDefaultInstance()) return this; + if (!other.getVrfId().isEmpty()) { + vrfId_ = other.vrfId_; + onChanged(); + } + if (other.hasVrf()) { + mergeVrf(other.getVrf()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object vrfId_ = ""; + /** + *
+     * 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.
+     * 
+ * + * string vrf_id = 1; + * @return The vrfId. + */ + public java.lang.String getVrfId() { + java.lang.Object ref = vrfId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vrfId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string vrf_id = 1; + * @return The bytes for vrfId. + */ + public com.google.protobuf.ByteString + getVrfIdBytes() { + java.lang.Object ref = vrfId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vrfId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string vrf_id = 1; + * @param value The vrfId to set. + * @return This builder for chaining. + */ + public Builder setVrfId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vrfId_ = value; + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string vrf_id = 1; + * @return This builder for chaining. + */ + public Builder clearVrfId() { + + vrfId_ = getDefaultInstance().getVrfId(); + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string vrf_id = 1; + * @param value The bytes for vrfId to set. + * @return This builder for chaining. + */ + public Builder setVrfIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vrfId_ = value; + onChanged(); + return this; + } + + private opi_api.network.evpn_gw.v1alpha1.Vrf vrf_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.Vrf, opi_api.network.evpn_gw.v1alpha1.Vrf.Builder, opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder> vrfBuilder_; + /** + *
+     * The vrf to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the vrf field is set. + */ + public boolean hasVrf() { + return vrfBuilder_ != null || vrf_ != null; + } + /** + *
+     * The vrf to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The vrf. + */ + public opi_api.network.evpn_gw.v1alpha1.Vrf getVrf() { + if (vrfBuilder_ == null) { + return vrf_ == null ? opi_api.network.evpn_gw.v1alpha1.Vrf.getDefaultInstance() : vrf_; + } else { + return vrfBuilder_.getMessage(); + } + } + /** + *
+     * The vrf to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setVrf(opi_api.network.evpn_gw.v1alpha1.Vrf value) { + if (vrfBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vrf_ = value; + onChanged(); + } else { + vrfBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The vrf to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setVrf( + opi_api.network.evpn_gw.v1alpha1.Vrf.Builder builderForValue) { + if (vrfBuilder_ == null) { + vrf_ = builderForValue.build(); + onChanged(); + } else { + vrfBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The vrf to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeVrf(opi_api.network.evpn_gw.v1alpha1.Vrf value) { + if (vrfBuilder_ == null) { + if (vrf_ != null) { + vrf_ = + opi_api.network.evpn_gw.v1alpha1.Vrf.newBuilder(vrf_).mergeFrom(value).buildPartial(); + } else { + vrf_ = value; + } + onChanged(); + } else { + vrfBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The vrf to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearVrf() { + if (vrfBuilder_ == null) { + vrf_ = null; + onChanged(); + } else { + vrf_ = null; + vrfBuilder_ = null; + } + + return this; + } + /** + *
+     * The vrf to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.Vrf.Builder getVrfBuilder() { + + onChanged(); + return getVrfFieldBuilder().getBuilder(); + } + /** + *
+     * The vrf to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder getVrfOrBuilder() { + if (vrfBuilder_ != null) { + return vrfBuilder_.getMessageOrBuilder(); + } else { + return vrf_ == null ? + opi_api.network.evpn_gw.v1alpha1.Vrf.getDefaultInstance() : vrf_; + } + } + /** + *
+     * The vrf to create
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.Vrf, opi_api.network.evpn_gw.v1alpha1.Vrf.Builder, opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder> + getVrfFieldBuilder() { + if (vrfBuilder_ == null) { + vrfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.Vrf, opi_api.network.evpn_gw.v1alpha1.Vrf.Builder, opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder>( + getVrf(), + getParentForChildren(), + isClean()); + vrf_ = null; + } + return vrfBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + private static final opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateVrfRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateVrfRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateVrfRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateVrfRequestOrBuilder.java new file mode 100644 index 00000000..42f38c01 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateVrfRequestOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface CreateVrfRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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.
+   * 
+ * + * string vrf_id = 1; + * @return The vrfId. + */ + java.lang.String getVrfId(); + /** + *
+   * 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.
+   * 
+ * + * string vrf_id = 1; + * @return The bytes for vrfId. + */ + com.google.protobuf.ByteString + getVrfIdBytes(); + + /** + *
+   * The vrf to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the vrf field is set. + */ + boolean hasVrf(); + /** + *
+   * The vrf to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The vrf. + */ + opi_api.network.evpn_gw.v1alpha1.Vrf getVrf(); + /** + *
+   * The vrf to create
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder getVrfOrBuilder(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteBridgePortRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteBridgePortRequest.java new file mode 100644 index 00000000..d9684269 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteBridgePortRequest.java @@ -0,0 +1,600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * DeleteBridgePortRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest} + */ +public final class DeleteBridgePortRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) + DeleteBridgePortRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteBridgePortRequest.newBuilder() to construct. + private DeleteBridgePortRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteBridgePortRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteBridgePortRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteBridgePortRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteBridgePortRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteBridgePortRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.class, opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the bridge port to retrieve
+   * Format: bridgePorts/{bridge_port}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the bridge port to retrieve
+   * Format: bridgePorts/{bridge_port}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest other = (opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DeleteBridgePortRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) + opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteBridgePortRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteBridgePortRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.class, opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteBridgePortRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest build() { + opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest result = new opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the bridge port to retrieve
+     * Format: bridgePorts/{bridge_port}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the bridge port to retrieve
+     * Format: bridgePorts/{bridge_port}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the bridge port to retrieve
+     * Format: bridgePorts/{bridge_port}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the bridge port to retrieve
+     * Format: bridgePorts/{bridge_port}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the bridge port to retrieve
+     * Format: bridgePorts/{bridge_port}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) + private static final opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBridgePortRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteBridgePortRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteBridgePortRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteBridgePortRequestOrBuilder.java new file mode 100644 index 00000000..ce51e6e6 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteBridgePortRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface DeleteBridgePortRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the bridge port to retrieve
+   * Format: bridgePorts/{bridge_port}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the bridge port to retrieve
+   * Format: bridgePorts/{bridge_port}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteLogicalBridgeRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteLogicalBridgeRequest.java new file mode 100644 index 00000000..66e2f696 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteLogicalBridgeRequest.java @@ -0,0 +1,600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * DeleteLogicalBridgeRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest} + */ +public final class DeleteLogicalBridgeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) + DeleteLogicalBridgeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteLogicalBridgeRequest.newBuilder() to construct. + private DeleteLogicalBridgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteLogicalBridgeRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteLogicalBridgeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteLogicalBridgeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteLogicalBridgeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteLogicalBridgeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.class, opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the logical bridge to retrieve
+   * Format: logicalBridges/{logical_bridge}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the logical bridge to retrieve
+   * Format: logicalBridges/{logical_bridge}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest other = (opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DeleteLogicalBridgeRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) + opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteLogicalBridgeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteLogicalBridgeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.class, opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteLogicalBridgeRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest build() { + opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest result = new opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the logical bridge to retrieve
+     * Format: logicalBridges/{logical_bridge}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the logical bridge to retrieve
+     * Format: logicalBridges/{logical_bridge}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the logical bridge to retrieve
+     * Format: logicalBridges/{logical_bridge}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the logical bridge to retrieve
+     * Format: logicalBridges/{logical_bridge}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the logical bridge to retrieve
+     * Format: logicalBridges/{logical_bridge}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) + private static final opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteLogicalBridgeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteLogicalBridgeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteLogicalBridgeRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteLogicalBridgeRequestOrBuilder.java new file mode 100644 index 00000000..c6d9763a --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteLogicalBridgeRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface DeleteLogicalBridgeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the logical bridge to retrieve
+   * Format: logicalBridges/{logical_bridge}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the logical bridge to retrieve
+   * Format: logicalBridges/{logical_bridge}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteSviRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteSviRequest.java new file mode 100644 index 00000000..074a9e9f --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteSviRequest.java @@ -0,0 +1,600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * DeleteSviRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest} + */ +public final class DeleteSviRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + DeleteSviRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteSviRequest.newBuilder() to construct. + private DeleteSviRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteSviRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteSviRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteSviRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteSviRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteSviRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.class, opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the svi to delete
+   * Format: svis/{svi}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the svi to delete
+   * Format: svis/{svi}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest other = (opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DeleteSviRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + opi_api.network.evpn_gw.v1alpha1.DeleteSviRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteSviRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteSviRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.class, opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteSviRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest build() { + opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest result = new opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the svi to delete
+     * Format: svis/{svi}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the svi to delete
+     * Format: svis/{svi}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the svi to delete
+     * Format: svis/{svi}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the svi to delete
+     * Format: svis/{svi}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the svi to delete
+     * Format: svis/{svi}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + private static final opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSviRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteSviRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteSviRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteSviRequestOrBuilder.java new file mode 100644 index 00000000..a1d1ab5c --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteSviRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface DeleteSviRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the svi to delete
+   * Format: svis/{svi}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the svi to delete
+   * Format: svis/{svi}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteVrfRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteVrfRequest.java new file mode 100644 index 00000000..1aee8fbc --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteVrfRequest.java @@ -0,0 +1,600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * DeleteVrfRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest} + */ +public final class DeleteVrfRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + DeleteVrfRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteVrfRequest.newBuilder() to construct. + private DeleteVrfRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteVrfRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteVrfRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteVrfRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteVrfRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteVrfRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.class, opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the vrf to delete
+   * Format: vrfs/{vrf}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the vrf to delete
+   * Format: vrfs/{vrf}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest other = (opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DeleteVrfRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteVrfRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteVrfRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.class, opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteVrfRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest build() { + opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest result = new opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the vrf to delete
+     * Format: vrfs/{vrf}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the vrf to delete
+     * Format: vrfs/{vrf}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the vrf to delete
+     * Format: vrfs/{vrf}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the vrf to delete
+     * Format: vrfs/{vrf}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the vrf to delete
+     * Format: vrfs/{vrf}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + private static final opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteVrfRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteVrfRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteVrfRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteVrfRequestOrBuilder.java new file mode 100644 index 00000000..40b80b58 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteVrfRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface DeleteVrfRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the vrf to delete
+   * Format: vrfs/{vrf}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the vrf to delete
+   * Format: vrfs/{vrf}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetBridgePortRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetBridgePortRequest.java new file mode 100644 index 00000000..8e932d11 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetBridgePortRequest.java @@ -0,0 +1,600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * GetBridgePortRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest} + */ +public final class GetBridgePortRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) + GetBridgePortRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetBridgePortRequest.newBuilder() to construct. + private GetBridgePortRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetBridgePortRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetBridgePortRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetBridgePortRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetBridgePortRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetBridgePortRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.class, opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the bridge port to retrieve
+   * Format: bridgePorts/{bridge_port}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the bridge port to retrieve
+   * Format: bridgePorts/{bridge_port}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest other = (opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetBridgePortRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) + opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetBridgePortRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetBridgePortRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.class, opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetBridgePortRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest build() { + opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest result = new opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the bridge port to retrieve
+     * Format: bridgePorts/{bridge_port}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the bridge port to retrieve
+     * Format: bridgePorts/{bridge_port}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the bridge port to retrieve
+     * Format: bridgePorts/{bridge_port}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the bridge port to retrieve
+     * Format: bridgePorts/{bridge_port}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the bridge port to retrieve
+     * Format: bridgePorts/{bridge_port}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) + private static final opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBridgePortRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetBridgePortRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetBridgePortRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetBridgePortRequestOrBuilder.java new file mode 100644 index 00000000..e3304292 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetBridgePortRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface GetBridgePortRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the bridge port to retrieve
+   * Format: bridgePorts/{bridge_port}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the bridge port to retrieve
+   * Format: bridgePorts/{bridge_port}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetLogicalBridgeRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetLogicalBridgeRequest.java new file mode 100644 index 00000000..c609a0d7 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetLogicalBridgeRequest.java @@ -0,0 +1,600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * GetLogicalBridgeRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest} + */ +public final class GetLogicalBridgeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) + GetLogicalBridgeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetLogicalBridgeRequest.newBuilder() to construct. + private GetLogicalBridgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetLogicalBridgeRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetLogicalBridgeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetLogicalBridgeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetLogicalBridgeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetLogicalBridgeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.class, opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the logical bridge to retrieve
+   * Format: logicalBridges/{logical_bridge}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the logical bridge to retrieve
+   * Format: logicalBridges/{logical_bridge}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest other = (opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetLogicalBridgeRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) + opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetLogicalBridgeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetLogicalBridgeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.class, opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetLogicalBridgeRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest build() { + opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest result = new opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the logical bridge to retrieve
+     * Format: logicalBridges/{logical_bridge}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the logical bridge to retrieve
+     * Format: logicalBridges/{logical_bridge}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the logical bridge to retrieve
+     * Format: logicalBridges/{logical_bridge}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the logical bridge to retrieve
+     * Format: logicalBridges/{logical_bridge}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the logical bridge to retrieve
+     * Format: logicalBridges/{logical_bridge}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) + private static final opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLogicalBridgeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetLogicalBridgeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetLogicalBridgeRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetLogicalBridgeRequestOrBuilder.java new file mode 100644 index 00000000..5e7f9ef4 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetLogicalBridgeRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface GetLogicalBridgeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the logical bridge to retrieve
+   * Format: logicalBridges/{logical_bridge}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the logical bridge to retrieve
+   * Format: logicalBridges/{logical_bridge}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetSviRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetSviRequest.java new file mode 100644 index 00000000..370dcad2 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetSviRequest.java @@ -0,0 +1,600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * GetSviRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.GetSviRequest} + */ +public final class GetSviRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + GetSviRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetSviRequest.newBuilder() to construct. + private GetSviRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetSviRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetSviRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetSviRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetSviRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetSviRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.GetSviRequest.class, opi_api.network.evpn_gw.v1alpha1.GetSviRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the svi to retrieve
+   * Format: svis/{svi}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the svi to retrieve
+   * Format: svis/{svi}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.GetSviRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.GetSviRequest other = (opi_api.network.evpn_gw.v1alpha1.GetSviRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.GetSviRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetSviRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.GetSviRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + opi_api.network.evpn_gw.v1alpha1.GetSviRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetSviRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetSviRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.GetSviRequest.class, opi_api.network.evpn_gw.v1alpha1.GetSviRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.GetSviRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetSviRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetSviRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.GetSviRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetSviRequest build() { + opi_api.network.evpn_gw.v1alpha1.GetSviRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetSviRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.GetSviRequest result = new opi_api.network.evpn_gw.v1alpha1.GetSviRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.GetSviRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.GetSviRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.GetSviRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.GetSviRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.GetSviRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.GetSviRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the svi to retrieve
+     * Format: svis/{svi}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the svi to retrieve
+     * Format: svis/{svi}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the svi to retrieve
+     * Format: svis/{svi}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the svi to retrieve
+     * Format: svis/{svi}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the svi to retrieve
+     * Format: svis/{svi}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + private static final opi_api.network.evpn_gw.v1alpha1.GetSviRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.GetSviRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.GetSviRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSviRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSviRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetSviRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetSviRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetSviRequestOrBuilder.java new file mode 100644 index 00000000..1e9cfdc9 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetSviRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface GetSviRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the svi to retrieve
+   * Format: svis/{svi}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the svi to retrieve
+   * Format: svis/{svi}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetVrfRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetVrfRequest.java new file mode 100644 index 00000000..3f98c6b2 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetVrfRequest.java @@ -0,0 +1,600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * GetVrfRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.GetVrfRequest} + */ +public final class GetVrfRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + GetVrfRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetVrfRequest.newBuilder() to construct. + private GetVrfRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetVrfRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetVrfRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetVrfRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetVrfRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetVrfRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.class, opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the vrf to retrieve
+   * Format: vrfs/{vrf}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the vrf to retrieve
+   * Format: vrfs/{vrf}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.GetVrfRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.GetVrfRequest other = (opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.GetVrfRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetVrfRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.GetVrfRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + opi_api.network.evpn_gw.v1alpha1.GetVrfRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetVrfRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetVrfRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.class, opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_GetVrfRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetVrfRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetVrfRequest build() { + opi_api.network.evpn_gw.v1alpha1.GetVrfRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetVrfRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.GetVrfRequest result = new opi_api.network.evpn_gw.v1alpha1.GetVrfRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.GetVrfRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.GetVrfRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.GetVrfRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the vrf to retrieve
+     * Format: vrfs/{vrf}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the vrf to retrieve
+     * Format: vrfs/{vrf}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the vrf to retrieve
+     * Format: vrfs/{vrf}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the vrf to retrieve
+     * Format: vrfs/{vrf}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the vrf to retrieve
+     * Format: vrfs/{vrf}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + private static final opi_api.network.evpn_gw.v1alpha1.GetVrfRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.GetVrfRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.GetVrfRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVrfRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVrfRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.GetVrfRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetVrfRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetVrfRequestOrBuilder.java new file mode 100644 index 00000000..3bf3617c --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetVrfRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface GetVrfRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the vrf to retrieve
+   * Format: vrfs/{vrf}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the vrf to retrieve
+   * Format: vrfs/{vrf}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/L2XpuInfraMgrProto.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/L2XpuInfraMgrProto.java new file mode 100644 index 00000000..adbcf65f --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/L2XpuInfraMgrProto.java @@ -0,0 +1,327 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public final class L2XpuInfraMgrProto { + private L2XpuInfraMgrProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridge_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridge_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateLogicalBridgeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateLogicalBridgeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_GetLogicalBridgeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_GetLogicalBridgeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteLogicalBridgeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteLogicalBridgeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePort_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePort_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateBridgePortRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateBridgePortRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_GetBridgePortRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_GetBridgePortRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteBridgePortRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteBridgePortRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\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" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridge_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridge_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridge_descriptor, + new java.lang.String[] { "Name", "Spec", "Status", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeSpec_descriptor, + new java.lang.String[] { "VlanId", "Vni", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeStatus_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeStatus_descriptor, + new java.lang.String[] { "OperStatus", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateLogicalBridgeRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateLogicalBridgeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateLogicalBridgeRequest_descriptor, + new java.lang.String[] { "LogicalBridgeId", "LogicalBridge", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesRequest_descriptor, + new java.lang.String[] { "PageSize", "PageToken", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesResponse_descriptor, + new java.lang.String[] { "LogicalBridges", "NextPageToken", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_GetLogicalBridgeRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_opi_api_network_evpn_gw_v1alpha1_GetLogicalBridgeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_GetLogicalBridgeRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteLogicalBridgeRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteLogicalBridgeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteLogicalBridgeRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePort_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePort_descriptor, + new java.lang.String[] { "Name", "Spec", "Status", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortSpec_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortSpec_descriptor, + new java.lang.String[] { "MacAddress", "Ptype", "LogicalBridges", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortStatus_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePortStatus_descriptor, + new java.lang.String[] { "OperStatus", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateBridgePortRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateBridgePortRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateBridgePortRequest_descriptor, + new java.lang.String[] { "BridgePortId", "BridgePort", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsRequest_descriptor, + new java.lang.String[] { "PageSize", "PageToken", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsResponse_descriptor, + new java.lang.String[] { "BridgePorts", "NextPageToken", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_GetBridgePortRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_opi_api_network_evpn_gw_v1alpha1_GetBridgePortRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_GetBridgePortRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteBridgePortRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteBridgePortRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteBridgePortRequest_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/L3XpuInfraMgrProto.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/L3XpuInfraMgrProto.java new file mode 100644 index 00000000..b5a70f18 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/L3XpuInfraMgrProto.java @@ -0,0 +1,322 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public final class L3XpuInfraMgrProto { + private L3XpuInfraMgrProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_Vrf_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_Vrf_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_VrfSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_VrfSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_VrfStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_VrfStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateVrfRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateVrfRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_GetVrfRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_GetVrfRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteVrfRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteVrfRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_Svi_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_Svi_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_SviSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_SviSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_SviStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_SviStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateSviRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateSviRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_GetSviRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_GetSviRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteSviRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteSviRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\026l3_xpu_infra_mgr.proto\022 opi_api.networ" + + "k.evpn_gw.v1alpha1\032\022networktypes.proto\032\034" + + "google/api/annotations.proto\032\027google/api" + + "/client.proto\032\033google/protobuf/empty.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\"\305\001\n\003Vrf\022\014\n\004name\030\001" + + " \001(\t\022<\n\004spec\030\002 \001(\0132).opi_api.network.evp" + + "n_gw.v1alpha1.VrfSpecB\003\340A\002\022;\n\006status\030\003 \001" + + "(\0132+.opi_api.network.evpn_gw.v1alpha1.Vr" + + "fStatus:5\352A2\n$opi_api.network.evpn_gw.v1" + + "alpha1/Vrf\022\nvrfs/{vrf}\"\261\001\n\007VrfSpec\022\013\n\003vn" + + "i\030\001 \001(\r\022P\n\022loopback_ip_prefix\030\002 \001(\0132/.op" + + "i_api.network.opinetcommon.v1alpha1.IPPr" + + "efixB\003\340A\002\022G\n\016vtep_ip_prefix\030\003 \001(\0132/.opi_" + + "api.network.opinetcommon.v1alpha1.IPPref" + + "ix\"\325\001\n\tVrfStatus\022\025\n\rrouting_table\030\001 \001(\r\022" + + "\020\n\010local_as\030\002 \001(\r\022\n\n\002rd\030\003 \001(\t\022\014\n\004rmac\030\004 " + + "\001(\014\022\022\n\nimport_rts\030\005 \003(\t\022\022\n\nexport_rts\030\006 " + + "\003(\t\022\027\n\017logical_bridges\030\007 \003(\t\022D\n\013oper_sta" + + "tus\030\010 \001(\0162/.opi_api.network.evpn_gw.v1al" + + "pha1.VRFOperStatus\"[\n\020CreateVrfRequest\022\016" + + "\n\006vrf_id\030\001 \001(\t\0227\n\003vrf\030\002 \001(\0132%.opi_api.ne" + + "twork.evpn_gw.v1alpha1.VrfB\003\340A\002\"8\n\017ListV" + + "rfsRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_to" + + "ken\030\002 \001(\t\"`\n\020ListVrfsResponse\0223\n\004vrfs\030\001 " + + "\003(\0132%.opi_api.network.evpn_gw.v1alpha1.V" + + "rf\022\027\n\017next_page_token\030\002 \001(\t\"K\n\rGetVrfReq" + + "uest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$opi_api.netw" + + "ork.evpn_gw.v1alpha1/Vrf\"N\n\020DeleteVrfReq" + + "uest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$opi_api.netw" + + "ork.evpn_gw.v1alpha1/Vrf\"\305\001\n\003Svi\022\014\n\004name" + + "\030\001 \001(\t\022<\n\004spec\030\002 \001(\0132).opi_api.network.e" + + "vpn_gw.v1alpha1.SviSpecB\003\340A\002\022;\n\006status\030\003" + + " \001(\0132+.opi_api.network.evpn_gw.v1alpha1." + + "SviStatus:5\352A2\n$opi_api.network.evpn_gw." + + "v1alpha1/Svi\022\nsvis/{svi}\"\241\002\n\007SviSpec\0229\n\003" + + "vrf\030\001 \001(\tB,\340A\002\372A&\n$opi_api.network.evpn_" + + "gw.v1alpha1/Vrf\022N\n\016logical_bridge\030\002 \001(\tB" + + "6\340A\002\372A0\n.opi_api.network.evpn_gw.v1alpha" + + "1/LogicalBridge\022\030\n\013mac_address\030\003 \001(\014B\003\340A" + + "\002\022J\n\014gw_ip_prefix\030\004 \003(\0132/.opi_api.networ" + + "k.opinetcommon.v1alpha1.IPPrefixB\003\340A\002\022\022\n" + + "\nenable_bgp\030\005 \001(\010\022\021\n\tremote_as\030\006 \001(\r\"Q\n\t" + + "SviStatus\022D\n\013oper_status\030\001 \001(\0162/.opi_api" + + ".network.evpn_gw.v1alpha1.SVIOperStatus\"" + + "[\n\020CreateSviRequest\022\016\n\006svi_id\030\001 \001(\t\0227\n\003s" + + "vi\030\002 \001(\0132%.opi_api.network.evpn_gw.v1alp" + + "ha1.SviB\003\340A\002\"8\n\017ListSvisRequest\022\021\n\tpage_" + + "size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"`\n\020ListSv" + + "isResponse\0223\n\004svis\030\001 \003(\0132%.opi_api.netwo" + + "rk.evpn_gw.v1alpha1.Svi\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"K\n\rGetSviRequest\022:\n\004name\030\001 \001(\tB" + + ",\340A\002\372A&\n$opi_api.network.evpn_gw.v1alpha" + + "1/Svi\"N\n\020DeleteSviRequest\022:\n\004name\030\001 \001(\tB" + + ",\340A\002\372A&\n$opi_api.network.evpn_gw.v1alpha" + + "1/Svi*b\n\rVRFOperStatus\022\037\n\033VRF_OPER_STATU" + + "S_UNSPECIFIED\020\000\022\026\n\022VRF_OPER_STATUS_UP\020\001\022" + + "\030\n\024VRF_OPER_STATUS_DOWN\020\002*b\n\rSVIOperStat" + + "us\022\037\n\033SVI_OPER_STATUS_UNSPECIFIED\020\000\022\026\n\022S" + + "VI_OPER_STATUS_UP\020\001\022\030\n\024SVI_OPER_STATUS_D" + + "OWN\020\0022\237\004\n\nVrfService\022\212\001\n\tCreateVrf\0222.opi" + + "_api.network.evpn_gw.v1alpha1.CreateVrfR" + + "equest\032%.opi_api.network.evpn_gw.v1alpha" + + "1.Vrf\"\"\202\323\344\223\002\017\"\010/v1/vrfs:\003vrf\332A\nvrf,vrf_i" + + "d\022\203\001\n\010ListVrfs\0221.opi_api.network.evpn_gw" + + ".v1alpha1.ListVrfsRequest\0322.opi_api.netw" + + "ork.evpn_gw.v1alpha1.ListVrfsResponse\"\020\202" + + "\323\344\223\002\n\022\010/v1/vrfs\022\202\001\n\006GetVrf\022/.opi_api.net" + + "work.evpn_gw.v1alpha1.GetVrfRequest\032%.op" + + "i_api.network.evpn_gw.v1alpha1.Vrf\" \202\323\344\223" + + "\002\023\022\021/v1/{name=vrfs/*}\332A\004name\022y\n\tDeleteVr" + + "f\0222.opi_api.network.evpn_gw.v1alpha1.Del" + + "eteVrfRequest\032\026.google.protobuf.Empty\" \202" + + "\323\344\223\002\023*\021/v1/{name=vrfs/*}\332A\004name2\237\004\n\nSviS" + + "ervice\022\212\001\n\tCreateSvi\0222.opi_api.network.e" + + "vpn_gw.v1alpha1.CreateSviRequest\032%.opi_a" + + "pi.network.evpn_gw.v1alpha1.Svi\"\"\202\323\344\223\002\017\"" + + "\010/v1/svis:\003svi\332A\nsvi,svi_id\022\203\001\n\010ListSvis" + + "\0221.opi_api.network.evpn_gw.v1alpha1.List" + + "SvisRequest\0322.opi_api.network.evpn_gw.v1" + + "alpha1.ListSvisResponse\"\020\202\323\344\223\002\n\022\010/v1/svi" + + "s\022\202\001\n\006GetSvi\022/.opi_api.network.evpn_gw.v" + + "1alpha1.GetSviRequest\032%.opi_api.network." + + "evpn_gw.v1alpha1.Svi\" \202\323\344\223\002\023\022\021/v1/{name=" + + "svis/*}\332A\004name\022y\n\tDeleteSvi\0222.opi_api.ne" + + "twork.evpn_gw.v1alpha1.DeleteSviRequest\032" + + "\026.google.protobuf.Empty\" \202\323\344\223\002\023*\021/v1/{na" + + "me=svis/*}\332A\004nameBw\n opi_api.network.evp" + + "n_gw.v1alpha1B\022L3XpuInfraMgrProtoP\001Z=git" + + "hub.com/opiproject/opi-api/network/evpn-" + + "gw/v1alpha1/gen/gob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + opi_api.network.opinetcommon.v1alpha1.NetworkTypesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_opi_api_network_evpn_gw_v1alpha1_Vrf_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_opi_api_network_evpn_gw_v1alpha1_Vrf_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_Vrf_descriptor, + new java.lang.String[] { "Name", "Spec", "Status", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_VrfSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_opi_api_network_evpn_gw_v1alpha1_VrfSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_VrfSpec_descriptor, + new java.lang.String[] { "Vni", "LoopbackIpPrefix", "VtepIpPrefix", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_VrfStatus_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_opi_api_network_evpn_gw_v1alpha1_VrfStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_VrfStatus_descriptor, + new java.lang.String[] { "RoutingTable", "LocalAs", "Rd", "Rmac", "ImportRts", "ExportRts", "LogicalBridges", "OperStatus", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateVrfRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateVrfRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateVrfRequest_descriptor, + new java.lang.String[] { "VrfId", "Vrf", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsRequest_descriptor, + new java.lang.String[] { "PageSize", "PageToken", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsResponse_descriptor, + new java.lang.String[] { "Vrfs", "NextPageToken", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_GetVrfRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_opi_api_network_evpn_gw_v1alpha1_GetVrfRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_GetVrfRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteVrfRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteVrfRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteVrfRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_Svi_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_opi_api_network_evpn_gw_v1alpha1_Svi_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_Svi_descriptor, + new java.lang.String[] { "Name", "Spec", "Status", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_SviSpec_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_opi_api_network_evpn_gw_v1alpha1_SviSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_SviSpec_descriptor, + new java.lang.String[] { "Vrf", "LogicalBridge", "MacAddress", "GwIpPrefix", "EnableBgp", "RemoteAs", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_SviStatus_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_opi_api_network_evpn_gw_v1alpha1_SviStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_SviStatus_descriptor, + new java.lang.String[] { "OperStatus", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateSviRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateSviRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_CreateSviRequest_descriptor, + new java.lang.String[] { "SviId", "Svi", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisRequest_descriptor, + new java.lang.String[] { "PageSize", "PageToken", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisResponse_descriptor, + new java.lang.String[] { "Svis", "NextPageToken", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_GetSviRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_opi_api_network_evpn_gw_v1alpha1_GetSviRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_GetSviRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteSviRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteSviRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_opi_api_network_evpn_gw_v1alpha1_DeleteSviRequest_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + opi_api.network.opinetcommon.v1alpha1.NetworkTypesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LBOperStatus.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LBOperStatus.java new file mode 100644 index 00000000..f635bef2 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LBOperStatus.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * LBOperStatus status reflects the operational status of a Logical Bridge
+ * 
+ * + * Protobuf enum {@code opi_api.network.evpn_gw.v1alpha1.LBOperStatus} + */ +public enum LBOperStatus + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * unknown
+   * 
+ * + * LB_OPER_STATUS_UNSPECIFIED = 0; + */ + LB_OPER_STATUS_UNSPECIFIED(0), + /** + *
+   * Logical Bridge is up
+   * 
+ * + * LB_OPER_STATUS_UP = 1; + */ + LB_OPER_STATUS_UP(1), + /** + *
+   * Logical Bridge is down
+   * 
+ * + * LB_OPER_STATUS_DOWN = 2; + */ + LB_OPER_STATUS_DOWN(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * unknown
+   * 
+ * + * LB_OPER_STATUS_UNSPECIFIED = 0; + */ + public static final int LB_OPER_STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+   * Logical Bridge is up
+   * 
+ * + * LB_OPER_STATUS_UP = 1; + */ + public static final int LB_OPER_STATUS_UP_VALUE = 1; + /** + *
+   * Logical Bridge is down
+   * 
+ * + * LB_OPER_STATUS_DOWN = 2; + */ + public static final int LB_OPER_STATUS_DOWN_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LBOperStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LBOperStatus forNumber(int value) { + switch (value) { + case 0: return LB_OPER_STATUS_UNSPECIFIED; + case 1: return LB_OPER_STATUS_UP; + case 2: return LB_OPER_STATUS_DOWN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LBOperStatus> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LBOperStatus findValueByNumber(int number) { + return LBOperStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.getDescriptor().getEnumTypes().get(0); + } + + private static final LBOperStatus[] VALUES = values(); + + public static LBOperStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LBOperStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:opi_api.network.evpn_gw.v1alpha1.LBOperStatus) +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsRequest.java new file mode 100644 index 00000000..7a38c11c --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsRequest.java @@ -0,0 +1,673 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * ListBridgePortsRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest} + */ +public final class ListBridgePortsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) + ListBridgePortsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListBridgePortsRequest.newBuilder() to construct. + private ListBridgePortsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListBridgePortsRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListBridgePortsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListBridgePortsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + pageSize_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.class, opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_; + /** + *
+   * page size of list request
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest other = (opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) obj; + + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListBridgePortsRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.class, opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest build() { + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest result = new opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest(this); + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int pageSize_ ; + /** + *
+     * page size of list request
+     * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * page size of list request
+     * 
+ * + * int32 page_size = 1; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * page size of list request
+     * 
+ * + * int32 page_size = 1; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) + private static final opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBridgePortsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBridgePortsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsRequestOrBuilder.java new file mode 100644 index 00000000..e4fe62fd --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface ListBridgePortsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * page size of list request
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsResponse.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsResponse.java new file mode 100644 index 00000000..c3050c2a --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsResponse.java @@ -0,0 +1,1036 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * ListBridgePortsResponse structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse} + */ +public final class ListBridgePortsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) + ListBridgePortsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListBridgePortsResponse.newBuilder() to construct. + private ListBridgePortsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListBridgePortsResponse() { + bridgePorts_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListBridgePortsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListBridgePortsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + bridgePorts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + bridgePorts_.add( + input.readMessage(opi_api.network.evpn_gw.v1alpha1.BridgePort.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + bridgePorts_ = java.util.Collections.unmodifiableList(bridgePorts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.class, opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.Builder.class); + } + + public static final int BRIDGE_PORTS_FIELD_NUMBER = 1; + private java.util.List bridgePorts_; + /** + *
+   * List of all the bridge ports
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + @java.lang.Override + public java.util.List getBridgePortsList() { + return bridgePorts_; + } + /** + *
+   * List of all the bridge ports
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + @java.lang.Override + public java.util.List + getBridgePortsOrBuilderList() { + return bridgePorts_; + } + /** + *
+   * List of all the bridge ports
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + @java.lang.Override + public int getBridgePortsCount() { + return bridgePorts_.size(); + } + /** + *
+   * List of all the bridge ports
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePort getBridgePorts(int index) { + return bridgePorts_.get(index); + } + /** + *
+   * List of all the bridge ports
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder getBridgePortsOrBuilder( + int index) { + return bridgePorts_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < bridgePorts_.size(); i++) { + output.writeMessage(1, bridgePorts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < bridgePorts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bridgePorts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse other = (opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) obj; + + if (!getBridgePortsList() + .equals(other.getBridgePortsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBridgePortsCount() > 0) { + hash = (37 * hash) + BRIDGE_PORTS_FIELD_NUMBER; + hash = (53 * hash) + getBridgePortsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListBridgePortsResponse structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.class, opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBridgePortsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (bridgePortsBuilder_ == null) { + bridgePorts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + bridgePortsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListBridgePortsResponse_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse build() { + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse buildPartial() { + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse result = new opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse(this); + int from_bitField0_ = bitField0_; + if (bridgePortsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + bridgePorts_ = java.util.Collections.unmodifiableList(bridgePorts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bridgePorts_ = bridgePorts_; + } else { + result.bridgePorts_ = bridgePortsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse other) { + if (other == opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.getDefaultInstance()) return this; + if (bridgePortsBuilder_ == null) { + if (!other.bridgePorts_.isEmpty()) { + if (bridgePorts_.isEmpty()) { + bridgePorts_ = other.bridgePorts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBridgePortsIsMutable(); + bridgePorts_.addAll(other.bridgePorts_); + } + onChanged(); + } + } else { + if (!other.bridgePorts_.isEmpty()) { + if (bridgePortsBuilder_.isEmpty()) { + bridgePortsBuilder_.dispose(); + bridgePortsBuilder_ = null; + bridgePorts_ = other.bridgePorts_; + bitField0_ = (bitField0_ & ~0x00000001); + bridgePortsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBridgePortsFieldBuilder() : null; + } else { + bridgePortsBuilder_.addAllMessages(other.bridgePorts_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List bridgePorts_ = + java.util.Collections.emptyList(); + private void ensureBridgePortsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bridgePorts_ = new java.util.ArrayList(bridgePorts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.BridgePort, opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder, opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder> bridgePortsBuilder_; + + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public java.util.List getBridgePortsList() { + if (bridgePortsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bridgePorts_); + } else { + return bridgePortsBuilder_.getMessageList(); + } + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public int getBridgePortsCount() { + if (bridgePortsBuilder_ == null) { + return bridgePorts_.size(); + } else { + return bridgePortsBuilder_.getCount(); + } + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePort getBridgePorts(int index) { + if (bridgePortsBuilder_ == null) { + return bridgePorts_.get(index); + } else { + return bridgePortsBuilder_.getMessage(index); + } + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public Builder setBridgePorts( + int index, opi_api.network.evpn_gw.v1alpha1.BridgePort value) { + if (bridgePortsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBridgePortsIsMutable(); + bridgePorts_.set(index, value); + onChanged(); + } else { + bridgePortsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public Builder setBridgePorts( + int index, opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder builderForValue) { + if (bridgePortsBuilder_ == null) { + ensureBridgePortsIsMutable(); + bridgePorts_.set(index, builderForValue.build()); + onChanged(); + } else { + bridgePortsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public Builder addBridgePorts(opi_api.network.evpn_gw.v1alpha1.BridgePort value) { + if (bridgePortsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBridgePortsIsMutable(); + bridgePorts_.add(value); + onChanged(); + } else { + bridgePortsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public Builder addBridgePorts( + int index, opi_api.network.evpn_gw.v1alpha1.BridgePort value) { + if (bridgePortsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBridgePortsIsMutable(); + bridgePorts_.add(index, value); + onChanged(); + } else { + bridgePortsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public Builder addBridgePorts( + opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder builderForValue) { + if (bridgePortsBuilder_ == null) { + ensureBridgePortsIsMutable(); + bridgePorts_.add(builderForValue.build()); + onChanged(); + } else { + bridgePortsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public Builder addBridgePorts( + int index, opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder builderForValue) { + if (bridgePortsBuilder_ == null) { + ensureBridgePortsIsMutable(); + bridgePorts_.add(index, builderForValue.build()); + onChanged(); + } else { + bridgePortsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public Builder addAllBridgePorts( + java.lang.Iterable values) { + if (bridgePortsBuilder_ == null) { + ensureBridgePortsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bridgePorts_); + onChanged(); + } else { + bridgePortsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public Builder clearBridgePorts() { + if (bridgePortsBuilder_ == null) { + bridgePorts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bridgePortsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public Builder removeBridgePorts(int index) { + if (bridgePortsBuilder_ == null) { + ensureBridgePortsIsMutable(); + bridgePorts_.remove(index); + onChanged(); + } else { + bridgePortsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder getBridgePortsBuilder( + int index) { + return getBridgePortsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder getBridgePortsOrBuilder( + int index) { + if (bridgePortsBuilder_ == null) { + return bridgePorts_.get(index); } else { + return bridgePortsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public java.util.List + getBridgePortsOrBuilderList() { + if (bridgePortsBuilder_ != null) { + return bridgePortsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bridgePorts_); + } + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder addBridgePortsBuilder() { + return getBridgePortsFieldBuilder().addBuilder( + opi_api.network.evpn_gw.v1alpha1.BridgePort.getDefaultInstance()); + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder addBridgePortsBuilder( + int index) { + return getBridgePortsFieldBuilder().addBuilder( + index, opi_api.network.evpn_gw.v1alpha1.BridgePort.getDefaultInstance()); + } + /** + *
+     * List of all the bridge ports
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + public java.util.List + getBridgePortsBuilderList() { + return getBridgePortsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.BridgePort, opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder, opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder> + getBridgePortsFieldBuilder() { + if (bridgePortsBuilder_ == null) { + bridgePortsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.BridgePort, opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder, opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder>( + bridgePorts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + bridgePorts_ = null; + } + return bridgePortsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) + private static final opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse(); + } + + public static opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBridgePortsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBridgePortsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsResponseOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsResponseOrBuilder.java new file mode 100644 index 00000000..6799ed42 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface ListBridgePortsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * List of all the bridge ports
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + java.util.List + getBridgePortsList(); + /** + *
+   * List of all the bridge ports
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + opi_api.network.evpn_gw.v1alpha1.BridgePort getBridgePorts(int index); + /** + *
+   * List of all the bridge ports
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + int getBridgePortsCount(); + /** + *
+   * List of all the bridge ports
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + java.util.List + getBridgePortsOrBuilderList(); + /** + *
+   * List of all the bridge ports
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_ports = 1; + */ + opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder getBridgePortsOrBuilder( + int index); + + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesRequest.java new file mode 100644 index 00000000..68d9d759 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesRequest.java @@ -0,0 +1,673 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * ListLogicalBridgesRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest} + */ +public final class ListLogicalBridgesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) + ListLogicalBridgesRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListLogicalBridgesRequest.newBuilder() to construct. + private ListLogicalBridgesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListLogicalBridgesRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListLogicalBridgesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListLogicalBridgesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + pageSize_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.class, opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_; + /** + *
+   * page size of list request
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest other = (opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) obj; + + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListLogicalBridgesRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.class, opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest build() { + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest result = new opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest(this); + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int pageSize_ ; + /** + *
+     * page size of list request
+     * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * page size of list request
+     * 
+ * + * int32 page_size = 1; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * page size of list request
+     * 
+ * + * int32 page_size = 1; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) + private static final opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogicalBridgesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLogicalBridgesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesRequestOrBuilder.java new file mode 100644 index 00000000..bf260709 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface ListLogicalBridgesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * page size of list request
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesResponse.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesResponse.java new file mode 100644 index 00000000..8a67e0c8 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesResponse.java @@ -0,0 +1,1036 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * ListLogicalBridgesResponse structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse} + */ +public final class ListLogicalBridgesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) + ListLogicalBridgesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListLogicalBridgesResponse.newBuilder() to construct. + private ListLogicalBridgesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListLogicalBridgesResponse() { + logicalBridges_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListLogicalBridgesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListLogicalBridgesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + logicalBridges_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + logicalBridges_.add( + input.readMessage(opi_api.network.evpn_gw.v1alpha1.LogicalBridge.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + logicalBridges_ = java.util.Collections.unmodifiableList(logicalBridges_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.class, opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.Builder.class); + } + + public static final int LOGICAL_BRIDGES_FIELD_NUMBER = 1; + private java.util.List logicalBridges_; + /** + *
+   * List of all the logical bridges
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + @java.lang.Override + public java.util.List getLogicalBridgesList() { + return logicalBridges_; + } + /** + *
+   * List of all the logical bridges
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + @java.lang.Override + public java.util.List + getLogicalBridgesOrBuilderList() { + return logicalBridges_; + } + /** + *
+   * List of all the logical bridges
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + @java.lang.Override + public int getLogicalBridgesCount() { + return logicalBridges_.size(); + } + /** + *
+   * List of all the logical bridges
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge getLogicalBridges(int index) { + return logicalBridges_.get(index); + } + /** + *
+   * List of all the logical bridges
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder getLogicalBridgesOrBuilder( + int index) { + return logicalBridges_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < logicalBridges_.size(); i++) { + output.writeMessage(1, logicalBridges_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < logicalBridges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, logicalBridges_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse other = (opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) obj; + + if (!getLogicalBridgesList() + .equals(other.getLogicalBridgesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLogicalBridgesCount() > 0) { + hash = (37 * hash) + LOGICAL_BRIDGES_FIELD_NUMBER; + hash = (53 * hash) + getLogicalBridgesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListLogicalBridgesResponse structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.class, opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogicalBridgesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (logicalBridgesBuilder_ == null) { + logicalBridges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + logicalBridgesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListLogicalBridgesResponse_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse build() { + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse buildPartial() { + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse result = new opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse(this); + int from_bitField0_ = bitField0_; + if (logicalBridgesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + logicalBridges_ = java.util.Collections.unmodifiableList(logicalBridges_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.logicalBridges_ = logicalBridges_; + } else { + result.logicalBridges_ = logicalBridgesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse other) { + if (other == opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.getDefaultInstance()) return this; + if (logicalBridgesBuilder_ == null) { + if (!other.logicalBridges_.isEmpty()) { + if (logicalBridges_.isEmpty()) { + logicalBridges_ = other.logicalBridges_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLogicalBridgesIsMutable(); + logicalBridges_.addAll(other.logicalBridges_); + } + onChanged(); + } + } else { + if (!other.logicalBridges_.isEmpty()) { + if (logicalBridgesBuilder_.isEmpty()) { + logicalBridgesBuilder_.dispose(); + logicalBridgesBuilder_ = null; + logicalBridges_ = other.logicalBridges_; + bitField0_ = (bitField0_ & ~0x00000001); + logicalBridgesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogicalBridgesFieldBuilder() : null; + } else { + logicalBridgesBuilder_.addAllMessages(other.logicalBridges_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List logicalBridges_ = + java.util.Collections.emptyList(); + private void ensureLogicalBridgesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + logicalBridges_ = new java.util.ArrayList(logicalBridges_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.LogicalBridge, opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder> logicalBridgesBuilder_; + + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public java.util.List getLogicalBridgesList() { + if (logicalBridgesBuilder_ == null) { + return java.util.Collections.unmodifiableList(logicalBridges_); + } else { + return logicalBridgesBuilder_.getMessageList(); + } + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public int getLogicalBridgesCount() { + if (logicalBridgesBuilder_ == null) { + return logicalBridges_.size(); + } else { + return logicalBridgesBuilder_.getCount(); + } + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge getLogicalBridges(int index) { + if (logicalBridgesBuilder_ == null) { + return logicalBridges_.get(index); + } else { + return logicalBridgesBuilder_.getMessage(index); + } + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public Builder setLogicalBridges( + int index, opi_api.network.evpn_gw.v1alpha1.LogicalBridge value) { + if (logicalBridgesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalBridgesIsMutable(); + logicalBridges_.set(index, value); + onChanged(); + } else { + logicalBridgesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public Builder setLogicalBridges( + int index, opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder builderForValue) { + if (logicalBridgesBuilder_ == null) { + ensureLogicalBridgesIsMutable(); + logicalBridges_.set(index, builderForValue.build()); + onChanged(); + } else { + logicalBridgesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public Builder addLogicalBridges(opi_api.network.evpn_gw.v1alpha1.LogicalBridge value) { + if (logicalBridgesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalBridgesIsMutable(); + logicalBridges_.add(value); + onChanged(); + } else { + logicalBridgesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public Builder addLogicalBridges( + int index, opi_api.network.evpn_gw.v1alpha1.LogicalBridge value) { + if (logicalBridgesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalBridgesIsMutable(); + logicalBridges_.add(index, value); + onChanged(); + } else { + logicalBridgesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public Builder addLogicalBridges( + opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder builderForValue) { + if (logicalBridgesBuilder_ == null) { + ensureLogicalBridgesIsMutable(); + logicalBridges_.add(builderForValue.build()); + onChanged(); + } else { + logicalBridgesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public Builder addLogicalBridges( + int index, opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder builderForValue) { + if (logicalBridgesBuilder_ == null) { + ensureLogicalBridgesIsMutable(); + logicalBridges_.add(index, builderForValue.build()); + onChanged(); + } else { + logicalBridgesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public Builder addAllLogicalBridges( + java.lang.Iterable values) { + if (logicalBridgesBuilder_ == null) { + ensureLogicalBridgesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logicalBridges_); + onChanged(); + } else { + logicalBridgesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public Builder clearLogicalBridges() { + if (logicalBridgesBuilder_ == null) { + logicalBridges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + logicalBridgesBuilder_.clear(); + } + return this; + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public Builder removeLogicalBridges(int index) { + if (logicalBridgesBuilder_ == null) { + ensureLogicalBridgesIsMutable(); + logicalBridges_.remove(index); + onChanged(); + } else { + logicalBridgesBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder getLogicalBridgesBuilder( + int index) { + return getLogicalBridgesFieldBuilder().getBuilder(index); + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder getLogicalBridgesOrBuilder( + int index) { + if (logicalBridgesBuilder_ == null) { + return logicalBridges_.get(index); } else { + return logicalBridgesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public java.util.List + getLogicalBridgesOrBuilderList() { + if (logicalBridgesBuilder_ != null) { + return logicalBridgesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logicalBridges_); + } + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder addLogicalBridgesBuilder() { + return getLogicalBridgesFieldBuilder().addBuilder( + opi_api.network.evpn_gw.v1alpha1.LogicalBridge.getDefaultInstance()); + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder addLogicalBridgesBuilder( + int index) { + return getLogicalBridgesFieldBuilder().addBuilder( + index, opi_api.network.evpn_gw.v1alpha1.LogicalBridge.getDefaultInstance()); + } + /** + *
+     * List of all the logical bridges
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + public java.util.List + getLogicalBridgesBuilderList() { + return getLogicalBridgesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.LogicalBridge, opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder> + getLogicalBridgesFieldBuilder() { + if (logicalBridgesBuilder_ == null) { + logicalBridgesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.LogicalBridge, opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder>( + logicalBridges_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + logicalBridges_ = null; + } + return logicalBridgesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) + private static final opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse(); + } + + public static opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogicalBridgesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLogicalBridgesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesResponseOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesResponseOrBuilder.java new file mode 100644 index 00000000..de10fd20 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface ListLogicalBridgesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * List of all the logical bridges
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + java.util.List + getLogicalBridgesList(); + /** + *
+   * List of all the logical bridges
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + opi_api.network.evpn_gw.v1alpha1.LogicalBridge getLogicalBridges(int index); + /** + *
+   * List of all the logical bridges
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + int getLogicalBridgesCount(); + /** + *
+   * List of all the logical bridges
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + java.util.List + getLogicalBridgesOrBuilderList(); + /** + *
+   * List of all the logical bridges
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridges = 1; + */ + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder getLogicalBridgesOrBuilder( + int index); + + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisRequest.java new file mode 100644 index 00000000..2f3f5437 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisRequest.java @@ -0,0 +1,673 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * ListSvisRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListSvisRequest} + */ +public final class ListSvisRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + ListSvisRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSvisRequest.newBuilder() to construct. + private ListSvisRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSvisRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListSvisRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListSvisRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + pageSize_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.class, opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_; + /** + *
+   * page size of list request
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.ListSvisRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.ListSvisRequest other = (opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) obj; + + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.ListSvisRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListSvisRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListSvisRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + opi_api.network.evpn_gw.v1alpha1.ListSvisRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.class, opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListSvisRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListSvisRequest build() { + opi_api.network.evpn_gw.v1alpha1.ListSvisRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListSvisRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.ListSvisRequest result = new opi_api.network.evpn_gw.v1alpha1.ListSvisRequest(this); + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.ListSvisRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.ListSvisRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.ListSvisRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int pageSize_ ; + /** + *
+     * page size of list request
+     * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * page size of list request
+     * 
+ * + * int32 page_size = 1; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * page size of list request
+     * 
+ * + * int32 page_size = 1; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + private static final opi_api.network.evpn_gw.v1alpha1.ListSvisRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.ListSvisRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.ListSvisRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSvisRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSvisRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListSvisRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisRequestOrBuilder.java new file mode 100644 index 00000000..c71ccd89 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface ListSvisRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * page size of list request
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisResponse.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisResponse.java new file mode 100644 index 00000000..b57cc213 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisResponse.java @@ -0,0 +1,1036 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * ListSvisResponse structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListSvisResponse} + */ +public final class ListSvisResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + ListSvisResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSvisResponse.newBuilder() to construct. + private ListSvisResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSvisResponse() { + svis_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListSvisResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListSvisResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + svis_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + svis_.add( + input.readMessage(opi_api.network.evpn_gw.v1alpha1.Svi.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + svis_ = java.util.Collections.unmodifiableList(svis_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.class, opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.Builder.class); + } + + public static final int SVIS_FIELD_NUMBER = 1; + private java.util.List svis_; + /** + *
+   * List of all the svis
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + @java.lang.Override + public java.util.List getSvisList() { + return svis_; + } + /** + *
+   * List of all the svis
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + @java.lang.Override + public java.util.List + getSvisOrBuilderList() { + return svis_; + } + /** + *
+   * List of all the svis
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + @java.lang.Override + public int getSvisCount() { + return svis_.size(); + } + /** + *
+   * List of all the svis
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.Svi getSvis(int index) { + return svis_.get(index); + } + /** + *
+   * List of all the svis
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviOrBuilder getSvisOrBuilder( + int index) { + return svis_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < svis_.size(); i++) { + output.writeMessage(1, svis_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < svis_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, svis_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.ListSvisResponse)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.ListSvisResponse other = (opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) obj; + + if (!getSvisList() + .equals(other.getSvisList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSvisCount() > 0) { + hash = (37 * hash) + SVIS_FIELD_NUMBER; + hash = (53 * hash) + getSvisList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.ListSvisResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListSvisResponse structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListSvisResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + opi_api.network.evpn_gw.v1alpha1.ListSvisResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.class, opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSvisFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (svisBuilder_ == null) { + svis_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + svisBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListSvisResponse_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListSvisResponse getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListSvisResponse build() { + opi_api.network.evpn_gw.v1alpha1.ListSvisResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListSvisResponse buildPartial() { + opi_api.network.evpn_gw.v1alpha1.ListSvisResponse result = new opi_api.network.evpn_gw.v1alpha1.ListSvisResponse(this); + int from_bitField0_ = bitField0_; + if (svisBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + svis_ = java.util.Collections.unmodifiableList(svis_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.svis_ = svis_; + } else { + result.svis_ = svisBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.ListSvisResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.ListSvisResponse other) { + if (other == opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.getDefaultInstance()) return this; + if (svisBuilder_ == null) { + if (!other.svis_.isEmpty()) { + if (svis_.isEmpty()) { + svis_ = other.svis_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSvisIsMutable(); + svis_.addAll(other.svis_); + } + onChanged(); + } + } else { + if (!other.svis_.isEmpty()) { + if (svisBuilder_.isEmpty()) { + svisBuilder_.dispose(); + svisBuilder_ = null; + svis_ = other.svis_; + bitField0_ = (bitField0_ & ~0x00000001); + svisBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSvisFieldBuilder() : null; + } else { + svisBuilder_.addAllMessages(other.svis_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.ListSvisResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List svis_ = + java.util.Collections.emptyList(); + private void ensureSvisIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + svis_ = new java.util.ArrayList(svis_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.Svi, opi_api.network.evpn_gw.v1alpha1.Svi.Builder, opi_api.network.evpn_gw.v1alpha1.SviOrBuilder> svisBuilder_; + + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public java.util.List getSvisList() { + if (svisBuilder_ == null) { + return java.util.Collections.unmodifiableList(svis_); + } else { + return svisBuilder_.getMessageList(); + } + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public int getSvisCount() { + if (svisBuilder_ == null) { + return svis_.size(); + } else { + return svisBuilder_.getCount(); + } + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.Svi getSvis(int index) { + if (svisBuilder_ == null) { + return svis_.get(index); + } else { + return svisBuilder_.getMessage(index); + } + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public Builder setSvis( + int index, opi_api.network.evpn_gw.v1alpha1.Svi value) { + if (svisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSvisIsMutable(); + svis_.set(index, value); + onChanged(); + } else { + svisBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public Builder setSvis( + int index, opi_api.network.evpn_gw.v1alpha1.Svi.Builder builderForValue) { + if (svisBuilder_ == null) { + ensureSvisIsMutable(); + svis_.set(index, builderForValue.build()); + onChanged(); + } else { + svisBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public Builder addSvis(opi_api.network.evpn_gw.v1alpha1.Svi value) { + if (svisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSvisIsMutable(); + svis_.add(value); + onChanged(); + } else { + svisBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public Builder addSvis( + int index, opi_api.network.evpn_gw.v1alpha1.Svi value) { + if (svisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSvisIsMutable(); + svis_.add(index, value); + onChanged(); + } else { + svisBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public Builder addSvis( + opi_api.network.evpn_gw.v1alpha1.Svi.Builder builderForValue) { + if (svisBuilder_ == null) { + ensureSvisIsMutable(); + svis_.add(builderForValue.build()); + onChanged(); + } else { + svisBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public Builder addSvis( + int index, opi_api.network.evpn_gw.v1alpha1.Svi.Builder builderForValue) { + if (svisBuilder_ == null) { + ensureSvisIsMutable(); + svis_.add(index, builderForValue.build()); + onChanged(); + } else { + svisBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public Builder addAllSvis( + java.lang.Iterable values) { + if (svisBuilder_ == null) { + ensureSvisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, svis_); + onChanged(); + } else { + svisBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public Builder clearSvis() { + if (svisBuilder_ == null) { + svis_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + svisBuilder_.clear(); + } + return this; + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public Builder removeSvis(int index) { + if (svisBuilder_ == null) { + ensureSvisIsMutable(); + svis_.remove(index); + onChanged(); + } else { + svisBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.Svi.Builder getSvisBuilder( + int index) { + return getSvisFieldBuilder().getBuilder(index); + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.SviOrBuilder getSvisOrBuilder( + int index) { + if (svisBuilder_ == null) { + return svis_.get(index); } else { + return svisBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public java.util.List + getSvisOrBuilderList() { + if (svisBuilder_ != null) { + return svisBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(svis_); + } + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.Svi.Builder addSvisBuilder() { + return getSvisFieldBuilder().addBuilder( + opi_api.network.evpn_gw.v1alpha1.Svi.getDefaultInstance()); + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.Svi.Builder addSvisBuilder( + int index) { + return getSvisFieldBuilder().addBuilder( + index, opi_api.network.evpn_gw.v1alpha1.Svi.getDefaultInstance()); + } + /** + *
+     * List of all the svis
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + public java.util.List + getSvisBuilderList() { + return getSvisFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.Svi, opi_api.network.evpn_gw.v1alpha1.Svi.Builder, opi_api.network.evpn_gw.v1alpha1.SviOrBuilder> + getSvisFieldBuilder() { + if (svisBuilder_ == null) { + svisBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.Svi, opi_api.network.evpn_gw.v1alpha1.Svi.Builder, opi_api.network.evpn_gw.v1alpha1.SviOrBuilder>( + svis_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + svis_ = null; + } + return svisBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + private static final opi_api.network.evpn_gw.v1alpha1.ListSvisResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.ListSvisResponse(); + } + + public static opi_api.network.evpn_gw.v1alpha1.ListSvisResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSvisResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSvisResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListSvisResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisResponseOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisResponseOrBuilder.java new file mode 100644 index 00000000..24a2184d --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface ListSvisResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * List of all the svis
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + java.util.List + getSvisList(); + /** + *
+   * List of all the svis
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + opi_api.network.evpn_gw.v1alpha1.Svi getSvis(int index); + /** + *
+   * List of all the svis
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + int getSvisCount(); + /** + *
+   * List of all the svis
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + java.util.List + getSvisOrBuilderList(); + /** + *
+   * List of all the svis
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Svi svis = 1; + */ + opi_api.network.evpn_gw.v1alpha1.SviOrBuilder getSvisOrBuilder( + int index); + + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsRequest.java new file mode 100644 index 00000000..8dd0a5f2 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsRequest.java @@ -0,0 +1,673 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * ListVrfsRequest structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest} + */ +public final class ListVrfsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + ListVrfsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListVrfsRequest.newBuilder() to construct. + private ListVrfsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListVrfsRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListVrfsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListVrfsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + pageSize_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.class, opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_; + /** + *
+   * page size of list request
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object pageToken_; + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest other = (opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) obj; + + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListVrfsRequest structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + opi_api.network.evpn_gw.v1alpha1.ListVrfsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.class, opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsRequest_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest build() { + opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest buildPartial() { + opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest result = new opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest(this); + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest other) { + if (other == opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int pageSize_ ; + /** + *
+     * page size of list request
+     * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * page size of list request
+     * 
+ * + * int32 page_size = 1; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * page size of list request
+     * 
+ * + * int32 page_size = 1; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * page token of list request
+     * 
+ * + * string page_token = 2; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + private static final opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest(); + } + + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVrfsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVrfsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsRequestOrBuilder.java new file mode 100644 index 00000000..9bcdf3e3 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsRequestOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface ListVrfsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * page size of list request
+   * 
+ * + * int32 page_size = 1; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * page token of list request
+   * 
+ * + * string page_token = 2; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsResponse.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsResponse.java new file mode 100644 index 00000000..8f8d6cc5 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsResponse.java @@ -0,0 +1,1036 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * ListVrfsResponse structure
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse} + */ +public final class ListVrfsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + ListVrfsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListVrfsResponse.newBuilder() to construct. + private ListVrfsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListVrfsResponse() { + vrfs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListVrfsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListVrfsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vrfs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + vrfs_.add( + input.readMessage(opi_api.network.evpn_gw.v1alpha1.Vrf.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + vrfs_ = java.util.Collections.unmodifiableList(vrfs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.class, opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.Builder.class); + } + + public static final int VRFS_FIELD_NUMBER = 1; + private java.util.List vrfs_; + /** + *
+   * List of all the vrfs
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + @java.lang.Override + public java.util.List getVrfsList() { + return vrfs_; + } + /** + *
+   * List of all the vrfs
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + @java.lang.Override + public java.util.List + getVrfsOrBuilderList() { + return vrfs_; + } + /** + *
+   * List of all the vrfs
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + @java.lang.Override + public int getVrfsCount() { + return vrfs_.size(); + } + /** + *
+   * List of all the vrfs
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.Vrf getVrfs(int index) { + return vrfs_.get(index); + } + /** + *
+   * List of all the vrfs
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder getVrfsOrBuilder( + int index) { + return vrfs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < vrfs_.size(); i++) { + output.writeMessage(1, vrfs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < vrfs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, vrfs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse other = (opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) obj; + + if (!getVrfsList() + .equals(other.getVrfsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVrfsCount() > 0) { + hash = (37 * hash) + VRFS_FIELD_NUMBER; + hash = (53 * hash) + getVrfsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListVrfsResponse structure
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + opi_api.network.evpn_gw.v1alpha1.ListVrfsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.class, opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getVrfsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (vrfsBuilder_ == null) { + vrfs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + vrfsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_ListVrfsResponse_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse build() { + opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse buildPartial() { + opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse result = new opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse(this); + int from_bitField0_ = bitField0_; + if (vrfsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + vrfs_ = java.util.Collections.unmodifiableList(vrfs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.vrfs_ = vrfs_; + } else { + result.vrfs_ = vrfsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse other) { + if (other == opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.getDefaultInstance()) return this; + if (vrfsBuilder_ == null) { + if (!other.vrfs_.isEmpty()) { + if (vrfs_.isEmpty()) { + vrfs_ = other.vrfs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVrfsIsMutable(); + vrfs_.addAll(other.vrfs_); + } + onChanged(); + } + } else { + if (!other.vrfs_.isEmpty()) { + if (vrfsBuilder_.isEmpty()) { + vrfsBuilder_.dispose(); + vrfsBuilder_ = null; + vrfs_ = other.vrfs_; + bitField0_ = (bitField0_ & ~0x00000001); + vrfsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVrfsFieldBuilder() : null; + } else { + vrfsBuilder_.addAllMessages(other.vrfs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List vrfs_ = + java.util.Collections.emptyList(); + private void ensureVrfsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + vrfs_ = new java.util.ArrayList(vrfs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.Vrf, opi_api.network.evpn_gw.v1alpha1.Vrf.Builder, opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder> vrfsBuilder_; + + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public java.util.List getVrfsList() { + if (vrfsBuilder_ == null) { + return java.util.Collections.unmodifiableList(vrfs_); + } else { + return vrfsBuilder_.getMessageList(); + } + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public int getVrfsCount() { + if (vrfsBuilder_ == null) { + return vrfs_.size(); + } else { + return vrfsBuilder_.getCount(); + } + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.Vrf getVrfs(int index) { + if (vrfsBuilder_ == null) { + return vrfs_.get(index); + } else { + return vrfsBuilder_.getMessage(index); + } + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public Builder setVrfs( + int index, opi_api.network.evpn_gw.v1alpha1.Vrf value) { + if (vrfsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVrfsIsMutable(); + vrfs_.set(index, value); + onChanged(); + } else { + vrfsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public Builder setVrfs( + int index, opi_api.network.evpn_gw.v1alpha1.Vrf.Builder builderForValue) { + if (vrfsBuilder_ == null) { + ensureVrfsIsMutable(); + vrfs_.set(index, builderForValue.build()); + onChanged(); + } else { + vrfsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public Builder addVrfs(opi_api.network.evpn_gw.v1alpha1.Vrf value) { + if (vrfsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVrfsIsMutable(); + vrfs_.add(value); + onChanged(); + } else { + vrfsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public Builder addVrfs( + int index, opi_api.network.evpn_gw.v1alpha1.Vrf value) { + if (vrfsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVrfsIsMutable(); + vrfs_.add(index, value); + onChanged(); + } else { + vrfsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public Builder addVrfs( + opi_api.network.evpn_gw.v1alpha1.Vrf.Builder builderForValue) { + if (vrfsBuilder_ == null) { + ensureVrfsIsMutable(); + vrfs_.add(builderForValue.build()); + onChanged(); + } else { + vrfsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public Builder addVrfs( + int index, opi_api.network.evpn_gw.v1alpha1.Vrf.Builder builderForValue) { + if (vrfsBuilder_ == null) { + ensureVrfsIsMutable(); + vrfs_.add(index, builderForValue.build()); + onChanged(); + } else { + vrfsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public Builder addAllVrfs( + java.lang.Iterable values) { + if (vrfsBuilder_ == null) { + ensureVrfsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vrfs_); + onChanged(); + } else { + vrfsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public Builder clearVrfs() { + if (vrfsBuilder_ == null) { + vrfs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + vrfsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public Builder removeVrfs(int index) { + if (vrfsBuilder_ == null) { + ensureVrfsIsMutable(); + vrfs_.remove(index); + onChanged(); + } else { + vrfsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.Vrf.Builder getVrfsBuilder( + int index) { + return getVrfsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder getVrfsOrBuilder( + int index) { + if (vrfsBuilder_ == null) { + return vrfs_.get(index); } else { + return vrfsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public java.util.List + getVrfsOrBuilderList() { + if (vrfsBuilder_ != null) { + return vrfsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(vrfs_); + } + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.Vrf.Builder addVrfsBuilder() { + return getVrfsFieldBuilder().addBuilder( + opi_api.network.evpn_gw.v1alpha1.Vrf.getDefaultInstance()); + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public opi_api.network.evpn_gw.v1alpha1.Vrf.Builder addVrfsBuilder( + int index) { + return getVrfsFieldBuilder().addBuilder( + index, opi_api.network.evpn_gw.v1alpha1.Vrf.getDefaultInstance()); + } + /** + *
+     * List of all the vrfs
+     * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + public java.util.List + getVrfsBuilderList() { + return getVrfsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.Vrf, opi_api.network.evpn_gw.v1alpha1.Vrf.Builder, opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder> + getVrfsFieldBuilder() { + if (vrfsBuilder_ == null) { + vrfsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.Vrf, opi_api.network.evpn_gw.v1alpha1.Vrf.Builder, opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder>( + vrfs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + vrfs_ = null; + } + return vrfsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * Next page token of list response
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + private static final opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse(); + } + + public static opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVrfsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVrfsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsResponseOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsResponseOrBuilder.java new file mode 100644 index 00000000..85b936d8 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface ListVrfsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * List of all the vrfs
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + java.util.List + getVrfsList(); + /** + *
+   * List of all the vrfs
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + opi_api.network.evpn_gw.v1alpha1.Vrf getVrfs(int index); + /** + *
+   * List of all the vrfs
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + int getVrfsCount(); + /** + *
+   * List of all the vrfs
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + java.util.List + getVrfsOrBuilderList(); + /** + *
+   * List of all the vrfs
+   * 
+ * + * repeated .opi_api.network.evpn_gw.v1alpha1.Vrf vrfs = 1; + */ + opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder getVrfsOrBuilder( + int index); + + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * Next page token of list response
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridge.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridge.java new file mode 100644 index 00000000..47ec8fab --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridge.java @@ -0,0 +1,1093 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * Logical Bridge network configuration and status
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.LogicalBridge} + */ +public final class LogicalBridge extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.LogicalBridge) + LogicalBridgeOrBuilder { +private static final long serialVersionUID = 0L; + // Use LogicalBridge.newBuilder() to construct. + private LogicalBridge(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LogicalBridge() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LogicalBridge(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogicalBridge( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridge_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridge_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.LogicalBridge.class, opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPEC_FIELD_NUMBER = 2; + private opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec_; + /** + *
+   * Logical Bridge network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the spec field is set. + */ + @java.lang.Override + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+   * Logical Bridge network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The spec. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec getSpec() { + return spec_ == null ? opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.getDefaultInstance() : spec_; + } + /** + *
+   * Logical Bridge network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int STATUS_FIELD_NUMBER = 3; + private opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status_; + /** + *
+   * Logical Bridge network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + *
+   * Logical Bridge network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + * @return The status. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus getStatus() { + return status_ == null ? opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.getDefaultInstance() : status_; + } + /** + *
+   * Logical Bridge network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + if (status_ != null) { + output.writeMessage(3, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.LogicalBridge)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.LogicalBridge other = (opi_api.network.evpn_gw.v1alpha1.LogicalBridge) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.LogicalBridge prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Logical Bridge network configuration and status
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.LogicalBridge} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.LogicalBridge) + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridge_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridge_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.LogicalBridge.class, opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.LogicalBridge.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridge_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.LogicalBridge.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge build() { + opi_api.network.evpn_gw.v1alpha1.LogicalBridge result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge buildPartial() { + opi_api.network.evpn_gw.v1alpha1.LogicalBridge result = new opi_api.network.evpn_gw.v1alpha1.LogicalBridge(this); + result.name_ = name_; + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.LogicalBridge) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.LogicalBridge)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.LogicalBridge other) { + if (other == opi_api.network.evpn_gw.v1alpha1.LogicalBridge.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.LogicalBridge parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.LogicalBridge) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.Builder, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpecOrBuilder> specBuilder_; + /** + *
+     * Logical Bridge network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the spec field is set. + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+     * Logical Bridge network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The spec. + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+     * Logical Bridge network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSpec(opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Logical Bridge network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSpec( + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Logical Bridge network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSpec(opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Logical Bridge network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+     * Logical Bridge network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+     * Logical Bridge network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.getDefaultInstance() : spec_; + } + } + /** + *
+     * Logical Bridge network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.Builder, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.Builder, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.Builder, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatusOrBuilder> statusBuilder_; + /** + *
+     * Logical Bridge network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + *
+     * Logical Bridge network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + * @return The status. + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+     * Logical Bridge network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + */ + public Builder setStatus(opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Logical Bridge network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + */ + public Builder setStatus( + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Logical Bridge network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + */ + public Builder mergeStatus(opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Logical Bridge network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; + } + /** + *
+     * Logical Bridge network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.Builder getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+     * Logical Bridge network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.getDefaultInstance() : status_; + } + } + /** + *
+     * Logical Bridge network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.Builder, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.Builder, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.LogicalBridge) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.LogicalBridge) + private static final opi_api.network.evpn_gw.v1alpha1.LogicalBridge DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.LogicalBridge(); + } + + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridge getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalBridge parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalBridge(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeOrBuilder.java new file mode 100644 index 00000000..ed0fc038 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeOrBuilder.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface LogicalBridgeOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.LogicalBridge) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Logical Bridge network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the spec field is set. + */ + boolean hasSpec(); + /** + *
+   * Logical Bridge network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The spec. + */ + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec getSpec(); + /** + *
+   * Logical Bridge network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpecOrBuilder getSpecOrBuilder(); + + /** + *
+   * Logical Bridge network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+   * Logical Bridge network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + * @return The status. + */ + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus getStatus(); + /** + *
+   * Logical Bridge network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3; + */ + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatusOrBuilder getStatusOrBuilder(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeServiceGrpc.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeServiceGrpc.java new file mode 100644 index 00000000..870aa9f6 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeServiceGrpc.java @@ -0,0 +1,561 @@ +package opi_api.network.evpn_gw.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Management of LogicalBridge Resources
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: l2_xpu_infra_mgr.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class LogicalBridgeServiceGrpc { + + private LogicalBridgeServiceGrpc() {} + + public static final String SERVICE_NAME = "opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateLogicalBridgeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateLogicalBridge", + requestType = opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.class, + responseType = opi_api.network.evpn_gw.v1alpha1.LogicalBridge.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateLogicalBridgeMethod() { + io.grpc.MethodDescriptor getCreateLogicalBridgeMethod; + if ((getCreateLogicalBridgeMethod = LogicalBridgeServiceGrpc.getCreateLogicalBridgeMethod) == null) { + synchronized (LogicalBridgeServiceGrpc.class) { + if ((getCreateLogicalBridgeMethod = LogicalBridgeServiceGrpc.getCreateLogicalBridgeMethod) == null) { + LogicalBridgeServiceGrpc.getCreateLogicalBridgeMethod = getCreateLogicalBridgeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLogicalBridge")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.LogicalBridge.getDefaultInstance())) + .setSchemaDescriptor(new LogicalBridgeServiceMethodDescriptorSupplier("CreateLogicalBridge")) + .build(); + } + } + } + return getCreateLogicalBridgeMethod; + } + + private static volatile io.grpc.MethodDescriptor getListLogicalBridgesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLogicalBridges", + requestType = opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.class, + responseType = opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListLogicalBridgesMethod() { + io.grpc.MethodDescriptor getListLogicalBridgesMethod; + if ((getListLogicalBridgesMethod = LogicalBridgeServiceGrpc.getListLogicalBridgesMethod) == null) { + synchronized (LogicalBridgeServiceGrpc.class) { + if ((getListLogicalBridgesMethod = LogicalBridgeServiceGrpc.getListLogicalBridgesMethod) == null) { + LogicalBridgeServiceGrpc.getListLogicalBridgesMethod = getListLogicalBridgesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogicalBridges")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.getDefaultInstance())) + .setSchemaDescriptor(new LogicalBridgeServiceMethodDescriptorSupplier("ListLogicalBridges")) + .build(); + } + } + } + return getListLogicalBridgesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetLogicalBridgeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLogicalBridge", + requestType = opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.class, + responseType = opi_api.network.evpn_gw.v1alpha1.LogicalBridge.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetLogicalBridgeMethod() { + io.grpc.MethodDescriptor getGetLogicalBridgeMethod; + if ((getGetLogicalBridgeMethod = LogicalBridgeServiceGrpc.getGetLogicalBridgeMethod) == null) { + synchronized (LogicalBridgeServiceGrpc.class) { + if ((getGetLogicalBridgeMethod = LogicalBridgeServiceGrpc.getGetLogicalBridgeMethod) == null) { + LogicalBridgeServiceGrpc.getGetLogicalBridgeMethod = getGetLogicalBridgeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLogicalBridge")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.LogicalBridge.getDefaultInstance())) + .setSchemaDescriptor(new LogicalBridgeServiceMethodDescriptorSupplier("GetLogicalBridge")) + .build(); + } + } + } + return getGetLogicalBridgeMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteLogicalBridgeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteLogicalBridge", + requestType = opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteLogicalBridgeMethod() { + io.grpc.MethodDescriptor getDeleteLogicalBridgeMethod; + if ((getDeleteLogicalBridgeMethod = LogicalBridgeServiceGrpc.getDeleteLogicalBridgeMethod) == null) { + synchronized (LogicalBridgeServiceGrpc.class) { + if ((getDeleteLogicalBridgeMethod = LogicalBridgeServiceGrpc.getDeleteLogicalBridgeMethod) == null) { + LogicalBridgeServiceGrpc.getDeleteLogicalBridgeMethod = getDeleteLogicalBridgeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLogicalBridge")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new LogicalBridgeServiceMethodDescriptorSupplier("DeleteLogicalBridge")) + .build(); + } + } + } + return getDeleteLogicalBridgeMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static LogicalBridgeServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LogicalBridgeServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LogicalBridgeServiceStub(channel, callOptions); + } + }; + return LogicalBridgeServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static LogicalBridgeServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LogicalBridgeServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LogicalBridgeServiceBlockingStub(channel, callOptions); + } + }; + return LogicalBridgeServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static LogicalBridgeServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LogicalBridgeServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LogicalBridgeServiceFutureStub(channel, callOptions); + } + }; + return LogicalBridgeServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Management of LogicalBridge Resources
+   * 
+ */ + public static abstract class LogicalBridgeServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Create a Logical Bridge
+     * 
+ */ + public void createLogicalBridge(opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateLogicalBridgeMethod(), responseObserver); + } + + /** + *
+     * List Logical Bridges
+     * 
+ */ + public void listLogicalBridges(opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLogicalBridgesMethod(), responseObserver); + } + + /** + *
+     * Retrieve a Logical Bridge
+     * 
+ */ + public void getLogicalBridge(opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLogicalBridgeMethod(), responseObserver); + } + + /** + *
+     * Delete a Logical Bridge
+     * 
+ */ + public void deleteLogicalBridge(opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteLogicalBridgeMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateLogicalBridgeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest, + opi_api.network.evpn_gw.v1alpha1.LogicalBridge>( + this, METHODID_CREATE_LOGICAL_BRIDGE))) + .addMethod( + getListLogicalBridgesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest, + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse>( + this, METHODID_LIST_LOGICAL_BRIDGES))) + .addMethod( + getGetLogicalBridgeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest, + opi_api.network.evpn_gw.v1alpha1.LogicalBridge>( + this, METHODID_GET_LOGICAL_BRIDGE))) + .addMethod( + getDeleteLogicalBridgeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_LOGICAL_BRIDGE))) + .build(); + } + } + + /** + *
+   * Management of LogicalBridge Resources
+   * 
+ */ + public static final class LogicalBridgeServiceStub extends io.grpc.stub.AbstractAsyncStub { + private LogicalBridgeServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LogicalBridgeServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LogicalBridgeServiceStub(channel, callOptions); + } + + /** + *
+     * Create a Logical Bridge
+     * 
+ */ + public void createLogicalBridge(opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateLogicalBridgeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List Logical Bridges
+     * 
+ */ + public void listLogicalBridges(opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLogicalBridgesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieve a Logical Bridge
+     * 
+ */ + public void getLogicalBridge(opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLogicalBridgeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a Logical Bridge
+     * 
+ */ + public void deleteLogicalBridge(opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteLogicalBridgeMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Management of LogicalBridge Resources
+   * 
+ */ + public static final class LogicalBridgeServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private LogicalBridgeServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LogicalBridgeServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LogicalBridgeServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Create a Logical Bridge
+     * 
+ */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge createLogicalBridge(opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateLogicalBridgeMethod(), getCallOptions(), request); + } + + /** + *
+     * List Logical Bridges
+     * 
+ */ + public opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse listLogicalBridges(opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLogicalBridgesMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieve a Logical Bridge
+     * 
+ */ + public opi_api.network.evpn_gw.v1alpha1.LogicalBridge getLogicalBridge(opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLogicalBridgeMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a Logical Bridge
+     * 
+ */ + public com.google.protobuf.Empty deleteLogicalBridge(opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteLogicalBridgeMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Management of LogicalBridge Resources
+   * 
+ */ + public static final class LogicalBridgeServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private LogicalBridgeServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LogicalBridgeServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LogicalBridgeServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Create a Logical Bridge
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createLogicalBridge( + opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateLogicalBridgeMethod(), getCallOptions()), request); + } + + /** + *
+     * List Logical Bridges
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listLogicalBridges( + opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLogicalBridgesMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieve a Logical Bridge
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getLogicalBridge( + opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLogicalBridgeMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a Logical Bridge
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteLogicalBridge( + opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteLogicalBridgeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_LOGICAL_BRIDGE = 0; + private static final int METHODID_LIST_LOGICAL_BRIDGES = 1; + private static final int METHODID_GET_LOGICAL_BRIDGE = 2; + private static final int METHODID_DELETE_LOGICAL_BRIDGE = 3; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final LogicalBridgeServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(LogicalBridgeServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_LOGICAL_BRIDGE: + serviceImpl.createLogicalBridge((opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_LOGICAL_BRIDGES: + serviceImpl.listLogicalBridges((opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LOGICAL_BRIDGE: + serviceImpl.getLogicalBridge((opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_LOGICAL_BRIDGE: + serviceImpl.deleteLogicalBridge((opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class LogicalBridgeServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + LogicalBridgeServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("LogicalBridgeService"); + } + } + + private static final class LogicalBridgeServiceFileDescriptorSupplier + extends LogicalBridgeServiceBaseDescriptorSupplier { + LogicalBridgeServiceFileDescriptorSupplier() {} + } + + private static final class LogicalBridgeServiceMethodDescriptorSupplier + extends LogicalBridgeServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + LogicalBridgeServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (LogicalBridgeServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LogicalBridgeServiceFileDescriptorSupplier()) + .addMethod(getCreateLogicalBridgeMethod()) + .addMethod(getListLogicalBridgesMethod()) + .addMethod(getGetLogicalBridgeMethod()) + .addMethod(getDeleteLogicalBridgeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeSpec.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeSpec.java new file mode 100644 index 00000000..6dcebf15 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeSpec.java @@ -0,0 +1,603 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * Logical Bridge network configuration
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec} + */ +public final class LogicalBridgeSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) + LogicalBridgeSpecOrBuilder { +private static final long serialVersionUID = 0L; + // Use LogicalBridgeSpec.newBuilder() to construct. + private LogicalBridgeSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LogicalBridgeSpec() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LogicalBridgeSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogicalBridgeSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + vlanId_ = input.readUInt32(); + break; + } + case 16: { + + vni_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.class, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.Builder.class); + } + + public static final int VLAN_ID_FIELD_NUMBER = 1; + private int vlanId_; + /** + *
+   * the VLAN of the L2 domain
+   * (-- api-linter: core::0141::forbidden-types=disabled
+   *     aip.dev/not-precedent: vlan cannot be negative number. --)
+   * 
+ * + * uint32 vlan_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The vlanId. + */ + @java.lang.Override + public int getVlanId() { + return vlanId_; + } + + public static final int VNI_FIELD_NUMBER = 2; + private int vni_; + /** + *
+   *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. --)
+   * 
+ * + * uint32 vni = 2; + * @return The vni. + */ + @java.lang.Override + public int getVni() { + return vni_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (vlanId_ != 0) { + output.writeUInt32(1, vlanId_); + } + if (vni_ != 0) { + output.writeUInt32(2, vni_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (vlanId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, vlanId_); + } + if (vni_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, vni_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec other = (opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) obj; + + if (getVlanId() + != other.getVlanId()) return false; + if (getVni() + != other.getVni()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VLAN_ID_FIELD_NUMBER; + hash = (53 * hash) + getVlanId(); + hash = (37 * hash) + VNI_FIELD_NUMBER; + hash = (53 * hash) + getVni(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Logical Bridge network configuration
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.class, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + vlanId_ = 0; + + vni_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeSpec_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec build() { + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec buildPartial() { + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec result = new opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec(this); + result.vlanId_ = vlanId_; + result.vni_ = vni_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec other) { + if (other == opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.getDefaultInstance()) return this; + if (other.getVlanId() != 0) { + setVlanId(other.getVlanId()); + } + if (other.getVni() != 0) { + setVni(other.getVni()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int vlanId_ ; + /** + *
+     * the VLAN of the L2 domain
+     * (-- api-linter: core::0141::forbidden-types=disabled
+     *     aip.dev/not-precedent: vlan cannot be negative number. --)
+     * 
+ * + * uint32 vlan_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The vlanId. + */ + @java.lang.Override + public int getVlanId() { + return vlanId_; + } + /** + *
+     * the VLAN of the L2 domain
+     * (-- api-linter: core::0141::forbidden-types=disabled
+     *     aip.dev/not-precedent: vlan cannot be negative number. --)
+     * 
+ * + * uint32 vlan_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The vlanId to set. + * @return This builder for chaining. + */ + public Builder setVlanId(int value) { + + vlanId_ = value; + onChanged(); + return this; + } + /** + *
+     * the VLAN of the L2 domain
+     * (-- api-linter: core::0141::forbidden-types=disabled
+     *     aip.dev/not-precedent: vlan cannot be negative number. --)
+     * 
+ * + * uint32 vlan_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearVlanId() { + + vlanId_ = 0; + onChanged(); + return this; + } + + private int vni_ ; + /** + *
+     *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. --)
+     * 
+ * + * uint32 vni = 2; + * @return The vni. + */ + @java.lang.Override + public int getVni() { + return vni_; + } + /** + *
+     *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. --)
+     * 
+ * + * uint32 vni = 2; + * @param value The vni to set. + * @return This builder for chaining. + */ + public Builder setVni(int value) { + + vni_ = value; + onChanged(); + return this; + } + /** + *
+     *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. --)
+     * 
+ * + * uint32 vni = 2; + * @return This builder for chaining. + */ + public Builder clearVni() { + + vni_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) + private static final opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec(); + } + + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalBridgeSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalBridgeSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeSpecOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeSpecOrBuilder.java new file mode 100644 index 00000000..bb134292 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeSpecOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface LogicalBridgeSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * the VLAN of the L2 domain
+   * (-- api-linter: core::0141::forbidden-types=disabled
+   *     aip.dev/not-precedent: vlan cannot be negative number. --)
+   * 
+ * + * uint32 vlan_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The vlanId. + */ + int getVlanId(); + + /** + *
+   *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. --)
+   * 
+ * + * uint32 vni = 2; + * @return The vni. + */ + int getVni(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeStatus.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeStatus.java new file mode 100644 index 00000000..c1fab2e3 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeStatus.java @@ -0,0 +1,551 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * operational status of a Logical Bridge
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus} + */ +public final class LogicalBridgeStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) + LogicalBridgeStatusOrBuilder { +private static final long serialVersionUID = 0L; + // Use LogicalBridgeStatus.newBuilder() to construct. + private LogicalBridgeStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LogicalBridgeStatus() { + operStatus_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LogicalBridgeStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogicalBridgeStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + operStatus_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.class, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.Builder.class); + } + + public static final int OPER_STATUS_FIELD_NUMBER = 1; + private int operStatus_; + /** + *
+   * operational state of a Logical Bridge
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1; + * @return The enum numeric value on the wire for operStatus. + */ + @java.lang.Override public int getOperStatusValue() { + return operStatus_; + } + /** + *
+   * operational state of a Logical Bridge
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1; + * @return The operStatus. + */ + @java.lang.Override public opi_api.network.evpn_gw.v1alpha1.LBOperStatus getOperStatus() { + @SuppressWarnings("deprecation") + opi_api.network.evpn_gw.v1alpha1.LBOperStatus result = opi_api.network.evpn_gw.v1alpha1.LBOperStatus.valueOf(operStatus_); + return result == null ? opi_api.network.evpn_gw.v1alpha1.LBOperStatus.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operStatus_ != opi_api.network.evpn_gw.v1alpha1.LBOperStatus.LB_OPER_STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(1, operStatus_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operStatus_ != opi_api.network.evpn_gw.v1alpha1.LBOperStatus.LB_OPER_STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operStatus_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus other = (opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) obj; + + if (operStatus_ != other.operStatus_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPER_STATUS_FIELD_NUMBER; + hash = (53 * hash) + operStatus_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * operational status of a Logical Bridge
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.class, opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + operStatus_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L2XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_LogicalBridgeStatus_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus build() { + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus buildPartial() { + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus result = new opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus(this); + result.operStatus_ = operStatus_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus other) { + if (other == opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus.getDefaultInstance()) return this; + if (other.operStatus_ != 0) { + setOperStatusValue(other.getOperStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operStatus_ = 0; + /** + *
+     * operational state of a Logical Bridge
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1; + * @return The enum numeric value on the wire for operStatus. + */ + @java.lang.Override public int getOperStatusValue() { + return operStatus_; + } + /** + *
+     * operational state of a Logical Bridge
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1; + * @param value The enum numeric value on the wire for operStatus to set. + * @return This builder for chaining. + */ + public Builder setOperStatusValue(int value) { + + operStatus_ = value; + onChanged(); + return this; + } + /** + *
+     * operational state of a Logical Bridge
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1; + * @return The operStatus. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LBOperStatus getOperStatus() { + @SuppressWarnings("deprecation") + opi_api.network.evpn_gw.v1alpha1.LBOperStatus result = opi_api.network.evpn_gw.v1alpha1.LBOperStatus.valueOf(operStatus_); + return result == null ? opi_api.network.evpn_gw.v1alpha1.LBOperStatus.UNRECOGNIZED : result; + } + /** + *
+     * operational state of a Logical Bridge
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1; + * @param value The operStatus to set. + * @return This builder for chaining. + */ + public Builder setOperStatus(opi_api.network.evpn_gw.v1alpha1.LBOperStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + operStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * operational state of a Logical Bridge
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1; + * @return This builder for chaining. + */ + public Builder clearOperStatus() { + + operStatus_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) + private static final opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus(); + } + + public static opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalBridgeStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalBridgeStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeStatusOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeStatusOrBuilder.java new file mode 100644 index 00000000..028df4c1 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeStatusOrBuilder.java @@ -0,0 +1,28 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l2_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface LogicalBridgeStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * operational state of a Logical Bridge
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1; + * @return The enum numeric value on the wire for operStatus. + */ + int getOperStatusValue(); + /** + *
+   * operational state of a Logical Bridge
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1; + * @return The operStatus. + */ + opi_api.network.evpn_gw.v1alpha1.LBOperStatus getOperStatus(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SVIOperStatus.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SVIOperStatus.java new file mode 100644 index 00000000..37407d6d --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SVIOperStatus.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * SVIOperStatus status reflects the operational status of a Svi
+ * 
+ * + * Protobuf enum {@code opi_api.network.evpn_gw.v1alpha1.SVIOperStatus} + */ +public enum SVIOperStatus + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * unknown
+   * 
+ * + * SVI_OPER_STATUS_UNSPECIFIED = 0; + */ + SVI_OPER_STATUS_UNSPECIFIED(0), + /** + *
+   * Svi is up
+   * 
+ * + * SVI_OPER_STATUS_UP = 1; + */ + SVI_OPER_STATUS_UP(1), + /** + *
+   * Svi is down
+   * 
+ * + * SVI_OPER_STATUS_DOWN = 2; + */ + SVI_OPER_STATUS_DOWN(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * unknown
+   * 
+ * + * SVI_OPER_STATUS_UNSPECIFIED = 0; + */ + public static final int SVI_OPER_STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+   * Svi is up
+   * 
+ * + * SVI_OPER_STATUS_UP = 1; + */ + public static final int SVI_OPER_STATUS_UP_VALUE = 1; + /** + *
+   * Svi is down
+   * 
+ * + * SVI_OPER_STATUS_DOWN = 2; + */ + public static final int SVI_OPER_STATUS_DOWN_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SVIOperStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SVIOperStatus forNumber(int value) { + switch (value) { + case 0: return SVI_OPER_STATUS_UNSPECIFIED; + case 1: return SVI_OPER_STATUS_UP; + case 2: return SVI_OPER_STATUS_DOWN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SVIOperStatus> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SVIOperStatus findValueByNumber(int number) { + return SVIOperStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.getDescriptor().getEnumTypes().get(1); + } + + private static final SVIOperStatus[] VALUES = values(); + + public static SVIOperStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SVIOperStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:opi_api.network.evpn_gw.v1alpha1.SVIOperStatus) +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/Svi.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/Svi.java new file mode 100644 index 00000000..07d23bf3 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/Svi.java @@ -0,0 +1,1093 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * Svi network configuration
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.Svi} + */ +public final class Svi extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.Svi) + SviOrBuilder { +private static final long serialVersionUID = 0L; + // Use Svi.newBuilder() to construct. + private Svi(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Svi() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Svi(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Svi( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + opi_api.network.evpn_gw.v1alpha1.SviSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(opi_api.network.evpn_gw.v1alpha1.SviSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + opi_api.network.evpn_gw.v1alpha1.SviStatus.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(opi_api.network.evpn_gw.v1alpha1.SviStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_Svi_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_Svi_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.Svi.class, opi_api.network.evpn_gw.v1alpha1.Svi.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPEC_FIELD_NUMBER = 2; + private opi_api.network.evpn_gw.v1alpha1.SviSpec spec_; + /** + *
+   * Svi's network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the spec field is set. + */ + @java.lang.Override + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+   * Svi's network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The spec. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviSpec getSpec() { + return spec_ == null ? opi_api.network.evpn_gw.v1alpha1.SviSpec.getDefaultInstance() : spec_; + } + /** + *
+   * Svi's network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int STATUS_FIELD_NUMBER = 3; + private opi_api.network.evpn_gw.v1alpha1.SviStatus status_; + /** + *
+   * Svi's network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + *
+   * Svi's network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + * @return The status. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviStatus getStatus() { + return status_ == null ? opi_api.network.evpn_gw.v1alpha1.SviStatus.getDefaultInstance() : status_; + } + /** + *
+   * Svi's network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviStatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + if (status_ != null) { + output.writeMessage(3, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.Svi)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.Svi other = (opi_api.network.evpn_gw.v1alpha1.Svi) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.Svi parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.Svi parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.Svi parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.Svi parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.Svi parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.Svi parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.Svi parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.Svi parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.Svi parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.Svi parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.Svi parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.Svi parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.Svi prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Svi network configuration
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.Svi} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.Svi) + opi_api.network.evpn_gw.v1alpha1.SviOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_Svi_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_Svi_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.Svi.class, opi_api.network.evpn_gw.v1alpha1.Svi.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.Svi.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_Svi_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.Svi getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.Svi.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.Svi build() { + opi_api.network.evpn_gw.v1alpha1.Svi result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.Svi buildPartial() { + opi_api.network.evpn_gw.v1alpha1.Svi result = new opi_api.network.evpn_gw.v1alpha1.Svi(this); + result.name_ = name_; + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.Svi) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.Svi)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.Svi other) { + if (other == opi_api.network.evpn_gw.v1alpha1.Svi.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.Svi parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.Svi) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private opi_api.network.evpn_gw.v1alpha1.SviSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.SviSpec, opi_api.network.evpn_gw.v1alpha1.SviSpec.Builder, opi_api.network.evpn_gw.v1alpha1.SviSpecOrBuilder> specBuilder_; + /** + *
+     * Svi's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the spec field is set. + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+     * Svi's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The spec. + */ + public opi_api.network.evpn_gw.v1alpha1.SviSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? opi_api.network.evpn_gw.v1alpha1.SviSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+     * Svi's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSpec(opi_api.network.evpn_gw.v1alpha1.SviSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Svi's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSpec( + opi_api.network.evpn_gw.v1alpha1.SviSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Svi's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSpec(opi_api.network.evpn_gw.v1alpha1.SviSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + opi_api.network.evpn_gw.v1alpha1.SviSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Svi's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+     * Svi's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.SviSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+     * Svi's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.SviSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + opi_api.network.evpn_gw.v1alpha1.SviSpec.getDefaultInstance() : spec_; + } + } + /** + *
+     * Svi's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.SviSpec, opi_api.network.evpn_gw.v1alpha1.SviSpec.Builder, opi_api.network.evpn_gw.v1alpha1.SviSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.SviSpec, opi_api.network.evpn_gw.v1alpha1.SviSpec.Builder, opi_api.network.evpn_gw.v1alpha1.SviSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private opi_api.network.evpn_gw.v1alpha1.SviStatus status_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.SviStatus, opi_api.network.evpn_gw.v1alpha1.SviStatus.Builder, opi_api.network.evpn_gw.v1alpha1.SviStatusOrBuilder> statusBuilder_; + /** + *
+     * Svi's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + *
+     * Svi's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + * @return The status. + */ + public opi_api.network.evpn_gw.v1alpha1.SviStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? opi_api.network.evpn_gw.v1alpha1.SviStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+     * Svi's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + */ + public Builder setStatus(opi_api.network.evpn_gw.v1alpha1.SviStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Svi's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + */ + public Builder setStatus( + opi_api.network.evpn_gw.v1alpha1.SviStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Svi's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + */ + public Builder mergeStatus(opi_api.network.evpn_gw.v1alpha1.SviStatus value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = + opi_api.network.evpn_gw.v1alpha1.SviStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Svi's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; + } + /** + *
+     * Svi's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + */ + public opi_api.network.evpn_gw.v1alpha1.SviStatus.Builder getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+     * Svi's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + */ + public opi_api.network.evpn_gw.v1alpha1.SviStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + opi_api.network.evpn_gw.v1alpha1.SviStatus.getDefaultInstance() : status_; + } + } + /** + *
+     * Svi's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.SviStatus, opi_api.network.evpn_gw.v1alpha1.SviStatus.Builder, opi_api.network.evpn_gw.v1alpha1.SviStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.SviStatus, opi_api.network.evpn_gw.v1alpha1.SviStatus.Builder, opi_api.network.evpn_gw.v1alpha1.SviStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.Svi) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.Svi) + private static final opi_api.network.evpn_gw.v1alpha1.Svi DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.Svi(); + } + + public static opi_api.network.evpn_gw.v1alpha1.Svi getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Svi parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Svi(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.Svi getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviOrBuilder.java new file mode 100644 index 00000000..c05e9013 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviOrBuilder.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface SviOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.Svi) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Svi's network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the spec field is set. + */ + boolean hasSpec(); + /** + *
+   * Svi's network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The spec. + */ + opi_api.network.evpn_gw.v1alpha1.SviSpec getSpec(); + /** + *
+   * Svi's network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + opi_api.network.evpn_gw.v1alpha1.SviSpecOrBuilder getSpecOrBuilder(); + + /** + *
+   * Svi's network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+   * Svi's network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + * @return The status. + */ + opi_api.network.evpn_gw.v1alpha1.SviStatus getStatus(); + /** + *
+   * Svi's network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3; + */ + opi_api.network.evpn_gw.v1alpha1.SviStatusOrBuilder getStatusOrBuilder(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviServiceGrpc.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviServiceGrpc.java new file mode 100644 index 00000000..4975757b --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviServiceGrpc.java @@ -0,0 +1,561 @@ +package opi_api.network.evpn_gw.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Management of switch virtual interfaces (SVIs) binding LogicalBridges to VRFs.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: l3_xpu_infra_mgr.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SviServiceGrpc { + + private SviServiceGrpc() {} + + public static final String SERVICE_NAME = "opi_api.network.evpn_gw.v1alpha1.SviService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateSviMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSvi", + requestType = opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.class, + responseType = opi_api.network.evpn_gw.v1alpha1.Svi.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSviMethod() { + io.grpc.MethodDescriptor getCreateSviMethod; + if ((getCreateSviMethod = SviServiceGrpc.getCreateSviMethod) == null) { + synchronized (SviServiceGrpc.class) { + if ((getCreateSviMethod = SviServiceGrpc.getCreateSviMethod) == null) { + SviServiceGrpc.getCreateSviMethod = getCreateSviMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSvi")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.Svi.getDefaultInstance())) + .setSchemaDescriptor(new SviServiceMethodDescriptorSupplier("CreateSvi")) + .build(); + } + } + } + return getCreateSviMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSvisMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSvis", + requestType = opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.class, + responseType = opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSvisMethod() { + io.grpc.MethodDescriptor getListSvisMethod; + if ((getListSvisMethod = SviServiceGrpc.getListSvisMethod) == null) { + synchronized (SviServiceGrpc.class) { + if ((getListSvisMethod = SviServiceGrpc.getListSvisMethod) == null) { + SviServiceGrpc.getListSvisMethod = getListSvisMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSvis")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.getDefaultInstance())) + .setSchemaDescriptor(new SviServiceMethodDescriptorSupplier("ListSvis")) + .build(); + } + } + } + return getListSvisMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSviMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSvi", + requestType = opi_api.network.evpn_gw.v1alpha1.GetSviRequest.class, + responseType = opi_api.network.evpn_gw.v1alpha1.Svi.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSviMethod() { + io.grpc.MethodDescriptor getGetSviMethod; + if ((getGetSviMethod = SviServiceGrpc.getGetSviMethod) == null) { + synchronized (SviServiceGrpc.class) { + if ((getGetSviMethod = SviServiceGrpc.getGetSviMethod) == null) { + SviServiceGrpc.getGetSviMethod = getGetSviMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSvi")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.GetSviRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.Svi.getDefaultInstance())) + .setSchemaDescriptor(new SviServiceMethodDescriptorSupplier("GetSvi")) + .build(); + } + } + } + return getGetSviMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSviMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSvi", + requestType = opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSviMethod() { + io.grpc.MethodDescriptor getDeleteSviMethod; + if ((getDeleteSviMethod = SviServiceGrpc.getDeleteSviMethod) == null) { + synchronized (SviServiceGrpc.class) { + if ((getDeleteSviMethod = SviServiceGrpc.getDeleteSviMethod) == null) { + SviServiceGrpc.getDeleteSviMethod = getDeleteSviMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSvi")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SviServiceMethodDescriptorSupplier("DeleteSvi")) + .build(); + } + } + } + return getDeleteSviMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SviServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SviServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SviServiceStub(channel, callOptions); + } + }; + return SviServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SviServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SviServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SviServiceBlockingStub(channel, callOptions); + } + }; + return SviServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SviServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SviServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SviServiceFutureStub(channel, callOptions); + } + }; + return SviServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Management of switch virtual interfaces (SVIs) binding LogicalBridges to VRFs.
+   * 
+ */ + public static abstract class SviServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Create a Svi
+     * 
+ */ + public void createSvi(opi_api.network.evpn_gw.v1alpha1.CreateSviRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSviMethod(), responseObserver); + } + + /** + *
+     * List Svis
+     * 
+ */ + public void listSvis(opi_api.network.evpn_gw.v1alpha1.ListSvisRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSvisMethod(), responseObserver); + } + + /** + *
+     * Retrieve a Svi
+     * 
+ */ + public void getSvi(opi_api.network.evpn_gw.v1alpha1.GetSviRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSviMethod(), responseObserver); + } + + /** + *
+     * Delete a Svi
+     * 
+ */ + public void deleteSvi(opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSviMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSviMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.CreateSviRequest, + opi_api.network.evpn_gw.v1alpha1.Svi>( + this, METHODID_CREATE_SVI))) + .addMethod( + getListSvisMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.ListSvisRequest, + opi_api.network.evpn_gw.v1alpha1.ListSvisResponse>( + this, METHODID_LIST_SVIS))) + .addMethod( + getGetSviMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.GetSviRequest, + opi_api.network.evpn_gw.v1alpha1.Svi>( + this, METHODID_GET_SVI))) + .addMethod( + getDeleteSviMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SVI))) + .build(); + } + } + + /** + *
+   * Management of switch virtual interfaces (SVIs) binding LogicalBridges to VRFs.
+   * 
+ */ + public static final class SviServiceStub extends io.grpc.stub.AbstractAsyncStub { + private SviServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SviServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SviServiceStub(channel, callOptions); + } + + /** + *
+     * Create a Svi
+     * 
+ */ + public void createSvi(opi_api.network.evpn_gw.v1alpha1.CreateSviRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSviMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List Svis
+     * 
+ */ + public void listSvis(opi_api.network.evpn_gw.v1alpha1.ListSvisRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSvisMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieve a Svi
+     * 
+ */ + public void getSvi(opi_api.network.evpn_gw.v1alpha1.GetSviRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSviMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a Svi
+     * 
+ */ + public void deleteSvi(opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSviMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Management of switch virtual interfaces (SVIs) binding LogicalBridges to VRFs.
+   * 
+ */ + public static final class SviServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SviServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SviServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SviServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Create a Svi
+     * 
+ */ + public opi_api.network.evpn_gw.v1alpha1.Svi createSvi(opi_api.network.evpn_gw.v1alpha1.CreateSviRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSviMethod(), getCallOptions(), request); + } + + /** + *
+     * List Svis
+     * 
+ */ + public opi_api.network.evpn_gw.v1alpha1.ListSvisResponse listSvis(opi_api.network.evpn_gw.v1alpha1.ListSvisRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSvisMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieve a Svi
+     * 
+ */ + public opi_api.network.evpn_gw.v1alpha1.Svi getSvi(opi_api.network.evpn_gw.v1alpha1.GetSviRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSviMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a Svi
+     * 
+ */ + public com.google.protobuf.Empty deleteSvi(opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSviMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Management of switch virtual interfaces (SVIs) binding LogicalBridges to VRFs.
+   * 
+ */ + public static final class SviServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private SviServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SviServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SviServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Create a Svi
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSvi( + opi_api.network.evpn_gw.v1alpha1.CreateSviRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSviMethod(), getCallOptions()), request); + } + + /** + *
+     * List Svis
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSvis( + opi_api.network.evpn_gw.v1alpha1.ListSvisRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSvisMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieve a Svi
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSvi( + opi_api.network.evpn_gw.v1alpha1.GetSviRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSviMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a Svi
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSvi( + opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSviMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SVI = 0; + private static final int METHODID_LIST_SVIS = 1; + private static final int METHODID_GET_SVI = 2; + private static final int METHODID_DELETE_SVI = 3; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SviServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SviServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SVI: + serviceImpl.createSvi((opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SVIS: + serviceImpl.listSvis((opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SVI: + serviceImpl.getSvi((opi_api.network.evpn_gw.v1alpha1.GetSviRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SVI: + serviceImpl.deleteSvi((opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class SviServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SviServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SviService"); + } + } + + private static final class SviServiceFileDescriptorSupplier + extends SviServiceBaseDescriptorSupplier { + SviServiceFileDescriptorSupplier() {} + } + + private static final class SviServiceMethodDescriptorSupplier + extends SviServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SviServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SviServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SviServiceFileDescriptorSupplier()) + .addMethod(getCreateSviMethod()) + .addMethod(getListSvisMethod()) + .addMethod(getGetSviMethod()) + .addMethod(getDeleteSviMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviSpec.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviSpec.java new file mode 100644 index 00000000..35fb2963 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviSpec.java @@ -0,0 +1,1469 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * Svi's network configuration
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.SviSpec} + */ +public final class SviSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.SviSpec) + SviSpecOrBuilder { +private static final long serialVersionUID = 0L; + // Use SviSpec.newBuilder() to construct. + private SviSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SviSpec() { + vrf_ = ""; + logicalBridge_ = ""; + macAddress_ = com.google.protobuf.ByteString.EMPTY; + gwIpPrefix_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SviSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SviSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + vrf_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + logicalBridge_ = s; + break; + } + case 26: { + + macAddress_ = input.readBytes(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + gwIpPrefix_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + gwIpPrefix_.add( + input.readMessage(opi_api.network.opinetcommon.v1alpha1.IPPrefix.parser(), extensionRegistry)); + break; + } + case 40: { + + enableBgp_ = input.readBool(); + break; + } + case 48: { + + remoteAs_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + gwIpPrefix_ = java.util.Collections.unmodifiableList(gwIpPrefix_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_SviSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_SviSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.SviSpec.class, opi_api.network.evpn_gw.v1alpha1.SviSpec.Builder.class); + } + + public static final int VRF_FIELD_NUMBER = 1; + private volatile java.lang.Object vrf_; + /** + *
+   *Vrf name
+   * Format is `vrfs/{vrf}`
+   * 
+ * + * string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The vrf. + */ + @java.lang.Override + public java.lang.String getVrf() { + java.lang.Object ref = vrf_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vrf_ = s; + return s; + } + } + /** + *
+   *Vrf name
+   * Format is `vrfs/{vrf}`
+   * 
+ * + * string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for vrf. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVrfBytes() { + java.lang.Object ref = vrf_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vrf_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGICAL_BRIDGE_FIELD_NUMBER = 2; + private volatile java.lang.Object logicalBridge_; + /** + *
+   * Logical Bridge name
+   * Format is `logicalBridges/{logical_bridge}`
+   * 
+ * + * string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The logicalBridge. + */ + @java.lang.Override + public java.lang.String getLogicalBridge() { + java.lang.Object ref = logicalBridge_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logicalBridge_ = s; + return s; + } + } + /** + *
+   * Logical Bridge name
+   * Format is `logicalBridges/{logical_bridge}`
+   * 
+ * + * string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for logicalBridge. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLogicalBridgeBytes() { + java.lang.Object ref = logicalBridge_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logicalBridge_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAC_ADDRESS_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString macAddress_; + /** + *
+   * Svi's MAC address.
+   * 
+ * + * bytes mac_address = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The macAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMacAddress() { + return macAddress_; + } + + public static final int GW_IP_PREFIX_FIELD_NUMBER = 4; + private java.util.List gwIpPrefix_; + /** + *
+   * The GW IP addresses assigned to the SVI
+   * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public java.util.List getGwIpPrefixList() { + return gwIpPrefix_; + } + /** + *
+   * The GW IP addresses assigned to the SVI
+   * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public java.util.List + getGwIpPrefixOrBuilderList() { + return gwIpPrefix_; + } + /** + *
+   * The GW IP addresses assigned to the SVI
+   * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public int getGwIpPrefixCount() { + return gwIpPrefix_.size(); + } + /** + *
+   * The GW IP addresses assigned to the SVI
+   * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public opi_api.network.opinetcommon.v1alpha1.IPPrefix getGwIpPrefix(int index) { + return gwIpPrefix_.get(index); + } + /** + *
+   * The GW IP addresses assigned to the SVI
+   * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder getGwIpPrefixOrBuilder( + int index) { + return gwIpPrefix_.get(index); + } + + public static final int ENABLE_BGP_FIELD_NUMBER = 5; + private boolean enableBgp_; + /** + *
+   * Set to true to enable BGP peering with Vrf on Svi
+   * 
+ * + * bool enable_bgp = 5; + * @return The enableBgp. + */ + @java.lang.Override + public boolean getEnableBgp() { + return enableBgp_; + } + + public static final int REMOTE_AS_FIELD_NUMBER = 6; + private int remoteAs_; + /** + *
+   * 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. --)
+   * 
+ * + * uint32 remote_as = 6; + * @return The remoteAs. + */ + @java.lang.Override + public int getRemoteAs() { + return remoteAs_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vrf_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vrf_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logicalBridge_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, logicalBridge_); + } + if (!macAddress_.isEmpty()) { + output.writeBytes(3, macAddress_); + } + for (int i = 0; i < gwIpPrefix_.size(); i++) { + output.writeMessage(4, gwIpPrefix_.get(i)); + } + if (enableBgp_ != false) { + output.writeBool(5, enableBgp_); + } + if (remoteAs_ != 0) { + output.writeUInt32(6, remoteAs_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vrf_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vrf_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logicalBridge_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, logicalBridge_); + } + if (!macAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, macAddress_); + } + for (int i = 0; i < gwIpPrefix_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, gwIpPrefix_.get(i)); + } + if (enableBgp_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, enableBgp_); + } + if (remoteAs_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, remoteAs_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.SviSpec)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.SviSpec other = (opi_api.network.evpn_gw.v1alpha1.SviSpec) obj; + + if (!getVrf() + .equals(other.getVrf())) return false; + if (!getLogicalBridge() + .equals(other.getLogicalBridge())) return false; + if (!getMacAddress() + .equals(other.getMacAddress())) return false; + if (!getGwIpPrefixList() + .equals(other.getGwIpPrefixList())) return false; + if (getEnableBgp() + != other.getEnableBgp()) return false; + if (getRemoteAs() + != other.getRemoteAs()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VRF_FIELD_NUMBER; + hash = (53 * hash) + getVrf().hashCode(); + hash = (37 * hash) + LOGICAL_BRIDGE_FIELD_NUMBER; + hash = (53 * hash) + getLogicalBridge().hashCode(); + hash = (37 * hash) + MAC_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMacAddress().hashCode(); + if (getGwIpPrefixCount() > 0) { + hash = (37 * hash) + GW_IP_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getGwIpPrefixList().hashCode(); + } + hash = (37 * hash) + ENABLE_BGP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableBgp()); + hash = (37 * hash) + REMOTE_AS_FIELD_NUMBER; + hash = (53 * hash) + getRemoteAs(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.SviSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.SviSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.SviSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.SviSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.SviSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.SviSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.SviSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.SviSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.SviSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.SviSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.SviSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.SviSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.SviSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Svi's network configuration
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.SviSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.SviSpec) + opi_api.network.evpn_gw.v1alpha1.SviSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_SviSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_SviSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.SviSpec.class, opi_api.network.evpn_gw.v1alpha1.SviSpec.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.SviSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getGwIpPrefixFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + vrf_ = ""; + + logicalBridge_ = ""; + + macAddress_ = com.google.protobuf.ByteString.EMPTY; + + if (gwIpPrefixBuilder_ == null) { + gwIpPrefix_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + gwIpPrefixBuilder_.clear(); + } + enableBgp_ = false; + + remoteAs_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_SviSpec_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviSpec getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.SviSpec.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviSpec build() { + opi_api.network.evpn_gw.v1alpha1.SviSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviSpec buildPartial() { + opi_api.network.evpn_gw.v1alpha1.SviSpec result = new opi_api.network.evpn_gw.v1alpha1.SviSpec(this); + int from_bitField0_ = bitField0_; + result.vrf_ = vrf_; + result.logicalBridge_ = logicalBridge_; + result.macAddress_ = macAddress_; + if (gwIpPrefixBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + gwIpPrefix_ = java.util.Collections.unmodifiableList(gwIpPrefix_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.gwIpPrefix_ = gwIpPrefix_; + } else { + result.gwIpPrefix_ = gwIpPrefixBuilder_.build(); + } + result.enableBgp_ = enableBgp_; + result.remoteAs_ = remoteAs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.SviSpec) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.SviSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.SviSpec other) { + if (other == opi_api.network.evpn_gw.v1alpha1.SviSpec.getDefaultInstance()) return this; + if (!other.getVrf().isEmpty()) { + vrf_ = other.vrf_; + onChanged(); + } + if (!other.getLogicalBridge().isEmpty()) { + logicalBridge_ = other.logicalBridge_; + onChanged(); + } + if (other.getMacAddress() != com.google.protobuf.ByteString.EMPTY) { + setMacAddress(other.getMacAddress()); + } + if (gwIpPrefixBuilder_ == null) { + if (!other.gwIpPrefix_.isEmpty()) { + if (gwIpPrefix_.isEmpty()) { + gwIpPrefix_ = other.gwIpPrefix_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGwIpPrefixIsMutable(); + gwIpPrefix_.addAll(other.gwIpPrefix_); + } + onChanged(); + } + } else { + if (!other.gwIpPrefix_.isEmpty()) { + if (gwIpPrefixBuilder_.isEmpty()) { + gwIpPrefixBuilder_.dispose(); + gwIpPrefixBuilder_ = null; + gwIpPrefix_ = other.gwIpPrefix_; + bitField0_ = (bitField0_ & ~0x00000001); + gwIpPrefixBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGwIpPrefixFieldBuilder() : null; + } else { + gwIpPrefixBuilder_.addAllMessages(other.gwIpPrefix_); + } + } + } + if (other.getEnableBgp() != false) { + setEnableBgp(other.getEnableBgp()); + } + if (other.getRemoteAs() != 0) { + setRemoteAs(other.getRemoteAs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.SviSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.SviSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object vrf_ = ""; + /** + *
+     *Vrf name
+     * Format is `vrfs/{vrf}`
+     * 
+ * + * string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The vrf. + */ + public java.lang.String getVrf() { + java.lang.Object ref = vrf_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vrf_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     *Vrf name
+     * Format is `vrfs/{vrf}`
+     * 
+ * + * string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for vrf. + */ + public com.google.protobuf.ByteString + getVrfBytes() { + java.lang.Object ref = vrf_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vrf_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     *Vrf name
+     * Format is `vrfs/{vrf}`
+     * 
+ * + * string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The vrf to set. + * @return This builder for chaining. + */ + public Builder setVrf( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vrf_ = value; + onChanged(); + return this; + } + /** + *
+     *Vrf name
+     * Format is `vrfs/{vrf}`
+     * 
+ * + * string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearVrf() { + + vrf_ = getDefaultInstance().getVrf(); + onChanged(); + return this; + } + /** + *
+     *Vrf name
+     * Format is `vrfs/{vrf}`
+     * 
+ * + * string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for vrf to set. + * @return This builder for chaining. + */ + public Builder setVrfBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vrf_ = value; + onChanged(); + return this; + } + + private java.lang.Object logicalBridge_ = ""; + /** + *
+     * Logical Bridge name
+     * Format is `logicalBridges/{logical_bridge}`
+     * 
+ * + * string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The logicalBridge. + */ + public java.lang.String getLogicalBridge() { + java.lang.Object ref = logicalBridge_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logicalBridge_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Logical Bridge name
+     * Format is `logicalBridges/{logical_bridge}`
+     * 
+ * + * string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for logicalBridge. + */ + public com.google.protobuf.ByteString + getLogicalBridgeBytes() { + java.lang.Object ref = logicalBridge_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logicalBridge_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Logical Bridge name
+     * Format is `logicalBridges/{logical_bridge}`
+     * 
+ * + * string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The logicalBridge to set. + * @return This builder for chaining. + */ + public Builder setLogicalBridge( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + logicalBridge_ = value; + onChanged(); + return this; + } + /** + *
+     * Logical Bridge name
+     * Format is `logicalBridges/{logical_bridge}`
+     * 
+ * + * string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearLogicalBridge() { + + logicalBridge_ = getDefaultInstance().getLogicalBridge(); + onChanged(); + return this; + } + /** + *
+     * Logical Bridge name
+     * Format is `logicalBridges/{logical_bridge}`
+     * 
+ * + * string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for logicalBridge to set. + * @return This builder for chaining. + */ + public Builder setLogicalBridgeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + logicalBridge_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString macAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Svi's MAC address.
+     * 
+ * + * bytes mac_address = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The macAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMacAddress() { + return macAddress_; + } + /** + *
+     * Svi's MAC address.
+     * 
+ * + * bytes mac_address = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The macAddress to set. + * @return This builder for chaining. + */ + public Builder setMacAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + macAddress_ = value; + onChanged(); + return this; + } + /** + *
+     * Svi's MAC address.
+     * 
+ * + * bytes mac_address = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearMacAddress() { + + macAddress_ = getDefaultInstance().getMacAddress(); + onChanged(); + return this; + } + + private java.util.List gwIpPrefix_ = + java.util.Collections.emptyList(); + private void ensureGwIpPrefixIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + gwIpPrefix_ = new java.util.ArrayList(gwIpPrefix_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.opinetcommon.v1alpha1.IPPrefix, opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder, opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder> gwIpPrefixBuilder_; + + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public java.util.List getGwIpPrefixList() { + if (gwIpPrefixBuilder_ == null) { + return java.util.Collections.unmodifiableList(gwIpPrefix_); + } else { + return gwIpPrefixBuilder_.getMessageList(); + } + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public int getGwIpPrefixCount() { + if (gwIpPrefixBuilder_ == null) { + return gwIpPrefix_.size(); + } else { + return gwIpPrefixBuilder_.getCount(); + } + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.opinetcommon.v1alpha1.IPPrefix getGwIpPrefix(int index) { + if (gwIpPrefixBuilder_ == null) { + return gwIpPrefix_.get(index); + } else { + return gwIpPrefixBuilder_.getMessage(index); + } + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setGwIpPrefix( + int index, opi_api.network.opinetcommon.v1alpha1.IPPrefix value) { + if (gwIpPrefixBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGwIpPrefixIsMutable(); + gwIpPrefix_.set(index, value); + onChanged(); + } else { + gwIpPrefixBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setGwIpPrefix( + int index, opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder builderForValue) { + if (gwIpPrefixBuilder_ == null) { + ensureGwIpPrefixIsMutable(); + gwIpPrefix_.set(index, builderForValue.build()); + onChanged(); + } else { + gwIpPrefixBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addGwIpPrefix(opi_api.network.opinetcommon.v1alpha1.IPPrefix value) { + if (gwIpPrefixBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGwIpPrefixIsMutable(); + gwIpPrefix_.add(value); + onChanged(); + } else { + gwIpPrefixBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addGwIpPrefix( + int index, opi_api.network.opinetcommon.v1alpha1.IPPrefix value) { + if (gwIpPrefixBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGwIpPrefixIsMutable(); + gwIpPrefix_.add(index, value); + onChanged(); + } else { + gwIpPrefixBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addGwIpPrefix( + opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder builderForValue) { + if (gwIpPrefixBuilder_ == null) { + ensureGwIpPrefixIsMutable(); + gwIpPrefix_.add(builderForValue.build()); + onChanged(); + } else { + gwIpPrefixBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addGwIpPrefix( + int index, opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder builderForValue) { + if (gwIpPrefixBuilder_ == null) { + ensureGwIpPrefixIsMutable(); + gwIpPrefix_.add(index, builderForValue.build()); + onChanged(); + } else { + gwIpPrefixBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder addAllGwIpPrefix( + java.lang.Iterable values) { + if (gwIpPrefixBuilder_ == null) { + ensureGwIpPrefixIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, gwIpPrefix_); + onChanged(); + } else { + gwIpPrefixBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearGwIpPrefix() { + if (gwIpPrefixBuilder_ == null) { + gwIpPrefix_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + gwIpPrefixBuilder_.clear(); + } + return this; + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder removeGwIpPrefix(int index) { + if (gwIpPrefixBuilder_ == null) { + ensureGwIpPrefixIsMutable(); + gwIpPrefix_.remove(index); + onChanged(); + } else { + gwIpPrefixBuilder_.remove(index); + } + return this; + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder getGwIpPrefixBuilder( + int index) { + return getGwIpPrefixFieldBuilder().getBuilder(index); + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder getGwIpPrefixOrBuilder( + int index) { + if (gwIpPrefixBuilder_ == null) { + return gwIpPrefix_.get(index); } else { + return gwIpPrefixBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public java.util.List + getGwIpPrefixOrBuilderList() { + if (gwIpPrefixBuilder_ != null) { + return gwIpPrefixBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gwIpPrefix_); + } + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder addGwIpPrefixBuilder() { + return getGwIpPrefixFieldBuilder().addBuilder( + opi_api.network.opinetcommon.v1alpha1.IPPrefix.getDefaultInstance()); + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder addGwIpPrefixBuilder( + int index) { + return getGwIpPrefixFieldBuilder().addBuilder( + index, opi_api.network.opinetcommon.v1alpha1.IPPrefix.getDefaultInstance()); + } + /** + *
+     * The GW IP addresses assigned to the SVI
+     * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public java.util.List + getGwIpPrefixBuilderList() { + return getGwIpPrefixFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.opinetcommon.v1alpha1.IPPrefix, opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder, opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder> + getGwIpPrefixFieldBuilder() { + if (gwIpPrefixBuilder_ == null) { + gwIpPrefixBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + opi_api.network.opinetcommon.v1alpha1.IPPrefix, opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder, opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder>( + gwIpPrefix_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + gwIpPrefix_ = null; + } + return gwIpPrefixBuilder_; + } + + private boolean enableBgp_ ; + /** + *
+     * Set to true to enable BGP peering with Vrf on Svi
+     * 
+ * + * bool enable_bgp = 5; + * @return The enableBgp. + */ + @java.lang.Override + public boolean getEnableBgp() { + return enableBgp_; + } + /** + *
+     * Set to true to enable BGP peering with Vrf on Svi
+     * 
+ * + * bool enable_bgp = 5; + * @param value The enableBgp to set. + * @return This builder for chaining. + */ + public Builder setEnableBgp(boolean value) { + + enableBgp_ = value; + onChanged(); + return this; + } + /** + *
+     * Set to true to enable BGP peering with Vrf on Svi
+     * 
+ * + * bool enable_bgp = 5; + * @return This builder for chaining. + */ + public Builder clearEnableBgp() { + + enableBgp_ = false; + onChanged(); + return this; + } + + private int remoteAs_ ; + /** + *
+     * 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. --)
+     * 
+ * + * uint32 remote_as = 6; + * @return The remoteAs. + */ + @java.lang.Override + public int getRemoteAs() { + return remoteAs_; + } + /** + *
+     * 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. --)
+     * 
+ * + * uint32 remote_as = 6; + * @param value The remoteAs to set. + * @return This builder for chaining. + */ + public Builder setRemoteAs(int value) { + + remoteAs_ = value; + onChanged(); + return this; + } + /** + *
+     * 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. --)
+     * 
+ * + * uint32 remote_as = 6; + * @return This builder for chaining. + */ + public Builder clearRemoteAs() { + + remoteAs_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.SviSpec) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.SviSpec) + private static final opi_api.network.evpn_gw.v1alpha1.SviSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.SviSpec(); + } + + public static opi_api.network.evpn_gw.v1alpha1.SviSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SviSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SviSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviSpecOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviSpecOrBuilder.java new file mode 100644 index 00000000..1040694b --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviSpecOrBuilder.java @@ -0,0 +1,129 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface SviSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.SviSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   *Vrf name
+   * Format is `vrfs/{vrf}`
+   * 
+ * + * string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The vrf. + */ + java.lang.String getVrf(); + /** + *
+   *Vrf name
+   * Format is `vrfs/{vrf}`
+   * 
+ * + * string vrf = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for vrf. + */ + com.google.protobuf.ByteString + getVrfBytes(); + + /** + *
+   * Logical Bridge name
+   * Format is `logicalBridges/{logical_bridge}`
+   * 
+ * + * string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The logicalBridge. + */ + java.lang.String getLogicalBridge(); + /** + *
+   * Logical Bridge name
+   * Format is `logicalBridges/{logical_bridge}`
+   * 
+ * + * string logical_bridge = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for logicalBridge. + */ + com.google.protobuf.ByteString + getLogicalBridgeBytes(); + + /** + *
+   * Svi's MAC address.
+   * 
+ * + * bytes mac_address = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The macAddress. + */ + com.google.protobuf.ByteString getMacAddress(); + + /** + *
+   * The GW IP addresses assigned to the SVI
+   * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getGwIpPrefixList(); + /** + *
+   * The GW IP addresses assigned to the SVI
+   * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + opi_api.network.opinetcommon.v1alpha1.IPPrefix getGwIpPrefix(int index); + /** + *
+   * The GW IP addresses assigned to the SVI
+   * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + int getGwIpPrefixCount(); + /** + *
+   * The GW IP addresses assigned to the SVI
+   * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getGwIpPrefixOrBuilderList(); + /** + *
+   * The GW IP addresses assigned to the SVI
+   * 
+ * + * repeated .opi_api.network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder getGwIpPrefixOrBuilder( + int index); + + /** + *
+   * Set to true to enable BGP peering with Vrf on Svi
+   * 
+ * + * bool enable_bgp = 5; + * @return The enableBgp. + */ + boolean getEnableBgp(); + + /** + *
+   * 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. --)
+   * 
+ * + * uint32 remote_as = 6; + * @return The remoteAs. + */ + int getRemoteAs(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviStatus.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviStatus.java new file mode 100644 index 00000000..27d4f327 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviStatus.java @@ -0,0 +1,551 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * operational status of a Svi
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.SviStatus} + */ +public final class SviStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.SviStatus) + SviStatusOrBuilder { +private static final long serialVersionUID = 0L; + // Use SviStatus.newBuilder() to construct. + private SviStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SviStatus() { + operStatus_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SviStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SviStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + operStatus_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_SviStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_SviStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.SviStatus.class, opi_api.network.evpn_gw.v1alpha1.SviStatus.Builder.class); + } + + public static final int OPER_STATUS_FIELD_NUMBER = 1; + private int operStatus_; + /** + *
+   * operational status of a Svi
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus oper_status = 1; + * @return The enum numeric value on the wire for operStatus. + */ + @java.lang.Override public int getOperStatusValue() { + return operStatus_; + } + /** + *
+   * operational status of a Svi
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus oper_status = 1; + * @return The operStatus. + */ + @java.lang.Override public opi_api.network.evpn_gw.v1alpha1.SVIOperStatus getOperStatus() { + @SuppressWarnings("deprecation") + opi_api.network.evpn_gw.v1alpha1.SVIOperStatus result = opi_api.network.evpn_gw.v1alpha1.SVIOperStatus.valueOf(operStatus_); + return result == null ? opi_api.network.evpn_gw.v1alpha1.SVIOperStatus.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operStatus_ != opi_api.network.evpn_gw.v1alpha1.SVIOperStatus.SVI_OPER_STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(1, operStatus_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operStatus_ != opi_api.network.evpn_gw.v1alpha1.SVIOperStatus.SVI_OPER_STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operStatus_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.SviStatus)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.SviStatus other = (opi_api.network.evpn_gw.v1alpha1.SviStatus) obj; + + if (operStatus_ != other.operStatus_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPER_STATUS_FIELD_NUMBER; + hash = (53 * hash) + operStatus_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.SviStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.SviStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.SviStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.SviStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.SviStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.SviStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.SviStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.SviStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.SviStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.SviStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.SviStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.SviStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.SviStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * operational status of a Svi
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.SviStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.SviStatus) + opi_api.network.evpn_gw.v1alpha1.SviStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_SviStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_SviStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.SviStatus.class, opi_api.network.evpn_gw.v1alpha1.SviStatus.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.SviStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + operStatus_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_SviStatus_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviStatus getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.SviStatus.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviStatus build() { + opi_api.network.evpn_gw.v1alpha1.SviStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviStatus buildPartial() { + opi_api.network.evpn_gw.v1alpha1.SviStatus result = new opi_api.network.evpn_gw.v1alpha1.SviStatus(this); + result.operStatus_ = operStatus_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.SviStatus) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.SviStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.SviStatus other) { + if (other == opi_api.network.evpn_gw.v1alpha1.SviStatus.getDefaultInstance()) return this; + if (other.operStatus_ != 0) { + setOperStatusValue(other.getOperStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.SviStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.SviStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operStatus_ = 0; + /** + *
+     * operational status of a Svi
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus oper_status = 1; + * @return The enum numeric value on the wire for operStatus. + */ + @java.lang.Override public int getOperStatusValue() { + return operStatus_; + } + /** + *
+     * operational status of a Svi
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus oper_status = 1; + * @param value The enum numeric value on the wire for operStatus to set. + * @return This builder for chaining. + */ + public Builder setOperStatusValue(int value) { + + operStatus_ = value; + onChanged(); + return this; + } + /** + *
+     * operational status of a Svi
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus oper_status = 1; + * @return The operStatus. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SVIOperStatus getOperStatus() { + @SuppressWarnings("deprecation") + opi_api.network.evpn_gw.v1alpha1.SVIOperStatus result = opi_api.network.evpn_gw.v1alpha1.SVIOperStatus.valueOf(operStatus_); + return result == null ? opi_api.network.evpn_gw.v1alpha1.SVIOperStatus.UNRECOGNIZED : result; + } + /** + *
+     * operational status of a Svi
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus oper_status = 1; + * @param value The operStatus to set. + * @return This builder for chaining. + */ + public Builder setOperStatus(opi_api.network.evpn_gw.v1alpha1.SVIOperStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + operStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * operational status of a Svi
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus oper_status = 1; + * @return This builder for chaining. + */ + public Builder clearOperStatus() { + + operStatus_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.SviStatus) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.SviStatus) + private static final opi_api.network.evpn_gw.v1alpha1.SviStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.SviStatus(); + } + + public static opi_api.network.evpn_gw.v1alpha1.SviStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SviStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SviStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.SviStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviStatusOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviStatusOrBuilder.java new file mode 100644 index 00000000..4e02efde --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviStatusOrBuilder.java @@ -0,0 +1,28 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface SviStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.SviStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * operational status of a Svi
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus oper_status = 1; + * @return The enum numeric value on the wire for operStatus. + */ + int getOperStatusValue(); + /** + *
+   * operational status of a Svi
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus oper_status = 1; + * @return The operStatus. + */ + opi_api.network.evpn_gw.v1alpha1.SVIOperStatus getOperStatus(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VRFOperStatus.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VRFOperStatus.java new file mode 100644 index 00000000..7a2edce0 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VRFOperStatus.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * VRFOperStatus status reflects the operational status of a Vrf
+ * 
+ * + * Protobuf enum {@code opi_api.network.evpn_gw.v1alpha1.VRFOperStatus} + */ +public enum VRFOperStatus + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * unknown
+   * 
+ * + * VRF_OPER_STATUS_UNSPECIFIED = 0; + */ + VRF_OPER_STATUS_UNSPECIFIED(0), + /** + *
+   * Vrf is up
+   * 
+ * + * VRF_OPER_STATUS_UP = 1; + */ + VRF_OPER_STATUS_UP(1), + /** + *
+   * Vrf is down
+   * 
+ * + * VRF_OPER_STATUS_DOWN = 2; + */ + VRF_OPER_STATUS_DOWN(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * unknown
+   * 
+ * + * VRF_OPER_STATUS_UNSPECIFIED = 0; + */ + public static final int VRF_OPER_STATUS_UNSPECIFIED_VALUE = 0; + /** + *
+   * Vrf is up
+   * 
+ * + * VRF_OPER_STATUS_UP = 1; + */ + public static final int VRF_OPER_STATUS_UP_VALUE = 1; + /** + *
+   * Vrf is down
+   * 
+ * + * VRF_OPER_STATUS_DOWN = 2; + */ + public static final int VRF_OPER_STATUS_DOWN_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static VRFOperStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static VRFOperStatus forNumber(int value) { + switch (value) { + case 0: return VRF_OPER_STATUS_UNSPECIFIED; + case 1: return VRF_OPER_STATUS_UP; + case 2: return VRF_OPER_STATUS_DOWN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + VRFOperStatus> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VRFOperStatus findValueByNumber(int number) { + return VRFOperStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.getDescriptor().getEnumTypes().get(0); + } + + private static final VRFOperStatus[] VALUES = values(); + + public static VRFOperStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private VRFOperStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:opi_api.network.evpn_gw.v1alpha1.VRFOperStatus) +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/Vrf.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/Vrf.java new file mode 100644 index 00000000..9c3dc99e --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/Vrf.java @@ -0,0 +1,1093 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * Vrf level network configuration
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.Vrf} + */ +public final class Vrf extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.Vrf) + VrfOrBuilder { +private static final long serialVersionUID = 0L; + // Use Vrf.newBuilder() to construct. + private Vrf(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Vrf() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Vrf(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Vrf( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + opi_api.network.evpn_gw.v1alpha1.VrfSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(opi_api.network.evpn_gw.v1alpha1.VrfSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + opi_api.network.evpn_gw.v1alpha1.VrfStatus.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(opi_api.network.evpn_gw.v1alpha1.VrfStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_Vrf_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_Vrf_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.Vrf.class, opi_api.network.evpn_gw.v1alpha1.Vrf.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPEC_FIELD_NUMBER = 2; + private opi_api.network.evpn_gw.v1alpha1.VrfSpec spec_; + /** + *
+   * Vrf's network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the spec field is set. + */ + @java.lang.Override + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+   * Vrf's network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The spec. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfSpec getSpec() { + return spec_ == null ? opi_api.network.evpn_gw.v1alpha1.VrfSpec.getDefaultInstance() : spec_; + } + /** + *
+   * Vrf's network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int STATUS_FIELD_NUMBER = 3; + private opi_api.network.evpn_gw.v1alpha1.VrfStatus status_; + /** + *
+   * Vrf's network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + *
+   * Vrf's network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + * @return The status. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfStatus getStatus() { + return status_ == null ? opi_api.network.evpn_gw.v1alpha1.VrfStatus.getDefaultInstance() : status_; + } + /** + *
+   * Vrf's network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfStatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + if (status_ != null) { + output.writeMessage(3, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.Vrf)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.Vrf other = (opi_api.network.evpn_gw.v1alpha1.Vrf) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.Vrf parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.Vrf parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.Vrf parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.Vrf parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.Vrf parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.Vrf parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.Vrf parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.Vrf parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.Vrf parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.Vrf parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.Vrf parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.Vrf parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.Vrf prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Vrf level network configuration
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.Vrf} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.Vrf) + opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_Vrf_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_Vrf_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.Vrf.class, opi_api.network.evpn_gw.v1alpha1.Vrf.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.Vrf.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_Vrf_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.Vrf getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.Vrf.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.Vrf build() { + opi_api.network.evpn_gw.v1alpha1.Vrf result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.Vrf buildPartial() { + opi_api.network.evpn_gw.v1alpha1.Vrf result = new opi_api.network.evpn_gw.v1alpha1.Vrf(this); + result.name_ = name_; + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.Vrf) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.Vrf)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.Vrf other) { + if (other == opi_api.network.evpn_gw.v1alpha1.Vrf.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.Vrf parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.Vrf) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * 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}
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private opi_api.network.evpn_gw.v1alpha1.VrfSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.VrfSpec, opi_api.network.evpn_gw.v1alpha1.VrfSpec.Builder, opi_api.network.evpn_gw.v1alpha1.VrfSpecOrBuilder> specBuilder_; + /** + *
+     * Vrf's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the spec field is set. + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+     * Vrf's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The spec. + */ + public opi_api.network.evpn_gw.v1alpha1.VrfSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? opi_api.network.evpn_gw.v1alpha1.VrfSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+     * Vrf's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSpec(opi_api.network.evpn_gw.v1alpha1.VrfSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Vrf's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSpec( + opi_api.network.evpn_gw.v1alpha1.VrfSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Vrf's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSpec(opi_api.network.evpn_gw.v1alpha1.VrfSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + opi_api.network.evpn_gw.v1alpha1.VrfSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Vrf's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+     * Vrf's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.VrfSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+     * Vrf's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.evpn_gw.v1alpha1.VrfSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + opi_api.network.evpn_gw.v1alpha1.VrfSpec.getDefaultInstance() : spec_; + } + } + /** + *
+     * Vrf's network configuration
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.VrfSpec, opi_api.network.evpn_gw.v1alpha1.VrfSpec.Builder, opi_api.network.evpn_gw.v1alpha1.VrfSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.VrfSpec, opi_api.network.evpn_gw.v1alpha1.VrfSpec.Builder, opi_api.network.evpn_gw.v1alpha1.VrfSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private opi_api.network.evpn_gw.v1alpha1.VrfStatus status_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.VrfStatus, opi_api.network.evpn_gw.v1alpha1.VrfStatus.Builder, opi_api.network.evpn_gw.v1alpha1.VrfStatusOrBuilder> statusBuilder_; + /** + *
+     * Vrf's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + *
+     * Vrf's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + * @return The status. + */ + public opi_api.network.evpn_gw.v1alpha1.VrfStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? opi_api.network.evpn_gw.v1alpha1.VrfStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+     * Vrf's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + */ + public Builder setStatus(opi_api.network.evpn_gw.v1alpha1.VrfStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Vrf's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + */ + public Builder setStatus( + opi_api.network.evpn_gw.v1alpha1.VrfStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Vrf's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + */ + public Builder mergeStatus(opi_api.network.evpn_gw.v1alpha1.VrfStatus value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = + opi_api.network.evpn_gw.v1alpha1.VrfStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Vrf's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; + } + /** + *
+     * Vrf's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + */ + public opi_api.network.evpn_gw.v1alpha1.VrfStatus.Builder getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+     * Vrf's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + */ + public opi_api.network.evpn_gw.v1alpha1.VrfStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + opi_api.network.evpn_gw.v1alpha1.VrfStatus.getDefaultInstance() : status_; + } + } + /** + *
+     * Vrf's network status
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.VrfStatus, opi_api.network.evpn_gw.v1alpha1.VrfStatus.Builder, opi_api.network.evpn_gw.v1alpha1.VrfStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.evpn_gw.v1alpha1.VrfStatus, opi_api.network.evpn_gw.v1alpha1.VrfStatus.Builder, opi_api.network.evpn_gw.v1alpha1.VrfStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.Vrf) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.Vrf) + private static final opi_api.network.evpn_gw.v1alpha1.Vrf DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.Vrf(); + } + + public static opi_api.network.evpn_gw.v1alpha1.Vrf getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vrf parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vrf(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.Vrf getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfOrBuilder.java new file mode 100644 index 00000000..cc3cf669 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfOrBuilder.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface VrfOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.Vrf) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * 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}
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Vrf's network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the spec field is set. + */ + boolean hasSpec(); + /** + *
+   * Vrf's network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The spec. + */ + opi_api.network.evpn_gw.v1alpha1.VrfSpec getSpec(); + /** + *
+   * Vrf's network configuration
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + opi_api.network.evpn_gw.v1alpha1.VrfSpecOrBuilder getSpecOrBuilder(); + + /** + *
+   * Vrf's network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+   * Vrf's network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + * @return The status. + */ + opi_api.network.evpn_gw.v1alpha1.VrfStatus getStatus(); + /** + *
+   * Vrf's network status
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3; + */ + opi_api.network.evpn_gw.v1alpha1.VrfStatusOrBuilder getStatusOrBuilder(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfServiceGrpc.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfServiceGrpc.java new file mode 100644 index 00000000..166321dd --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfServiceGrpc.java @@ -0,0 +1,561 @@ +package opi_api.network.evpn_gw.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Management of Vrf Resources
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: l3_xpu_infra_mgr.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class VrfServiceGrpc { + + private VrfServiceGrpc() {} + + public static final String SERVICE_NAME = "opi_api.network.evpn_gw.v1alpha1.VrfService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateVrfMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateVrf", + requestType = opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.class, + responseType = opi_api.network.evpn_gw.v1alpha1.Vrf.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateVrfMethod() { + io.grpc.MethodDescriptor getCreateVrfMethod; + if ((getCreateVrfMethod = VrfServiceGrpc.getCreateVrfMethod) == null) { + synchronized (VrfServiceGrpc.class) { + if ((getCreateVrfMethod = VrfServiceGrpc.getCreateVrfMethod) == null) { + VrfServiceGrpc.getCreateVrfMethod = getCreateVrfMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateVrf")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.Vrf.getDefaultInstance())) + .setSchemaDescriptor(new VrfServiceMethodDescriptorSupplier("CreateVrf")) + .build(); + } + } + } + return getCreateVrfMethod; + } + + private static volatile io.grpc.MethodDescriptor getListVrfsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVrfs", + requestType = opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.class, + responseType = opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListVrfsMethod() { + io.grpc.MethodDescriptor getListVrfsMethod; + if ((getListVrfsMethod = VrfServiceGrpc.getListVrfsMethod) == null) { + synchronized (VrfServiceGrpc.class) { + if ((getListVrfsMethod = VrfServiceGrpc.getListVrfsMethod) == null) { + VrfServiceGrpc.getListVrfsMethod = getListVrfsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVrfs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.getDefaultInstance())) + .setSchemaDescriptor(new VrfServiceMethodDescriptorSupplier("ListVrfs")) + .build(); + } + } + } + return getListVrfsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetVrfMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVrf", + requestType = opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.class, + responseType = opi_api.network.evpn_gw.v1alpha1.Vrf.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetVrfMethod() { + io.grpc.MethodDescriptor getGetVrfMethod; + if ((getGetVrfMethod = VrfServiceGrpc.getGetVrfMethod) == null) { + synchronized (VrfServiceGrpc.class) { + if ((getGetVrfMethod = VrfServiceGrpc.getGetVrfMethod) == null) { + VrfServiceGrpc.getGetVrfMethod = getGetVrfMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVrf")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.Vrf.getDefaultInstance())) + .setSchemaDescriptor(new VrfServiceMethodDescriptorSupplier("GetVrf")) + .build(); + } + } + } + return getGetVrfMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteVrfMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteVrf", + requestType = opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteVrfMethod() { + io.grpc.MethodDescriptor getDeleteVrfMethod; + if ((getDeleteVrfMethod = VrfServiceGrpc.getDeleteVrfMethod) == null) { + synchronized (VrfServiceGrpc.class) { + if ((getDeleteVrfMethod = VrfServiceGrpc.getDeleteVrfMethod) == null) { + VrfServiceGrpc.getDeleteVrfMethod = getDeleteVrfMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteVrf")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new VrfServiceMethodDescriptorSupplier("DeleteVrf")) + .build(); + } + } + } + return getDeleteVrfMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static VrfServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VrfServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VrfServiceStub(channel, callOptions); + } + }; + return VrfServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static VrfServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VrfServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VrfServiceBlockingStub(channel, callOptions); + } + }; + return VrfServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static VrfServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VrfServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VrfServiceFutureStub(channel, callOptions); + } + }; + return VrfServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Management of Vrf Resources
+   * 
+ */ + public static abstract class VrfServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Create a Vrf
+     * 
+ */ + public void createVrf(opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateVrfMethod(), responseObserver); + } + + /** + *
+     * List Vrfs
+     * 
+ */ + public void listVrfs(opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVrfsMethod(), responseObserver); + } + + /** + *
+     * Retrieve a Vrf
+     * 
+ */ + public void getVrf(opi_api.network.evpn_gw.v1alpha1.GetVrfRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVrfMethod(), responseObserver); + } + + /** + *
+     * Delete a Vrf
+     * 
+ */ + public void deleteVrf(opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteVrfMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateVrfMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest, + opi_api.network.evpn_gw.v1alpha1.Vrf>( + this, METHODID_CREATE_VRF))) + .addMethod( + getListVrfsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest, + opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse>( + this, METHODID_LIST_VRFS))) + .addMethod( + getGetVrfMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.GetVrfRequest, + opi_api.network.evpn_gw.v1alpha1.Vrf>( + this, METHODID_GET_VRF))) + .addMethod( + getDeleteVrfMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_VRF))) + .build(); + } + } + + /** + *
+   * Management of Vrf Resources
+   * 
+ */ + public static final class VrfServiceStub extends io.grpc.stub.AbstractAsyncStub { + private VrfServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VrfServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VrfServiceStub(channel, callOptions); + } + + /** + *
+     * Create a Vrf
+     * 
+ */ + public void createVrf(opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateVrfMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List Vrfs
+     * 
+ */ + public void listVrfs(opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVrfsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieve a Vrf
+     * 
+ */ + public void getVrf(opi_api.network.evpn_gw.v1alpha1.GetVrfRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVrfMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a Vrf
+     * 
+ */ + public void deleteVrf(opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteVrfMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Management of Vrf Resources
+   * 
+ */ + public static final class VrfServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private VrfServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VrfServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VrfServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Create a Vrf
+     * 
+ */ + public opi_api.network.evpn_gw.v1alpha1.Vrf createVrf(opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateVrfMethod(), getCallOptions(), request); + } + + /** + *
+     * List Vrfs
+     * 
+ */ + public opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse listVrfs(opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVrfsMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieve a Vrf
+     * 
+ */ + public opi_api.network.evpn_gw.v1alpha1.Vrf getVrf(opi_api.network.evpn_gw.v1alpha1.GetVrfRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVrfMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a Vrf
+     * 
+ */ + public com.google.protobuf.Empty deleteVrf(opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteVrfMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Management of Vrf Resources
+   * 
+ */ + public static final class VrfServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private VrfServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VrfServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VrfServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Create a Vrf
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createVrf( + opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateVrfMethod(), getCallOptions()), request); + } + + /** + *
+     * List Vrfs
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listVrfs( + opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVrfsMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieve a Vrf
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getVrf( + opi_api.network.evpn_gw.v1alpha1.GetVrfRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVrfMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a Vrf
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteVrf( + opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteVrfMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_VRF = 0; + private static final int METHODID_LIST_VRFS = 1; + private static final int METHODID_GET_VRF = 2; + private static final int METHODID_DELETE_VRF = 3; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final VrfServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(VrfServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_VRF: + serviceImpl.createVrf((opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VRFS: + serviceImpl.listVrfs((opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_VRF: + serviceImpl.getVrf((opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_VRF: + serviceImpl.deleteVrf((opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class VrfServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + VrfServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("VrfService"); + } + } + + private static final class VrfServiceFileDescriptorSupplier + extends VrfServiceBaseDescriptorSupplier { + VrfServiceFileDescriptorSupplier() {} + } + + private static final class VrfServiceMethodDescriptorSupplier + extends VrfServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + VrfServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (VrfServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new VrfServiceFileDescriptorSupplier()) + .addMethod(getCreateVrfMethod()) + .addMethod(getListVrfsMethod()) + .addMethod(getGetVrfMethod()) + .addMethod(getDeleteVrfMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfSpec.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfSpec.java new file mode 100644 index 00000000..6fabb034 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfSpec.java @@ -0,0 +1,987 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * Vrf network configuration
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.VrfSpec} + */ +public final class VrfSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + VrfSpecOrBuilder { +private static final long serialVersionUID = 0L; + // Use VrfSpec.newBuilder() to construct. + private VrfSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VrfSpec() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VrfSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VrfSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + vni_ = input.readUInt32(); + break; + } + case 18: { + opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder subBuilder = null; + if (loopbackIpPrefix_ != null) { + subBuilder = loopbackIpPrefix_.toBuilder(); + } + loopbackIpPrefix_ = input.readMessage(opi_api.network.opinetcommon.v1alpha1.IPPrefix.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(loopbackIpPrefix_); + loopbackIpPrefix_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder subBuilder = null; + if (vtepIpPrefix_ != null) { + subBuilder = vtepIpPrefix_.toBuilder(); + } + vtepIpPrefix_ = input.readMessage(opi_api.network.opinetcommon.v1alpha1.IPPrefix.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(vtepIpPrefix_); + vtepIpPrefix_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_VrfSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_VrfSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.VrfSpec.class, opi_api.network.evpn_gw.v1alpha1.VrfSpec.Builder.class); + } + + public static final int VNI_FIELD_NUMBER = 1; + private int vni_; + /** + *
+   * 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. --)
+   * 
+ * + * uint32 vni = 1; + * @return The vni. + */ + @java.lang.Override + public int getVni() { + return vni_; + } + + public static final int LOOPBACK_IP_PREFIX_FIELD_NUMBER = 2; + private opi_api.network.opinetcommon.v1alpha1.IPPrefix loopbackIpPrefix_; + /** + *
+   * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+   * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the loopbackIpPrefix field is set. + */ + @java.lang.Override + public boolean hasLoopbackIpPrefix() { + return loopbackIpPrefix_ != null; + } + /** + *
+   * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+   * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The loopbackIpPrefix. + */ + @java.lang.Override + public opi_api.network.opinetcommon.v1alpha1.IPPrefix getLoopbackIpPrefix() { + return loopbackIpPrefix_ == null ? opi_api.network.opinetcommon.v1alpha1.IPPrefix.getDefaultInstance() : loopbackIpPrefix_; + } + /** + *
+   * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+   * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder getLoopbackIpPrefixOrBuilder() { + return getLoopbackIpPrefix(); + } + + public static final int VTEP_IP_PREFIX_FIELD_NUMBER = 3; + private opi_api.network.opinetcommon.v1alpha1.IPPrefix vtepIpPrefix_; + /** + *
+   * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+   * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + * @return Whether the vtepIpPrefix field is set. + */ + @java.lang.Override + public boolean hasVtepIpPrefix() { + return vtepIpPrefix_ != null; + } + /** + *
+   * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+   * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + * @return The vtepIpPrefix. + */ + @java.lang.Override + public opi_api.network.opinetcommon.v1alpha1.IPPrefix getVtepIpPrefix() { + return vtepIpPrefix_ == null ? opi_api.network.opinetcommon.v1alpha1.IPPrefix.getDefaultInstance() : vtepIpPrefix_; + } + /** + *
+   * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+   * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + */ + @java.lang.Override + public opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder getVtepIpPrefixOrBuilder() { + return getVtepIpPrefix(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (vni_ != 0) { + output.writeUInt32(1, vni_); + } + if (loopbackIpPrefix_ != null) { + output.writeMessage(2, getLoopbackIpPrefix()); + } + if (vtepIpPrefix_ != null) { + output.writeMessage(3, getVtepIpPrefix()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (vni_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, vni_); + } + if (loopbackIpPrefix_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLoopbackIpPrefix()); + } + if (vtepIpPrefix_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getVtepIpPrefix()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.VrfSpec)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.VrfSpec other = (opi_api.network.evpn_gw.v1alpha1.VrfSpec) obj; + + if (getVni() + != other.getVni()) return false; + if (hasLoopbackIpPrefix() != other.hasLoopbackIpPrefix()) return false; + if (hasLoopbackIpPrefix()) { + if (!getLoopbackIpPrefix() + .equals(other.getLoopbackIpPrefix())) return false; + } + if (hasVtepIpPrefix() != other.hasVtepIpPrefix()) return false; + if (hasVtepIpPrefix()) { + if (!getVtepIpPrefix() + .equals(other.getVtepIpPrefix())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VNI_FIELD_NUMBER; + hash = (53 * hash) + getVni(); + if (hasLoopbackIpPrefix()) { + hash = (37 * hash) + LOOPBACK_IP_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getLoopbackIpPrefix().hashCode(); + } + if (hasVtepIpPrefix()) { + hash = (37 * hash) + VTEP_IP_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getVtepIpPrefix().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.VrfSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Vrf network configuration
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.VrfSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + opi_api.network.evpn_gw.v1alpha1.VrfSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_VrfSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_VrfSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.VrfSpec.class, opi_api.network.evpn_gw.v1alpha1.VrfSpec.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.VrfSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + vni_ = 0; + + if (loopbackIpPrefixBuilder_ == null) { + loopbackIpPrefix_ = null; + } else { + loopbackIpPrefix_ = null; + loopbackIpPrefixBuilder_ = null; + } + if (vtepIpPrefixBuilder_ == null) { + vtepIpPrefix_ = null; + } else { + vtepIpPrefix_ = null; + vtepIpPrefixBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_VrfSpec_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfSpec getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.VrfSpec.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfSpec build() { + opi_api.network.evpn_gw.v1alpha1.VrfSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfSpec buildPartial() { + opi_api.network.evpn_gw.v1alpha1.VrfSpec result = new opi_api.network.evpn_gw.v1alpha1.VrfSpec(this); + result.vni_ = vni_; + if (loopbackIpPrefixBuilder_ == null) { + result.loopbackIpPrefix_ = loopbackIpPrefix_; + } else { + result.loopbackIpPrefix_ = loopbackIpPrefixBuilder_.build(); + } + if (vtepIpPrefixBuilder_ == null) { + result.vtepIpPrefix_ = vtepIpPrefix_; + } else { + result.vtepIpPrefix_ = vtepIpPrefixBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.VrfSpec) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.VrfSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.VrfSpec other) { + if (other == opi_api.network.evpn_gw.v1alpha1.VrfSpec.getDefaultInstance()) return this; + if (other.getVni() != 0) { + setVni(other.getVni()); + } + if (other.hasLoopbackIpPrefix()) { + mergeLoopbackIpPrefix(other.getLoopbackIpPrefix()); + } + if (other.hasVtepIpPrefix()) { + mergeVtepIpPrefix(other.getVtepIpPrefix()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.VrfSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.VrfSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int vni_ ; + /** + *
+     * 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. --)
+     * 
+ * + * uint32 vni = 1; + * @return The vni. + */ + @java.lang.Override + public int getVni() { + return vni_; + } + /** + *
+     * 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. --)
+     * 
+ * + * uint32 vni = 1; + * @param value The vni to set. + * @return This builder for chaining. + */ + public Builder setVni(int value) { + + vni_ = value; + onChanged(); + return this; + } + /** + *
+     * 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. --)
+     * 
+ * + * uint32 vni = 1; + * @return This builder for chaining. + */ + public Builder clearVni() { + + vni_ = 0; + onChanged(); + return this; + } + + private opi_api.network.opinetcommon.v1alpha1.IPPrefix loopbackIpPrefix_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.opinetcommon.v1alpha1.IPPrefix, opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder, opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder> loopbackIpPrefixBuilder_; + /** + *
+     * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the loopbackIpPrefix field is set. + */ + public boolean hasLoopbackIpPrefix() { + return loopbackIpPrefixBuilder_ != null || loopbackIpPrefix_ != null; + } + /** + *
+     * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The loopbackIpPrefix. + */ + public opi_api.network.opinetcommon.v1alpha1.IPPrefix getLoopbackIpPrefix() { + if (loopbackIpPrefixBuilder_ == null) { + return loopbackIpPrefix_ == null ? opi_api.network.opinetcommon.v1alpha1.IPPrefix.getDefaultInstance() : loopbackIpPrefix_; + } else { + return loopbackIpPrefixBuilder_.getMessage(); + } + } + /** + *
+     * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setLoopbackIpPrefix(opi_api.network.opinetcommon.v1alpha1.IPPrefix value) { + if (loopbackIpPrefixBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loopbackIpPrefix_ = value; + onChanged(); + } else { + loopbackIpPrefixBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setLoopbackIpPrefix( + opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder builderForValue) { + if (loopbackIpPrefixBuilder_ == null) { + loopbackIpPrefix_ = builderForValue.build(); + onChanged(); + } else { + loopbackIpPrefixBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeLoopbackIpPrefix(opi_api.network.opinetcommon.v1alpha1.IPPrefix value) { + if (loopbackIpPrefixBuilder_ == null) { + if (loopbackIpPrefix_ != null) { + loopbackIpPrefix_ = + opi_api.network.opinetcommon.v1alpha1.IPPrefix.newBuilder(loopbackIpPrefix_).mergeFrom(value).buildPartial(); + } else { + loopbackIpPrefix_ = value; + } + onChanged(); + } else { + loopbackIpPrefixBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearLoopbackIpPrefix() { + if (loopbackIpPrefixBuilder_ == null) { + loopbackIpPrefix_ = null; + onChanged(); + } else { + loopbackIpPrefix_ = null; + loopbackIpPrefixBuilder_ = null; + } + + return this; + } + /** + *
+     * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder getLoopbackIpPrefixBuilder() { + + onChanged(); + return getLoopbackIpPrefixFieldBuilder().getBuilder(); + } + /** + *
+     * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder getLoopbackIpPrefixOrBuilder() { + if (loopbackIpPrefixBuilder_ != null) { + return loopbackIpPrefixBuilder_.getMessageOrBuilder(); + } else { + return loopbackIpPrefix_ == null ? + opi_api.network.opinetcommon.v1alpha1.IPPrefix.getDefaultInstance() : loopbackIpPrefix_; + } + } + /** + *
+     * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.opinetcommon.v1alpha1.IPPrefix, opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder, opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder> + getLoopbackIpPrefixFieldBuilder() { + if (loopbackIpPrefixBuilder_ == null) { + loopbackIpPrefixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.opinetcommon.v1alpha1.IPPrefix, opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder, opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder>( + getLoopbackIpPrefix(), + getParentForChildren(), + isClean()); + loopbackIpPrefix_ = null; + } + return loopbackIpPrefixBuilder_; + } + + private opi_api.network.opinetcommon.v1alpha1.IPPrefix vtepIpPrefix_; + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.opinetcommon.v1alpha1.IPPrefix, opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder, opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder> vtepIpPrefixBuilder_; + /** + *
+     * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + * @return Whether the vtepIpPrefix field is set. + */ + public boolean hasVtepIpPrefix() { + return vtepIpPrefixBuilder_ != null || vtepIpPrefix_ != null; + } + /** + *
+     * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + * @return The vtepIpPrefix. + */ + public opi_api.network.opinetcommon.v1alpha1.IPPrefix getVtepIpPrefix() { + if (vtepIpPrefixBuilder_ == null) { + return vtepIpPrefix_ == null ? opi_api.network.opinetcommon.v1alpha1.IPPrefix.getDefaultInstance() : vtepIpPrefix_; + } else { + return vtepIpPrefixBuilder_.getMessage(); + } + } + /** + *
+     * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + */ + public Builder setVtepIpPrefix(opi_api.network.opinetcommon.v1alpha1.IPPrefix value) { + if (vtepIpPrefixBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vtepIpPrefix_ = value; + onChanged(); + } else { + vtepIpPrefixBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + */ + public Builder setVtepIpPrefix( + opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder builderForValue) { + if (vtepIpPrefixBuilder_ == null) { + vtepIpPrefix_ = builderForValue.build(); + onChanged(); + } else { + vtepIpPrefixBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + */ + public Builder mergeVtepIpPrefix(opi_api.network.opinetcommon.v1alpha1.IPPrefix value) { + if (vtepIpPrefixBuilder_ == null) { + if (vtepIpPrefix_ != null) { + vtepIpPrefix_ = + opi_api.network.opinetcommon.v1alpha1.IPPrefix.newBuilder(vtepIpPrefix_).mergeFrom(value).buildPartial(); + } else { + vtepIpPrefix_ = value; + } + onChanged(); + } else { + vtepIpPrefixBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + */ + public Builder clearVtepIpPrefix() { + if (vtepIpPrefixBuilder_ == null) { + vtepIpPrefix_ = null; + onChanged(); + } else { + vtepIpPrefix_ = null; + vtepIpPrefixBuilder_ = null; + } + + return this; + } + /** + *
+     * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + */ + public opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder getVtepIpPrefixBuilder() { + + onChanged(); + return getVtepIpPrefixFieldBuilder().getBuilder(); + } + /** + *
+     * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + */ + public opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder getVtepIpPrefixOrBuilder() { + if (vtepIpPrefixBuilder_ != null) { + return vtepIpPrefixBuilder_.getMessageOrBuilder(); + } else { + return vtepIpPrefix_ == null ? + opi_api.network.opinetcommon.v1alpha1.IPPrefix.getDefaultInstance() : vtepIpPrefix_; + } + } + /** + *
+     * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+     * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.opinetcommon.v1alpha1.IPPrefix, opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder, opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder> + getVtepIpPrefixFieldBuilder() { + if (vtepIpPrefixBuilder_ == null) { + vtepIpPrefixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + opi_api.network.opinetcommon.v1alpha1.IPPrefix, opi_api.network.opinetcommon.v1alpha1.IPPrefix.Builder, opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder>( + getVtepIpPrefix(), + getParentForChildren(), + isClean()); + vtepIpPrefix_ = null; + } + return vtepIpPrefixBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + private static final opi_api.network.evpn_gw.v1alpha1.VrfSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.VrfSpec(); + } + + public static opi_api.network.evpn_gw.v1alpha1.VrfSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VrfSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VrfSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfSpecOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfSpecOrBuilder.java new file mode 100644 index 00000000..de5469d2 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfSpecOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface VrfSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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. --)
+   * 
+ * + * uint32 vni = 1; + * @return The vni. + */ + int getVni(); + + /** + *
+   * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+   * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the loopbackIpPrefix field is set. + */ + boolean hasLoopbackIpPrefix(); + /** + *
+   * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+   * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The loopbackIpPrefix. + */ + opi_api.network.opinetcommon.v1alpha1.IPPrefix getLoopbackIpPrefix(); + /** + *
+   * IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR
+   * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder getLoopbackIpPrefixOrBuilder(); + + /** + *
+   * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+   * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + * @return Whether the vtepIpPrefix field is set. + */ + boolean hasVtepIpPrefix(); + /** + *
+   * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+   * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + * @return The vtepIpPrefix. + */ + opi_api.network.opinetcommon.v1alpha1.IPPrefix getVtepIpPrefix(); + /** + *
+   * IPv4 or IPv6 IP address prefix for the VXLAN TEP
+   * 
+ * + * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; + */ + opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder getVtepIpPrefixOrBuilder(); +} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfStatus.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfStatus.java new file mode 100644 index 00000000..57e53ea6 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfStatus.java @@ -0,0 +1,1725 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +/** + *
+ * operational status of a Vrf
+ * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.VrfStatus} + */ +public final class VrfStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + VrfStatusOrBuilder { +private static final long serialVersionUID = 0L; + // Use VrfStatus.newBuilder() to construct. + private VrfStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VrfStatus() { + rd_ = ""; + rmac_ = com.google.protobuf.ByteString.EMPTY; + importRts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + exportRts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + logicalBridges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + operStatus_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VrfStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VrfStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + routingTable_ = input.readUInt32(); + break; + } + case 16: { + + localAs_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + rd_ = s; + break; + } + case 34: { + + rmac_ = input.readBytes(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + importRts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + importRts_.add(s); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + exportRts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + exportRts_.add(s); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + logicalBridges_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + logicalBridges_.add(s); + break; + } + case 64: { + int rawValue = input.readEnum(); + + operStatus_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + importRts_ = importRts_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + exportRts_ = exportRts_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + logicalBridges_ = logicalBridges_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_VrfStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_VrfStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.VrfStatus.class, opi_api.network.evpn_gw.v1alpha1.VrfStatus.Builder.class); + } + + public static final int ROUTING_TABLE_FIELD_NUMBER = 1; + private int routingTable_; + /** + *
+   * Routing table number
+   * (-- api-linter: core::0141::forbidden-types=disabled
+   *     aip.dev/not-precedent: routing_table cannot be negative number. --)
+   * 
+ * + * uint32 routing_table = 1; + * @return The routingTable. + */ + @java.lang.Override + public int getRoutingTable() { + return routingTable_; + } + + public static final int LOCAL_AS_FIELD_NUMBER = 2; + private int localAs_; + /** + *
+   * Local AS configured for VRF
+   * (-- api-linter: core::0141::forbidden-types=disabled
+   *     aip.dev/not-precedent: local_as cannot be negative number. --)
+   * 
+ * + * uint32 local_as = 2; + * @return The localAs. + */ + @java.lang.Override + public int getLocalAs() { + return localAs_; + } + + public static final int RD_FIELD_NUMBER = 3; + private volatile java.lang.Object rd_; + /** + *
+   * Route distinguisher
+   * 
+ * + * string rd = 3; + * @return The rd. + */ + @java.lang.Override + public java.lang.String getRd() { + java.lang.Object ref = rd_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rd_ = s; + return s; + } + } + /** + *
+   * Route distinguisher
+   * 
+ * + * string rd = 3; + * @return The bytes for rd. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRdBytes() { + java.lang.Object ref = rd_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rd_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RMAC_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString rmac_; + /** + *
+   * Router MAC address of the Vrf
+   * 
+ * + * bytes rmac = 4; + * @return The rmac. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRmac() { + return rmac_; + } + + public static final int IMPORT_RTS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList importRts_; + /** + *
+   * List of import RTs
+   * 
+ * + * repeated string import_rts = 5; + * @return A list containing the importRts. + */ + public com.google.protobuf.ProtocolStringList + getImportRtsList() { + return importRts_; + } + /** + *
+   * List of import RTs
+   * 
+ * + * repeated string import_rts = 5; + * @return The count of importRts. + */ + public int getImportRtsCount() { + return importRts_.size(); + } + /** + *
+   * List of import RTs
+   * 
+ * + * repeated string import_rts = 5; + * @param index The index of the element to return. + * @return The importRts at the given index. + */ + public java.lang.String getImportRts(int index) { + return importRts_.get(index); + } + /** + *
+   * List of import RTs
+   * 
+ * + * repeated string import_rts = 5; + * @param index The index of the value to return. + * @return The bytes of the importRts at the given index. + */ + public com.google.protobuf.ByteString + getImportRtsBytes(int index) { + return importRts_.getByteString(index); + } + + public static final int EXPORT_RTS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList exportRts_; + /** + *
+   * List of export RTs
+   * 
+ * + * repeated string export_rts = 6; + * @return A list containing the exportRts. + */ + public com.google.protobuf.ProtocolStringList + getExportRtsList() { + return exportRts_; + } + /** + *
+   * List of export RTs
+   * 
+ * + * repeated string export_rts = 6; + * @return The count of exportRts. + */ + public int getExportRtsCount() { + return exportRts_.size(); + } + /** + *
+   * List of export RTs
+   * 
+ * + * repeated string export_rts = 6; + * @param index The index of the element to return. + * @return The exportRts at the given index. + */ + public java.lang.String getExportRts(int index) { + return exportRts_.get(index); + } + /** + *
+   * List of export RTs
+   * 
+ * + * repeated string export_rts = 6; + * @param index The index of the value to return. + * @return The bytes of the exportRts at the given index. + */ + public com.google.protobuf.ByteString + getExportRtsBytes(int index) { + return exportRts_.getByteString(index); + } + + public static final int LOGICAL_BRIDGES_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList logicalBridges_; + /** + *
+   * List of connected Logical Bridges to Vrf
+   * This defines the VLANs that are connected to the Vrf
+   * 
+ * + * repeated string logical_bridges = 7; + * @return A list containing the logicalBridges. + */ + public com.google.protobuf.ProtocolStringList + getLogicalBridgesList() { + return logicalBridges_; + } + /** + *
+   * List of connected Logical Bridges to Vrf
+   * This defines the VLANs that are connected to the Vrf
+   * 
+ * + * repeated string logical_bridges = 7; + * @return The count of logicalBridges. + */ + public int getLogicalBridgesCount() { + return logicalBridges_.size(); + } + /** + *
+   * List of connected Logical Bridges to Vrf
+   * This defines the VLANs that are connected to the Vrf
+   * 
+ * + * repeated string logical_bridges = 7; + * @param index The index of the element to return. + * @return The logicalBridges at the given index. + */ + public java.lang.String getLogicalBridges(int index) { + return logicalBridges_.get(index); + } + /** + *
+   * List of connected Logical Bridges to Vrf
+   * This defines the VLANs that are connected to the Vrf
+   * 
+ * + * repeated string logical_bridges = 7; + * @param index The index of the value to return. + * @return The bytes of the logicalBridges at the given index. + */ + public com.google.protobuf.ByteString + getLogicalBridgesBytes(int index) { + return logicalBridges_.getByteString(index); + } + + public static final int OPER_STATUS_FIELD_NUMBER = 8; + private int operStatus_; + /** + *
+   * operational status of a Vrf
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + * @return The enum numeric value on the wire for operStatus. + */ + @java.lang.Override public int getOperStatusValue() { + return operStatus_; + } + /** + *
+   * operational status of a Vrf
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + * @return The operStatus. + */ + @java.lang.Override public opi_api.network.evpn_gw.v1alpha1.VRFOperStatus getOperStatus() { + @SuppressWarnings("deprecation") + opi_api.network.evpn_gw.v1alpha1.VRFOperStatus result = opi_api.network.evpn_gw.v1alpha1.VRFOperStatus.valueOf(operStatus_); + return result == null ? opi_api.network.evpn_gw.v1alpha1.VRFOperStatus.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (routingTable_ != 0) { + output.writeUInt32(1, routingTable_); + } + if (localAs_ != 0) { + output.writeUInt32(2, localAs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rd_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, rd_); + } + if (!rmac_.isEmpty()) { + output.writeBytes(4, rmac_); + } + for (int i = 0; i < importRts_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, importRts_.getRaw(i)); + } + for (int i = 0; i < exportRts_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, exportRts_.getRaw(i)); + } + for (int i = 0; i < logicalBridges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, logicalBridges_.getRaw(i)); + } + if (operStatus_ != opi_api.network.evpn_gw.v1alpha1.VRFOperStatus.VRF_OPER_STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(8, operStatus_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (routingTable_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, routingTable_); + } + if (localAs_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, localAs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rd_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, rd_); + } + if (!rmac_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, rmac_); + } + { + int dataSize = 0; + for (int i = 0; i < importRts_.size(); i++) { + dataSize += computeStringSizeNoTag(importRts_.getRaw(i)); + } + size += dataSize; + size += 1 * getImportRtsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < exportRts_.size(); i++) { + dataSize += computeStringSizeNoTag(exportRts_.getRaw(i)); + } + size += dataSize; + size += 1 * getExportRtsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < logicalBridges_.size(); i++) { + dataSize += computeStringSizeNoTag(logicalBridges_.getRaw(i)); + } + size += dataSize; + size += 1 * getLogicalBridgesList().size(); + } + if (operStatus_ != opi_api.network.evpn_gw.v1alpha1.VRFOperStatus.VRF_OPER_STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, operStatus_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof opi_api.network.evpn_gw.v1alpha1.VrfStatus)) { + return super.equals(obj); + } + opi_api.network.evpn_gw.v1alpha1.VrfStatus other = (opi_api.network.evpn_gw.v1alpha1.VrfStatus) obj; + + if (getRoutingTable() + != other.getRoutingTable()) return false; + if (getLocalAs() + != other.getLocalAs()) return false; + if (!getRd() + .equals(other.getRd())) return false; + if (!getRmac() + .equals(other.getRmac())) return false; + if (!getImportRtsList() + .equals(other.getImportRtsList())) return false; + if (!getExportRtsList() + .equals(other.getExportRtsList())) return false; + if (!getLogicalBridgesList() + .equals(other.getLogicalBridgesList())) return false; + if (operStatus_ != other.operStatus_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROUTING_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getRoutingTable(); + hash = (37 * hash) + LOCAL_AS_FIELD_NUMBER; + hash = (53 * hash) + getLocalAs(); + hash = (37 * hash) + RD_FIELD_NUMBER; + hash = (53 * hash) + getRd().hashCode(); + hash = (37 * hash) + RMAC_FIELD_NUMBER; + hash = (53 * hash) + getRmac().hashCode(); + if (getImportRtsCount() > 0) { + hash = (37 * hash) + IMPORT_RTS_FIELD_NUMBER; + hash = (53 * hash) + getImportRtsList().hashCode(); + } + if (getExportRtsCount() > 0) { + hash = (37 * hash) + EXPORT_RTS_FIELD_NUMBER; + hash = (53 * hash) + getExportRtsList().hashCode(); + } + if (getLogicalBridgesCount() > 0) { + hash = (37 * hash) + LOGICAL_BRIDGES_FIELD_NUMBER; + hash = (53 * hash) + getLogicalBridgesList().hashCode(); + } + hash = (37 * hash) + OPER_STATUS_FIELD_NUMBER; + hash = (53 * hash) + operStatus_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(opi_api.network.evpn_gw.v1alpha1.VrfStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * operational status of a Vrf
+   * 
+ * + * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.VrfStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + opi_api.network.evpn_gw.v1alpha1.VrfStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_VrfStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_VrfStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + opi_api.network.evpn_gw.v1alpha1.VrfStatus.class, opi_api.network.evpn_gw.v1alpha1.VrfStatus.Builder.class); + } + + // Construct using opi_api.network.evpn_gw.v1alpha1.VrfStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + routingTable_ = 0; + + localAs_ = 0; + + rd_ = ""; + + rmac_ = com.google.protobuf.ByteString.EMPTY; + + importRts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + exportRts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + logicalBridges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + operStatus_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return opi_api.network.evpn_gw.v1alpha1.L3XpuInfraMgrProto.internal_static_opi_api_network_evpn_gw_v1alpha1_VrfStatus_descriptor; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfStatus getDefaultInstanceForType() { + return opi_api.network.evpn_gw.v1alpha1.VrfStatus.getDefaultInstance(); + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfStatus build() { + opi_api.network.evpn_gw.v1alpha1.VrfStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfStatus buildPartial() { + opi_api.network.evpn_gw.v1alpha1.VrfStatus result = new opi_api.network.evpn_gw.v1alpha1.VrfStatus(this); + int from_bitField0_ = bitField0_; + result.routingTable_ = routingTable_; + result.localAs_ = localAs_; + result.rd_ = rd_; + result.rmac_ = rmac_; + if (((bitField0_ & 0x00000001) != 0)) { + importRts_ = importRts_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.importRts_ = importRts_; + if (((bitField0_ & 0x00000002) != 0)) { + exportRts_ = exportRts_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.exportRts_ = exportRts_; + if (((bitField0_ & 0x00000004) != 0)) { + logicalBridges_ = logicalBridges_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.logicalBridges_ = logicalBridges_; + result.operStatus_ = operStatus_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof opi_api.network.evpn_gw.v1alpha1.VrfStatus) { + return mergeFrom((opi_api.network.evpn_gw.v1alpha1.VrfStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.VrfStatus other) { + if (other == opi_api.network.evpn_gw.v1alpha1.VrfStatus.getDefaultInstance()) return this; + if (other.getRoutingTable() != 0) { + setRoutingTable(other.getRoutingTable()); + } + if (other.getLocalAs() != 0) { + setLocalAs(other.getLocalAs()); + } + if (!other.getRd().isEmpty()) { + rd_ = other.rd_; + onChanged(); + } + if (other.getRmac() != com.google.protobuf.ByteString.EMPTY) { + setRmac(other.getRmac()); + } + if (!other.importRts_.isEmpty()) { + if (importRts_.isEmpty()) { + importRts_ = other.importRts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureImportRtsIsMutable(); + importRts_.addAll(other.importRts_); + } + onChanged(); + } + if (!other.exportRts_.isEmpty()) { + if (exportRts_.isEmpty()) { + exportRts_ = other.exportRts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureExportRtsIsMutable(); + exportRts_.addAll(other.exportRts_); + } + onChanged(); + } + if (!other.logicalBridges_.isEmpty()) { + if (logicalBridges_.isEmpty()) { + logicalBridges_ = other.logicalBridges_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureLogicalBridgesIsMutable(); + logicalBridges_.addAll(other.logicalBridges_); + } + onChanged(); + } + if (other.operStatus_ != 0) { + setOperStatusValue(other.getOperStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + opi_api.network.evpn_gw.v1alpha1.VrfStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (opi_api.network.evpn_gw.v1alpha1.VrfStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int routingTable_ ; + /** + *
+     * Routing table number
+     * (-- api-linter: core::0141::forbidden-types=disabled
+     *     aip.dev/not-precedent: routing_table cannot be negative number. --)
+     * 
+ * + * uint32 routing_table = 1; + * @return The routingTable. + */ + @java.lang.Override + public int getRoutingTable() { + return routingTable_; + } + /** + *
+     * Routing table number
+     * (-- api-linter: core::0141::forbidden-types=disabled
+     *     aip.dev/not-precedent: routing_table cannot be negative number. --)
+     * 
+ * + * uint32 routing_table = 1; + * @param value The routingTable to set. + * @return This builder for chaining. + */ + public Builder setRoutingTable(int value) { + + routingTable_ = value; + onChanged(); + return this; + } + /** + *
+     * Routing table number
+     * (-- api-linter: core::0141::forbidden-types=disabled
+     *     aip.dev/not-precedent: routing_table cannot be negative number. --)
+     * 
+ * + * uint32 routing_table = 1; + * @return This builder for chaining. + */ + public Builder clearRoutingTable() { + + routingTable_ = 0; + onChanged(); + return this; + } + + private int localAs_ ; + /** + *
+     * Local AS configured for VRF
+     * (-- api-linter: core::0141::forbidden-types=disabled
+     *     aip.dev/not-precedent: local_as cannot be negative number. --)
+     * 
+ * + * uint32 local_as = 2; + * @return The localAs. + */ + @java.lang.Override + public int getLocalAs() { + return localAs_; + } + /** + *
+     * Local AS configured for VRF
+     * (-- api-linter: core::0141::forbidden-types=disabled
+     *     aip.dev/not-precedent: local_as cannot be negative number. --)
+     * 
+ * + * uint32 local_as = 2; + * @param value The localAs to set. + * @return This builder for chaining. + */ + public Builder setLocalAs(int value) { + + localAs_ = value; + onChanged(); + return this; + } + /** + *
+     * Local AS configured for VRF
+     * (-- api-linter: core::0141::forbidden-types=disabled
+     *     aip.dev/not-precedent: local_as cannot be negative number. --)
+     * 
+ * + * uint32 local_as = 2; + * @return This builder for chaining. + */ + public Builder clearLocalAs() { + + localAs_ = 0; + onChanged(); + return this; + } + + private java.lang.Object rd_ = ""; + /** + *
+     * Route distinguisher
+     * 
+ * + * string rd = 3; + * @return The rd. + */ + public java.lang.String getRd() { + java.lang.Object ref = rd_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rd_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Route distinguisher
+     * 
+ * + * string rd = 3; + * @return The bytes for rd. + */ + public com.google.protobuf.ByteString + getRdBytes() { + java.lang.Object ref = rd_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rd_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Route distinguisher
+     * 
+ * + * string rd = 3; + * @param value The rd to set. + * @return This builder for chaining. + */ + public Builder setRd( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rd_ = value; + onChanged(); + return this; + } + /** + *
+     * Route distinguisher
+     * 
+ * + * string rd = 3; + * @return This builder for chaining. + */ + public Builder clearRd() { + + rd_ = getDefaultInstance().getRd(); + onChanged(); + return this; + } + /** + *
+     * Route distinguisher
+     * 
+ * + * string rd = 3; + * @param value The bytes for rd to set. + * @return This builder for chaining. + */ + public Builder setRdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rd_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString rmac_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Router MAC address of the Vrf
+     * 
+ * + * bytes rmac = 4; + * @return The rmac. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRmac() { + return rmac_; + } + /** + *
+     * Router MAC address of the Vrf
+     * 
+ * + * bytes rmac = 4; + * @param value The rmac to set. + * @return This builder for chaining. + */ + public Builder setRmac(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + rmac_ = value; + onChanged(); + return this; + } + /** + *
+     * Router MAC address of the Vrf
+     * 
+ * + * bytes rmac = 4; + * @return This builder for chaining. + */ + public Builder clearRmac() { + + rmac_ = getDefaultInstance().getRmac(); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList importRts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureImportRtsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + importRts_ = new com.google.protobuf.LazyStringArrayList(importRts_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * List of import RTs
+     * 
+ * + * repeated string import_rts = 5; + * @return A list containing the importRts. + */ + public com.google.protobuf.ProtocolStringList + getImportRtsList() { + return importRts_.getUnmodifiableView(); + } + /** + *
+     * List of import RTs
+     * 
+ * + * repeated string import_rts = 5; + * @return The count of importRts. + */ + public int getImportRtsCount() { + return importRts_.size(); + } + /** + *
+     * List of import RTs
+     * 
+ * + * repeated string import_rts = 5; + * @param index The index of the element to return. + * @return The importRts at the given index. + */ + public java.lang.String getImportRts(int index) { + return importRts_.get(index); + } + /** + *
+     * List of import RTs
+     * 
+ * + * repeated string import_rts = 5; + * @param index The index of the value to return. + * @return The bytes of the importRts at the given index. + */ + public com.google.protobuf.ByteString + getImportRtsBytes(int index) { + return importRts_.getByteString(index); + } + /** + *
+     * List of import RTs
+     * 
+ * + * repeated string import_rts = 5; + * @param index The index to set the value at. + * @param value The importRts to set. + * @return This builder for chaining. + */ + public Builder setImportRts( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureImportRtsIsMutable(); + importRts_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of import RTs
+     * 
+ * + * repeated string import_rts = 5; + * @param value The importRts to add. + * @return This builder for chaining. + */ + public Builder addImportRts( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureImportRtsIsMutable(); + importRts_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of import RTs
+     * 
+ * + * repeated string import_rts = 5; + * @param values The importRts to add. + * @return This builder for chaining. + */ + public Builder addAllImportRts( + java.lang.Iterable values) { + ensureImportRtsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, importRts_); + onChanged(); + return this; + } + /** + *
+     * List of import RTs
+     * 
+ * + * repeated string import_rts = 5; + * @return This builder for chaining. + */ + public Builder clearImportRts() { + importRts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * List of import RTs
+     * 
+ * + * repeated string import_rts = 5; + * @param value The bytes of the importRts to add. + * @return This builder for chaining. + */ + public Builder addImportRtsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureImportRtsIsMutable(); + importRts_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList exportRts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureExportRtsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + exportRts_ = new com.google.protobuf.LazyStringArrayList(exportRts_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * List of export RTs
+     * 
+ * + * repeated string export_rts = 6; + * @return A list containing the exportRts. + */ + public com.google.protobuf.ProtocolStringList + getExportRtsList() { + return exportRts_.getUnmodifiableView(); + } + /** + *
+     * List of export RTs
+     * 
+ * + * repeated string export_rts = 6; + * @return The count of exportRts. + */ + public int getExportRtsCount() { + return exportRts_.size(); + } + /** + *
+     * List of export RTs
+     * 
+ * + * repeated string export_rts = 6; + * @param index The index of the element to return. + * @return The exportRts at the given index. + */ + public java.lang.String getExportRts(int index) { + return exportRts_.get(index); + } + /** + *
+     * List of export RTs
+     * 
+ * + * repeated string export_rts = 6; + * @param index The index of the value to return. + * @return The bytes of the exportRts at the given index. + */ + public com.google.protobuf.ByteString + getExportRtsBytes(int index) { + return exportRts_.getByteString(index); + } + /** + *
+     * List of export RTs
+     * 
+ * + * repeated string export_rts = 6; + * @param index The index to set the value at. + * @param value The exportRts to set. + * @return This builder for chaining. + */ + public Builder setExportRts( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExportRtsIsMutable(); + exportRts_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of export RTs
+     * 
+ * + * repeated string export_rts = 6; + * @param value The exportRts to add. + * @return This builder for chaining. + */ + public Builder addExportRts( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExportRtsIsMutable(); + exportRts_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of export RTs
+     * 
+ * + * repeated string export_rts = 6; + * @param values The exportRts to add. + * @return This builder for chaining. + */ + public Builder addAllExportRts( + java.lang.Iterable values) { + ensureExportRtsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exportRts_); + onChanged(); + return this; + } + /** + *
+     * List of export RTs
+     * 
+ * + * repeated string export_rts = 6; + * @return This builder for chaining. + */ + public Builder clearExportRts() { + exportRts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * List of export RTs
+     * 
+ * + * repeated string export_rts = 6; + * @param value The bytes of the exportRts to add. + * @return This builder for chaining. + */ + public Builder addExportRtsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExportRtsIsMutable(); + exportRts_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList logicalBridges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLogicalBridgesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + logicalBridges_ = new com.google.protobuf.LazyStringArrayList(logicalBridges_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * List of connected Logical Bridges to Vrf
+     * This defines the VLANs that are connected to the Vrf
+     * 
+ * + * repeated string logical_bridges = 7; + * @return A list containing the logicalBridges. + */ + public com.google.protobuf.ProtocolStringList + getLogicalBridgesList() { + return logicalBridges_.getUnmodifiableView(); + } + /** + *
+     * List of connected Logical Bridges to Vrf
+     * This defines the VLANs that are connected to the Vrf
+     * 
+ * + * repeated string logical_bridges = 7; + * @return The count of logicalBridges. + */ + public int getLogicalBridgesCount() { + return logicalBridges_.size(); + } + /** + *
+     * List of connected Logical Bridges to Vrf
+     * This defines the VLANs that are connected to the Vrf
+     * 
+ * + * repeated string logical_bridges = 7; + * @param index The index of the element to return. + * @return The logicalBridges at the given index. + */ + public java.lang.String getLogicalBridges(int index) { + return logicalBridges_.get(index); + } + /** + *
+     * List of connected Logical Bridges to Vrf
+     * This defines the VLANs that are connected to the Vrf
+     * 
+ * + * repeated string logical_bridges = 7; + * @param index The index of the value to return. + * @return The bytes of the logicalBridges at the given index. + */ + public com.google.protobuf.ByteString + getLogicalBridgesBytes(int index) { + return logicalBridges_.getByteString(index); + } + /** + *
+     * List of connected Logical Bridges to Vrf
+     * This defines the VLANs that are connected to the Vrf
+     * 
+ * + * repeated string logical_bridges = 7; + * @param index The index to set the value at. + * @param value The logicalBridges to set. + * @return This builder for chaining. + */ + public Builder setLogicalBridges( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalBridgesIsMutable(); + logicalBridges_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of connected Logical Bridges to Vrf
+     * This defines the VLANs that are connected to the Vrf
+     * 
+ * + * repeated string logical_bridges = 7; + * @param value The logicalBridges to add. + * @return This builder for chaining. + */ + public Builder addLogicalBridges( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogicalBridgesIsMutable(); + logicalBridges_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of connected Logical Bridges to Vrf
+     * This defines the VLANs that are connected to the Vrf
+     * 
+ * + * repeated string logical_bridges = 7; + * @param values The logicalBridges to add. + * @return This builder for chaining. + */ + public Builder addAllLogicalBridges( + java.lang.Iterable values) { + ensureLogicalBridgesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logicalBridges_); + onChanged(); + return this; + } + /** + *
+     * List of connected Logical Bridges to Vrf
+     * This defines the VLANs that are connected to the Vrf
+     * 
+ * + * repeated string logical_bridges = 7; + * @return This builder for chaining. + */ + public Builder clearLogicalBridges() { + logicalBridges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * List of connected Logical Bridges to Vrf
+     * This defines the VLANs that are connected to the Vrf
+     * 
+ * + * repeated string logical_bridges = 7; + * @param value The bytes of the logicalBridges to add. + * @return This builder for chaining. + */ + public Builder addLogicalBridgesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLogicalBridgesIsMutable(); + logicalBridges_.add(value); + onChanged(); + return this; + } + + private int operStatus_ = 0; + /** + *
+     * operational status of a Vrf
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + * @return The enum numeric value on the wire for operStatus. + */ + @java.lang.Override public int getOperStatusValue() { + return operStatus_; + } + /** + *
+     * operational status of a Vrf
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + * @param value The enum numeric value on the wire for operStatus to set. + * @return This builder for chaining. + */ + public Builder setOperStatusValue(int value) { + + operStatus_ = value; + onChanged(); + return this; + } + /** + *
+     * operational status of a Vrf
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + * @return The operStatus. + */ + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VRFOperStatus getOperStatus() { + @SuppressWarnings("deprecation") + opi_api.network.evpn_gw.v1alpha1.VRFOperStatus result = opi_api.network.evpn_gw.v1alpha1.VRFOperStatus.valueOf(operStatus_); + return result == null ? opi_api.network.evpn_gw.v1alpha1.VRFOperStatus.UNRECOGNIZED : result; + } + /** + *
+     * operational status of a Vrf
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + * @param value The operStatus to set. + * @return This builder for chaining. + */ + public Builder setOperStatus(opi_api.network.evpn_gw.v1alpha1.VRFOperStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + operStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * operational status of a Vrf
+     * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + * @return This builder for chaining. + */ + public Builder clearOperStatus() { + + operStatus_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + } + + // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + private static final opi_api.network.evpn_gw.v1alpha1.VrfStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.VrfStatus(); + } + + public static opi_api.network.evpn_gw.v1alpha1.VrfStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VrfStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VrfStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public opi_api.network.evpn_gw.v1alpha1.VrfStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfStatusOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfStatusOrBuilder.java new file mode 100644 index 00000000..d0622eee --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfStatusOrBuilder.java @@ -0,0 +1,209 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: l3_xpu_infra_mgr.proto + +package opi_api.network.evpn_gw.v1alpha1; + +public interface VrfStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Routing table number
+   * (-- api-linter: core::0141::forbidden-types=disabled
+   *     aip.dev/not-precedent: routing_table cannot be negative number. --)
+   * 
+ * + * uint32 routing_table = 1; + * @return The routingTable. + */ + int getRoutingTable(); + + /** + *
+   * Local AS configured for VRF
+   * (-- api-linter: core::0141::forbidden-types=disabled
+   *     aip.dev/not-precedent: local_as cannot be negative number. --)
+   * 
+ * + * uint32 local_as = 2; + * @return The localAs. + */ + int getLocalAs(); + + /** + *
+   * Route distinguisher
+   * 
+ * + * string rd = 3; + * @return The rd. + */ + java.lang.String getRd(); + /** + *
+   * Route distinguisher
+   * 
+ * + * string rd = 3; + * @return The bytes for rd. + */ + com.google.protobuf.ByteString + getRdBytes(); + + /** + *
+   * Router MAC address of the Vrf
+   * 
+ * + * bytes rmac = 4; + * @return The rmac. + */ + com.google.protobuf.ByteString getRmac(); + + /** + *
+   * List of import RTs
+   * 
+ * + * repeated string import_rts = 5; + * @return A list containing the importRts. + */ + java.util.List + getImportRtsList(); + /** + *
+   * List of import RTs
+   * 
+ * + * repeated string import_rts = 5; + * @return The count of importRts. + */ + int getImportRtsCount(); + /** + *
+   * List of import RTs
+   * 
+ * + * repeated string import_rts = 5; + * @param index The index of the element to return. + * @return The importRts at the given index. + */ + java.lang.String getImportRts(int index); + /** + *
+   * List of import RTs
+   * 
+ * + * repeated string import_rts = 5; + * @param index The index of the value to return. + * @return The bytes of the importRts at the given index. + */ + com.google.protobuf.ByteString + getImportRtsBytes(int index); + + /** + *
+   * List of export RTs
+   * 
+ * + * repeated string export_rts = 6; + * @return A list containing the exportRts. + */ + java.util.List + getExportRtsList(); + /** + *
+   * List of export RTs
+   * 
+ * + * repeated string export_rts = 6; + * @return The count of exportRts. + */ + int getExportRtsCount(); + /** + *
+   * List of export RTs
+   * 
+ * + * repeated string export_rts = 6; + * @param index The index of the element to return. + * @return The exportRts at the given index. + */ + java.lang.String getExportRts(int index); + /** + *
+   * List of export RTs
+   * 
+ * + * repeated string export_rts = 6; + * @param index The index of the value to return. + * @return The bytes of the exportRts at the given index. + */ + com.google.protobuf.ByteString + getExportRtsBytes(int index); + + /** + *
+   * List of connected Logical Bridges to Vrf
+   * This defines the VLANs that are connected to the Vrf
+   * 
+ * + * repeated string logical_bridges = 7; + * @return A list containing the logicalBridges. + */ + java.util.List + getLogicalBridgesList(); + /** + *
+   * List of connected Logical Bridges to Vrf
+   * This defines the VLANs that are connected to the Vrf
+   * 
+ * + * repeated string logical_bridges = 7; + * @return The count of logicalBridges. + */ + int getLogicalBridgesCount(); + /** + *
+   * List of connected Logical Bridges to Vrf
+   * This defines the VLANs that are connected to the Vrf
+   * 
+ * + * repeated string logical_bridges = 7; + * @param index The index of the element to return. + * @return The logicalBridges at the given index. + */ + java.lang.String getLogicalBridges(int index); + /** + *
+   * List of connected Logical Bridges to Vrf
+   * This defines the VLANs that are connected to the Vrf
+   * 
+ * + * repeated string logical_bridges = 7; + * @param index The index of the value to return. + * @return The bytes of the logicalBridges at the given index. + */ + com.google.protobuf.ByteString + getLogicalBridgesBytes(int index); + + /** + *
+   * operational status of a Vrf
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + * @return The enum numeric value on the wire for operStatus. + */ + int getOperStatusValue(); + /** + *
+   * operational status of a Vrf
+   * 
+ * + * .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8; + * @return The operStatus. + */ + opi_api.network.evpn_gw.v1alpha1.VRFOperStatus getOperStatus(); +} diff --git a/network/evpn-gw/v1alpha1/gen/python/__init__.py b/network/evpn-gw/v1alpha1/gen/python/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/network/evpn-gw/v1alpha1/gen/python/l2_xpu_infra_mgr_pb2.py b/network/evpn-gw/v1alpha1/gen/python/l2_xpu_infra_mgr_pb2.py new file mode 100644 index 00000000..185697a0 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/python/l2_xpu_infra_mgr_pb2.py @@ -0,0 +1,258 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: l2_xpu_infra_mgr.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16l2_xpu_infra_mgr.proto\x12 opi_api.network.evpn_gw.v1alpha1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x82\x02\n\rLogicalBridge\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x46\n\x04spec\x18\x02 \x01(\x0b\x32\x33.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpecB\x03\xe0\x41\x02\x12\x45\n\x06status\x18\x03 \x01(\x0b\x32\x35.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus:T\xea\x41Q\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge\x12\x1flogicalBridges/{logical_bridge}\"6\n\x11LogicalBridgeSpec\x12\x14\n\x07vlan_id\x18\x01 \x01(\rB\x03\xe0\x41\x02\x12\x0b\n\x03vni\x18\x02 \x01(\r\"Z\n\x13LogicalBridgeStatus\x12\x43\n\x0boper_status\x18\x01 \x01(\x0e\x32..opi_api.network.evpn_gw.v1alpha1.LBOperStatus\"\x85\x01\n\x1a\x43reateLogicalBridgeRequest\x12\x19\n\x11logical_bridge_id\x18\x01 \x01(\t\x12L\n\x0elogical_bridge\x18\x02 \x01(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeB\x03\xe0\x41\x02\"B\n\x19ListLogicalBridgesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\x7f\n\x1aListLogicalBridgesResponse\x12H\n\x0flogical_bridges\x18\x01 \x03(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridge\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"_\n\x17GetLogicalBridgeRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge\"b\n\x1a\x44\x65leteLogicalBridgeRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge\"\xeb\x01\n\nBridgePort\x12\x0c\n\x04name\x18\x01 \x01(\t\x12>\n\x04spec\x18\x02 \x01(\x0b\x32\x30.opi_api.network.evpn_gw.v1alpha1.BridgePortSpec\x12\x42\n\x06status\x18\x03 \x01(\x0b\x32\x32.opi_api.network.evpn_gw.v1alpha1.BridgePortStatus:K\xea\x41H\n+opi_api.network.evpn_gw.v1alpha1/bridgePort\x12\x19\x62ridgePorts/{bridge_port}\"\x89\x01\n\x0e\x42ridgePortSpec\x12\x18\n\x0bmac_address\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x44\n\x05ptype\x18\x02 \x01(\x0e\x32\x30.opi_api.network.evpn_gw.v1alpha1.BridgePortTypeB\x03\xe0\x41\x02\x12\x17\n\x0flogical_bridges\x18\x03 \x03(\t\"W\n\x10\x42ridgePortStatus\x12\x43\n\x0boper_status\x18\x01 \x01(\x0e\x32..opi_api.network.evpn_gw.v1alpha1.BPOperStatus\"y\n\x17\x43reateBridgePortRequest\x12\x16\n\x0e\x62ridge_port_id\x18\x01 \x01(\t\x12\x46\n\x0b\x62ridge_port\x18\x02 \x01(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePortB\x03\xe0\x41\x02\"?\n\x16ListBridgePortsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"v\n\x17ListBridgePortsResponse\x12\x42\n\x0c\x62ridge_ports\x18\x01 \x03(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePort\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"Y\n\x14GetBridgePortRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+opi_api.network.evpn_gw.v1alpha1/BridgePort\"\\\n\x17\x44\x65leteBridgePortRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+opi_api.network.evpn_gw.v1alpha1/BridgePort*^\n\x0cLBOperStatus\x12\x1e\n\x1aLB_OPER_STATUS_UNSPECIFIED\x10\x00\x12\x15\n\x11LB_OPER_STATUS_UP\x10\x01\x12\x17\n\x13LB_OPER_STATUS_DOWN\x10\x02*^\n\x0c\x42POperStatus\x12\x1e\n\x1a\x42P_OPER_STATUS_UNSPECIFIED\x10\x00\x12\x15\n\x11\x42P_OPER_STATUS_UP\x10\x01\x12\x17\n\x13\x42P_OPER_STATUS_DOWN\x10\x02*4\n\x0e\x42ridgePortType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x41\x43\x43\x45SS\x10\x01\x12\t\n\x05TRUNK\x10\x02\x32\xe1\x05\n\x14LogicalBridgeService\x12\xd3\x01\n\x13\x43reateLogicalBridge\x12<.opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest\x1a/.opi_api.network.evpn_gw.v1alpha1.LogicalBridge\"M\x82\xd3\xe4\x93\x02$\"\x12/v1/logicalBridges:\x0elogical_bridge\xda\x41 logical_bridge,logical_bridge_id\x12\xab\x01\n\x12ListLogicalBridges\x12;.opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest\x1a<.opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/v1/logicalBridges\x12\xaa\x01\n\x10GetLogicalBridge\x12\x39.opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest\x1a/.opi_api.network.evpn_gw.v1alpha1.LogicalBridge\"*\x82\xd3\xe4\x93\x02\x1d\x12\x1b/v1/{name=logicalBridges/*}\xda\x41\x04name\x12\x97\x01\n\x13\x44\x65leteLogicalBridge\x12<.opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest\x1a\x16.google.protobuf.Empty\"*\x82\xd3\xe4\x93\x02\x1d*\x1b/v1/{name=logicalBridges/*}\xda\x41\x04name2\xa8\x05\n\x11\x42ridgePortService\x12\xbe\x01\n\x10\x43reateBridgePort\x12\x39.opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest\x1a,.opi_api.network.evpn_gw.v1alpha1.BridgePort\"A\x82\xd3\xe4\x93\x02\x1e\"\x0f/v1/bridgePorts:\x0b\x62ridge_port\xda\x41\x1a\x62ridge_port,bridge_port_id\x12\x9f\x01\n\x0fListBridgePorts\x12\x38.opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest\x1a\x39.opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1/bridgePorts\x12\x9e\x01\n\rGetBridgePort\x12\x36.opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest\x1a,.opi_api.network.evpn_gw.v1alpha1.BridgePort\"\'\x82\xd3\xe4\x93\x02\x1a\x12\x18/v1/{name=bridgePorts/*}\xda\x41\x04name\x12\x8e\x01\n\x10\x44\x65leteBridgePort\x12\x39.opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest\x1a\x16.google.protobuf.Empty\"\'\x82\xd3\xe4\x93\x02\x1a*\x18/v1/{name=bridgePorts/*}\xda\x41\x04nameBw\n opi_api.network.evpn_gw.v1alpha1B\x12L2XpuInfraMgrProtoP\x01Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/gob\x06proto3') + +_LBOPERSTATUS = DESCRIPTOR.enum_types_by_name['LBOperStatus'] +LBOperStatus = enum_type_wrapper.EnumTypeWrapper(_LBOPERSTATUS) +_BPOPERSTATUS = DESCRIPTOR.enum_types_by_name['BPOperStatus'] +BPOperStatus = enum_type_wrapper.EnumTypeWrapper(_BPOPERSTATUS) +_BRIDGEPORTTYPE = DESCRIPTOR.enum_types_by_name['BridgePortType'] +BridgePortType = enum_type_wrapper.EnumTypeWrapper(_BRIDGEPORTTYPE) +LB_OPER_STATUS_UNSPECIFIED = 0 +LB_OPER_STATUS_UP = 1 +LB_OPER_STATUS_DOWN = 2 +BP_OPER_STATUS_UNSPECIFIED = 0 +BP_OPER_STATUS_UP = 1 +BP_OPER_STATUS_DOWN = 2 +UNKNOWN = 0 +ACCESS = 1 +TRUNK = 2 + + +_LOGICALBRIDGE = DESCRIPTOR.message_types_by_name['LogicalBridge'] +_LOGICALBRIDGESPEC = DESCRIPTOR.message_types_by_name['LogicalBridgeSpec'] +_LOGICALBRIDGESTATUS = DESCRIPTOR.message_types_by_name['LogicalBridgeStatus'] +_CREATELOGICALBRIDGEREQUEST = DESCRIPTOR.message_types_by_name['CreateLogicalBridgeRequest'] +_LISTLOGICALBRIDGESREQUEST = DESCRIPTOR.message_types_by_name['ListLogicalBridgesRequest'] +_LISTLOGICALBRIDGESRESPONSE = DESCRIPTOR.message_types_by_name['ListLogicalBridgesResponse'] +_GETLOGICALBRIDGEREQUEST = DESCRIPTOR.message_types_by_name['GetLogicalBridgeRequest'] +_DELETELOGICALBRIDGEREQUEST = DESCRIPTOR.message_types_by_name['DeleteLogicalBridgeRequest'] +_BRIDGEPORT = DESCRIPTOR.message_types_by_name['BridgePort'] +_BRIDGEPORTSPEC = DESCRIPTOR.message_types_by_name['BridgePortSpec'] +_BRIDGEPORTSTATUS = DESCRIPTOR.message_types_by_name['BridgePortStatus'] +_CREATEBRIDGEPORTREQUEST = DESCRIPTOR.message_types_by_name['CreateBridgePortRequest'] +_LISTBRIDGEPORTSREQUEST = DESCRIPTOR.message_types_by_name['ListBridgePortsRequest'] +_LISTBRIDGEPORTSRESPONSE = DESCRIPTOR.message_types_by_name['ListBridgePortsResponse'] +_GETBRIDGEPORTREQUEST = DESCRIPTOR.message_types_by_name['GetBridgePortRequest'] +_DELETEBRIDGEPORTREQUEST = DESCRIPTOR.message_types_by_name['DeleteBridgePortRequest'] +LogicalBridge = _reflection.GeneratedProtocolMessageType('LogicalBridge', (_message.Message,), { + 'DESCRIPTOR' : _LOGICALBRIDGE, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.LogicalBridge) + }) +_sym_db.RegisterMessage(LogicalBridge) + +LogicalBridgeSpec = _reflection.GeneratedProtocolMessageType('LogicalBridgeSpec', (_message.Message,), { + 'DESCRIPTOR' : _LOGICALBRIDGESPEC, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) + }) +_sym_db.RegisterMessage(LogicalBridgeSpec) + +LogicalBridgeStatus = _reflection.GeneratedProtocolMessageType('LogicalBridgeStatus', (_message.Message,), { + 'DESCRIPTOR' : _LOGICALBRIDGESTATUS, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) + }) +_sym_db.RegisterMessage(LogicalBridgeStatus) + +CreateLogicalBridgeRequest = _reflection.GeneratedProtocolMessageType('CreateLogicalBridgeRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATELOGICALBRIDGEREQUEST, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) + }) +_sym_db.RegisterMessage(CreateLogicalBridgeRequest) + +ListLogicalBridgesRequest = _reflection.GeneratedProtocolMessageType('ListLogicalBridgesRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTLOGICALBRIDGESREQUEST, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) + }) +_sym_db.RegisterMessage(ListLogicalBridgesRequest) + +ListLogicalBridgesResponse = _reflection.GeneratedProtocolMessageType('ListLogicalBridgesResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTLOGICALBRIDGESRESPONSE, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) + }) +_sym_db.RegisterMessage(ListLogicalBridgesResponse) + +GetLogicalBridgeRequest = _reflection.GeneratedProtocolMessageType('GetLogicalBridgeRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETLOGICALBRIDGEREQUEST, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) + }) +_sym_db.RegisterMessage(GetLogicalBridgeRequest) + +DeleteLogicalBridgeRequest = _reflection.GeneratedProtocolMessageType('DeleteLogicalBridgeRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETELOGICALBRIDGEREQUEST, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) + }) +_sym_db.RegisterMessage(DeleteLogicalBridgeRequest) + +BridgePort = _reflection.GeneratedProtocolMessageType('BridgePort', (_message.Message,), { + 'DESCRIPTOR' : _BRIDGEPORT, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.BridgePort) + }) +_sym_db.RegisterMessage(BridgePort) + +BridgePortSpec = _reflection.GeneratedProtocolMessageType('BridgePortSpec', (_message.Message,), { + 'DESCRIPTOR' : _BRIDGEPORTSPEC, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) + }) +_sym_db.RegisterMessage(BridgePortSpec) + +BridgePortStatus = _reflection.GeneratedProtocolMessageType('BridgePortStatus', (_message.Message,), { + 'DESCRIPTOR' : _BRIDGEPORTSTATUS, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) + }) +_sym_db.RegisterMessage(BridgePortStatus) + +CreateBridgePortRequest = _reflection.GeneratedProtocolMessageType('CreateBridgePortRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATEBRIDGEPORTREQUEST, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) + }) +_sym_db.RegisterMessage(CreateBridgePortRequest) + +ListBridgePortsRequest = _reflection.GeneratedProtocolMessageType('ListBridgePortsRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTBRIDGEPORTSREQUEST, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) + }) +_sym_db.RegisterMessage(ListBridgePortsRequest) + +ListBridgePortsResponse = _reflection.GeneratedProtocolMessageType('ListBridgePortsResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTBRIDGEPORTSRESPONSE, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) + }) +_sym_db.RegisterMessage(ListBridgePortsResponse) + +GetBridgePortRequest = _reflection.GeneratedProtocolMessageType('GetBridgePortRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETBRIDGEPORTREQUEST, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) + }) +_sym_db.RegisterMessage(GetBridgePortRequest) + +DeleteBridgePortRequest = _reflection.GeneratedProtocolMessageType('DeleteBridgePortRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETEBRIDGEPORTREQUEST, + '__module__' : 'l2_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) + }) +_sym_db.RegisterMessage(DeleteBridgePortRequest) + +_LOGICALBRIDGESERVICE = DESCRIPTOR.services_by_name['LogicalBridgeService'] +_BRIDGEPORTSERVICE = DESCRIPTOR.services_by_name['BridgePortService'] +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n opi_api.network.evpn_gw.v1alpha1B\022L2XpuInfraMgrProtoP\001Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/go' + _LOGICALBRIDGE.fields_by_name['spec']._options = None + _LOGICALBRIDGE.fields_by_name['spec']._serialized_options = b'\340A\002' + _LOGICALBRIDGE._options = None + _LOGICALBRIDGE._serialized_options = b'\352AQ\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge\022\037logicalBridges/{logical_bridge}' + _LOGICALBRIDGESPEC.fields_by_name['vlan_id']._options = None + _LOGICALBRIDGESPEC.fields_by_name['vlan_id']._serialized_options = b'\340A\002' + _CREATELOGICALBRIDGEREQUEST.fields_by_name['logical_bridge']._options = None + _CREATELOGICALBRIDGEREQUEST.fields_by_name['logical_bridge']._serialized_options = b'\340A\002' + _GETLOGICALBRIDGEREQUEST.fields_by_name['name']._options = None + _GETLOGICALBRIDGEREQUEST.fields_by_name['name']._serialized_options = b'\340A\002\372A0\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge' + _DELETELOGICALBRIDGEREQUEST.fields_by_name['name']._options = None + _DELETELOGICALBRIDGEREQUEST.fields_by_name['name']._serialized_options = b'\340A\002\372A0\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge' + _BRIDGEPORT._options = None + _BRIDGEPORT._serialized_options = b'\352AH\n+opi_api.network.evpn_gw.v1alpha1/bridgePort\022\031bridgePorts/{bridge_port}' + _BRIDGEPORTSPEC.fields_by_name['mac_address']._options = None + _BRIDGEPORTSPEC.fields_by_name['mac_address']._serialized_options = b'\340A\002' + _BRIDGEPORTSPEC.fields_by_name['ptype']._options = None + _BRIDGEPORTSPEC.fields_by_name['ptype']._serialized_options = b'\340A\002' + _CREATEBRIDGEPORTREQUEST.fields_by_name['bridge_port']._options = None + _CREATEBRIDGEPORTREQUEST.fields_by_name['bridge_port']._serialized_options = b'\340A\002' + _GETBRIDGEPORTREQUEST.fields_by_name['name']._options = None + _GETBRIDGEPORTREQUEST.fields_by_name['name']._serialized_options = b'\340A\002\372A-\n+opi_api.network.evpn_gw.v1alpha1/BridgePort' + _DELETEBRIDGEPORTREQUEST.fields_by_name['name']._options = None + _DELETEBRIDGEPORTREQUEST.fields_by_name['name']._serialized_options = b'\340A\002\372A-\n+opi_api.network.evpn_gw.v1alpha1/BridgePort' + _LOGICALBRIDGESERVICE.methods_by_name['CreateLogicalBridge']._options = None + _LOGICALBRIDGESERVICE.methods_by_name['CreateLogicalBridge']._serialized_options = b'\202\323\344\223\002$\"\022/v1/logicalBridges:\016logical_bridge\332A logical_bridge,logical_bridge_id' + _LOGICALBRIDGESERVICE.methods_by_name['ListLogicalBridges']._options = None + _LOGICALBRIDGESERVICE.methods_by_name['ListLogicalBridges']._serialized_options = b'\202\323\344\223\002\024\022\022/v1/logicalBridges' + _LOGICALBRIDGESERVICE.methods_by_name['GetLogicalBridge']._options = None + _LOGICALBRIDGESERVICE.methods_by_name['GetLogicalBridge']._serialized_options = b'\202\323\344\223\002\035\022\033/v1/{name=logicalBridges/*}\332A\004name' + _LOGICALBRIDGESERVICE.methods_by_name['DeleteLogicalBridge']._options = None + _LOGICALBRIDGESERVICE.methods_by_name['DeleteLogicalBridge']._serialized_options = b'\202\323\344\223\002\035*\033/v1/{name=logicalBridges/*}\332A\004name' + _BRIDGEPORTSERVICE.methods_by_name['CreateBridgePort']._options = None + _BRIDGEPORTSERVICE.methods_by_name['CreateBridgePort']._serialized_options = b'\202\323\344\223\002\036\"\017/v1/bridgePorts:\013bridge_port\332A\032bridge_port,bridge_port_id' + _BRIDGEPORTSERVICE.methods_by_name['ListBridgePorts']._options = None + _BRIDGEPORTSERVICE.methods_by_name['ListBridgePorts']._serialized_options = b'\202\323\344\223\002\021\022\017/v1/bridgePorts' + _BRIDGEPORTSERVICE.methods_by_name['GetBridgePort']._options = None + _BRIDGEPORTSERVICE.methods_by_name['GetBridgePort']._serialized_options = b'\202\323\344\223\002\032\022\030/v1/{name=bridgePorts/*}\332A\004name' + _BRIDGEPORTSERVICE.methods_by_name['DeleteBridgePort']._options = None + _BRIDGEPORTSERVICE.methods_by_name['DeleteBridgePort']._serialized_options = b'\202\323\344\223\002\032*\030/v1/{name=bridgePorts/*}\332A\004name' + _LBOPERSTATUS._serialized_start=2103 + _LBOPERSTATUS._serialized_end=2197 + _BPOPERSTATUS._serialized_start=2199 + _BPOPERSTATUS._serialized_end=2293 + _BRIDGEPORTTYPE._serialized_start=2295 + _BRIDGEPORTTYPE._serialized_end=2347 + _LOGICALBRIDGE._serialized_start=205 + _LOGICALBRIDGE._serialized_end=463 + _LOGICALBRIDGESPEC._serialized_start=465 + _LOGICALBRIDGESPEC._serialized_end=519 + _LOGICALBRIDGESTATUS._serialized_start=521 + _LOGICALBRIDGESTATUS._serialized_end=611 + _CREATELOGICALBRIDGEREQUEST._serialized_start=614 + _CREATELOGICALBRIDGEREQUEST._serialized_end=747 + _LISTLOGICALBRIDGESREQUEST._serialized_start=749 + _LISTLOGICALBRIDGESREQUEST._serialized_end=815 + _LISTLOGICALBRIDGESRESPONSE._serialized_start=817 + _LISTLOGICALBRIDGESRESPONSE._serialized_end=944 + _GETLOGICALBRIDGEREQUEST._serialized_start=946 + _GETLOGICALBRIDGEREQUEST._serialized_end=1041 + _DELETELOGICALBRIDGEREQUEST._serialized_start=1043 + _DELETELOGICALBRIDGEREQUEST._serialized_end=1141 + _BRIDGEPORT._serialized_start=1144 + _BRIDGEPORT._serialized_end=1379 + _BRIDGEPORTSPEC._serialized_start=1382 + _BRIDGEPORTSPEC._serialized_end=1519 + _BRIDGEPORTSTATUS._serialized_start=1521 + _BRIDGEPORTSTATUS._serialized_end=1608 + _CREATEBRIDGEPORTREQUEST._serialized_start=1610 + _CREATEBRIDGEPORTREQUEST._serialized_end=1731 + _LISTBRIDGEPORTSREQUEST._serialized_start=1733 + _LISTBRIDGEPORTSREQUEST._serialized_end=1796 + _LISTBRIDGEPORTSRESPONSE._serialized_start=1798 + _LISTBRIDGEPORTSRESPONSE._serialized_end=1916 + _GETBRIDGEPORTREQUEST._serialized_start=1918 + _GETBRIDGEPORTREQUEST._serialized_end=2007 + _DELETEBRIDGEPORTREQUEST._serialized_start=2009 + _DELETEBRIDGEPORTREQUEST._serialized_end=2101 + _LOGICALBRIDGESERVICE._serialized_start=2350 + _LOGICALBRIDGESERVICE._serialized_end=3087 + _BRIDGEPORTSERVICE._serialized_start=3090 + _BRIDGEPORTSERVICE._serialized_end=3770 +# @@protoc_insertion_point(module_scope) diff --git a/network/evpn-gw/v1alpha1/gen/python/l2_xpu_infra_mgr_pb2_grpc.py b/network/evpn-gw/v1alpha1/gen/python/l2_xpu_infra_mgr_pb2_grpc.py new file mode 100644 index 00000000..6f3b3919 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/python/l2_xpu_infra_mgr_pb2_grpc.py @@ -0,0 +1,340 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +import l2_xpu_infra_mgr_pb2 as l2__xpu__infra__mgr__pb2 + + +class LogicalBridgeServiceStub(object): + """Management of LogicalBridge Resources + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateLogicalBridge = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/CreateLogicalBridge', + request_serializer=l2__xpu__infra__mgr__pb2.CreateLogicalBridgeRequest.SerializeToString, + response_deserializer=l2__xpu__infra__mgr__pb2.LogicalBridge.FromString, + ) + self.ListLogicalBridges = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/ListLogicalBridges', + request_serializer=l2__xpu__infra__mgr__pb2.ListLogicalBridgesRequest.SerializeToString, + response_deserializer=l2__xpu__infra__mgr__pb2.ListLogicalBridgesResponse.FromString, + ) + self.GetLogicalBridge = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/GetLogicalBridge', + request_serializer=l2__xpu__infra__mgr__pb2.GetLogicalBridgeRequest.SerializeToString, + response_deserializer=l2__xpu__infra__mgr__pb2.LogicalBridge.FromString, + ) + self.DeleteLogicalBridge = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/DeleteLogicalBridge', + request_serializer=l2__xpu__infra__mgr__pb2.DeleteLogicalBridgeRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + + +class LogicalBridgeServiceServicer(object): + """Management of LogicalBridge Resources + """ + + def CreateLogicalBridge(self, request, context): + """Create a Logical Bridge + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListLogicalBridges(self, request, context): + """List Logical Bridges + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetLogicalBridge(self, request, context): + """Retrieve a Logical Bridge + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteLogicalBridge(self, request, context): + """Delete a Logical Bridge + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_LogicalBridgeServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateLogicalBridge': grpc.unary_unary_rpc_method_handler( + servicer.CreateLogicalBridge, + request_deserializer=l2__xpu__infra__mgr__pb2.CreateLogicalBridgeRequest.FromString, + response_serializer=l2__xpu__infra__mgr__pb2.LogicalBridge.SerializeToString, + ), + 'ListLogicalBridges': grpc.unary_unary_rpc_method_handler( + servicer.ListLogicalBridges, + request_deserializer=l2__xpu__infra__mgr__pb2.ListLogicalBridgesRequest.FromString, + response_serializer=l2__xpu__infra__mgr__pb2.ListLogicalBridgesResponse.SerializeToString, + ), + 'GetLogicalBridge': grpc.unary_unary_rpc_method_handler( + servicer.GetLogicalBridge, + request_deserializer=l2__xpu__infra__mgr__pb2.GetLogicalBridgeRequest.FromString, + response_serializer=l2__xpu__infra__mgr__pb2.LogicalBridge.SerializeToString, + ), + 'DeleteLogicalBridge': grpc.unary_unary_rpc_method_handler( + servicer.DeleteLogicalBridge, + request_deserializer=l2__xpu__infra__mgr__pb2.DeleteLogicalBridgeRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class LogicalBridgeService(object): + """Management of LogicalBridge Resources + """ + + @staticmethod + def CreateLogicalBridge(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/CreateLogicalBridge', + l2__xpu__infra__mgr__pb2.CreateLogicalBridgeRequest.SerializeToString, + l2__xpu__infra__mgr__pb2.LogicalBridge.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListLogicalBridges(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/ListLogicalBridges', + l2__xpu__infra__mgr__pb2.ListLogicalBridgesRequest.SerializeToString, + l2__xpu__infra__mgr__pb2.ListLogicalBridgesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetLogicalBridge(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/GetLogicalBridge', + l2__xpu__infra__mgr__pb2.GetLogicalBridgeRequest.SerializeToString, + l2__xpu__infra__mgr__pb2.LogicalBridge.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteLogicalBridge(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/DeleteLogicalBridge', + l2__xpu__infra__mgr__pb2.DeleteLogicalBridgeRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class BridgePortServiceStub(object): + """Management of BridgePort resources + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateBridgePort = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.BridgePortService/CreateBridgePort', + request_serializer=l2__xpu__infra__mgr__pb2.CreateBridgePortRequest.SerializeToString, + response_deserializer=l2__xpu__infra__mgr__pb2.BridgePort.FromString, + ) + self.ListBridgePorts = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.BridgePortService/ListBridgePorts', + request_serializer=l2__xpu__infra__mgr__pb2.ListBridgePortsRequest.SerializeToString, + response_deserializer=l2__xpu__infra__mgr__pb2.ListBridgePortsResponse.FromString, + ) + self.GetBridgePort = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.BridgePortService/GetBridgePort', + request_serializer=l2__xpu__infra__mgr__pb2.GetBridgePortRequest.SerializeToString, + response_deserializer=l2__xpu__infra__mgr__pb2.BridgePort.FromString, + ) + self.DeleteBridgePort = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.BridgePortService/DeleteBridgePort', + request_serializer=l2__xpu__infra__mgr__pb2.DeleteBridgePortRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + + +class BridgePortServiceServicer(object): + """Management of BridgePort resources + """ + + def CreateBridgePort(self, request, context): + """Create a Bridge Port + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListBridgePorts(self, request, context): + """List Bridge Ports + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetBridgePort(self, request, context): + """Retrieve a Bridge Port + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteBridgePort(self, request, context): + """Delete a Bridge Port + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_BridgePortServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateBridgePort': grpc.unary_unary_rpc_method_handler( + servicer.CreateBridgePort, + request_deserializer=l2__xpu__infra__mgr__pb2.CreateBridgePortRequest.FromString, + response_serializer=l2__xpu__infra__mgr__pb2.BridgePort.SerializeToString, + ), + 'ListBridgePorts': grpc.unary_unary_rpc_method_handler( + servicer.ListBridgePorts, + request_deserializer=l2__xpu__infra__mgr__pb2.ListBridgePortsRequest.FromString, + response_serializer=l2__xpu__infra__mgr__pb2.ListBridgePortsResponse.SerializeToString, + ), + 'GetBridgePort': grpc.unary_unary_rpc_method_handler( + servicer.GetBridgePort, + request_deserializer=l2__xpu__infra__mgr__pb2.GetBridgePortRequest.FromString, + response_serializer=l2__xpu__infra__mgr__pb2.BridgePort.SerializeToString, + ), + 'DeleteBridgePort': grpc.unary_unary_rpc_method_handler( + servicer.DeleteBridgePort, + request_deserializer=l2__xpu__infra__mgr__pb2.DeleteBridgePortRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'opi_api.network.evpn_gw.v1alpha1.BridgePortService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class BridgePortService(object): + """Management of BridgePort resources + """ + + @staticmethod + def CreateBridgePort(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.BridgePortService/CreateBridgePort', + l2__xpu__infra__mgr__pb2.CreateBridgePortRequest.SerializeToString, + l2__xpu__infra__mgr__pb2.BridgePort.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListBridgePorts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.BridgePortService/ListBridgePorts', + l2__xpu__infra__mgr__pb2.ListBridgePortsRequest.SerializeToString, + l2__xpu__infra__mgr__pb2.ListBridgePortsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetBridgePort(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.BridgePortService/GetBridgePort', + l2__xpu__infra__mgr__pb2.GetBridgePortRequest.SerializeToString, + l2__xpu__infra__mgr__pb2.BridgePort.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteBridgePort(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.BridgePortService/DeleteBridgePort', + l2__xpu__infra__mgr__pb2.DeleteBridgePortRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/network/evpn-gw/v1alpha1/gen/python/l3_xpu_infra_mgr_pb2.py b/network/evpn-gw/v1alpha1/gen/python/l3_xpu_infra_mgr_pb2.py new file mode 100644 index 00000000..411f3bd1 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/python/l3_xpu_infra_mgr_pb2.py @@ -0,0 +1,258 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: l3_xpu_infra_mgr.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import networktypes_pb2 as networktypes__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16l3_xpu_infra_mgr.proto\x12 opi_api.network.evpn_gw.v1alpha1\x1a\x12networktypes.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc5\x01\n\x03Vrf\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\x04spec\x18\x02 \x01(\x0b\x32).opi_api.network.evpn_gw.v1alpha1.VrfSpecB\x03\xe0\x41\x02\x12;\n\x06status\x18\x03 \x01(\x0b\x32+.opi_api.network.evpn_gw.v1alpha1.VrfStatus:5\xea\x41\x32\n$opi_api.network.evpn_gw.v1alpha1/Vrf\x12\nvrfs/{vrf}\"\xb1\x01\n\x07VrfSpec\x12\x0b\n\x03vni\x18\x01 \x01(\r\x12P\n\x12loopback_ip_prefix\x18\x02 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x03\xe0\x41\x02\x12G\n\x0evtep_ip_prefix\x18\x03 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefix\"\xd5\x01\n\tVrfStatus\x12\x15\n\rrouting_table\x18\x01 \x01(\r\x12\x10\n\x08local_as\x18\x02 \x01(\r\x12\n\n\x02rd\x18\x03 \x01(\t\x12\x0c\n\x04rmac\x18\x04 \x01(\x0c\x12\x12\n\nimport_rts\x18\x05 \x03(\t\x12\x12\n\nexport_rts\x18\x06 \x03(\t\x12\x17\n\x0flogical_bridges\x18\x07 \x03(\t\x12\x44\n\x0boper_status\x18\x08 \x01(\x0e\x32/.opi_api.network.evpn_gw.v1alpha1.VRFOperStatus\"[\n\x10\x43reateVrfRequest\x12\x0e\n\x06vrf_id\x18\x01 \x01(\t\x12\x37\n\x03vrf\x18\x02 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.VrfB\x03\xe0\x41\x02\"8\n\x0fListVrfsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"`\n\x10ListVrfsResponse\x12\x33\n\x04vrfs\x18\x01 \x03(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.Vrf\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\rGetVrfRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/Vrf\"N\n\x10\x44\x65leteVrfRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/Vrf\"\xc5\x01\n\x03Svi\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\x04spec\x18\x02 \x01(\x0b\x32).opi_api.network.evpn_gw.v1alpha1.SviSpecB\x03\xe0\x41\x02\x12;\n\x06status\x18\x03 \x01(\x0b\x32+.opi_api.network.evpn_gw.v1alpha1.SviStatus:5\xea\x41\x32\n$opi_api.network.evpn_gw.v1alpha1/Svi\x12\nsvis/{svi}\"\xa1\x02\n\x07SviSpec\x12\x39\n\x03vrf\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/Vrf\x12N\n\x0elogical_bridge\x18\x02 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge\x12\x18\n\x0bmac_address\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x02\x12J\n\x0cgw_ip_prefix\x18\x04 \x03(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x03\xe0\x41\x02\x12\x12\n\nenable_bgp\x18\x05 \x01(\x08\x12\x11\n\tremote_as\x18\x06 \x01(\r\"Q\n\tSviStatus\x12\x44\n\x0boper_status\x18\x01 \x01(\x0e\x32/.opi_api.network.evpn_gw.v1alpha1.SVIOperStatus\"[\n\x10\x43reateSviRequest\x12\x0e\n\x06svi_id\x18\x01 \x01(\t\x12\x37\n\x03svi\x18\x02 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.SviB\x03\xe0\x41\x02\"8\n\x0fListSvisRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"`\n\x10ListSvisResponse\x12\x33\n\x04svis\x18\x01 \x03(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.Svi\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\rGetSviRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/Svi\"N\n\x10\x44\x65leteSviRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/Svi*b\n\rVRFOperStatus\x12\x1f\n\x1bVRF_OPER_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12VRF_OPER_STATUS_UP\x10\x01\x12\x18\n\x14VRF_OPER_STATUS_DOWN\x10\x02*b\n\rSVIOperStatus\x12\x1f\n\x1bSVI_OPER_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12SVI_OPER_STATUS_UP\x10\x01\x12\x18\n\x14SVI_OPER_STATUS_DOWN\x10\x02\x32\x9f\x04\n\nVrfService\x12\x8a\x01\n\tCreateVrf\x12\x32.opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Vrf\"\"\x82\xd3\xe4\x93\x02\x0f\"\x08/v1/vrfs:\x03vrf\xda\x41\nvrf,vrf_id\x12\x83\x01\n\x08ListVrfs\x12\x31.opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest\x1a\x32.opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse\"\x10\x82\xd3\xe4\x93\x02\n\x12\x08/v1/vrfs\x12\x82\x01\n\x06GetVrf\x12/.opi_api.network.evpn_gw.v1alpha1.GetVrfRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Vrf\" \x82\xd3\xe4\x93\x02\x13\x12\x11/v1/{name=vrfs/*}\xda\x41\x04name\x12y\n\tDeleteVrf\x12\x32.opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest\x1a\x16.google.protobuf.Empty\" \x82\xd3\xe4\x93\x02\x13*\x11/v1/{name=vrfs/*}\xda\x41\x04name2\x9f\x04\n\nSviService\x12\x8a\x01\n\tCreateSvi\x12\x32.opi_api.network.evpn_gw.v1alpha1.CreateSviRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Svi\"\"\x82\xd3\xe4\x93\x02\x0f\"\x08/v1/svis:\x03svi\xda\x41\nsvi,svi_id\x12\x83\x01\n\x08ListSvis\x12\x31.opi_api.network.evpn_gw.v1alpha1.ListSvisRequest\x1a\x32.opi_api.network.evpn_gw.v1alpha1.ListSvisResponse\"\x10\x82\xd3\xe4\x93\x02\n\x12\x08/v1/svis\x12\x82\x01\n\x06GetSvi\x12/.opi_api.network.evpn_gw.v1alpha1.GetSviRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Svi\" \x82\xd3\xe4\x93\x02\x13\x12\x11/v1/{name=svis/*}\xda\x41\x04name\x12y\n\tDeleteSvi\x12\x32.opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest\x1a\x16.google.protobuf.Empty\" \x82\xd3\xe4\x93\x02\x13*\x11/v1/{name=svis/*}\xda\x41\x04nameBw\n opi_api.network.evpn_gw.v1alpha1B\x12L3XpuInfraMgrProtoP\x01Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/gob\x06proto3') + +_VRFOPERSTATUS = DESCRIPTOR.enum_types_by_name['VRFOperStatus'] +VRFOperStatus = enum_type_wrapper.EnumTypeWrapper(_VRFOPERSTATUS) +_SVIOPERSTATUS = DESCRIPTOR.enum_types_by_name['SVIOperStatus'] +SVIOperStatus = enum_type_wrapper.EnumTypeWrapper(_SVIOPERSTATUS) +VRF_OPER_STATUS_UNSPECIFIED = 0 +VRF_OPER_STATUS_UP = 1 +VRF_OPER_STATUS_DOWN = 2 +SVI_OPER_STATUS_UNSPECIFIED = 0 +SVI_OPER_STATUS_UP = 1 +SVI_OPER_STATUS_DOWN = 2 + + +_VRF = DESCRIPTOR.message_types_by_name['Vrf'] +_VRFSPEC = DESCRIPTOR.message_types_by_name['VrfSpec'] +_VRFSTATUS = DESCRIPTOR.message_types_by_name['VrfStatus'] +_CREATEVRFREQUEST = DESCRIPTOR.message_types_by_name['CreateVrfRequest'] +_LISTVRFSREQUEST = DESCRIPTOR.message_types_by_name['ListVrfsRequest'] +_LISTVRFSRESPONSE = DESCRIPTOR.message_types_by_name['ListVrfsResponse'] +_GETVRFREQUEST = DESCRIPTOR.message_types_by_name['GetVrfRequest'] +_DELETEVRFREQUEST = DESCRIPTOR.message_types_by_name['DeleteVrfRequest'] +_SVI = DESCRIPTOR.message_types_by_name['Svi'] +_SVISPEC = DESCRIPTOR.message_types_by_name['SviSpec'] +_SVISTATUS = DESCRIPTOR.message_types_by_name['SviStatus'] +_CREATESVIREQUEST = DESCRIPTOR.message_types_by_name['CreateSviRequest'] +_LISTSVISREQUEST = DESCRIPTOR.message_types_by_name['ListSvisRequest'] +_LISTSVISRESPONSE = DESCRIPTOR.message_types_by_name['ListSvisResponse'] +_GETSVIREQUEST = DESCRIPTOR.message_types_by_name['GetSviRequest'] +_DELETESVIREQUEST = DESCRIPTOR.message_types_by_name['DeleteSviRequest'] +Vrf = _reflection.GeneratedProtocolMessageType('Vrf', (_message.Message,), { + 'DESCRIPTOR' : _VRF, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.Vrf) + }) +_sym_db.RegisterMessage(Vrf) + +VrfSpec = _reflection.GeneratedProtocolMessageType('VrfSpec', (_message.Message,), { + 'DESCRIPTOR' : _VRFSPEC, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.VrfSpec) + }) +_sym_db.RegisterMessage(VrfSpec) + +VrfStatus = _reflection.GeneratedProtocolMessageType('VrfStatus', (_message.Message,), { + 'DESCRIPTOR' : _VRFSTATUS, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.VrfStatus) + }) +_sym_db.RegisterMessage(VrfStatus) + +CreateVrfRequest = _reflection.GeneratedProtocolMessageType('CreateVrfRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATEVRFREQUEST, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) + }) +_sym_db.RegisterMessage(CreateVrfRequest) + +ListVrfsRequest = _reflection.GeneratedProtocolMessageType('ListVrfsRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTVRFSREQUEST, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) + }) +_sym_db.RegisterMessage(ListVrfsRequest) + +ListVrfsResponse = _reflection.GeneratedProtocolMessageType('ListVrfsResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTVRFSRESPONSE, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) + }) +_sym_db.RegisterMessage(ListVrfsResponse) + +GetVrfRequest = _reflection.GeneratedProtocolMessageType('GetVrfRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETVRFREQUEST, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) + }) +_sym_db.RegisterMessage(GetVrfRequest) + +DeleteVrfRequest = _reflection.GeneratedProtocolMessageType('DeleteVrfRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETEVRFREQUEST, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) + }) +_sym_db.RegisterMessage(DeleteVrfRequest) + +Svi = _reflection.GeneratedProtocolMessageType('Svi', (_message.Message,), { + 'DESCRIPTOR' : _SVI, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.Svi) + }) +_sym_db.RegisterMessage(Svi) + +SviSpec = _reflection.GeneratedProtocolMessageType('SviSpec', (_message.Message,), { + 'DESCRIPTOR' : _SVISPEC, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.SviSpec) + }) +_sym_db.RegisterMessage(SviSpec) + +SviStatus = _reflection.GeneratedProtocolMessageType('SviStatus', (_message.Message,), { + 'DESCRIPTOR' : _SVISTATUS, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.SviStatus) + }) +_sym_db.RegisterMessage(SviStatus) + +CreateSviRequest = _reflection.GeneratedProtocolMessageType('CreateSviRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATESVIREQUEST, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) + }) +_sym_db.RegisterMessage(CreateSviRequest) + +ListSvisRequest = _reflection.GeneratedProtocolMessageType('ListSvisRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTSVISREQUEST, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) + }) +_sym_db.RegisterMessage(ListSvisRequest) + +ListSvisResponse = _reflection.GeneratedProtocolMessageType('ListSvisResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTSVISRESPONSE, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) + }) +_sym_db.RegisterMessage(ListSvisResponse) + +GetSviRequest = _reflection.GeneratedProtocolMessageType('GetSviRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETSVIREQUEST, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) + }) +_sym_db.RegisterMessage(GetSviRequest) + +DeleteSviRequest = _reflection.GeneratedProtocolMessageType('DeleteSviRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETESVIREQUEST, + '__module__' : 'l3_xpu_infra_mgr_pb2' + # @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) + }) +_sym_db.RegisterMessage(DeleteSviRequest) + +_VRFSERVICE = DESCRIPTOR.services_by_name['VrfService'] +_SVISERVICE = DESCRIPTOR.services_by_name['SviService'] +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n opi_api.network.evpn_gw.v1alpha1B\022L3XpuInfraMgrProtoP\001Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/go' + _VRF.fields_by_name['spec']._options = None + _VRF.fields_by_name['spec']._serialized_options = b'\340A\002' + _VRF._options = None + _VRF._serialized_options = b'\352A2\n$opi_api.network.evpn_gw.v1alpha1/Vrf\022\nvrfs/{vrf}' + _VRFSPEC.fields_by_name['loopback_ip_prefix']._options = None + _VRFSPEC.fields_by_name['loopback_ip_prefix']._serialized_options = b'\340A\002' + _CREATEVRFREQUEST.fields_by_name['vrf']._options = None + _CREATEVRFREQUEST.fields_by_name['vrf']._serialized_options = b'\340A\002' + _GETVRFREQUEST.fields_by_name['name']._options = None + _GETVRFREQUEST.fields_by_name['name']._serialized_options = b'\340A\002\372A&\n$opi_api.network.evpn_gw.v1alpha1/Vrf' + _DELETEVRFREQUEST.fields_by_name['name']._options = None + _DELETEVRFREQUEST.fields_by_name['name']._serialized_options = b'\340A\002\372A&\n$opi_api.network.evpn_gw.v1alpha1/Vrf' + _SVI.fields_by_name['spec']._options = None + _SVI.fields_by_name['spec']._serialized_options = b'\340A\002' + _SVI._options = None + _SVI._serialized_options = b'\352A2\n$opi_api.network.evpn_gw.v1alpha1/Svi\022\nsvis/{svi}' + _SVISPEC.fields_by_name['vrf']._options = None + _SVISPEC.fields_by_name['vrf']._serialized_options = b'\340A\002\372A&\n$opi_api.network.evpn_gw.v1alpha1/Vrf' + _SVISPEC.fields_by_name['logical_bridge']._options = None + _SVISPEC.fields_by_name['logical_bridge']._serialized_options = b'\340A\002\372A0\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge' + _SVISPEC.fields_by_name['mac_address']._options = None + _SVISPEC.fields_by_name['mac_address']._serialized_options = b'\340A\002' + _SVISPEC.fields_by_name['gw_ip_prefix']._options = None + _SVISPEC.fields_by_name['gw_ip_prefix']._serialized_options = b'\340A\002' + _CREATESVIREQUEST.fields_by_name['svi']._options = None + _CREATESVIREQUEST.fields_by_name['svi']._serialized_options = b'\340A\002' + _GETSVIREQUEST.fields_by_name['name']._options = None + _GETSVIREQUEST.fields_by_name['name']._serialized_options = b'\340A\002\372A&\n$opi_api.network.evpn_gw.v1alpha1/Svi' + _DELETESVIREQUEST.fields_by_name['name']._options = None + _DELETESVIREQUEST.fields_by_name['name']._serialized_options = b'\340A\002\372A&\n$opi_api.network.evpn_gw.v1alpha1/Svi' + _VRFSERVICE.methods_by_name['CreateVrf']._options = None + _VRFSERVICE.methods_by_name['CreateVrf']._serialized_options = b'\202\323\344\223\002\017\"\010/v1/vrfs:\003vrf\332A\nvrf,vrf_id' + _VRFSERVICE.methods_by_name['ListVrfs']._options = None + _VRFSERVICE.methods_by_name['ListVrfs']._serialized_options = b'\202\323\344\223\002\n\022\010/v1/vrfs' + _VRFSERVICE.methods_by_name['GetVrf']._options = None + _VRFSERVICE.methods_by_name['GetVrf']._serialized_options = b'\202\323\344\223\002\023\022\021/v1/{name=vrfs/*}\332A\004name' + _VRFSERVICE.methods_by_name['DeleteVrf']._options = None + _VRFSERVICE.methods_by_name['DeleteVrf']._serialized_options = b'\202\323\344\223\002\023*\021/v1/{name=vrfs/*}\332A\004name' + _SVISERVICE.methods_by_name['CreateSvi']._options = None + _SVISERVICE.methods_by_name['CreateSvi']._serialized_options = b'\202\323\344\223\002\017\"\010/v1/svis:\003svi\332A\nsvi,svi_id' + _SVISERVICE.methods_by_name['ListSvis']._options = None + _SVISERVICE.methods_by_name['ListSvis']._serialized_options = b'\202\323\344\223\002\n\022\010/v1/svis' + _SVISERVICE.methods_by_name['GetSvi']._options = None + _SVISERVICE.methods_by_name['GetSvi']._serialized_options = b'\202\323\344\223\002\023\022\021/v1/{name=svis/*}\332A\004name' + _SVISERVICE.methods_by_name['DeleteSvi']._options = None + _SVISERVICE.methods_by_name['DeleteSvi']._serialized_options = b'\202\323\344\223\002\023*\021/v1/{name=svis/*}\332A\004name' + _VRFOPERSTATUS._serialized_start=2207 + _VRFOPERSTATUS._serialized_end=2305 + _SVIOPERSTATUS._serialized_start=2307 + _SVIOPERSTATUS._serialized_end=2405 + _VRF._serialized_start=225 + _VRF._serialized_end=422 + _VRFSPEC._serialized_start=425 + _VRFSPEC._serialized_end=602 + _VRFSTATUS._serialized_start=605 + _VRFSTATUS._serialized_end=818 + _CREATEVRFREQUEST._serialized_start=820 + _CREATEVRFREQUEST._serialized_end=911 + _LISTVRFSREQUEST._serialized_start=913 + _LISTVRFSREQUEST._serialized_end=969 + _LISTVRFSRESPONSE._serialized_start=971 + _LISTVRFSRESPONSE._serialized_end=1067 + _GETVRFREQUEST._serialized_start=1069 + _GETVRFREQUEST._serialized_end=1144 + _DELETEVRFREQUEST._serialized_start=1146 + _DELETEVRFREQUEST._serialized_end=1224 + _SVI._serialized_start=1227 + _SVI._serialized_end=1424 + _SVISPEC._serialized_start=1427 + _SVISPEC._serialized_end=1716 + _SVISTATUS._serialized_start=1718 + _SVISTATUS._serialized_end=1799 + _CREATESVIREQUEST._serialized_start=1801 + _CREATESVIREQUEST._serialized_end=1892 + _LISTSVISREQUEST._serialized_start=1894 + _LISTSVISREQUEST._serialized_end=1950 + _LISTSVISRESPONSE._serialized_start=1952 + _LISTSVISRESPONSE._serialized_end=2048 + _GETSVIREQUEST._serialized_start=2050 + _GETSVIREQUEST._serialized_end=2125 + _DELETESVIREQUEST._serialized_start=2127 + _DELETESVIREQUEST._serialized_end=2205 + _VRFSERVICE._serialized_start=2408 + _VRFSERVICE._serialized_end=2951 + _SVISERVICE._serialized_start=2954 + _SVISERVICE._serialized_end=3497 +# @@protoc_insertion_point(module_scope) diff --git a/network/evpn-gw/v1alpha1/gen/python/l3_xpu_infra_mgr_pb2_grpc.py b/network/evpn-gw/v1alpha1/gen/python/l3_xpu_infra_mgr_pb2_grpc.py new file mode 100644 index 00000000..8d6e585a --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/python/l3_xpu_infra_mgr_pb2_grpc.py @@ -0,0 +1,340 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +import l3_xpu_infra_mgr_pb2 as l3__xpu__infra__mgr__pb2 + + +class VrfServiceStub(object): + """Management of Vrf Resources + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateVrf = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.VrfService/CreateVrf', + request_serializer=l3__xpu__infra__mgr__pb2.CreateVrfRequest.SerializeToString, + response_deserializer=l3__xpu__infra__mgr__pb2.Vrf.FromString, + ) + self.ListVrfs = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.VrfService/ListVrfs', + request_serializer=l3__xpu__infra__mgr__pb2.ListVrfsRequest.SerializeToString, + response_deserializer=l3__xpu__infra__mgr__pb2.ListVrfsResponse.FromString, + ) + self.GetVrf = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.VrfService/GetVrf', + request_serializer=l3__xpu__infra__mgr__pb2.GetVrfRequest.SerializeToString, + response_deserializer=l3__xpu__infra__mgr__pb2.Vrf.FromString, + ) + self.DeleteVrf = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.VrfService/DeleteVrf', + request_serializer=l3__xpu__infra__mgr__pb2.DeleteVrfRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + + +class VrfServiceServicer(object): + """Management of Vrf Resources + """ + + def CreateVrf(self, request, context): + """Create a Vrf + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListVrfs(self, request, context): + """List Vrfs + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetVrf(self, request, context): + """Retrieve a Vrf + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteVrf(self, request, context): + """Delete a Vrf + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_VrfServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateVrf': grpc.unary_unary_rpc_method_handler( + servicer.CreateVrf, + request_deserializer=l3__xpu__infra__mgr__pb2.CreateVrfRequest.FromString, + response_serializer=l3__xpu__infra__mgr__pb2.Vrf.SerializeToString, + ), + 'ListVrfs': grpc.unary_unary_rpc_method_handler( + servicer.ListVrfs, + request_deserializer=l3__xpu__infra__mgr__pb2.ListVrfsRequest.FromString, + response_serializer=l3__xpu__infra__mgr__pb2.ListVrfsResponse.SerializeToString, + ), + 'GetVrf': grpc.unary_unary_rpc_method_handler( + servicer.GetVrf, + request_deserializer=l3__xpu__infra__mgr__pb2.GetVrfRequest.FromString, + response_serializer=l3__xpu__infra__mgr__pb2.Vrf.SerializeToString, + ), + 'DeleteVrf': grpc.unary_unary_rpc_method_handler( + servicer.DeleteVrf, + request_deserializer=l3__xpu__infra__mgr__pb2.DeleteVrfRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'opi_api.network.evpn_gw.v1alpha1.VrfService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class VrfService(object): + """Management of Vrf Resources + """ + + @staticmethod + def CreateVrf(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.VrfService/CreateVrf', + l3__xpu__infra__mgr__pb2.CreateVrfRequest.SerializeToString, + l3__xpu__infra__mgr__pb2.Vrf.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListVrfs(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.VrfService/ListVrfs', + l3__xpu__infra__mgr__pb2.ListVrfsRequest.SerializeToString, + l3__xpu__infra__mgr__pb2.ListVrfsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetVrf(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.VrfService/GetVrf', + l3__xpu__infra__mgr__pb2.GetVrfRequest.SerializeToString, + l3__xpu__infra__mgr__pb2.Vrf.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteVrf(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.VrfService/DeleteVrf', + l3__xpu__infra__mgr__pb2.DeleteVrfRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class SviServiceStub(object): + """Management of switch virtual interfaces (SVIs) binding LogicalBridges to VRFs. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateSvi = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.SviService/CreateSvi', + request_serializer=l3__xpu__infra__mgr__pb2.CreateSviRequest.SerializeToString, + response_deserializer=l3__xpu__infra__mgr__pb2.Svi.FromString, + ) + self.ListSvis = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.SviService/ListSvis', + request_serializer=l3__xpu__infra__mgr__pb2.ListSvisRequest.SerializeToString, + response_deserializer=l3__xpu__infra__mgr__pb2.ListSvisResponse.FromString, + ) + self.GetSvi = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.SviService/GetSvi', + request_serializer=l3__xpu__infra__mgr__pb2.GetSviRequest.SerializeToString, + response_deserializer=l3__xpu__infra__mgr__pb2.Svi.FromString, + ) + self.DeleteSvi = channel.unary_unary( + '/opi_api.network.evpn_gw.v1alpha1.SviService/DeleteSvi', + request_serializer=l3__xpu__infra__mgr__pb2.DeleteSviRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + + +class SviServiceServicer(object): + """Management of switch virtual interfaces (SVIs) binding LogicalBridges to VRFs. + """ + + def CreateSvi(self, request, context): + """Create a Svi + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListSvis(self, request, context): + """List Svis + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSvi(self, request, context): + """Retrieve a Svi + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteSvi(self, request, context): + """Delete a Svi + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_SviServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateSvi': grpc.unary_unary_rpc_method_handler( + servicer.CreateSvi, + request_deserializer=l3__xpu__infra__mgr__pb2.CreateSviRequest.FromString, + response_serializer=l3__xpu__infra__mgr__pb2.Svi.SerializeToString, + ), + 'ListSvis': grpc.unary_unary_rpc_method_handler( + servicer.ListSvis, + request_deserializer=l3__xpu__infra__mgr__pb2.ListSvisRequest.FromString, + response_serializer=l3__xpu__infra__mgr__pb2.ListSvisResponse.SerializeToString, + ), + 'GetSvi': grpc.unary_unary_rpc_method_handler( + servicer.GetSvi, + request_deserializer=l3__xpu__infra__mgr__pb2.GetSviRequest.FromString, + response_serializer=l3__xpu__infra__mgr__pb2.Svi.SerializeToString, + ), + 'DeleteSvi': grpc.unary_unary_rpc_method_handler( + servicer.DeleteSvi, + request_deserializer=l3__xpu__infra__mgr__pb2.DeleteSviRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'opi_api.network.evpn_gw.v1alpha1.SviService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class SviService(object): + """Management of switch virtual interfaces (SVIs) binding LogicalBridges to VRFs. + """ + + @staticmethod + def CreateSvi(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.SviService/CreateSvi', + l3__xpu__infra__mgr__pb2.CreateSviRequest.SerializeToString, + l3__xpu__infra__mgr__pb2.Svi.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListSvis(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.SviService/ListSvis', + l3__xpu__infra__mgr__pb2.ListSvisRequest.SerializeToString, + l3__xpu__infra__mgr__pb2.ListSvisResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSvi(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.SviService/GetSvi', + l3__xpu__infra__mgr__pb2.GetSviRequest.SerializeToString, + l3__xpu__infra__mgr__pb2.Svi.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteSvi(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opi_api.network.evpn_gw.v1alpha1.SviService/DeleteSvi', + l3__xpu__infra__mgr__pb2.DeleteSviRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/network/evpn-gw/v1alpha1/l2_xpu_infra_mgr.proto b/network/evpn-gw/v1alpha1/l2_xpu_infra_mgr.proto new file mode 100644 index 00000000..e5e072be --- /dev/null +++ b/network/evpn-gw/v1alpha1/l2_xpu_infra_mgr.proto @@ -0,0 +1,292 @@ +// 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". --) + +syntax = "proto3"; + +package opi_api.network.evpn_gw.v1alpha1; + +option go_package = "github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/go"; +option java_package = "opi_api.network.evpn_gw.v1alpha1"; +option java_multiple_files = true; +option java_outer_classname = "L2XpuInfraMgrProto"; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/protobuf/empty.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +// Management of LogicalBridge Resources +service LogicalBridgeService { + // Create a Logical Bridge + rpc CreateLogicalBridge(CreateLogicalBridgeRequest) returns (LogicalBridge){ + option (google.api.http) = { + post: "/v1/logicalBridges" + body: "logical_bridge" + }; + option (google.api.method_signature) = "logical_bridge,logical_bridge_id"; + } + // List Logical Bridges + rpc ListLogicalBridges(ListLogicalBridgesRequest) returns (ListLogicalBridgesResponse){ + option (google.api.http) = { + get: "/v1/logicalBridges" + }; + } + // Retrieve a Logical Bridge + rpc GetLogicalBridge(GetLogicalBridgeRequest) returns (LogicalBridge){ + option (google.api.http) = { + get: "/v1/{name=logicalBridges/*}" + }; + option (google.api.method_signature) = "name"; + } + // Delete a Logical Bridge + rpc DeleteLogicalBridge(DeleteLogicalBridgeRequest) returns (google.protobuf.Empty){ + option (google.api.http) = { + delete: "/v1/{name=logicalBridges/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Management of BridgePort resources +service BridgePortService { + // Create a Bridge Port + rpc CreateBridgePort(CreateBridgePortRequest) returns (BridgePort){ + option (google.api.http) = { + post: "/v1/bridgePorts" + body: "bridge_port" + }; + option (google.api.method_signature) = "bridge_port,bridge_port_id"; + } + // List Bridge Ports + rpc ListBridgePorts(ListBridgePortsRequest) returns (ListBridgePortsResponse){ + option (google.api.http) = { + get: "/v1/bridgePorts" + }; + } + // Retrieve a Bridge Port + rpc GetBridgePort(GetBridgePortRequest) returns (BridgePort){ + option (google.api.http) = { + get: "/v1/{name=bridgePorts/*}" + }; + option (google.api.method_signature) = "name"; + } + // Delete a Bridge Port + rpc DeleteBridgePort(DeleteBridgePortRequest) returns (google.protobuf.Empty){ + option (google.api.http) = { + delete: "/v1/{name=bridgePorts/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Logical Bridge network configuration and status +message LogicalBridge { + option (google.api.resource) = { + type: "opi_api.network.evpn_gw.v1alpha1/LogicalBridge" + pattern: "logicalBridges/{logical_bridge}" + }; + // 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} + string name = 1; + + // Logical Bridge network configuration + LogicalBridgeSpec spec = 2 [(google.api.field_behavior) = REQUIRED]; + // Logical Bridge network status + LogicalBridgeStatus status = 3; +} + +// Logical Bridge network configuration +message LogicalBridgeSpec { + // the VLAN of the L2 domain + // (-- api-linter: core::0141::forbidden-types=disabled + // aip.dev/not-precedent: vlan cannot be negative number. --) + uint32 vlan_id = 1 [(google.api.field_behavior) = REQUIRED]; + //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. --) + uint32 vni = 2; +} + +// operational status of a Logical Bridge +message LogicalBridgeStatus { + // operational state of a Logical Bridge + LBOperStatus oper_status = 1; +} + +// CreateLogicalBridgeRequest structure +message CreateLogicalBridgeRequest { + // 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. + string logical_bridge_id = 1; + + // The logical bridge to create + LogicalBridge logical_bridge = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// ListLogicalBridgesRequest structure +message ListLogicalBridgesRequest { + // page size of list request + int32 page_size = 1; + // page token of list request + string page_token = 2; +} + +// ListLogicalBridgesResponse structure +message ListLogicalBridgesResponse { + // List of all the logical bridges + repeated LogicalBridge logical_bridges = 1; + // Next page token of list response + string next_page_token = 2; +} + +// GetLogicalBridgeRequest structure +message GetLogicalBridgeRequest { + // The name of the logical bridge to retrieve + // Format: logicalBridges/{logical_bridge} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference).type = "opi_api.network.evpn_gw.v1alpha1/LogicalBridge" + ]; +} + +// DeleteLogicalBridgeRequest structure +message DeleteLogicalBridgeRequest { + // The name of the logical bridge to retrieve + // Format: logicalBridges/{logical_bridge} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference).type = "opi_api.network.evpn_gw.v1alpha1/LogicalBridge" + ]; +} + +// Bridge Port network configuration and status +message BridgePort { + option (google.api.resource) = { + type: "opi_api.network.evpn_gw.v1alpha1/bridgePort" + pattern: "bridgePorts/{bridge_port}" + }; + // 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} + string name = 1; + + // Bridge Port network configuration + BridgePortSpec spec = 2; + // Bridge Port network status + BridgePortStatus status = 3; +} + +// Bridge Port network configuration +message BridgePortSpec { + // Bridge Port's MAC address. + bytes mac_address = 1 [(google.api.field_behavior) = REQUIRED]; + // Type of Bridge Port + BridgePortType ptype = 2 [(google.api.field_behavior) = REQUIRED]; + // List of Logical Bridges this Bridge Port will attach. + // This will define the VLANs that will be enabled in this Bridge Port + repeated string logical_bridges = 3; +} + +// operational status of a Bridge Port +message BridgePortStatus { + // operational status of a Bridge Port + BPOperStatus oper_status = 1; +} + +// CreateBridgePortRequest structure +message CreateBridgePortRequest { + // 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. + string bridge_port_id = 1; + // The bridge port to create + BridgePort bridge_port = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// ListBridgePortsRequest structure +message ListBridgePortsRequest { + // page size of list request + int32 page_size = 1; + // page token of list request + string page_token = 2; +} + +// ListBridgePortsResponse structure +message ListBridgePortsResponse { + // List of all the bridge ports + repeated BridgePort bridge_ports = 1; + // Next page token of list response + string next_page_token = 2; +} + +// GetBridgePortRequest structure +message GetBridgePortRequest { + // The name of the bridge port to retrieve + // Format: bridgePorts/{bridge_port} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference).type = "opi_api.network.evpn_gw.v1alpha1/BridgePort" + ]; +} + +// DeleteBridgePortRequest structure +message DeleteBridgePortRequest { + // The name of the bridge port to retrieve + // Format: bridgePorts/{bridge_port} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference).type = "opi_api.network.evpn_gw.v1alpha1/BridgePort" + ]; +} + +// LBOperStatus status reflects the operational status of a Logical Bridge +enum LBOperStatus { + // unknown + LB_OPER_STATUS_UNSPECIFIED = 0; + // Logical Bridge is up + LB_OPER_STATUS_UP = 1; + // Logical Bridge is down + LB_OPER_STATUS_DOWN = 2; +} + +// BPOperStatus status reflects the operational status of a Bridge Port +enum BPOperStatus { + // unknown + BP_OPER_STATUS_UNSPECIFIED = 0; + // Bridge Port is up + BP_OPER_STATUS_UP = 1; + // Bridge Port is down + BP_OPER_STATUS_DOWN = 2; +} + +// BridgePortType reflects the different types of a Bridge Port +enum BridgePortType { + // "unknown" bridge port type + UNKNOWN = 0; + // "access" bridge port type + ACCESS = 1; + // "trunk" bridge port type + TRUNK = 2; +} \ No newline at end of file diff --git a/network/evpn-gw/v1alpha1/l3_xpu_infra_mgr.proto b/network/evpn-gw/v1alpha1/l3_xpu_infra_mgr.proto new file mode 100644 index 00000000..dd0bdb75 --- /dev/null +++ b/network/evpn-gw/v1alpha1/l3_xpu_infra_mgr.proto @@ -0,0 +1,319 @@ +// 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". --) + +syntax = "proto3"; + +package opi_api.network.evpn_gw.v1alpha1; + +option go_package = "github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/go"; +option java_package = "opi_api.network.evpn_gw.v1alpha1"; +option java_multiple_files = true; +option java_outer_classname = "L3XpuInfraMgrProto"; + +import "networktypes.proto"; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/protobuf/empty.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +// Management of Vrf Resources +service VrfService { + // Create a Vrf + rpc CreateVrf(CreateVrfRequest) returns (Vrf){ + option (google.api.http) = { + post: "/v1/vrfs" + body: "vrf" + }; + option (google.api.method_signature) = "vrf,vrf_id"; + } + // List Vrfs + rpc ListVrfs(ListVrfsRequest) returns (ListVrfsResponse){ + option (google.api.http) = { + get: "/v1/vrfs" + }; + } + // Retrieve a Vrf + rpc GetVrf(GetVrfRequest) returns (Vrf){ + option (google.api.http) = { + get: "/v1/{name=vrfs/*}" + }; + option (google.api.method_signature) = "name"; + } + // Delete a Vrf + rpc DeleteVrf(DeleteVrfRequest) returns (google.protobuf.Empty){ + option (google.api.http) = { + delete: "/v1/{name=vrfs/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Management of switch virtual interfaces (SVIs) binding LogicalBridges to VRFs. +service SviService { + // Create a Svi + rpc CreateSvi(CreateSviRequest) returns (Svi){ + option (google.api.http) = { + post: "/v1/svis" + body: "svi" + }; + option (google.api.method_signature) = "svi,svi_id"; + } + // List Svis + rpc ListSvis(ListSvisRequest) returns (ListSvisResponse){ + option (google.api.http) = { + get: "/v1/svis" + }; + } + // Retrieve a Svi + rpc GetSvi(GetSviRequest) returns (Svi){ + option (google.api.http) = { + get: "/v1/{name=svis/*}" + }; + option (google.api.method_signature) = "name"; + } + // Delete a Svi + rpc DeleteSvi(DeleteSviRequest) returns (google.protobuf.Empty){ + option (google.api.http) = { + delete: "/v1/{name=svis/*}" + }; + option (google.api.method_signature) = "name"; + } +} + + +// Vrf level network configuration +message Vrf { + option (google.api.resource) = { + type: "opi_api.network.evpn_gw.v1alpha1/Vrf" + pattern: "vrfs/{vrf}" + }; + // 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} + string name = 1; + + // Vrf's network configuration + VrfSpec spec = 2 [(google.api.field_behavior) = REQUIRED]; + // Vrf's network status + VrfStatus status = 3; +} + +// Vrf network configuration +message VrfSpec { + // 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. --) + uint32 vni = 1; + // IPv4 or IPv6 loopback address prefix. Also serves as basis for RD in FRR + network.opinetcommon.v1alpha1.IPPrefix loopback_ip_prefix = 2 [(google.api.field_behavior) = REQUIRED]; + // IPv4 or IPv6 IP address prefix for the VXLAN TEP + network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3; +} + +// operational status of a Vrf +message VrfStatus { + // Routing table number + // (-- api-linter: core::0141::forbidden-types=disabled + // aip.dev/not-precedent: routing_table cannot be negative number. --) + uint32 routing_table = 1; + // Local AS configured for VRF + // (-- api-linter: core::0141::forbidden-types=disabled + // aip.dev/not-precedent: local_as cannot be negative number. --) + uint32 local_as = 2; + // Route distinguisher + string rd = 3; + // Router MAC address of the Vrf + bytes rmac = 4; + // List of import RTs + repeated string import_rts = 5; + // List of export RTs + repeated string export_rts = 6; + // List of connected Logical Bridges to Vrf + // This defines the VLANs that are connected to the Vrf + repeated string logical_bridges = 7; + // operational status of a Vrf + VRFOperStatus oper_status = 8; +} + +// CreateVrfRequest structure +message CreateVrfRequest { + // 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. + string vrf_id = 1; + + // The vrf to create + Vrf vrf = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// ListVrfsRequest structure +message ListVrfsRequest { + // page size of list request + int32 page_size = 1; + // page token of list request + string page_token = 2; +} + +// ListVrfsResponse structure +message ListVrfsResponse { + // List of all the vrfs + repeated Vrf vrfs = 1; + // Next page token of list response + string next_page_token = 2; +} + +// GetVrfRequest structure +message GetVrfRequest { + // The name of the vrf to retrieve + // Format: vrfs/{vrf} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference).type = "opi_api.network.evpn_gw.v1alpha1/Vrf" + ]; +} + +// DeleteVrfRequest structure +message DeleteVrfRequest { + // The name of the vrf to delete + // Format: vrfs/{vrf} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference).type = "opi_api.network.evpn_gw.v1alpha1/Vrf" + ]; +} + +// Svi network configuration +message Svi { + option (google.api.resource) = { + type: "opi_api.network.evpn_gw.v1alpha1/Svi" + pattern: "svis/{svi}" + }; + // 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} + string name = 1; + + // Svi's network configuration + SviSpec spec = 2 [(google.api.field_behavior) = REQUIRED]; + // Svi's network status + SviStatus status = 3; +} + +// Svi's network configuration +message SviSpec { + //Vrf name + // Format is `vrfs/{vrf}` + string vrf = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = {type: "opi_api.network.evpn_gw.v1alpha1/Vrf"} + ]; + // Logical Bridge name + // Format is `logicalBridges/{logical_bridge}` + string logical_bridge = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = {type: "opi_api.network.evpn_gw.v1alpha1/LogicalBridge"} + ]; + // Svi's MAC address. + bytes mac_address = 3 [(google.api.field_behavior) = REQUIRED]; + // The GW IP addresses assigned to the SVI + repeated network.opinetcommon.v1alpha1.IPPrefix gw_ip_prefix = 4 [(google.api.field_behavior) = REQUIRED]; + // Set to true to enable BGP peering with Vrf on Svi + bool enable_bgp = 5; + // 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. --) + uint32 remote_as = 6; +} + +// operational status of a Svi +message SviStatus { + // operational status of a Svi + SVIOperStatus oper_status = 1; +} + +// CreateSviRequest structure +message CreateSviRequest { + // 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. + string svi_id = 1; + // The Svi to create + Svi svi = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// ListSvisRequest structure +message ListSvisRequest { + // page size of list request + int32 page_size = 1; + // page token of list request + string page_token = 2; +} + +// ListSvisResponse structure +message ListSvisResponse { + // List of all the svis + repeated Svi svis = 1; + // Next page token of list response + string next_page_token = 2; +} + +// GetSviRequest structure +message GetSviRequest { + // The name of the svi to retrieve + // Format: svis/{svi} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference).type = "opi_api.network.evpn_gw.v1alpha1/Svi" + ]; +} + +// DeleteSviRequest structure +message DeleteSviRequest { + // The name of the svi to delete + // Format: svis/{svi} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference).type = "opi_api.network.evpn_gw.v1alpha1/Svi" + ]; +} + +// VRFOperStatus status reflects the operational status of a Vrf +enum VRFOperStatus { + // unknown + VRF_OPER_STATUS_UNSPECIFIED = 0; + // Vrf is up + VRF_OPER_STATUS_UP = 1; + // Vrf is down + VRF_OPER_STATUS_DOWN = 2; +} + +// SVIOperStatus status reflects the operational status of a Svi +enum SVIOperStatus { + // unknown + SVI_OPER_STATUS_UNSPECIFIED = 0; + // Svi is up + SVI_OPER_STATUS_UP = 1; + // Svi is down + SVI_OPER_STATUS_DOWN = 2; +} \ No newline at end of file