From 3ed46a1d32551800df7c822af2485afdf2ef7dd8 Mon Sep 17 00:00:00 2001 From: Mark Sanders Date: Tue, 5 Dec 2023 22:27:12 +0000 Subject: [PATCH] refactor(evpn-gw): updates to support buf lint and generation Signed-off-by: Mark Sanders --- buf.work.yaml | 2 +- network/evpn-gw/Makefile | 24 +- network/evpn-gw/buf.lock | 13 +- network/evpn-gw/buf.yaml | 8 + .../{v1alpha1 => }/l2_xpu_infra_mgr.proto | 6 +- .../{v1alpha1 => }/l3_xpu_infra_mgr.proto | 0 network/evpn-gw/v1alpha1/autogen.md | 6 +- .../gen/cpp/l2_xpu_infra_mgr.grpc.pb.cc | 489 -- .../gen/cpp/l2_xpu_infra_mgr.grpc.pb.h | 1754 ----- .../v1alpha1/gen/cpp/l2_xpu_infra_mgr.pb.cc | 5079 -------------- .../v1alpha1/gen/cpp/l2_xpu_infra_mgr.pb.h | 5461 --------------- .../gen/cpp/l3_xpu_infra_mgr.grpc.pb.cc | 489 -- .../gen/cpp/l3_xpu_infra_mgr.grpc.pb.h | 1754 ----- .../v1alpha1/gen/cpp/l3_xpu_infra_mgr.pb.cc | 5489 --------------- .../v1alpha1/gen/cpp/l3_xpu_infra_mgr.pb.h | 6120 ----------------- .../v1alpha1/gen/go/l2_xpu_infra_mgr.pb.go | 276 +- .../v1alpha1/gen/go/l2_xpu_infra_mgr.pb.gw.go | 1270 ++++ .../gen/go/l2_xpu_infra_mgr_grpc.pb.go | 84 +- .../v1alpha1/gen/go/l3_xpu_infra_mgr.pb.go | 60 +- .../v1alpha1/gen/go/l3_xpu_infra_mgr.pb.gw.go | 1270 ++++ .../gen/go/l3_xpu_infra_mgr_grpc.pb.go | 84 +- .../evpn_gw/v1alpha1/BPOperStatus.java | 150 - .../network/evpn_gw/v1alpha1/BridgePort.java | 1095 --- .../evpn_gw/v1alpha1/BridgePortOrBuilder.java | 91 - .../v1alpha1/BridgePortServiceGrpc.java | 647 -- .../evpn_gw/v1alpha1/BridgePortSpec.java | 897 --- .../v1alpha1/BridgePortSpecOrBuilder.java | 83 - .../evpn_gw/v1alpha1/BridgePortStatus.java | 553 -- .../v1alpha1/BridgePortStatusOrBuilder.java | 28 - .../evpn_gw/v1alpha1/BridgePortType.java | 150 - .../v1alpha1/CreateBridgePortRequest.java | 859 --- .../CreateBridgePortRequestOrBuilder.java | 64 - .../v1alpha1/CreateLogicalBridgeRequest.java | 859 --- .../CreateLogicalBridgeRequestOrBuilder.java | 64 - .../evpn_gw/v1alpha1/CreateSviRequest.java | 859 --- .../v1alpha1/CreateSviRequestOrBuilder.java | 64 - .../evpn_gw/v1alpha1/CreateVrfRequest.java | 859 --- .../v1alpha1/CreateVrfRequestOrBuilder.java | 64 - .../v1alpha1/DeleteBridgePortRequest.java | 687 -- .../DeleteBridgePortRequestOrBuilder.java | 42 - .../v1alpha1/DeleteLogicalBridgeRequest.java | 687 -- .../DeleteLogicalBridgeRequestOrBuilder.java | 42 - .../evpn_gw/v1alpha1/DeleteSviRequest.java | 687 -- .../v1alpha1/DeleteSviRequestOrBuilder.java | 42 - .../evpn_gw/v1alpha1/DeleteVrfRequest.java | 687 -- .../v1alpha1/DeleteVrfRequestOrBuilder.java | 42 - .../v1alpha1/GetBridgePortRequest.java | 602 -- .../GetBridgePortRequestOrBuilder.java | 31 - .../v1alpha1/GetLogicalBridgeRequest.java | 602 -- .../GetLogicalBridgeRequestOrBuilder.java | 31 - .../evpn_gw/v1alpha1/GetSviRequest.java | 602 -- .../v1alpha1/GetSviRequestOrBuilder.java | 31 - .../evpn_gw/v1alpha1/GetVrfRequest.java | 602 -- .../v1alpha1/GetVrfRequestOrBuilder.java | 31 - .../evpn_gw/v1alpha1/L2XpuInfraMgrProto.java | 382 - .../evpn_gw/v1alpha1/L3XpuInfraMgrProto.java | 368 - .../evpn_gw/v1alpha1/LBOperStatus.java | 150 - .../v1alpha1/ListBridgePortsRequest.java | 675 -- .../ListBridgePortsRequestOrBuilder.java | 39 - .../v1alpha1/ListBridgePortsResponse.java | 1038 --- .../ListBridgePortsResponseOrBuilder.java | 73 - .../v1alpha1/ListLogicalBridgesRequest.java | 675 -- .../ListLogicalBridgesRequestOrBuilder.java | 39 - .../v1alpha1/ListLogicalBridgesResponse.java | 1038 --- .../ListLogicalBridgesResponseOrBuilder.java | 73 - .../evpn_gw/v1alpha1/ListSvisRequest.java | 675 -- .../v1alpha1/ListSvisRequestOrBuilder.java | 39 - .../evpn_gw/v1alpha1/ListSvisResponse.java | 1038 --- .../v1alpha1/ListSvisResponseOrBuilder.java | 73 - .../evpn_gw/v1alpha1/ListVrfsRequest.java | 675 -- .../v1alpha1/ListVrfsRequestOrBuilder.java | 39 - .../evpn_gw/v1alpha1/ListVrfsResponse.java | 1038 --- .../v1alpha1/ListVrfsResponseOrBuilder.java | 73 - .../evpn_gw/v1alpha1/LogicalBridge.java | 1095 --- .../v1alpha1/LogicalBridgeOrBuilder.java | 91 - .../v1alpha1/LogicalBridgeServiceGrpc.java | 647 -- .../evpn_gw/v1alpha1/LogicalBridgeSpec.java | 883 --- .../v1alpha1/LogicalBridgeSpecOrBuilder.java | 71 - .../evpn_gw/v1alpha1/LogicalBridgeStatus.java | 553 -- .../LogicalBridgeStatusOrBuilder.java | 28 - .../evpn_gw/v1alpha1/SVIOperStatus.java | 150 - .../opi_api/network/evpn_gw/v1alpha1/Svi.java | 1095 --- .../evpn_gw/v1alpha1/SviOrBuilder.java | 91 - .../evpn_gw/v1alpha1/SviServiceGrpc.java | 647 -- .../network/evpn_gw/v1alpha1/SviSpec.java | 1471 ---- .../evpn_gw/v1alpha1/SviSpecOrBuilder.java | 129 - .../network/evpn_gw/v1alpha1/SviStatus.java | 553 -- .../evpn_gw/v1alpha1/SviStatusOrBuilder.java | 28 - .../v1alpha1/UpdateBridgePortRequest.java | 986 --- .../UpdateBridgePortRequestOrBuilder.java | 74 - .../v1alpha1/UpdateLogicalBridgeRequest.java | 986 --- .../UpdateLogicalBridgeRequestOrBuilder.java | 74 - .../evpn_gw/v1alpha1/UpdateSviRequest.java | 986 --- .../v1alpha1/UpdateSviRequestOrBuilder.java | 74 - .../evpn_gw/v1alpha1/UpdateVrfRequest.java | 986 --- .../v1alpha1/UpdateVrfRequestOrBuilder.java | 74 - .../evpn_gw/v1alpha1/VRFOperStatus.java | 150 - .../opi_api/network/evpn_gw/v1alpha1/Vrf.java | 1095 --- .../evpn_gw/v1alpha1/VrfOrBuilder.java | 91 - .../evpn_gw/v1alpha1/VrfServiceGrpc.java | 647 -- .../network/evpn_gw/v1alpha1/VrfSpec.java | 1031 --- .../evpn_gw/v1alpha1/VrfSpecOrBuilder.java | 86 - .../network/evpn_gw/v1alpha1/VrfStatus.java | 1727 ----- .../evpn_gw/v1alpha1/VrfStatusOrBuilder.java | 209 - .../gen/python/l2_xpu_infra_mgr_pb2.py | 291 +- .../gen/python/l3_xpu_infra_mgr_pb2.py | 327 +- 106 files changed, 3172 insertions(+), 65026 deletions(-) rename network/evpn-gw/{v1alpha1 => }/l2_xpu_infra_mgr.proto (99%) rename network/evpn-gw/{v1alpha1 => }/l3_xpu_infra_mgr.proto (100%) delete mode 100644 network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.grpc.pb.cc delete mode 100644 network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.grpc.pb.h delete mode 100644 network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.pb.cc delete mode 100644 network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.pb.h delete mode 100644 network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.grpc.pb.cc delete mode 100644 network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.grpc.pb.h delete mode 100644 network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.pb.cc delete mode 100644 network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.pb.h create mode 100644 network/evpn-gw/v1alpha1/gen/go/l2_xpu_infra_mgr.pb.gw.go create mode 100644 network/evpn-gw/v1alpha1/gen/go/l3_xpu_infra_mgr.pb.gw.go delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BPOperStatus.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePort.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortServiceGrpc.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortSpec.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortSpecOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortStatus.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortStatusOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortType.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateBridgePortRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateBridgePortRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateLogicalBridgeRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateLogicalBridgeRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateSviRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateSviRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateVrfRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateVrfRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteBridgePortRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteBridgePortRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteLogicalBridgeRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteLogicalBridgeRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteSviRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteSviRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteVrfRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteVrfRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetBridgePortRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetBridgePortRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetLogicalBridgeRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetLogicalBridgeRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetSviRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetSviRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetVrfRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetVrfRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/L2XpuInfraMgrProto.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/L3XpuInfraMgrProto.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LBOperStatus.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsResponse.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsResponseOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesResponse.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesResponseOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisResponse.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisResponseOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsResponse.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsResponseOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridge.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeServiceGrpc.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeSpec.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeSpecOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeStatus.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeStatusOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SVIOperStatus.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/Svi.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviServiceGrpc.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviSpec.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviSpecOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviStatus.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviStatusOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateBridgePortRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateBridgePortRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateLogicalBridgeRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateLogicalBridgeRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateSviRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateSviRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateVrfRequest.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateVrfRequestOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VRFOperStatus.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/Vrf.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfServiceGrpc.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfSpec.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfSpecOrBuilder.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfStatus.java delete mode 100644 network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfStatusOrBuilder.java diff --git a/buf.work.yaml b/buf.work.yaml index 098f55f6..756f3603 100644 --- a/buf.work.yaml +++ b/buf.work.yaml @@ -6,6 +6,6 @@ directories: # - storage - network/opinetcommon # - network/cloud -# - network/evpn-gw +- network/evpn-gw # - network/k8s # - network/telco diff --git a/network/evpn-gw/Makefile b/network/evpn-gw/Makefile index 50ec6729..be7c7e34 100644 --- a/network/evpn-gw/Makefile +++ b/network/evpn-gw/Makefile @@ -3,22 +3,22 @@ # Copyright (c) 2022 Dell Inc, or its subsidiaries. # Copyright (C) 2023 Nordix Foundation. -all: +all: buflint doc + +doc: rm -rf ./google - rm -rf ./v1alpha1/{autogen.md,gen,google} - mkdir -p ./v1alpha1/gen/{go,cpp,python,java} + rm -rf ./v1alpha1/{autogen.md} + mkdir -p ./v1alpha1 # 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 - docker run --user=$$(id -u):$$(id -g) --rm -v "${PWD}":/defs -v "${PWD}/../../common/v1":/common -v "${PWD}/../opinetcommon":/opinetcommon -v ${PWD}/google/api:/opt/include/google/api namely/protoc-all:1.51_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":/opinetcommon -v ${PWD}/google/api:/opt/include/google/api namely/protoc-all:1.51_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":/opinetcommon -v ${PWD}/google/api:/opt/include/google/api namely/protoc-all:1.51_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":/opinetcommon -v ${PWD}/google/api:/opt/include/google/api namely/protoc-all:1.51_2 -i /common -i /opinetcommon --lint -d v1alpha1 -l java -o ./v1alpha1/gen/java/ --go-source-relative + docker run --user=$$(id -u):$$(id -g) --rm --entrypoint=sh -v "${PWD}/../../common/v1":/common -v "${PWD}/../opinetcommon":/opinetcommon -v "${PWD}"/v1alpha1/:/out -w /out -v "${PWD}":/protos pseudomuto/protoc-gen-doc:1.5.1 -c "protoc -I /common -I /opinetcommon -I /protos --doc_out=/out --doc_opt=markdown,autogen.md /protos/*.proto /common/*.proto" + + rm -rf "${PWD}"/google - mv google "${PWD}"/v1alpha1/ +buflint: + docker run --rm -v "${PWD}/../../common/v1":/common -v "${PWD}/../opinetcommon":/opinnetcommon -v "${PWD}":/out -w /out bufbuild/buf lint - docker run --user=$$(id -u):$$(id -g) --rm --entrypoint=sh -v "${PWD}/../../common/v1":/common -v "${PWD}/../opinetcommon":/opinetcommon -v "${PWD}"/v1alpha1/:/out -w /out -v "${PWD}"/v1alpha1:/protos pseudomuto/protoc-gen-doc:1.5.1 -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":/opinetcommon -v "${PWD}"/v1alpha1/:/out -w /out ghcr.io/docker-multiarch/google-api-linter:1.59.2 -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":/opinetcommon -v "${PWD}"/v1alpha1/:/out -w /out ghcr.io/docker-multiarch/google-api-linter:1.59.2 -c "api-linter -I /common -I /opinetcommon /out/[!oc]*.proto --output-format github --set-exit-status" - rm -rf "${PWD}"/v1alpha1/google +bufgen: + docker run --rm -v "${PWD}/../../common/v1":/common -v "${PWD}/../opinetcommon":/opinnetcommon -v "${PWD}/../..":/base -v "${PWD}":/out -w /out msandersdell/bufbuild-go-gen:1.1.0 generate --template /base/buf.gen.yaml -o v1alpha1 diff --git a/network/evpn-gw/buf.lock b/network/evpn-gw/buf.lock index 2c3ca1c8..5815ae8b 100644 --- a/network/evpn-gw/buf.lock +++ b/network/evpn-gw/buf.lock @@ -4,10 +4,15 @@ deps: - remote: buf.build owner: googleapis repository: googleapis - commit: 28151c0d0a1641bf938a7672c500e01d - digest: shake256:49215edf8ef57f7863004539deff8834cfb2195113f0b890dd1f67815d9353e28e668019165b9d872395871eeafcbab3ccfdb2b5f11734d3cca95be9e8d139de + commit: b30c5775bfb3485d9da2e87b26590ac9 + digest: shake256:9d0caaf056949a0e1c883b9849d8a2fa66e22f18a2a48f867d1a8c700aa22abee50ad3ef0d8171637457cadc43c584998bdf3adac55da0f9e4614c72686b057d - remote: buf.build owner: grpc-ecosystem repository: grpc-gateway - commit: f460f71081c14a80b66cc72526e0b322 - digest: shake256:122def85e91fc3ef4ab351680060b8f70e9d09a7ae6d1412aeb2bddfeee5c4d3fc8819da33fef56192cec0a817ac0c3e6d49bb2acf02eb5c9e9131739a60ddfc + commit: 3f42134f4c564983838425bc43c7a65f + digest: shake256:3d11d4c0fe5e05fda0131afefbce233940e27f0c31c5d4e385686aea58ccd30f72053f61af432fa83f1fc11cda57f5f18ca3da26a29064f73c5a0d076bba8d92 + - remote: buf.build + owner: opiproject + repository: opinetcommon + commit: 9779e55c83de44b3a14925b8195cf7e7 + digest: shake256:20d43132a22c5d3341919f5167669f137b79b23e807a5c34a3168216a28e07a114f3f7a94b73925f824befd5862ac354d5ad45a3136761ca429f041286657524 diff --git a/network/evpn-gw/buf.yaml b/network/evpn-gw/buf.yaml index c226614e..abb0e69d 100644 --- a/network/evpn-gw/buf.yaml +++ b/network/evpn-gw/buf.yaml @@ -3,3 +3,11 @@ name: buf.build/opiproject/evpn-gw deps: - buf.build/googleapis/googleapis - buf.build/grpc-ecosystem/grpc-gateway +- buf.build/opiproject/opinetcommon +lint: + except: + - PACKAGE_DIRECTORY_MATCH + # Don't check standard name as that causes google aip issues + - RPC_RESPONSE_STANDARD_NAME + # Allow same name used in request/response type for multiple RPCs + - RPC_REQUEST_RESPONSE_UNIQUE diff --git a/network/evpn-gw/v1alpha1/l2_xpu_infra_mgr.proto b/network/evpn-gw/l2_xpu_infra_mgr.proto similarity index 99% rename from network/evpn-gw/v1alpha1/l2_xpu_infra_mgr.proto rename to network/evpn-gw/l2_xpu_infra_mgr.proto index 45951e79..d18f1d16 100644 --- a/network/evpn-gw/v1alpha1/l2_xpu_infra_mgr.proto +++ b/network/evpn-gw/l2_xpu_infra_mgr.proto @@ -337,9 +337,9 @@ enum BPOperStatus { // BridgePortType reflects the different types of a Bridge Port enum BridgePortType { // "unknown" bridge port type - UNKNOWN = 0; + BRIDGE_PORT_TYPE_UNSPECIFIED = 0; // "access" bridge port type - ACCESS = 1; + BRIDGE_PORT_TYPE_ACCESS = 1; // "trunk" bridge port type - TRUNK = 2; + BRIDGE_PORT_TYPE_TRUNK = 2; } diff --git a/network/evpn-gw/v1alpha1/l3_xpu_infra_mgr.proto b/network/evpn-gw/l3_xpu_infra_mgr.proto similarity index 100% rename from network/evpn-gw/v1alpha1/l3_xpu_infra_mgr.proto rename to network/evpn-gw/l3_xpu_infra_mgr.proto diff --git a/network/evpn-gw/v1alpha1/autogen.md b/network/evpn-gw/v1alpha1/autogen.md index 988b9097..e04f868d 100644 --- a/network/evpn-gw/v1alpha1/autogen.md +++ b/network/evpn-gw/v1alpha1/autogen.md @@ -386,9 +386,9 @@ 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 | +| BRIDGE_PORT_TYPE_UNSPECIFIED | 0 | "unknown" bridge port type | +| BRIDGE_PORT_TYPE_ACCESS | 1 | "access" bridge port type | +| BRIDGE_PORT_TYPE_TRUNK | 2 | "trunk" bridge port type | 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 deleted file mode 100644 index 25981184..00000000 --- a/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.grpc.pb.cc +++ /dev/null @@ -1,489 +0,0 @@ -// 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", - "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/UpdateLogicalBridge", -}; - -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) - , rpcmethod_UpdateLogicalBridge_(LogicalBridgeService_method_names[4], 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; -} - -::grpc::Status LogicalBridgeService::Stub::UpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) { - return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateLogicalBridge_, context, request, response); -} - -void LogicalBridgeService::Stub::async::UpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateLogicalBridge_, context, request, response, std::move(f)); -} - -void LogicalBridgeService::Stub::async::UpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* 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_UpdateLogicalBridge_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* LogicalBridgeService::Stub::PrepareAsyncUpdateLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateLogicalBridge_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* LogicalBridgeService::Stub::AsyncUpdateLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateLogicalBridgeRaw(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))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - LogicalBridgeService_method_names[4], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< LogicalBridgeService::Service, ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest, ::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::UpdateLogicalBridgeRequest* req, - ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* resp) { - return service->UpdateLogicalBridge(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, ""); -} - -::grpc::Status LogicalBridgeService::Service::UpdateLogicalBridge(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* 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", - "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/UpdateBridgePort", -}; - -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) - , rpcmethod_UpdateBridgePort_(BridgePortService_method_names[4], 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; -} - -::grpc::Status BridgePortService::Stub::UpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) { - return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateBridgePort_, context, request, response); -} - -void BridgePortService::Stub::async::UpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateBridgePort_, context, request, response, std::move(f)); -} - -void BridgePortService::Stub::async::UpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* 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_UpdateBridgePort_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* BridgePortService::Stub::PrepareAsyncUpdateBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::BridgePort, ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateBridgePort_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* BridgePortService::Stub::AsyncUpdateBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateBridgePortRaw(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))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - BridgePortService_method_names[4], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< BridgePortService::Service, ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest, ::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::UpdateBridgePortRequest* req, - ::opi_api::network::evpn_gw::v1alpha1::BridgePort* resp) { - return service->UpdateBridgePort(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, ""); -} - -::grpc::Status BridgePortService::Service::UpdateBridgePort(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* 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 deleted file mode 100644 index 9f208374..00000000 --- a/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.grpc.pb.h +++ /dev/null @@ -1,1754 +0,0 @@ -// 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)); - } - // Update a Logical Bridge - virtual ::grpc::Status UpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>> AsyncUpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>>(AsyncUpdateLogicalBridgeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>> PrepareAsyncUpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>>(PrepareAsyncUpdateLogicalBridgeRaw(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; - // Update a Logical Bridge - virtual void UpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, std::function) = 0; - virtual void UpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* 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; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* AsyncUpdateLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* PrepareAsyncUpdateLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& 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)); - } - ::grpc::Status UpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>> AsyncUpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>>(AsyncUpdateLogicalBridgeRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>> PrepareAsyncUpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>>(PrepareAsyncUpdateLogicalBridgeRaw(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; - void UpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response, std::function) override; - void UpdateLogicalBridge(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* 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; - ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* AsyncUpdateLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* PrepareAsyncUpdateLogicalBridgeRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest& 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_; - const ::grpc::internal::RpcMethod rpcmethod_UpdateLogicalBridge_; - }; - 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); - // Update a Logical Bridge - virtual ::grpc::Status UpdateLogicalBridge(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* 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); - } - }; - template - class WithAsyncMethod_UpdateLogicalBridge : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_UpdateLogicalBridge() { - ::grpc::Service::MarkMethodAsync(4); - } - ~WithAsyncMethod_UpdateLogicalBridge() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateLogicalBridge(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* 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(4, 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; } - }; - template - class WithCallbackMethod_UpdateLogicalBridge : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_UpdateLogicalBridge() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>( - [this]( - ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* request, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* response) { return this->UpdateLogicalBridge(context, request, response); }));} - void SetMessageAllocatorFor_UpdateLogicalBridge( - ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_UpdateLogicalBridge() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* UpdateLogicalBridge( - ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*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 WithGenericMethod_UpdateLogicalBridge : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_UpdateLogicalBridge() { - ::grpc::Service::MarkMethodGeneric(4); - } - ~WithGenericMethod_UpdateLogicalBridge() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*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 WithRawMethod_UpdateLogicalBridge : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_UpdateLogicalBridge() { - ::grpc::Service::MarkMethodRaw(4); - } - ~WithRawMethod_UpdateLogicalBridge() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateLogicalBridge(::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(4, 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 WithRawCallbackMethod_UpdateLogicalBridge : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_UpdateLogicalBridge() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateLogicalBridge(context, request, response); })); - } - ~WithRawCallbackMethod_UpdateLogicalBridge() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* UpdateLogicalBridge( - ::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; - }; - template - class WithStreamedUnaryMethod_UpdateLogicalBridge : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_UpdateLogicalBridge() { - ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< - ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest, ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* streamer) { - return this->StreamedUpdateLogicalBridge(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_UpdateLogicalBridge() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UpdateLogicalBridge(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* /*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 StreamedUpdateLogicalBridge(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest,::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>* 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)); - } - // Update a Bridge Port - virtual ::grpc::Status UpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>> AsyncUpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>>(AsyncUpdateBridgePortRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>> PrepareAsyncUpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>>(PrepareAsyncUpdateBridgePortRaw(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; - // Update a Bridge Port - virtual void UpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, std::function) = 0; - virtual void UpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* 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; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* AsyncUpdateBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* PrepareAsyncUpdateBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& 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)); - } - ::grpc::Status UpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>> AsyncUpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>>(AsyncUpdateBridgePortRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>> PrepareAsyncUpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>>(PrepareAsyncUpdateBridgePortRaw(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; - void UpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response, std::function) override; - void UpdateBridgePort(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* 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; - ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* AsyncUpdateBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* PrepareAsyncUpdateBridgePortRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest& 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_; - const ::grpc::internal::RpcMethod rpcmethod_UpdateBridgePort_; - }; - 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); - // Update a Bridge Port - virtual ::grpc::Status UpdateBridgePort(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* 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); - } - }; - template - class WithAsyncMethod_UpdateBridgePort : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_UpdateBridgePort() { - ::grpc::Service::MarkMethodAsync(4); - } - ~WithAsyncMethod_UpdateBridgePort() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateBridgePort(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* 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(4, 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; } - }; - template - class WithCallbackMethod_UpdateBridgePort : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_UpdateBridgePort() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>( - [this]( - ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* request, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* response) { return this->UpdateBridgePort(context, request, response); }));} - void SetMessageAllocatorFor_UpdateBridgePort( - ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_UpdateBridgePort() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* UpdateBridgePort( - ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*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 WithGenericMethod_UpdateBridgePort : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_UpdateBridgePort() { - ::grpc::Service::MarkMethodGeneric(4); - } - ~WithGenericMethod_UpdateBridgePort() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*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 WithRawMethod_UpdateBridgePort : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_UpdateBridgePort() { - ::grpc::Service::MarkMethodRaw(4); - } - ~WithRawMethod_UpdateBridgePort() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateBridgePort(::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(4, 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 WithRawCallbackMethod_UpdateBridgePort : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_UpdateBridgePort() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateBridgePort(context, request, response); })); - } - ~WithRawCallbackMethod_UpdateBridgePort() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::BridgePort* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* UpdateBridgePort( - ::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; - }; - template - class WithStreamedUnaryMethod_UpdateBridgePort : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_UpdateBridgePort() { - ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< - ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest, ::opi_api::network::evpn_gw::v1alpha1::BridgePort>* streamer) { - return this->StreamedUpdateBridgePort(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_UpdateBridgePort() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UpdateBridgePort(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* /*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 StreamedUpdateBridgePort(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest,::opi_api::network::evpn_gw::v1alpha1::BridgePort>* 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 deleted file mode 100644 index a49e2b89..00000000 --- a/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.pb.cc +++ /dev/null @@ -1,5079 +0,0 @@ -// 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 _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - -namespace opi_api { -namespace network { -namespace evpn_gw { -namespace v1alpha1 { -PROTOBUF_CONSTEXPR LogicalBridge::LogicalBridge( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.spec_)*/nullptr - , /*decltype(_impl_.status_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct LogicalBridgeDefaultTypeInternal { - PROTOBUF_CONSTEXPR LogicalBridgeDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~LogicalBridgeDefaultTypeInternal() {} - union { - LogicalBridge _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogicalBridgeDefaultTypeInternal _LogicalBridge_default_instance_; -PROTOBUF_CONSTEXPR LogicalBridgeSpec::LogicalBridgeSpec( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.vtep_ip_prefix_)*/nullptr - , /*decltype(_impl_.vlan_id_)*/0u - , /*decltype(_impl_.vni_)*/0u} {} -struct LogicalBridgeSpecDefaultTypeInternal { - PROTOBUF_CONSTEXPR LogicalBridgeSpecDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~LogicalBridgeSpecDefaultTypeInternal() {} - union { - LogicalBridgeSpec _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogicalBridgeSpecDefaultTypeInternal _LogicalBridgeSpec_default_instance_; -PROTOBUF_CONSTEXPR LogicalBridgeStatus::LogicalBridgeStatus( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.oper_status_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct LogicalBridgeStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR LogicalBridgeStatusDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~LogicalBridgeStatusDefaultTypeInternal() {} - union { - LogicalBridgeStatus _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LogicalBridgeStatusDefaultTypeInternal _LogicalBridgeStatus_default_instance_; -PROTOBUF_CONSTEXPR CreateLogicalBridgeRequest::CreateLogicalBridgeRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.logical_bridge_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.logical_bridge_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct CreateLogicalBridgeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateLogicalBridgeRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateLogicalBridgeRequestDefaultTypeInternal() {} - union { - CreateLogicalBridgeRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateLogicalBridgeRequestDefaultTypeInternal _CreateLogicalBridgeRequest_default_instance_; -PROTOBUF_CONSTEXPR ListLogicalBridgesRequest::ListLogicalBridgesRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.page_size_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ListLogicalBridgesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListLogicalBridgesRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ListLogicalBridgesRequestDefaultTypeInternal() {} - union { - ListLogicalBridgesRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListLogicalBridgesRequestDefaultTypeInternal _ListLogicalBridgesRequest_default_instance_; -PROTOBUF_CONSTEXPR ListLogicalBridgesResponse::ListLogicalBridgesResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.logical_bridges_)*/{} - , /*decltype(_impl_.next_page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ListLogicalBridgesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListLogicalBridgesResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ListLogicalBridgesResponseDefaultTypeInternal() {} - union { - ListLogicalBridgesResponse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListLogicalBridgesResponseDefaultTypeInternal _ListLogicalBridgesResponse_default_instance_; -PROTOBUF_CONSTEXPR GetLogicalBridgeRequest::GetLogicalBridgeRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct GetLogicalBridgeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetLogicalBridgeRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~GetLogicalBridgeRequestDefaultTypeInternal() {} - union { - GetLogicalBridgeRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLogicalBridgeRequestDefaultTypeInternal _GetLogicalBridgeRequest_default_instance_; -PROTOBUF_CONSTEXPR DeleteLogicalBridgeRequest::DeleteLogicalBridgeRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.allow_missing_)*/false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct DeleteLogicalBridgeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteLogicalBridgeRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteLogicalBridgeRequestDefaultTypeInternal() {} - union { - DeleteLogicalBridgeRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteLogicalBridgeRequestDefaultTypeInternal _DeleteLogicalBridgeRequest_default_instance_; -PROTOBUF_CONSTEXPR UpdateLogicalBridgeRequest::UpdateLogicalBridgeRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.logical_bridge_)*/nullptr - , /*decltype(_impl_.update_mask_)*/nullptr - , /*decltype(_impl_.allow_missing_)*/false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct UpdateLogicalBridgeRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateLogicalBridgeRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateLogicalBridgeRequestDefaultTypeInternal() {} - union { - UpdateLogicalBridgeRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateLogicalBridgeRequestDefaultTypeInternal _UpdateLogicalBridgeRequest_default_instance_; -PROTOBUF_CONSTEXPR BridgePort::BridgePort( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.spec_)*/nullptr - , /*decltype(_impl_.status_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct BridgePortDefaultTypeInternal { - PROTOBUF_CONSTEXPR BridgePortDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~BridgePortDefaultTypeInternal() {} - union { - BridgePort _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BridgePortDefaultTypeInternal _BridgePort_default_instance_; -PROTOBUF_CONSTEXPR BridgePortSpec::BridgePortSpec( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.logical_bridges_)*/{} - , /*decltype(_impl_.mac_address_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.ptype_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct BridgePortSpecDefaultTypeInternal { - PROTOBUF_CONSTEXPR BridgePortSpecDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~BridgePortSpecDefaultTypeInternal() {} - union { - BridgePortSpec _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BridgePortSpecDefaultTypeInternal _BridgePortSpec_default_instance_; -PROTOBUF_CONSTEXPR BridgePortStatus::BridgePortStatus( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.oper_status_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct BridgePortStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR BridgePortStatusDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~BridgePortStatusDefaultTypeInternal() {} - union { - BridgePortStatus _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BridgePortStatusDefaultTypeInternal _BridgePortStatus_default_instance_; -PROTOBUF_CONSTEXPR CreateBridgePortRequest::CreateBridgePortRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.bridge_port_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.bridge_port_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct CreateBridgePortRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateBridgePortRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateBridgePortRequestDefaultTypeInternal() {} - union { - CreateBridgePortRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateBridgePortRequestDefaultTypeInternal _CreateBridgePortRequest_default_instance_; -PROTOBUF_CONSTEXPR ListBridgePortsRequest::ListBridgePortsRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.page_size_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ListBridgePortsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListBridgePortsRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ListBridgePortsRequestDefaultTypeInternal() {} - union { - ListBridgePortsRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListBridgePortsRequestDefaultTypeInternal _ListBridgePortsRequest_default_instance_; -PROTOBUF_CONSTEXPR ListBridgePortsResponse::ListBridgePortsResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.bridge_ports_)*/{} - , /*decltype(_impl_.next_page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ListBridgePortsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListBridgePortsResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ListBridgePortsResponseDefaultTypeInternal() {} - union { - ListBridgePortsResponse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListBridgePortsResponseDefaultTypeInternal _ListBridgePortsResponse_default_instance_; -PROTOBUF_CONSTEXPR GetBridgePortRequest::GetBridgePortRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct GetBridgePortRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetBridgePortRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~GetBridgePortRequestDefaultTypeInternal() {} - union { - GetBridgePortRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBridgePortRequestDefaultTypeInternal _GetBridgePortRequest_default_instance_; -PROTOBUF_CONSTEXPR DeleteBridgePortRequest::DeleteBridgePortRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.allow_missing_)*/false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct DeleteBridgePortRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteBridgePortRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteBridgePortRequestDefaultTypeInternal() {} - union { - DeleteBridgePortRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteBridgePortRequestDefaultTypeInternal _DeleteBridgePortRequest_default_instance_; -PROTOBUF_CONSTEXPR UpdateBridgePortRequest::UpdateBridgePortRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.bridge_port_)*/nullptr - , /*decltype(_impl_.update_mask_)*/nullptr - , /*decltype(_impl_.allow_missing_)*/false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct UpdateBridgePortRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateBridgePortRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateBridgePortRequestDefaultTypeInternal() {} - union { - UpdateBridgePortRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateBridgePortRequestDefaultTypeInternal _UpdateBridgePortRequest_default_instance_; -} // namespace v1alpha1 -} // namespace evpn_gw -} // namespace network -} // namespace opi_api -static ::_pb::Metadata file_level_metadata_l2_5fxpu_5finfra_5fmgr_2eproto[18]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_l2_5fxpu_5finfra_5fmgr_2eproto[3]; -static constexpr ::_pb::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, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, _impl_.spec_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridge, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec, _impl_._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, _impl_.vlan_id_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec, _impl_.vni_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec, _impl_.vtep_ip_prefix_), - ~0u, - 0, - ~0u, - ~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, _impl_.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, _impl_.logical_bridge_id_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest, _impl_.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, _impl_.page_size_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest, _impl_.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, _impl_.logical_bridges_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse, _impl_.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, _impl_.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, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest, _impl_.allow_missing_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest, _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::UpdateLogicalBridgeRequest, _impl_.logical_bridge_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest, _impl_.update_mask_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest, _impl_.allow_missing_), - ~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, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePort, _impl_.spec_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePort, _impl_.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, _impl_.mac_address_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec, _impl_.ptype_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec, _impl_.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, _impl_.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, _impl_.bridge_port_id_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest, _impl_.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, _impl_.page_size_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest, _impl_.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, _impl_.bridge_ports_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse, _impl_.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, _impl_.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, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest, _impl_.allow_missing_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest, _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::UpdateBridgePortRequest, _impl_.bridge_port_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest, _impl_.update_mask_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest, _impl_.allow_missing_), -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::LogicalBridge)}, - { 9, 18, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec)}, - { 21, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus)}, - { 28, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::CreateLogicalBridgeRequest)}, - { 36, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesRequest)}, - { 44, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListLogicalBridgesResponse)}, - { 52, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::GetLogicalBridgeRequest)}, - { 59, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::DeleteLogicalBridgeRequest)}, - { 67, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest)}, - { 76, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::BridgePort)}, - { 85, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec)}, - { 94, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus)}, - { 101, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::CreateBridgePortRequest)}, - { 109, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsRequest)}, - { 117, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListBridgePortsResponse)}, - { 125, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::GetBridgePortRequest)}, - { 132, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::DeleteBridgePortRequest)}, - { 140, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::opi_api::network::evpn_gw::v1alpha1::_LogicalBridge_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_LogicalBridgeSpec_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_LogicalBridgeStatus_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_CreateLogicalBridgeRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_ListLogicalBridgesRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_ListLogicalBridgesResponse_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_GetLogicalBridgeRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_DeleteLogicalBridgeRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_UpdateLogicalBridgeRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_BridgePort_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_BridgePortSpec_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_BridgePortStatus_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_CreateBridgePortRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_ListBridgePortsRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_ListBridgePortsResponse_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_GetBridgePortRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_DeleteBridgePortRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_UpdateBridgePortRequest_default_instance_._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\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 goo" - "gle/protobuf/field_mask.proto\032\031google/ap" - "i/resource.proto\"\253\002\n\rLogicalBridge\022\021\n\004na" - "me\030\001 \001(\tB\003\340A\010\022F\n\004spec\030\002 \001(\01323.opi_api.ne" - "twork.evpn_gw.v1alpha1.LogicalBridgeSpec" - "B\003\340A\002\022J\n\006status\030\003 \001(\01325.opi_api.network." - "evpn_gw.v1alpha1.LogicalBridgeStatusB\003\340A" - "\003:s\352Ap\n.opi_api.network.evpn_gw.v1alpha1" - "/LogicalBridge\022\037logicalBridges/{logical_" - "bridge}*\016logicalBridges2\rlogicalBridge\"\226" - "\001\n\021LogicalBridgeSpec\022\024\n\007vlan_id\030\001 \001(\rB\003\340" - "A\002\022\025\n\003vni\030\002 \001(\rB\003\340A\001H\000\210\001\001\022L\n\016vtep_ip_pre" - "fix\030\003 \001(\0132/.opi_api.network.opinetcommon" - ".v1alpha1.IPPrefixB\003\340A\001B\006\n\004_vni\"_\n\023Logic" - "alBridgeStatus\022H\n\013oper_status\030\001 \001(\0162..op" - "i_api.network.evpn_gw.v1alpha1.LBOperSta" - "tusB\003\340A\003\"\212\001\n\032CreateLogicalBridgeRequest\022" - "\036\n\021logical_bridge_id\030\001 \001(\tB\003\340A\001\022L\n\016logic" - "al_bridge\030\002 \001(\0132/.opi_api.network.evpn_g" - "w.v1alpha1.LogicalBridgeB\003\340A\002\"L\n\031ListLog" - "icalBridgesRequest\022\026\n\tpage_size\030\001 \001(\005B\003\340" - "A\001\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\"\177\n\032ListLogic" - "alBridgesResponse\022H\n\017logical_bridges\030\001 \003" - "(\0132/.opi_api.network.evpn_gw.v1alpha1.Lo" - "gicalBridge\022\027\n\017next_page_token\030\002 \001(\t\"_\n\027" - "GetLogicalBridgeRequest\022D\n\004name\030\001 \001(\tB6\340" - "A\002\372A0\n.opi_api.network.evpn_gw.v1alpha1/" - "LogicalBridge\"~\n\032DeleteLogicalBridgeRequ" - "est\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.opi_api.netwo" - "rk.evpn_gw.v1alpha1/LogicalBridge\022\032\n\rall" - "ow_missing\030\002 \001(\010B\003\340A\001\"\274\001\n\032UpdateLogicalB" - "ridgeRequest\022L\n\016logical_bridge\030\001 \001(\0132/.o" - "pi_api.network.evpn_gw.v1alpha1.LogicalB" - "ridgeB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" - ".protobuf.FieldMaskB\003\340A\001\022\032\n\rallow_missin" - "g\030\003 \001(\010B\003\340A\001\"\223\002\n\nBridgePort\022\021\n\004name\030\001 \001(" - "\tB\003\340A\010\022C\n\004spec\030\002 \001(\01320.opi_api.network.e" - "vpn_gw.v1alpha1.BridgePortSpecB\003\340A\002\022G\n\006s" - "tatus\030\003 \001(\01322.opi_api.network.evpn_gw.v1" - "alpha1.BridgePortStatusB\003\340A\003:d\352Aa\n+opi_a" - "pi.network.evpn_gw.v1alpha1/BridgePort\022\031" - "bridgePorts/{bridge_port}*\013bridgePorts2\n" - "bridgePort\"\216\001\n\016BridgePortSpec\022\030\n\013mac_add" - "ress\030\001 \001(\014B\003\340A\002\022D\n\005ptype\030\002 \001(\01620.opi_api" - ".network.evpn_gw.v1alpha1.BridgePortType" - "B\003\340A\002\022\034\n\017logical_bridges\030\003 \003(\tB\003\340A\001\"\\\n\020B" - "ridgePortStatus\022H\n\013oper_status\030\001 \001(\0162..o" - "pi_api.network.evpn_gw.v1alpha1.BPOperSt" - "atusB\003\340A\003\"~\n\027CreateBridgePortRequest\022\033\n\016" - "bridge_port_id\030\001 \001(\tB\003\340A\001\022F\n\013bridge_port" - "\030\002 \001(\0132,.opi_api.network.evpn_gw.v1alpha" - "1.BridgePortB\003\340A\002\"I\n\026ListBridgePortsRequ" - "est\022\026\n\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\npage_toke" - "n\030\002 \001(\tB\003\340A\001\"v\n\027ListBridgePortsResponse\022" - "B\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\024GetBridgePortRequest\022A\n\004" - "name\030\001 \001(\tB3\340A\002\372A-\n+opi_api.network.evpn" - "_gw.v1alpha1/BridgePort\"x\n\027DeleteBridgeP" - "ortRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+opi_ap" - "i.network.evpn_gw.v1alpha1/BridgePort\022\032\n" - "\rallow_missing\030\002 \001(\010B\003\340A\001\"\263\001\n\027UpdateBrid" - "gePortRequest\022F\n\013bridge_port\030\001 \001(\0132,.opi" - "_api.network.evpn_gw.v1alpha1.BridgePort" - "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" - "obuf.FieldMaskB\003\340A\001\022\032\n\rallow_missing\030\003 \001" - "(\010B\003\340A\001*^\n\014LBOperStatus\022\036\n\032LB_OPER_STATU" - "S_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_UNSPECIFIED\020\000\022\025\n\021BP_OP" - "ER_STATUS_UP\020\001\022\027\n\023BP_OPER_STATUS_DOWN\020\002*" - "4\n\016BridgePortType\022\013\n\007UNKNOWN\020\000\022\n\n\006ACCESS" - "\020\001\022\t\n\005TRUNK\020\0022\311\007\n\024LogicalBridgeService\022\323" - "\001\n\023CreateLogicalBridge\022<.opi_api.network" - ".evpn_gw.v1alpha1.CreateLogicalBridgeReq" - "uest\032/.opi_api.network.evpn_gw.v1alpha1." - "LogicalBridge\"M\202\323\344\223\002$\"\022/v1/logicalBridge" - "s:\016logical_bridge\332A logical_bridge,logic" - "al_bridge_id\022\253\001\n\022ListLogicalBridges\022;.op" - "i_api.network.evpn_gw.v1alpha1.ListLogic" - "alBridgesRequest\032<.opi_api.network.evpn_" - "gw.v1alpha1.ListLogicalBridgesResponse\"\032" - "\202\323\344\223\002\024\022\022/v1/logicalBridges\022\252\001\n\020GetLogica" - "lBridge\0229.opi_api.network.evpn_gw.v1alph" - "a1.GetLogicalBridgeRequest\032/.opi_api.net" - "work.evpn_gw.v1alpha1.LogicalBridge\"*\202\323\344" - "\223\002\035\022\033/v1/{name=logicalBridges/*}\332A\004name\022" - "\227\001\n\023DeleteLogicalBridge\022<.opi_api.networ" - "k.evpn_gw.v1alpha1.DeleteLogicalBridgeRe" - "quest\032\026.google.protobuf.Empty\"*\202\323\344\223\002\035*\033/" - "v1/{name=logicalBridges/*}\332A\004name\022\345\001\n\023Up" - "dateLogicalBridge\022<.opi_api.network.evpn" - "_gw.v1alpha1.UpdateLogicalBridgeRequest\032" - "/.opi_api.network.evpn_gw.v1alpha1.Logic" - "alBridge\"_\202\323\344\223\002<2*/v1/{logical_bridge.na" - "me=logicalBridges/*}:\016logical_bridge\332A\032l" - "ogical_bridge,update_mask2\373\006\n\021BridgePort" - "Service\022\276\001\n\020CreateBridgePort\0229.opi_api.n" - "etwork.evpn_gw.v1alpha1.CreateBridgePort" - "Request\032,.opi_api.network.evpn_gw.v1alph" - "a1.BridgePort\"A\202\323\344\223\002\036\"\017/v1/bridgePorts:\013" - "bridge_port\332A\032bridge_port,bridge_port_id" - "\022\237\001\n\017ListBridgePorts\0228.opi_api.network.e" - "vpn_gw.v1alpha1.ListBridgePortsRequest\0329" - ".opi_api.network.evpn_gw.v1alpha1.ListBr" - "idgePortsResponse\"\027\202\323\344\223\002\021\022\017/v1/bridgePor" - "ts\022\236\001\n\rGetBridgePort\0226.opi_api.network.e" - "vpn_gw.v1alpha1.GetBridgePortRequest\032,.o" - "pi_api.network.evpn_gw.v1alpha1.BridgePo" - "rt\"\'\202\323\344\223\002\032\022\030/v1/{name=bridgePorts/*}\332A\004n" - "ame\022\216\001\n\020DeleteBridgePort\0229.opi_api.netwo" - "rk.evpn_gw.v1alpha1.DeleteBridgePortRequ" - "est\032\026.google.protobuf.Empty\"\'\202\323\344\223\002\032*\030/v1" - "/{name=bridgePorts/*}\332A\004name\022\320\001\n\020UpdateB" - "ridgePort\0229.opi_api.network.evpn_gw.v1al" - "pha1.UpdateBridgePortRequest\032,.opi_api.n" - "etwork.evpn_gw.v1alpha1.BridgePort\"S\202\323\344\223" - "\00232$/v1/{bridge_port.name=bridgePorts/*}" - ":\013bridge_port\332A\027bridge_port,update_maskB" - "w\n opi_api.network.evpn_gw.v1alpha1B\022L2X" - "puInfraMgrProtoP\001Z=github.com/opiproject" - "/opi-api/network/evpn-gw/v1alpha1/gen/go" - "b\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_deps[7] = { - &::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_google_2fprotobuf_2ffield_5fmask_2eproto, - &::descriptor_table_networktypes_2eproto, -}; -static ::_pbi::once_flag descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_l2_5fxpu_5finfra_5fmgr_2eproto = { - false, false, 5048, 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, 7, 18, - 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 ::_pbi::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_PRIORITY2 static ::_pbi::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->_impl_.spec_; -} -const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus& -LogicalBridge::_Internal::status(const LogicalBridge* msg) { - return *msg->_impl_.status_; -} -LogicalBridge::LogicalBridge(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridge) -} -LogicalBridge::LogicalBridge(const LogicalBridge& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - LogicalBridge* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.spec_){nullptr} - , decltype(_impl_.status_){nullptr} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_spec()) { - _this->_impl_.spec_ = new ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec(*from._impl_.spec_); - } - if (from._internal_has_status()) { - _this->_impl_.status_ = new ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus(*from._impl_.status_); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridge) -} - -inline void LogicalBridge::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.spec_){nullptr} - , decltype(_impl_.status_){nullptr} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -LogicalBridge::~LogicalBridge() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridge) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void LogicalBridge::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - if (this != internal_default_instance()) delete _impl_.spec_; - if (this != internal_default_instance()) delete _impl_.status_; -} - -void LogicalBridge::SetCachedSize(int size) const { - _impl_._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; - - _impl_.name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.spec_ != nullptr) { - delete _impl_.spec_; - } - _impl_.spec_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.status_ != nullptr) { - delete _impl_.status_; - } - _impl_.status_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* LogicalBridge::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.LogicalBridge.name")); - } 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = IDENTIFIER]; - 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::spec(this), - _Internal::spec(this).GetCachedSize(), target, stream); - } - - // .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::status(this), - _Internal::status(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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 [(.google.api.field_behavior) = IDENTIFIER]; - 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( - *_impl_.spec_); - } - - // .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.status_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogicalBridge::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - LogicalBridge::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogicalBridge::GetClassData() const { return &_class_data_; } - - -void LogicalBridge::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_name(from._internal_name()); - } - if (from._internal_has_spec()) { - _this->_internal_mutable_spec()->::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec::MergeFrom( - from._internal_spec()); - } - if (from._internal_has_status()) { - _this->_internal_mutable_status()->::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus::MergeFrom( - from._internal_status()); - } - _this->_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( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(LogicalBridge, _impl_.status_) - + sizeof(LogicalBridge::_impl_.status_) - - PROTOBUF_FIELD_OFFSET(LogicalBridge, _impl_.spec_)>( - reinterpret_cast(&_impl_.spec_), - reinterpret_cast(&other->_impl_.spec_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata LogicalBridge::GetMetadata() const { - return ::_pbi::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: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_vni(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& vtep_ip_prefix(const LogicalBridgeSpec* msg); -}; - -const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& -LogicalBridgeSpec::_Internal::vtep_ip_prefix(const LogicalBridgeSpec* msg) { - return *msg->_impl_.vtep_ip_prefix_; -} -void LogicalBridgeSpec::clear_vtep_ip_prefix() { - if (GetArenaForAllocation() == nullptr && _impl_.vtep_ip_prefix_ != nullptr) { - delete _impl_.vtep_ip_prefix_; - } - _impl_.vtep_ip_prefix_ = nullptr; -} -LogicalBridgeSpec::LogicalBridgeSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) -} -LogicalBridgeSpec::LogicalBridgeSpec(const LogicalBridgeSpec& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - LogicalBridgeSpec* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.vtep_ip_prefix_){nullptr} - , decltype(_impl_.vlan_id_){} - , decltype(_impl_.vni_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_vtep_ip_prefix()) { - _this->_impl_.vtep_ip_prefix_ = new ::opi_api::network::opinetcommon::v1alpha1::IPPrefix(*from._impl_.vtep_ip_prefix_); - } - ::memcpy(&_impl_.vlan_id_, &from._impl_.vlan_id_, - static_cast(reinterpret_cast(&_impl_.vni_) - - reinterpret_cast(&_impl_.vlan_id_)) + sizeof(_impl_.vni_)); - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) -} - -inline void LogicalBridgeSpec::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.vtep_ip_prefix_){nullptr} - , decltype(_impl_.vlan_id_){0u} - , decltype(_impl_.vni_){0u} - }; -} - -LogicalBridgeSpec::~LogicalBridgeSpec() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void LogicalBridgeSpec::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.vtep_ip_prefix_; -} - -void LogicalBridgeSpec::SetCachedSize(int size) const { - _impl_._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; - - if (GetArenaForAllocation() == nullptr && _impl_.vtep_ip_prefix_ != nullptr) { - delete _impl_.vtep_ip_prefix_; - } - _impl_.vtep_ip_prefix_ = nullptr; - _impl_.vlan_id_ = 0u; - _impl_.vni_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* LogicalBridgeSpec::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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)) { - _impl_.vlan_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_vni(&has_bits); - _impl_.vni_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - 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: - _impl_._has_bits_.Or(has_bits); - 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 = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_vlan_id(), target); - } - - // optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (_internal_has_vni()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_vni(), target); - } - - // .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_has_vtep_ip_prefix()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::vtep_ip_prefix(this), - _Internal::vtep_ip_prefix(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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; - - // .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_has_vtep_ip_prefix()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.vtep_ip_prefix_); - } - - // uint32 vlan_id = 1 [(.google.api.field_behavior) = REQUIRED]; - if (this->_internal_vlan_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_vlan_id()); - } - - // optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_vni()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogicalBridgeSpec::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - LogicalBridgeSpec::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogicalBridgeSpec::GetClassData() const { return &_class_data_; } - - -void LogicalBridgeSpec::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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_has_vtep_ip_prefix()) { - _this->_internal_mutable_vtep_ip_prefix()->::opi_api::network::opinetcommon::v1alpha1::IPPrefix::MergeFrom( - from._internal_vtep_ip_prefix()); - } - if (from._internal_vlan_id() != 0) { - _this->_internal_set_vlan_id(from._internal_vlan_id()); - } - if (from._internal_has_vni()) { - _this->_internal_set_vni(from._internal_vni()); - } - _this->_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_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(LogicalBridgeSpec, _impl_.vni_) - + sizeof(LogicalBridgeSpec::_impl_.vni_) - - PROTOBUF_FIELD_OFFSET(LogicalBridgeSpec, _impl_.vtep_ip_prefix_)>( - reinterpret_cast(&_impl_.vtep_ip_prefix_), - reinterpret_cast(&other->_impl_.vtep_ip_prefix_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata LogicalBridgeSpec::GetMetadata() const { - return ::_pbi::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(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) -} -LogicalBridgeStatus::LogicalBridgeStatus(const LogicalBridgeStatus& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - LogicalBridgeStatus* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.oper_status_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.oper_status_ = from._impl_.oper_status_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) -} - -inline void LogicalBridgeStatus::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.oper_status_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; -} - -LogicalBridgeStatus::~LogicalBridgeStatus() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void LogicalBridgeStatus::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void LogicalBridgeStatus::SetCachedSize(int size) const { - _impl_._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; - - _impl_.oper_status_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* LogicalBridgeStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_oper_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_oper_status(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_oper_status() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_oper_status()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LogicalBridgeStatus::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - LogicalBridgeStatus::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogicalBridgeStatus::GetClassData() const { return &_class_data_; } - - -void LogicalBridgeStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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) { - _this->_internal_set_oper_status(from._internal_oper_status()); - } - _this->_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(_impl_.oper_status_, other->_impl_.oper_status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata LogicalBridgeStatus::GetMetadata() const { - return ::_pbi::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->_impl_.logical_bridge_; -} -CreateLogicalBridgeRequest::CreateLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) -} -CreateLogicalBridgeRequest::CreateLogicalBridgeRequest(const CreateLogicalBridgeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CreateLogicalBridgeRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.logical_bridge_id_){} - , decltype(_impl_.logical_bridge_){nullptr} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.logical_bridge_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.logical_bridge_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_logical_bridge_id().empty()) { - _this->_impl_.logical_bridge_id_.Set(from._internal_logical_bridge_id(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_logical_bridge()) { - _this->_impl_.logical_bridge_ = new ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge(*from._impl_.logical_bridge_); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) -} - -inline void CreateLogicalBridgeRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.logical_bridge_id_){} - , decltype(_impl_.logical_bridge_){nullptr} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.logical_bridge_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.logical_bridge_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -CreateLogicalBridgeRequest::~CreateLogicalBridgeRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void CreateLogicalBridgeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.logical_bridge_id_.Destroy(); - if (this != internal_default_instance()) delete _impl_.logical_bridge_; -} - -void CreateLogicalBridgeRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.logical_bridge_id_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.logical_bridge_ != nullptr) { - delete _impl_.logical_bridge_; - } - _impl_.logical_bridge_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CreateLogicalBridgeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string logical_bridge_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_logical_bridge_id(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge_id")); - } 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 [(.google.api.field_behavior) = OPTIONAL]; - 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::logical_bridge(this), - _Internal::logical_bridge(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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 [(.google.api.field_behavior) = OPTIONAL]; - 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( - *_impl_.logical_bridge_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateLogicalBridgeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CreateLogicalBridgeRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateLogicalBridgeRequest::GetClassData() const { return &_class_data_; } - - -void CreateLogicalBridgeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_logical_bridge_id(from._internal_logical_bridge_id()); - } - if (from._internal_has_logical_bridge()) { - _this->_internal_mutable_logical_bridge()->::opi_api::network::evpn_gw::v1alpha1::LogicalBridge::MergeFrom( - from._internal_logical_bridge()); - } - _this->_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( - &_impl_.logical_bridge_id_, lhs_arena, - &other->_impl_.logical_bridge_id_, rhs_arena - ); - swap(_impl_.logical_bridge_, other->_impl_.logical_bridge_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CreateLogicalBridgeRequest::GetMetadata() const { - return ::_pbi::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(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) -} -ListLogicalBridgesRequest::ListLogicalBridgesRequest(const ListLogicalBridgesRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ListLogicalBridgesRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.page_token_){} - , decltype(_impl_.page_size_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_page_token().empty()) { - _this->_impl_.page_token_.Set(from._internal_page_token(), - _this->GetArenaForAllocation()); - } - _this->_impl_.page_size_ = from._impl_.page_size_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) -} - -inline void ListLogicalBridgesRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.page_token_){} - , decltype(_impl_.page_size_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -ListLogicalBridgesRequest::~ListLogicalBridgesRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ListLogicalBridgesRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.page_token_.Destroy(); -} - -void ListLogicalBridgesRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.page_token_.ClearToEmpty(); - _impl_.page_size_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ListLogicalBridgesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_page_token(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.page_token")); - } 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 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_page_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_page_size(), target); - } - - // string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - 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 = ::_pbi::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 [(.google.api.field_behavior) = OPTIONAL]; - if (!this->_internal_page_token().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_page_token()); - } - - // int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_page_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_page_size()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListLogicalBridgesRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ListLogicalBridgesRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListLogicalBridgesRequest::GetClassData() const { return &_class_data_; } - - -void ListLogicalBridgesRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_page_token(from._internal_page_token()); - } - if (from._internal_page_size() != 0) { - _this->_internal_set_page_size(from._internal_page_size()); - } - _this->_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( - &_impl_.page_token_, lhs_arena, - &other->_impl_.page_token_, rhs_arena - ); - swap(_impl_.page_size_, other->_impl_.page_size_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ListLogicalBridgesRequest::GetMetadata() const { - return ::_pbi::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) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) -} -ListLogicalBridgesResponse::ListLogicalBridgesResponse(const ListLogicalBridgesResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ListLogicalBridgesResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.logical_bridges_){from._impl_.logical_bridges_} - , decltype(_impl_.next_page_token_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.next_page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.next_page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_next_page_token().empty()) { - _this->_impl_.next_page_token_.Set(from._internal_next_page_token(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) -} - -inline void ListLogicalBridgesResponse::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.logical_bridges_){arena} - , decltype(_impl_.next_page_token_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.next_page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.next_page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -ListLogicalBridgesResponse::~ListLogicalBridgesResponse() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ListLogicalBridgesResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.logical_bridges_.~RepeatedPtrField(); - _impl_.next_page_token_.Destroy(); -} - -void ListLogicalBridgesResponse::SetCachedSize(int size) const { - _impl_._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; - - _impl_.logical_bridges_.Clear(); - _impl_.next_page_token_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ListLogicalBridgesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesResponse.next_page_token")); - } 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 i = 0, - n = static_cast(this->_internal_logical_bridges_size()); i < n; i++) { - const auto& repfield = this->_internal_logical_bridges(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), 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 = ::_pbi::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->_impl_.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, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListLogicalBridgesResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ListLogicalBridgesResponse::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListLogicalBridgesResponse::GetClassData() const { return &_class_data_; } - - -void ListLogicalBridgesResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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; - - _this->_impl_.logical_bridges_.MergeFrom(from._impl_.logical_bridges_); - if (!from._internal_next_page_token().empty()) { - _this->_internal_set_next_page_token(from._internal_next_page_token()); - } - _this->_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_); - _impl_.logical_bridges_.InternalSwap(&other->_impl_.logical_bridges_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.next_page_token_, lhs_arena, - &other->_impl_.next_page_token_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ListLogicalBridgesResponse::GetMetadata() const { - return ::_pbi::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(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) -} -GetLogicalBridgeRequest::GetLogicalBridgeRequest(const GetLogicalBridgeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GetLogicalBridgeRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) -} - -inline void GetLogicalBridgeRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -GetLogicalBridgeRequest::~GetLogicalBridgeRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void GetLogicalBridgeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); -} - -void GetLogicalBridgeRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetLogicalBridgeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.name")); - } 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 = ::_pbi::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, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetLogicalBridgeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GetLogicalBridgeRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetLogicalBridgeRequest::GetClassData() const { return &_class_data_; } - - -void GetLogicalBridgeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_name(from._internal_name()); - } - _this->_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( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetLogicalBridgeRequest::GetMetadata() const { - return ::_pbi::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(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) -} -DeleteLogicalBridgeRequest::DeleteLogicalBridgeRequest(const DeleteLogicalBridgeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - DeleteLogicalBridgeRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.allow_missing_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _this->_impl_.allow_missing_ = from._impl_.allow_missing_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) -} - -inline void DeleteLogicalBridgeRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.allow_missing_){false} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -DeleteLogicalBridgeRequest::~DeleteLogicalBridgeRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void DeleteLogicalBridgeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); -} - -void DeleteLogicalBridgeRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.name_.ClearToEmpty(); - _impl_.allow_missing_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* DeleteLogicalBridgeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.name")); - } else - goto handle_unusual; - continue; - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.allow_missing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* 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); - } - - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_allow_missing(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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()); - } - - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - total_size += 1 + 1; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteLogicalBridgeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DeleteLogicalBridgeRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteLogicalBridgeRequest::GetClassData() const { return &_class_data_; } - - -void DeleteLogicalBridgeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_name(from._internal_name()); - } - if (from._internal_allow_missing() != 0) { - _this->_internal_set_allow_missing(from._internal_allow_missing()); - } - _this->_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( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - swap(_impl_.allow_missing_, other->_impl_.allow_missing_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata DeleteLogicalBridgeRequest::GetMetadata() const { - return ::_pbi::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 UpdateLogicalBridgeRequest::_Internal { - public: - static const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& logical_bridge(const UpdateLogicalBridgeRequest* msg); - static const ::PROTOBUF_NAMESPACE_ID::FieldMask& update_mask(const UpdateLogicalBridgeRequest* msg); -}; - -const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& -UpdateLogicalBridgeRequest::_Internal::logical_bridge(const UpdateLogicalBridgeRequest* msg) { - return *msg->_impl_.logical_bridge_; -} -const ::PROTOBUF_NAMESPACE_ID::FieldMask& -UpdateLogicalBridgeRequest::_Internal::update_mask(const UpdateLogicalBridgeRequest* msg) { - return *msg->_impl_.update_mask_; -} -void UpdateLogicalBridgeRequest::clear_update_mask() { - if (GetArenaForAllocation() == nullptr && _impl_.update_mask_ != nullptr) { - delete _impl_.update_mask_; - } - _impl_.update_mask_ = nullptr; -} -UpdateLogicalBridgeRequest::UpdateLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) -} -UpdateLogicalBridgeRequest::UpdateLogicalBridgeRequest(const UpdateLogicalBridgeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - UpdateLogicalBridgeRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.logical_bridge_){nullptr} - , decltype(_impl_.update_mask_){nullptr} - , decltype(_impl_.allow_missing_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_logical_bridge()) { - _this->_impl_.logical_bridge_ = new ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge(*from._impl_.logical_bridge_); - } - if (from._internal_has_update_mask()) { - _this->_impl_.update_mask_ = new ::PROTOBUF_NAMESPACE_ID::FieldMask(*from._impl_.update_mask_); - } - _this->_impl_.allow_missing_ = from._impl_.allow_missing_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) -} - -inline void UpdateLogicalBridgeRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.logical_bridge_){nullptr} - , decltype(_impl_.update_mask_){nullptr} - , decltype(_impl_.allow_missing_){false} - , /*decltype(_impl_._cached_size_)*/{} - }; -} - -UpdateLogicalBridgeRequest::~UpdateLogicalBridgeRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void UpdateLogicalBridgeRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.logical_bridge_; - if (this != internal_default_instance()) delete _impl_.update_mask_; -} - -void UpdateLogicalBridgeRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void UpdateLogicalBridgeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaForAllocation() == nullptr && _impl_.logical_bridge_ != nullptr) { - delete _impl_.logical_bridge_; - } - _impl_.logical_bridge_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.update_mask_ != nullptr) { - delete _impl_.update_mask_; - } - _impl_.update_mask_ = nullptr; - _impl_.allow_missing_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* UpdateLogicalBridgeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.google.api.field_behavior) = REQUIRED]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_logical_bridge(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_update_mask(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.allow_missing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* UpdateLogicalBridgeRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.google.api.field_behavior) = REQUIRED]; - if (this->_internal_has_logical_bridge()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::logical_bridge(this), - _Internal::logical_bridge(this).GetCachedSize(), target, stream); - } - - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_has_update_mask()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::update_mask(this), - _Internal::update_mask(this).GetCachedSize(), target, stream); - } - - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_allow_missing(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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.UpdateLogicalBridgeRequest) - return target; -} - -size_t UpdateLogicalBridgeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) - 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.LogicalBridge logical_bridge = 1 [(.google.api.field_behavior) = REQUIRED]; - if (this->_internal_has_logical_bridge()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.logical_bridge_); - } - - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_has_update_mask()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.update_mask_); - } - - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - total_size += 1 + 1; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateLogicalBridgeRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - UpdateLogicalBridgeRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateLogicalBridgeRequest::GetClassData() const { return &_class_data_; } - - -void UpdateLogicalBridgeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_logical_bridge()) { - _this->_internal_mutable_logical_bridge()->::opi_api::network::evpn_gw::v1alpha1::LogicalBridge::MergeFrom( - from._internal_logical_bridge()); - } - if (from._internal_has_update_mask()) { - _this->_internal_mutable_update_mask()->::PROTOBUF_NAMESPACE_ID::FieldMask::MergeFrom( - from._internal_update_mask()); - } - if (from._internal_allow_missing() != 0) { - _this->_internal_set_allow_missing(from._internal_allow_missing()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void UpdateLogicalBridgeRequest::CopyFrom(const UpdateLogicalBridgeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateLogicalBridgeRequest::IsInitialized() const { - return true; -} - -void UpdateLogicalBridgeRequest::InternalSwap(UpdateLogicalBridgeRequest* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(UpdateLogicalBridgeRequest, _impl_.allow_missing_) - + sizeof(UpdateLogicalBridgeRequest::_impl_.allow_missing_) - - PROTOBUF_FIELD_OFFSET(UpdateLogicalBridgeRequest, _impl_.logical_bridge_)>( - reinterpret_cast(&_impl_.logical_bridge_), - reinterpret_cast(&other->_impl_.logical_bridge_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata UpdateLogicalBridgeRequest::GetMetadata() const { - return ::_pbi::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 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->_impl_.spec_; -} -const ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus& -BridgePort::_Internal::status(const BridgePort* msg) { - return *msg->_impl_.status_; -} -BridgePort::BridgePort(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.BridgePort) -} -BridgePort::BridgePort(const BridgePort& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - BridgePort* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.spec_){nullptr} - , decltype(_impl_.status_){nullptr} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_spec()) { - _this->_impl_.spec_ = new ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec(*from._impl_.spec_); - } - if (from._internal_has_status()) { - _this->_impl_.status_ = new ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus(*from._impl_.status_); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.BridgePort) -} - -inline void BridgePort::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.spec_){nullptr} - , decltype(_impl_.status_){nullptr} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -BridgePort::~BridgePort() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.BridgePort) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void BridgePort::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - if (this != internal_default_instance()) delete _impl_.spec_; - if (this != internal_default_instance()) delete _impl_.status_; -} - -void BridgePort::SetCachedSize(int size) const { - _impl_._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; - - _impl_.name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.spec_ != nullptr) { - delete _impl_.spec_; - } - _impl_.spec_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.status_ != nullptr) { - delete _impl_.status_; - } - _impl_.status_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* BridgePort::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.BridgePort.name")); - } else - goto handle_unusual; - continue; - // .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec 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.BridgePortStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = IDENTIFIER]; - 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 [(.google.api.field_behavior) = REQUIRED]; - if (this->_internal_has_spec()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::spec(this), - _Internal::spec(this).GetCachedSize(), target, stream); - } - - // .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::status(this), - _Internal::status(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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 [(.google.api.field_behavior) = IDENTIFIER]; - 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 [(.google.api.field_behavior) = REQUIRED]; - if (this->_internal_has_spec()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.spec_); - } - - // .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.status_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BridgePort::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - BridgePort::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BridgePort::GetClassData() const { return &_class_data_; } - - -void BridgePort::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_name(from._internal_name()); - } - if (from._internal_has_spec()) { - _this->_internal_mutable_spec()->::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec::MergeFrom( - from._internal_spec()); - } - if (from._internal_has_status()) { - _this->_internal_mutable_status()->::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus::MergeFrom( - from._internal_status()); - } - _this->_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( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(BridgePort, _impl_.status_) - + sizeof(BridgePort::_impl_.status_) - - PROTOBUF_FIELD_OFFSET(BridgePort, _impl_.spec_)>( - reinterpret_cast(&_impl_.spec_), - reinterpret_cast(&other->_impl_.spec_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata BridgePort::GetMetadata() const { - return ::_pbi::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 BridgePortSpec::_Internal { - public: -}; - -BridgePortSpec::BridgePortSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) -} -BridgePortSpec::BridgePortSpec(const BridgePortSpec& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - BridgePortSpec* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.logical_bridges_){from._impl_.logical_bridges_} - , decltype(_impl_.mac_address_){} - , decltype(_impl_.ptype_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.mac_address_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.mac_address_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_mac_address().empty()) { - _this->_impl_.mac_address_.Set(from._internal_mac_address(), - _this->GetArenaForAllocation()); - } - _this->_impl_.ptype_ = from._impl_.ptype_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) -} - -inline void BridgePortSpec::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.logical_bridges_){arena} - , decltype(_impl_.mac_address_){} - , decltype(_impl_.ptype_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.mac_address_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.mac_address_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -BridgePortSpec::~BridgePortSpec() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void BridgePortSpec::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.logical_bridges_.~RepeatedPtrField(); - _impl_.mac_address_.Destroy(); -} - -void BridgePortSpec::SetCachedSize(int size) const { - _impl_._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; - - _impl_.logical_bridges_.Clear(); - _impl_.mac_address_.ClearToEmpty(); - _impl_.ptype_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* BridgePortSpec::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::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 [(.google.api.field_behavior) = OPTIONAL]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_logical_bridges(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.logical_bridges")); - 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 = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_ptype(), target); - } - - // repeated string logical_bridges = 3 [(.google.api.field_behavior) = OPTIONAL]; - 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 = ::_pbi::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 [(.google.api.field_behavior) = OPTIONAL]; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.logical_bridges_.size()); - for (int i = 0, n = _impl_.logical_bridges_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.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 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_ptype()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BridgePortSpec::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - BridgePortSpec::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BridgePortSpec::GetClassData() const { return &_class_data_; } - - -void BridgePortSpec::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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; - - _this->_impl_.logical_bridges_.MergeFrom(from._impl_.logical_bridges_); - if (!from._internal_mac_address().empty()) { - _this->_internal_set_mac_address(from._internal_mac_address()); - } - if (from._internal_ptype() != 0) { - _this->_internal_set_ptype(from._internal_ptype()); - } - _this->_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_); - _impl_.logical_bridges_.InternalSwap(&other->_impl_.logical_bridges_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.mac_address_, lhs_arena, - &other->_impl_.mac_address_, rhs_arena - ); - swap(_impl_.ptype_, other->_impl_.ptype_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata BridgePortSpec::GetMetadata() const { - return ::_pbi::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 BridgePortStatus::_Internal { - public: -}; - -BridgePortStatus::BridgePortStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) -} -BridgePortStatus::BridgePortStatus(const BridgePortStatus& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - BridgePortStatus* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.oper_status_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.oper_status_ = from._impl_.oper_status_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) -} - -inline void BridgePortStatus::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.oper_status_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; -} - -BridgePortStatus::~BridgePortStatus() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.BridgePortStatus) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void BridgePortStatus::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void BridgePortStatus::SetCachedSize(int size) const { - _impl_._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; - - _impl_.oper_status_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* BridgePortStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_oper_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_oper_status(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_oper_status() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_oper_status()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BridgePortStatus::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - BridgePortStatus::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BridgePortStatus::GetClassData() const { return &_class_data_; } - - -void BridgePortStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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) { - _this->_internal_set_oper_status(from._internal_oper_status()); - } - _this->_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(_impl_.oper_status_, other->_impl_.oper_status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata BridgePortStatus::GetMetadata() const { - return ::_pbi::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 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->_impl_.bridge_port_; -} -CreateBridgePortRequest::CreateBridgePortRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) -} -CreateBridgePortRequest::CreateBridgePortRequest(const CreateBridgePortRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CreateBridgePortRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.bridge_port_id_){} - , decltype(_impl_.bridge_port_){nullptr} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.bridge_port_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.bridge_port_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_bridge_port_id().empty()) { - _this->_impl_.bridge_port_id_.Set(from._internal_bridge_port_id(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_bridge_port()) { - _this->_impl_.bridge_port_ = new ::opi_api::network::evpn_gw::v1alpha1::BridgePort(*from._impl_.bridge_port_); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) -} - -inline void CreateBridgePortRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.bridge_port_id_){} - , decltype(_impl_.bridge_port_){nullptr} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.bridge_port_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.bridge_port_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -CreateBridgePortRequest::~CreateBridgePortRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void CreateBridgePortRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.bridge_port_id_.Destroy(); - if (this != internal_default_instance()) delete _impl_.bridge_port_; -} - -void CreateBridgePortRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.bridge_port_id_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.bridge_port_ != nullptr) { - delete _impl_.bridge_port_; - } - _impl_.bridge_port_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CreateBridgePortRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string bridge_port_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_bridge_port_id(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port_id")); - } 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 [(.google.api.field_behavior) = OPTIONAL]; - 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::bridge_port(this), - _Internal::bridge_port(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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 [(.google.api.field_behavior) = OPTIONAL]; - 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( - *_impl_.bridge_port_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateBridgePortRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CreateBridgePortRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateBridgePortRequest::GetClassData() const { return &_class_data_; } - - -void CreateBridgePortRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_bridge_port_id(from._internal_bridge_port_id()); - } - if (from._internal_has_bridge_port()) { - _this->_internal_mutable_bridge_port()->::opi_api::network::evpn_gw::v1alpha1::BridgePort::MergeFrom( - from._internal_bridge_port()); - } - _this->_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( - &_impl_.bridge_port_id_, lhs_arena, - &other->_impl_.bridge_port_id_, rhs_arena - ); - swap(_impl_.bridge_port_, other->_impl_.bridge_port_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CreateBridgePortRequest::GetMetadata() const { - return ::_pbi::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 ListBridgePortsRequest::_Internal { - public: -}; - -ListBridgePortsRequest::ListBridgePortsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) -} -ListBridgePortsRequest::ListBridgePortsRequest(const ListBridgePortsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ListBridgePortsRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.page_token_){} - , decltype(_impl_.page_size_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_page_token().empty()) { - _this->_impl_.page_token_.Set(from._internal_page_token(), - _this->GetArenaForAllocation()); - } - _this->_impl_.page_size_ = from._impl_.page_size_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) -} - -inline void ListBridgePortsRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.page_token_){} - , decltype(_impl_.page_size_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -ListBridgePortsRequest::~ListBridgePortsRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ListBridgePortsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.page_token_.Destroy(); -} - -void ListBridgePortsRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.page_token_.ClearToEmpty(); - _impl_.page_size_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ListBridgePortsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_page_token(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.page_token")); - } 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 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_page_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_page_size(), target); - } - - // string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - 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 = ::_pbi::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 [(.google.api.field_behavior) = OPTIONAL]; - if (!this->_internal_page_token().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_page_token()); - } - - // int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_page_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_page_size()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListBridgePortsRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ListBridgePortsRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListBridgePortsRequest::GetClassData() const { return &_class_data_; } - - -void ListBridgePortsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_page_token(from._internal_page_token()); - } - if (from._internal_page_size() != 0) { - _this->_internal_set_page_size(from._internal_page_size()); - } - _this->_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( - &_impl_.page_token_, lhs_arena, - &other->_impl_.page_token_, rhs_arena - ); - swap(_impl_.page_size_, other->_impl_.page_size_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ListBridgePortsRequest::GetMetadata() const { - return ::_pbi::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 ListBridgePortsResponse::_Internal { - public: -}; - -ListBridgePortsResponse::ListBridgePortsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) -} -ListBridgePortsResponse::ListBridgePortsResponse(const ListBridgePortsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ListBridgePortsResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.bridge_ports_){from._impl_.bridge_ports_} - , decltype(_impl_.next_page_token_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.next_page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.next_page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_next_page_token().empty()) { - _this->_impl_.next_page_token_.Set(from._internal_next_page_token(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) -} - -inline void ListBridgePortsResponse::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.bridge_ports_){arena} - , decltype(_impl_.next_page_token_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.next_page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.next_page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -ListBridgePortsResponse::~ListBridgePortsResponse() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ListBridgePortsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.bridge_ports_.~RepeatedPtrField(); - _impl_.next_page_token_.Destroy(); -} - -void ListBridgePortsResponse::SetCachedSize(int size) const { - _impl_._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; - - _impl_.bridge_ports_.Clear(); - _impl_.next_page_token_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ListBridgePortsResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.ListBridgePortsResponse.next_page_token")); - } 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 i = 0, - n = static_cast(this->_internal_bridge_ports_size()); i < n; i++) { - const auto& repfield = this->_internal_bridge_ports(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), 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 = ::_pbi::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->_impl_.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, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListBridgePortsResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ListBridgePortsResponse::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListBridgePortsResponse::GetClassData() const { return &_class_data_; } - - -void ListBridgePortsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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; - - _this->_impl_.bridge_ports_.MergeFrom(from._impl_.bridge_ports_); - if (!from._internal_next_page_token().empty()) { - _this->_internal_set_next_page_token(from._internal_next_page_token()); - } - _this->_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_); - _impl_.bridge_ports_.InternalSwap(&other->_impl_.bridge_ports_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.next_page_token_, lhs_arena, - &other->_impl_.next_page_token_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ListBridgePortsResponse::GetMetadata() const { - return ::_pbi::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 GetBridgePortRequest::_Internal { - public: -}; - -GetBridgePortRequest::GetBridgePortRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) -} -GetBridgePortRequest::GetBridgePortRequest(const GetBridgePortRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GetBridgePortRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) -} - -inline void GetBridgePortRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -GetBridgePortRequest::~GetBridgePortRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void GetBridgePortRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); -} - -void GetBridgePortRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetBridgePortRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.name")); - } 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 = ::_pbi::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, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetBridgePortRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GetBridgePortRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetBridgePortRequest::GetClassData() const { return &_class_data_; } - - -void GetBridgePortRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_name(from._internal_name()); - } - _this->_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( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetBridgePortRequest::GetMetadata() const { - return ::_pbi::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]); -} - -// =================================================================== - -class DeleteBridgePortRequest::_Internal { - public: -}; - -DeleteBridgePortRequest::DeleteBridgePortRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) -} -DeleteBridgePortRequest::DeleteBridgePortRequest(const DeleteBridgePortRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - DeleteBridgePortRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.allow_missing_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _this->_impl_.allow_missing_ = from._impl_.allow_missing_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) -} - -inline void DeleteBridgePortRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.allow_missing_){false} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -DeleteBridgePortRequest::~DeleteBridgePortRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void DeleteBridgePortRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); -} - -void DeleteBridgePortRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.name_.ClearToEmpty(); - _impl_.allow_missing_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* DeleteBridgePortRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.name")); - } else - goto handle_unusual; - continue; - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.allow_missing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* 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); - } - - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_allow_missing(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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()); - } - - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - total_size += 1 + 1; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteBridgePortRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DeleteBridgePortRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteBridgePortRequest::GetClassData() const { return &_class_data_; } - - -void DeleteBridgePortRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_name(from._internal_name()); - } - if (from._internal_allow_missing() != 0) { - _this->_internal_set_allow_missing(from._internal_allow_missing()); - } - _this->_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( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - swap(_impl_.allow_missing_, other->_impl_.allow_missing_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata DeleteBridgePortRequest::GetMetadata() const { - return ::_pbi::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[16]); -} - -// =================================================================== - -class UpdateBridgePortRequest::_Internal { - public: - static const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& bridge_port(const UpdateBridgePortRequest* msg); - static const ::PROTOBUF_NAMESPACE_ID::FieldMask& update_mask(const UpdateBridgePortRequest* msg); -}; - -const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& -UpdateBridgePortRequest::_Internal::bridge_port(const UpdateBridgePortRequest* msg) { - return *msg->_impl_.bridge_port_; -} -const ::PROTOBUF_NAMESPACE_ID::FieldMask& -UpdateBridgePortRequest::_Internal::update_mask(const UpdateBridgePortRequest* msg) { - return *msg->_impl_.update_mask_; -} -void UpdateBridgePortRequest::clear_update_mask() { - if (GetArenaForAllocation() == nullptr && _impl_.update_mask_ != nullptr) { - delete _impl_.update_mask_; - } - _impl_.update_mask_ = nullptr; -} -UpdateBridgePortRequest::UpdateBridgePortRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) -} -UpdateBridgePortRequest::UpdateBridgePortRequest(const UpdateBridgePortRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - UpdateBridgePortRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.bridge_port_){nullptr} - , decltype(_impl_.update_mask_){nullptr} - , decltype(_impl_.allow_missing_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_bridge_port()) { - _this->_impl_.bridge_port_ = new ::opi_api::network::evpn_gw::v1alpha1::BridgePort(*from._impl_.bridge_port_); - } - if (from._internal_has_update_mask()) { - _this->_impl_.update_mask_ = new ::PROTOBUF_NAMESPACE_ID::FieldMask(*from._impl_.update_mask_); - } - _this->_impl_.allow_missing_ = from._impl_.allow_missing_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) -} - -inline void UpdateBridgePortRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.bridge_port_){nullptr} - , decltype(_impl_.update_mask_){nullptr} - , decltype(_impl_.allow_missing_){false} - , /*decltype(_impl_._cached_size_)*/{} - }; -} - -UpdateBridgePortRequest::~UpdateBridgePortRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void UpdateBridgePortRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.bridge_port_; - if (this != internal_default_instance()) delete _impl_.update_mask_; -} - -void UpdateBridgePortRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void UpdateBridgePortRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaForAllocation() == nullptr && _impl_.bridge_port_ != nullptr) { - delete _impl_.bridge_port_; - } - _impl_.bridge_port_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.update_mask_ != nullptr) { - delete _impl_.update_mask_; - } - _impl_.update_mask_ = nullptr; - _impl_.allow_missing_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* UpdateBridgePortRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.google.api.field_behavior) = REQUIRED]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_bridge_port(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_update_mask(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.allow_missing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* UpdateBridgePortRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.google.api.field_behavior) = REQUIRED]; - if (this->_internal_has_bridge_port()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::bridge_port(this), - _Internal::bridge_port(this).GetCachedSize(), target, stream); - } - - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_has_update_mask()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::update_mask(this), - _Internal::update_mask(this).GetCachedSize(), target, stream); - } - - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_allow_missing(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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.UpdateBridgePortRequest) - return target; -} - -size_t UpdateBridgePortRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) - 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.BridgePort bridge_port = 1 [(.google.api.field_behavior) = REQUIRED]; - if (this->_internal_has_bridge_port()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.bridge_port_); - } - - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_has_update_mask()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.update_mask_); - } - - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - total_size += 1 + 1; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateBridgePortRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - UpdateBridgePortRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateBridgePortRequest::GetClassData() const { return &_class_data_; } - - -void UpdateBridgePortRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_bridge_port()) { - _this->_internal_mutable_bridge_port()->::opi_api::network::evpn_gw::v1alpha1::BridgePort::MergeFrom( - from._internal_bridge_port()); - } - if (from._internal_has_update_mask()) { - _this->_internal_mutable_update_mask()->::PROTOBUF_NAMESPACE_ID::FieldMask::MergeFrom( - from._internal_update_mask()); - } - if (from._internal_allow_missing() != 0) { - _this->_internal_set_allow_missing(from._internal_allow_missing()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void UpdateBridgePortRequest::CopyFrom(const UpdateBridgePortRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateBridgePortRequest::IsInitialized() const { - return true; -} - -void UpdateBridgePortRequest::InternalSwap(UpdateBridgePortRequest* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(UpdateBridgePortRequest, _impl_.allow_missing_) - + sizeof(UpdateBridgePortRequest::_impl_.allow_missing_) - - PROTOBUF_FIELD_OFFSET(UpdateBridgePortRequest, _impl_.bridge_port_)>( - reinterpret_cast(&_impl_.bridge_port_), - reinterpret_cast(&other->_impl_.bridge_port_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata UpdateBridgePortRequest::GetMetadata() const { - return ::_pbi::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[17]); -} - -// @@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::UpdateLogicalBridgeRequest* -Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest >(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); -} -template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* -Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest >(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 deleted file mode 100644 index 50933163..00000000 --- a/network/evpn-gw/v1alpha1/gen/cpp/l2_xpu_infra_mgr.pb.h +++ /dev/null @@ -1,5461 +0,0 @@ -// 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 < 3021000 -#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 3021006 < 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 // 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 -#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 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_; -class UpdateBridgePortRequest; -struct UpdateBridgePortRequestDefaultTypeInternal; -extern UpdateBridgePortRequestDefaultTypeInternal _UpdateBridgePortRequest_default_instance_; -class UpdateLogicalBridgeRequest; -struct UpdateLogicalBridgeRequestDefaultTypeInternal; -extern UpdateLogicalBridgeRequestDefaultTypeInternal _UpdateLogicalBridgeRequest_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*); -template<> ::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::UpdateBridgePortRequest>(Arena*); -template<> ::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::UpdateLogicalBridgeRequest>(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 PROTOBUF_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) { - LogicalBridge::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = IDENTIFIER]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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_; - struct Impl_ { - ::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_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - LogicalBridgeSpec::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 { - kVtepIpPrefixFieldNumber = 3, - kVlanIdFieldNumber = 1, - kVniFieldNumber = 2, - }; - // .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - 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 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: - - // optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; - bool has_vni() const; - private: - bool _internal_has_vni() const; - public: - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* vtep_ip_prefix_; - uint32_t vlan_id_; - uint32_t vni_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - LogicalBridgeStatus::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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_; - struct Impl_ { - int oper_status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - CreateLogicalBridgeRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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_; - struct Impl_ { - ::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_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - ListLogicalBridgesRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; - int32_t page_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - ListLogicalBridgesResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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_; - struct Impl_ { - ::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_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - GetLogicalBridgeRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - DeleteLogicalBridgeRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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, - kAllowMissingFieldNumber = 2, - }; - // 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: - - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - void clear_allow_missing(); - bool allow_missing() const; - void set_allow_missing(bool value); - private: - bool _internal_allow_missing() const; - void _internal_set_allow_missing(bool value); - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - bool allow_missing_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; -}; -// ------------------------------------------------------------------- - -class UpdateLogicalBridgeRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) */ { - public: - inline UpdateLogicalBridgeRequest() : UpdateLogicalBridgeRequest(nullptr) {} - ~UpdateLogicalBridgeRequest() override; - explicit PROTOBUF_CONSTEXPR UpdateLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - UpdateLogicalBridgeRequest(const UpdateLogicalBridgeRequest& from); - UpdateLogicalBridgeRequest(UpdateLogicalBridgeRequest&& from) noexcept - : UpdateLogicalBridgeRequest() { - *this = ::std::move(from); - } - - inline UpdateLogicalBridgeRequest& operator=(const UpdateLogicalBridgeRequest& from) { - CopyFrom(from); - return *this; - } - inline UpdateLogicalBridgeRequest& operator=(UpdateLogicalBridgeRequest&& 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 UpdateLogicalBridgeRequest& default_instance() { - return *internal_default_instance(); - } - static inline const UpdateLogicalBridgeRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateLogicalBridgeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(UpdateLogicalBridgeRequest& a, UpdateLogicalBridgeRequest& b) { - a.Swap(&b); - } - inline void Swap(UpdateLogicalBridgeRequest* 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(UpdateLogicalBridgeRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - UpdateLogicalBridgeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const UpdateLogicalBridgeRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const UpdateLogicalBridgeRequest& from) { - UpdateLogicalBridgeRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UpdateLogicalBridgeRequest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest"; - } - protected: - explicit UpdateLogicalBridgeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - 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 { - kLogicalBridgeFieldNumber = 1, - kUpdateMaskFieldNumber = 2, - kAllowMissingFieldNumber = 3, - }; - // .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.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(); - - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - bool has_update_mask() const; - private: - bool _internal_has_update_mask() const; - public: - void clear_update_mask(); - const ::PROTOBUF_NAMESPACE_ID::FieldMask& update_mask() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FieldMask* release_update_mask(); - ::PROTOBUF_NAMESPACE_ID::FieldMask* mutable_update_mask(); - void set_allocated_update_mask(::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask); - private: - const ::PROTOBUF_NAMESPACE_ID::FieldMask& _internal_update_mask() const; - ::PROTOBUF_NAMESPACE_ID::FieldMask* _internal_mutable_update_mask(); - public: - void unsafe_arena_set_allocated_update_mask( - ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask); - ::PROTOBUF_NAMESPACE_ID::FieldMask* unsafe_arena_release_update_mask(); - - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - void clear_allow_missing(); - bool allow_missing() const; - void set_allow_missing(bool value); - private: - bool _internal_allow_missing() const; - void _internal_set_allow_missing(bool value); - public: - - // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* logical_bridge_; - ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask_; - bool allow_missing_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 9; - - 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) { - BridgePort::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = IDENTIFIER]; - 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 [(.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::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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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_; - struct Impl_ { - ::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_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 10; - - 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) { - BridgePortSpec::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField logical_bridges_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mac_address_; - int ptype_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 11; - - 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) { - BridgePortStatus::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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_; - struct Impl_ { - int oper_status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 12; - - 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) { - CreateBridgePortRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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_; - struct Impl_ { - ::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_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 13; - - 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) { - ListBridgePortsRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; - int32_t page_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 14; - - 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) { - ListBridgePortsResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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_; - struct Impl_ { - ::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_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 15; - - 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) { - GetBridgePortRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 16; - - 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) { - DeleteBridgePortRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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, - kAllowMissingFieldNumber = 2, - }; - // 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: - - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - void clear_allow_missing(); - bool allow_missing() const; - void set_allow_missing(bool value); - private: - bool _internal_allow_missing() const; - void _internal_set_allow_missing(bool value); - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - bool allow_missing_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_l2_5fxpu_5finfra_5fmgr_2eproto; -}; -// ------------------------------------------------------------------- - -class UpdateBridgePortRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) */ { - public: - inline UpdateBridgePortRequest() : UpdateBridgePortRequest(nullptr) {} - ~UpdateBridgePortRequest() override; - explicit PROTOBUF_CONSTEXPR UpdateBridgePortRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - UpdateBridgePortRequest(const UpdateBridgePortRequest& from); - UpdateBridgePortRequest(UpdateBridgePortRequest&& from) noexcept - : UpdateBridgePortRequest() { - *this = ::std::move(from); - } - - inline UpdateBridgePortRequest& operator=(const UpdateBridgePortRequest& from) { - CopyFrom(from); - return *this; - } - inline UpdateBridgePortRequest& operator=(UpdateBridgePortRequest&& 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 UpdateBridgePortRequest& default_instance() { - return *internal_default_instance(); - } - static inline const UpdateBridgePortRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateBridgePortRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(UpdateBridgePortRequest& a, UpdateBridgePortRequest& b) { - a.Swap(&b); - } - inline void Swap(UpdateBridgePortRequest* 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(UpdateBridgePortRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - UpdateBridgePortRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const UpdateBridgePortRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const UpdateBridgePortRequest& from) { - UpdateBridgePortRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UpdateBridgePortRequest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest"; - } - protected: - explicit UpdateBridgePortRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - 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 { - kBridgePortFieldNumber = 1, - kUpdateMaskFieldNumber = 2, - kAllowMissingFieldNumber = 3, - }; - // .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.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(); - - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - bool has_update_mask() const; - private: - bool _internal_has_update_mask() const; - public: - void clear_update_mask(); - const ::PROTOBUF_NAMESPACE_ID::FieldMask& update_mask() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FieldMask* release_update_mask(); - ::PROTOBUF_NAMESPACE_ID::FieldMask* mutable_update_mask(); - void set_allocated_update_mask(::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask); - private: - const ::PROTOBUF_NAMESPACE_ID::FieldMask& _internal_update_mask() const; - ::PROTOBUF_NAMESPACE_ID::FieldMask* _internal_mutable_update_mask(); - public: - void unsafe_arena_set_allocated_update_mask( - ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask); - ::PROTOBUF_NAMESPACE_ID::FieldMask* unsafe_arena_release_update_mask(); - - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - void clear_allow_missing(); - bool allow_missing() const; - void set_allow_missing(bool value); - private: - bool _internal_allow_missing() const; - void _internal_set_allow_missing(bool value); - public: - - // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::opi_api::network::evpn_gw::v1alpha1::BridgePort* bridge_port_; - ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask_; - bool allow_missing_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 [(.google.api.field_behavior) = IDENTIFIER]; -inline void LogicalBridge::clear_name() { - _impl_.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) { - - _impl_.name_.Set(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 _impl_.name_.Get(); -} -inline void LogicalBridge::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* LogicalBridge::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* LogicalBridge::release_name() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.LogicalBridge.name) - return _impl_.name_.Release(); -} -inline void LogicalBridge::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", 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() && _impl_.spec_ != nullptr; -} -inline bool LogicalBridge::has_spec() const { - return _internal_has_spec(); -} -inline void LogicalBridge::clear_spec() { - if (GetArenaForAllocation() == nullptr && _impl_.spec_ != nullptr) { - delete _impl_.spec_; - } - _impl_.spec_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec& LogicalBridge::_internal_spec() const { - const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* p = _impl_.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*>(_impl_.spec_); - } - _impl_.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 = _impl_.spec_; - _impl_.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 = _impl_.spec_; - _impl_.spec_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec* LogicalBridge::_internal_mutable_spec() { - - if (_impl_.spec_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeSpec>(GetArenaForAllocation()); - _impl_.spec_ = p; - } - return _impl_.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 _impl_.spec_; - } - if (spec) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(spec); - if (message_arena != submessage_arena) { - spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - - } else { - - } - _impl_.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 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline bool LogicalBridge::_internal_has_status() const { - return this != internal_default_instance() && _impl_.status_ != nullptr; -} -inline bool LogicalBridge::has_status() const { - return _internal_has_status(); -} -inline void LogicalBridge::clear_status() { - if (GetArenaForAllocation() == nullptr && _impl_.status_ != nullptr) { - delete _impl_.status_; - } - _impl_.status_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus& LogicalBridge::_internal_status() const { - const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* p = _impl_.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*>(_impl_.status_); - } - _impl_.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 = _impl_.status_; - _impl_.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 = _impl_.status_; - _impl_.status_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus* LogicalBridge::_internal_mutable_status() { - - if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::LogicalBridgeStatus>(GetArenaForAllocation()); - _impl_.status_ = p; - } - return _impl_.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 _impl_.status_; - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(status); - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - _impl_.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() { - _impl_.vlan_id_ = 0u; -} -inline uint32_t LogicalBridgeSpec::_internal_vlan_id() const { - return _impl_.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) { - - _impl_.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) -} - -// optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; -inline bool LogicalBridgeSpec::_internal_has_vni() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool LogicalBridgeSpec::has_vni() const { - return _internal_has_vni(); -} -inline void LogicalBridgeSpec::clear_vni() { - _impl_.vni_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline uint32_t LogicalBridgeSpec::_internal_vni() const { - return _impl_.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) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.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) -} - -// .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; -inline bool LogicalBridgeSpec::_internal_has_vtep_ip_prefix() const { - return this != internal_default_instance() && _impl_.vtep_ip_prefix_ != nullptr; -} -inline bool LogicalBridgeSpec::has_vtep_ip_prefix() const { - return _internal_has_vtep_ip_prefix(); -} -inline const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& LogicalBridgeSpec::_internal_vtep_ip_prefix() const { - const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* p = _impl_.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& LogicalBridgeSpec::vtep_ip_prefix() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.vtep_ip_prefix) - return _internal_vtep_ip_prefix(); -} -inline void LogicalBridgeSpec::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*>(_impl_.vtep_ip_prefix_); - } - _impl_.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.LogicalBridgeSpec.vtep_ip_prefix) -} -inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* LogicalBridgeSpec::release_vtep_ip_prefix() { - - ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* temp = _impl_.vtep_ip_prefix_; - _impl_.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* LogicalBridgeSpec::unsafe_arena_release_vtep_ip_prefix() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.vtep_ip_prefix) - - ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* temp = _impl_.vtep_ip_prefix_; - _impl_.vtep_ip_prefix_ = nullptr; - return temp; -} -inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* LogicalBridgeSpec::_internal_mutable_vtep_ip_prefix() { - - if (_impl_.vtep_ip_prefix_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::opinetcommon::v1alpha1::IPPrefix>(GetArenaForAllocation()); - _impl_.vtep_ip_prefix_ = p; - } - return _impl_.vtep_ip_prefix_; -} -inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* LogicalBridgeSpec::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.LogicalBridgeSpec.vtep_ip_prefix) - return _msg; -} -inline void LogicalBridgeSpec::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*>(_impl_.vtep_ip_prefix_); - } - if (vtep_ip_prefix) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - 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 { - - } - _impl_.vtep_ip_prefix_ = vtep_ip_prefix; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpec.vtep_ip_prefix) -} - -// ------------------------------------------------------------------- - -// LogicalBridgeStatus - -// .opi_api.network.evpn_gw.v1alpha1.LBOperStatus oper_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline void LogicalBridgeStatus::clear_oper_status() { - _impl_.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 >(_impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OPTIONAL]; -inline void CreateLogicalBridgeRequest::clear_logical_bridge_id() { - _impl_.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) { - - _impl_.logical_bridge_id_.Set(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 _impl_.logical_bridge_id_.Get(); -} -inline void CreateLogicalBridgeRequest::_internal_set_logical_bridge_id(const std::string& value) { - - _impl_.logical_bridge_id_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateLogicalBridgeRequest::_internal_mutable_logical_bridge_id() { - - return _impl_.logical_bridge_id_.Mutable(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 _impl_.logical_bridge_id_.Release(); -} -inline void CreateLogicalBridgeRequest::set_allocated_logical_bridge_id(std::string* logical_bridge_id) { - if (logical_bridge_id != nullptr) { - - } else { - - } - _impl_.logical_bridge_id_.SetAllocated(logical_bridge_id, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.logical_bridge_id_.IsDefault()) { - _impl_.logical_bridge_id_.Set("", 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() && _impl_.logical_bridge_ != nullptr; -} -inline bool CreateLogicalBridgeRequest::has_logical_bridge() const { - return _internal_has_logical_bridge(); -} -inline void CreateLogicalBridgeRequest::clear_logical_bridge() { - if (GetArenaForAllocation() == nullptr && _impl_.logical_bridge_ != nullptr) { - delete _impl_.logical_bridge_; - } - _impl_.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 = _impl_.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*>(_impl_.logical_bridge_); - } - _impl_.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 = _impl_.logical_bridge_; - _impl_.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 = _impl_.logical_bridge_; - _impl_.logical_bridge_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* CreateLogicalBridgeRequest::_internal_mutable_logical_bridge() { - - if (_impl_.logical_bridge_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>(GetArenaForAllocation()); - _impl_.logical_bridge_ = p; - } - return _impl_.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 _impl_.logical_bridge_; - } - if (logical_bridge) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(logical_bridge); - if (message_arena != submessage_arena) { - logical_bridge = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, logical_bridge, submessage_arena); - } - - } else { - - } - _impl_.logical_bridge_ = logical_bridge; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateLogicalBridgeRequest.logical_bridge) -} - -// ------------------------------------------------------------------- - -// ListLogicalBridgesRequest - -// int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; -inline void ListLogicalBridgesRequest::clear_page_size() { - _impl_.page_size_ = 0; -} -inline int32_t ListLogicalBridgesRequest::_internal_page_size() const { - return _impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OPTIONAL]; -inline void ListLogicalBridgesRequest::clear_page_token() { - _impl_.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) { - - _impl_.page_token_.Set(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 _impl_.page_token_.Get(); -} -inline void ListLogicalBridgesRequest::_internal_set_page_token(const std::string& value) { - - _impl_.page_token_.Set(value, GetArenaForAllocation()); -} -inline std::string* ListLogicalBridgesRequest::_internal_mutable_page_token() { - - return _impl_.page_token_.Mutable(GetArenaForAllocation()); -} -inline std::string* ListLogicalBridgesRequest::release_page_token() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.ListLogicalBridgesRequest.page_token) - return _impl_.page_token_.Release(); -} -inline void ListLogicalBridgesRequest::set_allocated_page_token(std::string* page_token) { - if (page_token != nullptr) { - - } else { - - } - _impl_.page_token_.SetAllocated(page_token, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.page_token_.IsDefault()) { - _impl_.page_token_.Set("", 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 _impl_.logical_bridges_.size(); -} -inline int ListLogicalBridgesResponse::logical_bridges_size() const { - return _internal_logical_bridges_size(); -} -inline void ListLogicalBridgesResponse::clear_logical_bridges() { - _impl_.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 _impl_.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 &_impl_.logical_bridges_; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& ListLogicalBridgesResponse::_internal_logical_bridges(int index) const { - return _impl_.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 _impl_.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 _impl_.logical_bridges_; -} - -// string next_page_token = 2; -inline void ListLogicalBridgesResponse::clear_next_page_token() { - _impl_.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) { - - _impl_.next_page_token_.Set(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 _impl_.next_page_token_.Get(); -} -inline void ListLogicalBridgesResponse::_internal_set_next_page_token(const std::string& value) { - - _impl_.next_page_token_.Set(value, GetArenaForAllocation()); -} -inline std::string* ListLogicalBridgesResponse::_internal_mutable_next_page_token() { - - return _impl_.next_page_token_.Mutable(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 _impl_.next_page_token_.Release(); -} -inline void ListLogicalBridgesResponse::set_allocated_next_page_token(std::string* next_page_token) { - if (next_page_token != nullptr) { - - } else { - - } - _impl_.next_page_token_.SetAllocated(next_page_token, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.next_page_token_.IsDefault()) { - _impl_.next_page_token_.Set("", 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() { - _impl_.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) { - - _impl_.name_.Set(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 _impl_.name_.Get(); -} -inline void GetLogicalBridgeRequest::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* GetLogicalBridgeRequest::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* GetLogicalBridgeRequest::release_name() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.GetLogicalBridgeRequest.name) - return _impl_.name_.Release(); -} -inline void GetLogicalBridgeRequest::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", 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() { - _impl_.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) { - - _impl_.name_.Set(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 _impl_.name_.Get(); -} -inline void DeleteLogicalBridgeRequest::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* DeleteLogicalBridgeRequest::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* DeleteLogicalBridgeRequest::release_name() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.name) - return _impl_.name_.Release(); -} -inline void DeleteLogicalBridgeRequest::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.name) -} - -// bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; -inline void DeleteLogicalBridgeRequest::clear_allow_missing() { - _impl_.allow_missing_ = false; -} -inline bool DeleteLogicalBridgeRequest::_internal_allow_missing() const { - return _impl_.allow_missing_; -} -inline bool DeleteLogicalBridgeRequest::allow_missing() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.allow_missing) - return _internal_allow_missing(); -} -inline void DeleteLogicalBridgeRequest::_internal_set_allow_missing(bool value) { - - _impl_.allow_missing_ = value; -} -inline void DeleteLogicalBridgeRequest::set_allow_missing(bool value) { - _internal_set_allow_missing(value); - // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest.allow_missing) -} - -// ------------------------------------------------------------------- - -// UpdateLogicalBridgeRequest - -// .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.google.api.field_behavior) = REQUIRED]; -inline bool UpdateLogicalBridgeRequest::_internal_has_logical_bridge() const { - return this != internal_default_instance() && _impl_.logical_bridge_ != nullptr; -} -inline bool UpdateLogicalBridgeRequest::has_logical_bridge() const { - return _internal_has_logical_bridge(); -} -inline void UpdateLogicalBridgeRequest::clear_logical_bridge() { - if (GetArenaForAllocation() == nullptr && _impl_.logical_bridge_ != nullptr) { - delete _impl_.logical_bridge_; - } - _impl_.logical_bridge_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge& UpdateLogicalBridgeRequest::_internal_logical_bridge() const { - const ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* p = _impl_.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& UpdateLogicalBridgeRequest::logical_bridge() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.logical_bridge) - return _internal_logical_bridge(); -} -inline void UpdateLogicalBridgeRequest::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*>(_impl_.logical_bridge_); - } - _impl_.logical_bridge_ = logical_bridge; - if (logical_bridge) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.logical_bridge) -} -inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* UpdateLogicalBridgeRequest::release_logical_bridge() { - - ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* temp = _impl_.logical_bridge_; - _impl_.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* UpdateLogicalBridgeRequest::unsafe_arena_release_logical_bridge() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.logical_bridge) - - ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* temp = _impl_.logical_bridge_; - _impl_.logical_bridge_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* UpdateLogicalBridgeRequest::_internal_mutable_logical_bridge() { - - if (_impl_.logical_bridge_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::LogicalBridge>(GetArenaForAllocation()); - _impl_.logical_bridge_ = p; - } - return _impl_.logical_bridge_; -} -inline ::opi_api::network::evpn_gw::v1alpha1::LogicalBridge* UpdateLogicalBridgeRequest::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.UpdateLogicalBridgeRequest.logical_bridge) - return _msg; -} -inline void UpdateLogicalBridgeRequest::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 _impl_.logical_bridge_; - } - if (logical_bridge) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(logical_bridge); - if (message_arena != submessage_arena) { - logical_bridge = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, logical_bridge, submessage_arena); - } - - } else { - - } - _impl_.logical_bridge_ = logical_bridge; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.logical_bridge) -} - -// .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; -inline bool UpdateLogicalBridgeRequest::_internal_has_update_mask() const { - return this != internal_default_instance() && _impl_.update_mask_ != nullptr; -} -inline bool UpdateLogicalBridgeRequest::has_update_mask() const { - return _internal_has_update_mask(); -} -inline const ::PROTOBUF_NAMESPACE_ID::FieldMask& UpdateLogicalBridgeRequest::_internal_update_mask() const { - const ::PROTOBUF_NAMESPACE_ID::FieldMask* p = _impl_.update_mask_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_FieldMask_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::FieldMask& UpdateLogicalBridgeRequest::update_mask() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.update_mask) - return _internal_update_mask(); -} -inline void UpdateLogicalBridgeRequest::unsafe_arena_set_allocated_update_mask( - ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.update_mask_); - } - _impl_.update_mask_ = update_mask; - if (update_mask) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.update_mask) -} -inline ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateLogicalBridgeRequest::release_update_mask() { - - ::PROTOBUF_NAMESPACE_ID::FieldMask* temp = _impl_.update_mask_; - _impl_.update_mask_ = 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 ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateLogicalBridgeRequest::unsafe_arena_release_update_mask() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.update_mask) - - ::PROTOBUF_NAMESPACE_ID::FieldMask* temp = _impl_.update_mask_; - _impl_.update_mask_ = nullptr; - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateLogicalBridgeRequest::_internal_mutable_update_mask() { - - if (_impl_.update_mask_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldMask>(GetArenaForAllocation()); - _impl_.update_mask_ = p; - } - return _impl_.update_mask_; -} -inline ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateLogicalBridgeRequest::mutable_update_mask() { - ::PROTOBUF_NAMESPACE_ID::FieldMask* _msg = _internal_mutable_update_mask(); - // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.update_mask) - return _msg; -} -inline void UpdateLogicalBridgeRequest::set_allocated_update_mask(::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.update_mask_); - } - if (update_mask) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_mask)); - if (message_arena != submessage_arena) { - update_mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, update_mask, submessage_arena); - } - - } else { - - } - _impl_.update_mask_ = update_mask; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.update_mask) -} - -// bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; -inline void UpdateLogicalBridgeRequest::clear_allow_missing() { - _impl_.allow_missing_ = false; -} -inline bool UpdateLogicalBridgeRequest::_internal_allow_missing() const { - return _impl_.allow_missing_; -} -inline bool UpdateLogicalBridgeRequest::allow_missing() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.allow_missing) - return _internal_allow_missing(); -} -inline void UpdateLogicalBridgeRequest::_internal_set_allow_missing(bool value) { - - _impl_.allow_missing_ = value; -} -inline void UpdateLogicalBridgeRequest::set_allow_missing(bool value) { - _internal_set_allow_missing(value); - // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.allow_missing) -} - -// ------------------------------------------------------------------- - -// BridgePort - -// string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; -inline void BridgePort::clear_name() { - _impl_.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) { - - _impl_.name_.Set(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 _impl_.name_.Get(); -} -inline void BridgePort::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* BridgePort::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* BridgePort::release_name() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.BridgePort.name) - return _impl_.name_.Release(); -} -inline void BridgePort::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", 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 [(.google.api.field_behavior) = REQUIRED]; -inline bool BridgePort::_internal_has_spec() const { - return this != internal_default_instance() && _impl_.spec_ != nullptr; -} -inline bool BridgePort::has_spec() const { - return _internal_has_spec(); -} -inline void BridgePort::clear_spec() { - if (GetArenaForAllocation() == nullptr && _impl_.spec_ != nullptr) { - delete _impl_.spec_; - } - _impl_.spec_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec& BridgePort::_internal_spec() const { - const ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* p = _impl_.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*>(_impl_.spec_); - } - _impl_.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 = _impl_.spec_; - _impl_.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 = _impl_.spec_; - _impl_.spec_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec* BridgePort::_internal_mutable_spec() { - - if (_impl_.spec_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::BridgePortSpec>(GetArenaForAllocation()); - _impl_.spec_ = p; - } - return _impl_.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 _impl_.spec_; - } - if (spec) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(spec); - if (message_arena != submessage_arena) { - spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - - } else { - - } - _impl_.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 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline bool BridgePort::_internal_has_status() const { - return this != internal_default_instance() && _impl_.status_ != nullptr; -} -inline bool BridgePort::has_status() const { - return _internal_has_status(); -} -inline void BridgePort::clear_status() { - if (GetArenaForAllocation() == nullptr && _impl_.status_ != nullptr) { - delete _impl_.status_; - } - _impl_.status_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus& BridgePort::_internal_status() const { - const ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* p = _impl_.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*>(_impl_.status_); - } - _impl_.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 = _impl_.status_; - _impl_.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 = _impl_.status_; - _impl_.status_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus* BridgePort::_internal_mutable_status() { - - if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::BridgePortStatus>(GetArenaForAllocation()); - _impl_.status_ = p; - } - return _impl_.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 _impl_.status_; - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(status); - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - _impl_.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() { - _impl_.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) { - - _impl_.mac_address_.SetBytes(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 _impl_.mac_address_.Get(); -} -inline void BridgePortSpec::_internal_set_mac_address(const std::string& value) { - - _impl_.mac_address_.Set(value, GetArenaForAllocation()); -} -inline std::string* BridgePortSpec::_internal_mutable_mac_address() { - - return _impl_.mac_address_.Mutable(GetArenaForAllocation()); -} -inline std::string* BridgePortSpec::release_mac_address() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.BridgePortSpec.mac_address) - return _impl_.mac_address_.Release(); -} -inline void BridgePortSpec::set_allocated_mac_address(std::string* mac_address) { - if (mac_address != nullptr) { - - } else { - - } - _impl_.mac_address_.SetAllocated(mac_address, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mac_address_.IsDefault()) { - _impl_.mac_address_.Set("", 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() { - _impl_.ptype_ = 0; -} -inline ::opi_api::network::evpn_gw::v1alpha1::BridgePortType BridgePortSpec::_internal_ptype() const { - return static_cast< ::opi_api::network::evpn_gw::v1alpha1::BridgePortType >(_impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OPTIONAL]; -inline int BridgePortSpec::_internal_logical_bridges_size() const { - return _impl_.logical_bridges_.size(); -} -inline int BridgePortSpec::logical_bridges_size() const { - return _internal_logical_bridges_size(); -} -inline void BridgePortSpec::clear_logical_bridges() { - _impl_.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 _impl_.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 _impl_.logical_bridges_.Mutable(index); -} -inline void BridgePortSpec::set_logical_bridges(int index, const std::string& value) { - _impl_.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) { - _impl_.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); - _impl_.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) { - _impl_.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 _impl_.logical_bridges_.Add(); -} -inline void BridgePortSpec::add_logical_bridges(const std::string& value) { - _impl_.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) { - _impl_.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); - _impl_.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) { - _impl_.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 _impl_.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 &_impl_.logical_bridges_; -} - -// ------------------------------------------------------------------- - -// BridgePortStatus - -// .opi_api.network.evpn_gw.v1alpha1.BPOperStatus oper_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline void BridgePortStatus::clear_oper_status() { - _impl_.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 >(_impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OPTIONAL]; -inline void CreateBridgePortRequest::clear_bridge_port_id() { - _impl_.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) { - - _impl_.bridge_port_id_.Set(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 _impl_.bridge_port_id_.Get(); -} -inline void CreateBridgePortRequest::_internal_set_bridge_port_id(const std::string& value) { - - _impl_.bridge_port_id_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateBridgePortRequest::_internal_mutable_bridge_port_id() { - - return _impl_.bridge_port_id_.Mutable(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 _impl_.bridge_port_id_.Release(); -} -inline void CreateBridgePortRequest::set_allocated_bridge_port_id(std::string* bridge_port_id) { - if (bridge_port_id != nullptr) { - - } else { - - } - _impl_.bridge_port_id_.SetAllocated(bridge_port_id, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.bridge_port_id_.IsDefault()) { - _impl_.bridge_port_id_.Set("", 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() && _impl_.bridge_port_ != nullptr; -} -inline bool CreateBridgePortRequest::has_bridge_port() const { - return _internal_has_bridge_port(); -} -inline void CreateBridgePortRequest::clear_bridge_port() { - if (GetArenaForAllocation() == nullptr && _impl_.bridge_port_ != nullptr) { - delete _impl_.bridge_port_; - } - _impl_.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 = _impl_.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*>(_impl_.bridge_port_); - } - _impl_.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 = _impl_.bridge_port_; - _impl_.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 = _impl_.bridge_port_; - _impl_.bridge_port_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::BridgePort* CreateBridgePortRequest::_internal_mutable_bridge_port() { - - if (_impl_.bridge_port_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::BridgePort>(GetArenaForAllocation()); - _impl_.bridge_port_ = p; - } - return _impl_.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 _impl_.bridge_port_; - } - if (bridge_port) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bridge_port); - if (message_arena != submessage_arena) { - bridge_port = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, bridge_port, submessage_arena); - } - - } else { - - } - _impl_.bridge_port_ = bridge_port; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateBridgePortRequest.bridge_port) -} - -// ------------------------------------------------------------------- - -// ListBridgePortsRequest - -// int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; -inline void ListBridgePortsRequest::clear_page_size() { - _impl_.page_size_ = 0; -} -inline int32_t ListBridgePortsRequest::_internal_page_size() const { - return _impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OPTIONAL]; -inline void ListBridgePortsRequest::clear_page_token() { - _impl_.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) { - - _impl_.page_token_.Set(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 _impl_.page_token_.Get(); -} -inline void ListBridgePortsRequest::_internal_set_page_token(const std::string& value) { - - _impl_.page_token_.Set(value, GetArenaForAllocation()); -} -inline std::string* ListBridgePortsRequest::_internal_mutable_page_token() { - - return _impl_.page_token_.Mutable(GetArenaForAllocation()); -} -inline std::string* ListBridgePortsRequest::release_page_token() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.ListBridgePortsRequest.page_token) - return _impl_.page_token_.Release(); -} -inline void ListBridgePortsRequest::set_allocated_page_token(std::string* page_token) { - if (page_token != nullptr) { - - } else { - - } - _impl_.page_token_.SetAllocated(page_token, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.page_token_.IsDefault()) { - _impl_.page_token_.Set("", 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 _impl_.bridge_ports_.size(); -} -inline int ListBridgePortsResponse::bridge_ports_size() const { - return _internal_bridge_ports_size(); -} -inline void ListBridgePortsResponse::clear_bridge_ports() { - _impl_.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 _impl_.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 &_impl_.bridge_ports_; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& ListBridgePortsResponse::_internal_bridge_ports(int index) const { - return _impl_.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 _impl_.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 _impl_.bridge_ports_; -} - -// string next_page_token = 2; -inline void ListBridgePortsResponse::clear_next_page_token() { - _impl_.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) { - - _impl_.next_page_token_.Set(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 _impl_.next_page_token_.Get(); -} -inline void ListBridgePortsResponse::_internal_set_next_page_token(const std::string& value) { - - _impl_.next_page_token_.Set(value, GetArenaForAllocation()); -} -inline std::string* ListBridgePortsResponse::_internal_mutable_next_page_token() { - - return _impl_.next_page_token_.Mutable(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 _impl_.next_page_token_.Release(); -} -inline void ListBridgePortsResponse::set_allocated_next_page_token(std::string* next_page_token) { - if (next_page_token != nullptr) { - - } else { - - } - _impl_.next_page_token_.SetAllocated(next_page_token, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.next_page_token_.IsDefault()) { - _impl_.next_page_token_.Set("", 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() { - _impl_.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) { - - _impl_.name_.Set(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 _impl_.name_.Get(); -} -inline void GetBridgePortRequest::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* GetBridgePortRequest::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* GetBridgePortRequest::release_name() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.GetBridgePortRequest.name) - return _impl_.name_.Release(); -} -inline void GetBridgePortRequest::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", 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() { - _impl_.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) { - - _impl_.name_.Set(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 _impl_.name_.Get(); -} -inline void DeleteBridgePortRequest::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* DeleteBridgePortRequest::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* DeleteBridgePortRequest::release_name() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.name) - return _impl_.name_.Release(); -} -inline void DeleteBridgePortRequest::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.name) -} - -// bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; -inline void DeleteBridgePortRequest::clear_allow_missing() { - _impl_.allow_missing_ = false; -} -inline bool DeleteBridgePortRequest::_internal_allow_missing() const { - return _impl_.allow_missing_; -} -inline bool DeleteBridgePortRequest::allow_missing() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.allow_missing) - return _internal_allow_missing(); -} -inline void DeleteBridgePortRequest::_internal_set_allow_missing(bool value) { - - _impl_.allow_missing_ = value; -} -inline void DeleteBridgePortRequest::set_allow_missing(bool value) { - _internal_set_allow_missing(value); - // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest.allow_missing) -} - -// ------------------------------------------------------------------- - -// UpdateBridgePortRequest - -// .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.google.api.field_behavior) = REQUIRED]; -inline bool UpdateBridgePortRequest::_internal_has_bridge_port() const { - return this != internal_default_instance() && _impl_.bridge_port_ != nullptr; -} -inline bool UpdateBridgePortRequest::has_bridge_port() const { - return _internal_has_bridge_port(); -} -inline void UpdateBridgePortRequest::clear_bridge_port() { - if (GetArenaForAllocation() == nullptr && _impl_.bridge_port_ != nullptr) { - delete _impl_.bridge_port_; - } - _impl_.bridge_port_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::BridgePort& UpdateBridgePortRequest::_internal_bridge_port() const { - const ::opi_api::network::evpn_gw::v1alpha1::BridgePort* p = _impl_.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& UpdateBridgePortRequest::bridge_port() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.bridge_port) - return _internal_bridge_port(); -} -inline void UpdateBridgePortRequest::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*>(_impl_.bridge_port_); - } - _impl_.bridge_port_ = bridge_port; - if (bridge_port) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.bridge_port) -} -inline ::opi_api::network::evpn_gw::v1alpha1::BridgePort* UpdateBridgePortRequest::release_bridge_port() { - - ::opi_api::network::evpn_gw::v1alpha1::BridgePort* temp = _impl_.bridge_port_; - _impl_.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* UpdateBridgePortRequest::unsafe_arena_release_bridge_port() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.bridge_port) - - ::opi_api::network::evpn_gw::v1alpha1::BridgePort* temp = _impl_.bridge_port_; - _impl_.bridge_port_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::BridgePort* UpdateBridgePortRequest::_internal_mutable_bridge_port() { - - if (_impl_.bridge_port_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::BridgePort>(GetArenaForAllocation()); - _impl_.bridge_port_ = p; - } - return _impl_.bridge_port_; -} -inline ::opi_api::network::evpn_gw::v1alpha1::BridgePort* UpdateBridgePortRequest::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.UpdateBridgePortRequest.bridge_port) - return _msg; -} -inline void UpdateBridgePortRequest::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 _impl_.bridge_port_; - } - if (bridge_port) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(bridge_port); - if (message_arena != submessage_arena) { - bridge_port = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, bridge_port, submessage_arena); - } - - } else { - - } - _impl_.bridge_port_ = bridge_port; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.bridge_port) -} - -// .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; -inline bool UpdateBridgePortRequest::_internal_has_update_mask() const { - return this != internal_default_instance() && _impl_.update_mask_ != nullptr; -} -inline bool UpdateBridgePortRequest::has_update_mask() const { - return _internal_has_update_mask(); -} -inline const ::PROTOBUF_NAMESPACE_ID::FieldMask& UpdateBridgePortRequest::_internal_update_mask() const { - const ::PROTOBUF_NAMESPACE_ID::FieldMask* p = _impl_.update_mask_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_FieldMask_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::FieldMask& UpdateBridgePortRequest::update_mask() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.update_mask) - return _internal_update_mask(); -} -inline void UpdateBridgePortRequest::unsafe_arena_set_allocated_update_mask( - ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.update_mask_); - } - _impl_.update_mask_ = update_mask; - if (update_mask) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.update_mask) -} -inline ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateBridgePortRequest::release_update_mask() { - - ::PROTOBUF_NAMESPACE_ID::FieldMask* temp = _impl_.update_mask_; - _impl_.update_mask_ = 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 ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateBridgePortRequest::unsafe_arena_release_update_mask() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.update_mask) - - ::PROTOBUF_NAMESPACE_ID::FieldMask* temp = _impl_.update_mask_; - _impl_.update_mask_ = nullptr; - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateBridgePortRequest::_internal_mutable_update_mask() { - - if (_impl_.update_mask_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldMask>(GetArenaForAllocation()); - _impl_.update_mask_ = p; - } - return _impl_.update_mask_; -} -inline ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateBridgePortRequest::mutable_update_mask() { - ::PROTOBUF_NAMESPACE_ID::FieldMask* _msg = _internal_mutable_update_mask(); - // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.update_mask) - return _msg; -} -inline void UpdateBridgePortRequest::set_allocated_update_mask(::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.update_mask_); - } - if (update_mask) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_mask)); - if (message_arena != submessage_arena) { - update_mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, update_mask, submessage_arena); - } - - } else { - - } - _impl_.update_mask_ = update_mask; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.update_mask) -} - -// bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; -inline void UpdateBridgePortRequest::clear_allow_missing() { - _impl_.allow_missing_ = false; -} -inline bool UpdateBridgePortRequest::_internal_allow_missing() const { - return _impl_.allow_missing_; -} -inline bool UpdateBridgePortRequest::allow_missing() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.allow_missing) - return _internal_allow_missing(); -} -inline void UpdateBridgePortRequest::_internal_set_allow_missing(bool value) { - - _impl_.allow_missing_ = value; -} -inline void UpdateBridgePortRequest::set_allow_missing(bool value) { - _internal_set_allow_missing(value); - // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.allow_missing) -} - -#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 deleted file mode 100644 index 8871febe..00000000 --- a/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.grpc.pb.cc +++ /dev/null @@ -1,489 +0,0 @@ -// 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", - "/opi_api.network.evpn_gw.v1alpha1.VrfService/UpdateVrf", -}; - -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) - , rpcmethod_UpdateVrf_(VrfService_method_names[4], 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; -} - -::grpc::Status VrfService::Stub::UpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) { - return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateVrf_, context, request, response); -} - -void VrfService::Stub::async::UpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateVrf_, context, request, response, std::move(f)); -} - -void VrfService::Stub::async::UpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* 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_UpdateVrf_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* VrfService::Stub::PrepareAsyncUpdateVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::Vrf, ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateVrf_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* VrfService::Stub::AsyncUpdateVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateVrfRaw(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))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - VrfService_method_names[4], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< VrfService::Service, ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest, ::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::UpdateVrfRequest* req, - ::opi_api::network::evpn_gw::v1alpha1::Vrf* resp) { - return service->UpdateVrf(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, ""); -} - -::grpc::Status VrfService::Service::UpdateVrf(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* 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", - "/opi_api.network.evpn_gw.v1alpha1.SviService/UpdateSvi", -}; - -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) - , rpcmethod_UpdateSvi_(SviService_method_names[4], 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; -} - -::grpc::Status SviService::Stub::UpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) { - return ::grpc::internal::BlockingUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UpdateSvi_, context, request, response); -} - -void SviService::Stub::async::UpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UpdateSvi_, context, request, response, std::move(f)); -} - -void SviService::Stub::async::UpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* 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_UpdateSvi_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>* SviService::Stub::PrepareAsyncUpdateSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::network::evpn_gw::v1alpha1::Svi, ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UpdateSvi_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>* SviService::Stub::AsyncUpdateSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncUpdateSviRaw(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))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - SviService_method_names[4], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SviService::Service, ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest, ::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::UpdateSviRequest* req, - ::opi_api::network::evpn_gw::v1alpha1::Svi* resp) { - return service->UpdateSvi(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, ""); -} - -::grpc::Status SviService::Service::UpdateSvi(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* 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 deleted file mode 100644 index 59511a8e..00000000 --- a/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.grpc.pb.h +++ /dev/null @@ -1,1754 +0,0 @@ -// 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)); - } - // Update a Vrf - virtual ::grpc::Status UpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>> AsyncUpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>>(AsyncUpdateVrfRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>> PrepareAsyncUpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>>(PrepareAsyncUpdateVrfRaw(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; - // Update a Vrf - virtual void UpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, std::function) = 0; - virtual void UpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* 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; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* AsyncUpdateVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* PrepareAsyncUpdateVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& 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)); - } - ::grpc::Status UpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>> AsyncUpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>>(AsyncUpdateVrfRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>> PrepareAsyncUpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>>(PrepareAsyncUpdateVrfRaw(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; - void UpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response, std::function) override; - void UpdateVrf(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* 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; - ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* AsyncUpdateVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Vrf>* PrepareAsyncUpdateVrfRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest& 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_; - const ::grpc::internal::RpcMethod rpcmethod_UpdateVrf_; - }; - 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); - // Update a Vrf - virtual ::grpc::Status UpdateVrf(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* 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); - } - }; - template - class WithAsyncMethod_UpdateVrf : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_UpdateVrf() { - ::grpc::Service::MarkMethodAsync(4); - } - ~WithAsyncMethod_UpdateVrf() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateVrf(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* 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(4, 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; } - }; - template - class WithCallbackMethod_UpdateVrf : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_UpdateVrf() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>( - [this]( - ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Vrf* response) { return this->UpdateVrf(context, request, response); }));} - void SetMessageAllocatorFor_UpdateVrf( - ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_UpdateVrf() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* UpdateVrf( - ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*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 WithGenericMethod_UpdateVrf : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_UpdateVrf() { - ::grpc::Service::MarkMethodGeneric(4); - } - ~WithGenericMethod_UpdateVrf() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*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 WithRawMethod_UpdateVrf : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_UpdateVrf() { - ::grpc::Service::MarkMethodRaw(4); - } - ~WithRawMethod_UpdateVrf() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateVrf(::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(4, 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 WithRawCallbackMethod_UpdateVrf : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_UpdateVrf() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateVrf(context, request, response); })); - } - ~WithRawCallbackMethod_UpdateVrf() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Vrf* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* UpdateVrf( - ::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; - }; - template - class WithStreamedUnaryMethod_UpdateVrf : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_UpdateVrf() { - ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< - ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest, ::opi_api::network::evpn_gw::v1alpha1::Vrf>* streamer) { - return this->StreamedUpdateVrf(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_UpdateVrf() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UpdateVrf(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* /*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 StreamedUpdateVrf(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest,::opi_api::network::evpn_gw::v1alpha1::Vrf>* 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)); - } - // Update a Svi - virtual ::grpc::Status UpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>> AsyncUpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>>(AsyncUpdateSviRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>> PrepareAsyncUpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>>(PrepareAsyncUpdateSviRaw(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; - // Update a Svi - virtual void UpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, std::function) = 0; - virtual void UpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* 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; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>* AsyncUpdateSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::opi_api::network::evpn_gw::v1alpha1::Svi>* PrepareAsyncUpdateSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& 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)); - } - ::grpc::Status UpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>> AsyncUpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>>(AsyncUpdateSviRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>> PrepareAsyncUpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>>(PrepareAsyncUpdateSviRaw(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; - void UpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response, std::function) override; - void UpdateSvi(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* 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; - ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>* AsyncUpdateSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::opi_api::network::evpn_gw::v1alpha1::Svi>* PrepareAsyncUpdateSviRaw(::grpc::ClientContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest& 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_; - const ::grpc::internal::RpcMethod rpcmethod_UpdateSvi_; - }; - 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); - // Update a Svi - virtual ::grpc::Status UpdateSvi(::grpc::ServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* 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); - } - }; - template - class WithAsyncMethod_UpdateSvi : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_UpdateSvi() { - ::grpc::Service::MarkMethodAsync(4); - } - ~WithAsyncMethod_UpdateSvi() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateSvi(::grpc::ServerContext* context, ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* 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(4, 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; } - }; - template - class WithCallbackMethod_UpdateSvi : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_UpdateSvi() { - ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>( - [this]( - ::grpc::CallbackServerContext* context, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* request, ::opi_api::network::evpn_gw::v1alpha1::Svi* response) { return this->UpdateSvi(context, request, response); }));} - void SetMessageAllocatorFor_UpdateSvi( - ::grpc::MessageAllocator< ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_UpdateSvi() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* UpdateSvi( - ::grpc::CallbackServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*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 WithGenericMethod_UpdateSvi : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_UpdateSvi() { - ::grpc::Service::MarkMethodGeneric(4); - } - ~WithGenericMethod_UpdateSvi() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*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 WithRawMethod_UpdateSvi : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_UpdateSvi() { - ::grpc::Service::MarkMethodRaw(4); - } - ~WithRawMethod_UpdateSvi() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateSvi(::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(4, 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 WithRawCallbackMethod_UpdateSvi : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_UpdateSvi() { - ::grpc::Service::MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UpdateSvi(context, request, response); })); - } - ~WithRawCallbackMethod_UpdateSvi() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* /*request*/, ::opi_api::network::evpn_gw::v1alpha1::Svi* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* UpdateSvi( - ::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; - }; - template - class WithStreamedUnaryMethod_UpdateSvi : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_UpdateSvi() { - ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< - ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest, ::opi_api::network::evpn_gw::v1alpha1::Svi>* streamer) { - return this->StreamedUpdateSvi(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_UpdateSvi() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UpdateSvi(::grpc::ServerContext* /*context*/, const ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* /*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 StreamedUpdateSvi(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest,::opi_api::network::evpn_gw::v1alpha1::Svi>* 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 deleted file mode 100644 index c283ad90..00000000 --- a/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.pb.cc +++ /dev/null @@ -1,5489 +0,0 @@ -// 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 _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - -namespace opi_api { -namespace network { -namespace evpn_gw { -namespace v1alpha1 { -PROTOBUF_CONSTEXPR Vrf::Vrf( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.spec_)*/nullptr - , /*decltype(_impl_.status_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct VrfDefaultTypeInternal { - PROTOBUF_CONSTEXPR VrfDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~VrfDefaultTypeInternal() {} - union { - Vrf _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VrfDefaultTypeInternal _Vrf_default_instance_; -PROTOBUF_CONSTEXPR VrfSpec::VrfSpec( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.loopback_ip_prefix_)*/nullptr - , /*decltype(_impl_.vtep_ip_prefix_)*/nullptr - , /*decltype(_impl_.vni_)*/0u} {} -struct VrfSpecDefaultTypeInternal { - PROTOBUF_CONSTEXPR VrfSpecDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~VrfSpecDefaultTypeInternal() {} - union { - VrfSpec _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VrfSpecDefaultTypeInternal _VrfSpec_default_instance_; -PROTOBUF_CONSTEXPR VrfStatus::VrfStatus( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.import_rts_)*/{} - , /*decltype(_impl_.export_rts_)*/{} - , /*decltype(_impl_.logical_bridges_)*/{} - , /*decltype(_impl_.rd_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.rmac_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.routing_table_)*/0u - , /*decltype(_impl_.local_as_)*/0u - , /*decltype(_impl_.oper_status_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct VrfStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR VrfStatusDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~VrfStatusDefaultTypeInternal() {} - union { - VrfStatus _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VrfStatusDefaultTypeInternal _VrfStatus_default_instance_; -PROTOBUF_CONSTEXPR CreateVrfRequest::CreateVrfRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.vrf_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.vrf_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct CreateVrfRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateVrfRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateVrfRequestDefaultTypeInternal() {} - union { - CreateVrfRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateVrfRequestDefaultTypeInternal _CreateVrfRequest_default_instance_; -PROTOBUF_CONSTEXPR ListVrfsRequest::ListVrfsRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.page_size_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ListVrfsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListVrfsRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ListVrfsRequestDefaultTypeInternal() {} - union { - ListVrfsRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListVrfsRequestDefaultTypeInternal _ListVrfsRequest_default_instance_; -PROTOBUF_CONSTEXPR ListVrfsResponse::ListVrfsResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.vrfs_)*/{} - , /*decltype(_impl_.next_page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ListVrfsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListVrfsResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ListVrfsResponseDefaultTypeInternal() {} - union { - ListVrfsResponse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListVrfsResponseDefaultTypeInternal _ListVrfsResponse_default_instance_; -PROTOBUF_CONSTEXPR GetVrfRequest::GetVrfRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct GetVrfRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetVrfRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~GetVrfRequestDefaultTypeInternal() {} - union { - GetVrfRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetVrfRequestDefaultTypeInternal _GetVrfRequest_default_instance_; -PROTOBUF_CONSTEXPR DeleteVrfRequest::DeleteVrfRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.allow_missing_)*/false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct DeleteVrfRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteVrfRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteVrfRequestDefaultTypeInternal() {} - union { - DeleteVrfRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteVrfRequestDefaultTypeInternal _DeleteVrfRequest_default_instance_; -PROTOBUF_CONSTEXPR UpdateVrfRequest::UpdateVrfRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.vrf_)*/nullptr - , /*decltype(_impl_.update_mask_)*/nullptr - , /*decltype(_impl_.allow_missing_)*/false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct UpdateVrfRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateVrfRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateVrfRequestDefaultTypeInternal() {} - union { - UpdateVrfRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateVrfRequestDefaultTypeInternal _UpdateVrfRequest_default_instance_; -PROTOBUF_CONSTEXPR Svi::Svi( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.spec_)*/nullptr - , /*decltype(_impl_.status_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SviDefaultTypeInternal { - PROTOBUF_CONSTEXPR SviDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~SviDefaultTypeInternal() {} - union { - Svi _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SviDefaultTypeInternal _Svi_default_instance_; -PROTOBUF_CONSTEXPR SviSpec::SviSpec( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.gw_ip_prefix_)*/{} - , /*decltype(_impl_.vrf_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.logical_bridge_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.mac_address_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.enable_bgp_)*/false - , /*decltype(_impl_.remote_as_)*/0u - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SviSpecDefaultTypeInternal { - PROTOBUF_CONSTEXPR SviSpecDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~SviSpecDefaultTypeInternal() {} - union { - SviSpec _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SviSpecDefaultTypeInternal _SviSpec_default_instance_; -PROTOBUF_CONSTEXPR SviStatus::SviStatus( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.oper_status_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SviStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR SviStatusDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~SviStatusDefaultTypeInternal() {} - union { - SviStatus _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SviStatusDefaultTypeInternal _SviStatus_default_instance_; -PROTOBUF_CONSTEXPR CreateSviRequest::CreateSviRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.svi_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.svi_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct CreateSviRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateSviRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateSviRequestDefaultTypeInternal() {} - union { - CreateSviRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateSviRequestDefaultTypeInternal _CreateSviRequest_default_instance_; -PROTOBUF_CONSTEXPR ListSvisRequest::ListSvisRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.page_size_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ListSvisRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListSvisRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ListSvisRequestDefaultTypeInternal() {} - union { - ListSvisRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListSvisRequestDefaultTypeInternal _ListSvisRequest_default_instance_; -PROTOBUF_CONSTEXPR ListSvisResponse::ListSvisResponse( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.svis_)*/{} - , /*decltype(_impl_.next_page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ListSvisResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListSvisResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ListSvisResponseDefaultTypeInternal() {} - union { - ListSvisResponse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListSvisResponseDefaultTypeInternal _ListSvisResponse_default_instance_; -PROTOBUF_CONSTEXPR GetSviRequest::GetSviRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct GetSviRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSviRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~GetSviRequestDefaultTypeInternal() {} - union { - GetSviRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSviRequestDefaultTypeInternal _GetSviRequest_default_instance_; -PROTOBUF_CONSTEXPR DeleteSviRequest::DeleteSviRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.allow_missing_)*/false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct DeleteSviRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeleteSviRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~DeleteSviRequestDefaultTypeInternal() {} - union { - DeleteSviRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteSviRequestDefaultTypeInternal _DeleteSviRequest_default_instance_; -PROTOBUF_CONSTEXPR UpdateSviRequest::UpdateSviRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.svi_)*/nullptr - , /*decltype(_impl_.update_mask_)*/nullptr - , /*decltype(_impl_.allow_missing_)*/false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct UpdateSviRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UpdateSviRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~UpdateSviRequestDefaultTypeInternal() {} - union { - UpdateSviRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UpdateSviRequestDefaultTypeInternal _UpdateSviRequest_default_instance_; -} // namespace v1alpha1 -} // namespace evpn_gw -} // namespace network -} // namespace opi_api -static ::_pb::Metadata file_level_metadata_l3_5fxpu_5finfra_5fmgr_2eproto[18]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_l3_5fxpu_5finfra_5fmgr_2eproto[2]; -static constexpr ::_pb::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, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::Vrf, _impl_.spec_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::Vrf, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfSpec, _impl_._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, _impl_.vni_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfSpec, _impl_.loopback_ip_prefix_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfSpec, _impl_.vtep_ip_prefix_), - 0, - ~0u, - ~0u, - ~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, _impl_.routing_table_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, _impl_.local_as_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, _impl_.rd_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, _impl_.rmac_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, _impl_.import_rts_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, _impl_.export_rts_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, _impl_.logical_bridges_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::VrfStatus, _impl_.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, _impl_.vrf_id_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest, _impl_.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, _impl_.page_size_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest, _impl_.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, _impl_.vrfs_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse, _impl_.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, _impl_.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, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest, _impl_.allow_missing_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest, _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::UpdateVrfRequest, _impl_.vrf_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest, _impl_.update_mask_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest, _impl_.allow_missing_), - ~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, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::Svi, _impl_.spec_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::Svi, _impl_.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, _impl_.vrf_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::SviSpec, _impl_.logical_bridge_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::SviSpec, _impl_.mac_address_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::SviSpec, _impl_.gw_ip_prefix_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::SviSpec, _impl_.enable_bgp_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::SviSpec, _impl_.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, _impl_.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, _impl_.svi_id_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest, _impl_.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, _impl_.page_size_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest, _impl_.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, _impl_.svis_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse, _impl_.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, _impl_.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, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest, _impl_.allow_missing_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest, _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::UpdateSviRequest, _impl_.svi_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest, _impl_.update_mask_), - PROTOBUF_FIELD_OFFSET(::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest, _impl_.allow_missing_), -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::Vrf)}, - { 9, 18, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::VrfSpec)}, - { 21, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::VrfStatus)}, - { 35, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::CreateVrfRequest)}, - { 43, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListVrfsRequest)}, - { 51, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListVrfsResponse)}, - { 59, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::GetVrfRequest)}, - { 66, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::DeleteVrfRequest)}, - { 74, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest)}, - { 83, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::Svi)}, - { 92, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::SviSpec)}, - { 104, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::SviStatus)}, - { 111, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::CreateSviRequest)}, - { 119, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListSvisRequest)}, - { 127, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::ListSvisResponse)}, - { 135, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::GetSviRequest)}, - { 142, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::DeleteSviRequest)}, - { 150, -1, -1, sizeof(::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::opi_api::network::evpn_gw::v1alpha1::_Vrf_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_VrfSpec_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_VrfStatus_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_CreateVrfRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_ListVrfsRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_ListVrfsResponse_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_GetVrfRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_DeleteVrfRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_UpdateVrfRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_Svi_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_SviSpec_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_SviStatus_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_CreateSviRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_ListSvisRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_ListSvisResponse_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_GetSviRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_DeleteSviRequest_default_instance_._instance, - &::opi_api::network::evpn_gw::v1alpha1::_UpdateSviRequest_default_instance_._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 goo" - "gle/protobuf/field_mask.proto\032\031google/ap" - "i/resource.proto\"\332\001\n\003Vrf\022\021\n\004name\030\001 \001(\tB\003" - "\340A\010\022<\n\004spec\030\002 \001(\0132).opi_api.network.evpn" - "_gw.v1alpha1.VrfSpecB\003\340A\002\022@\n\006status\030\003 \001(" - "\0132+.opi_api.network.evpn_gw.v1alpha1.Vrf" - "StatusB\003\340A\003:@\352A=\n$opi_api.network.evpn_g" - "w.v1alpha1/Vrf\022\nvrfs/{vrf}*\004vrfs2\003vrf\"\310\001" - "\n\007VrfSpec\022\025\n\003vni\030\001 \001(\rB\003\340A\001H\000\210\001\001\022P\n\022loop" - "back_ip_prefix\030\002 \001(\0132/.opi_api.network.o" - "pinetcommon.v1alpha1.IPPrefixB\003\340A\002\022L\n\016vt" - "ep_ip_prefix\030\003 \001(\0132/.opi_api.network.opi" - "netcommon.v1alpha1.IPPrefixB\003\340A\001B\006\n\004_vni" - "\"\375\001\n\tVrfStatus\022\032\n\rrouting_table\030\001 \001(\rB\003\340" - "A\003\022\025\n\010local_as\030\002 \001(\rB\003\340A\003\022\017\n\002rd\030\003 \001(\tB\003\340" - "A\003\022\021\n\004rmac\030\004 \001(\014B\003\340A\003\022\027\n\nimport_rts\030\005 \003(" - "\tB\003\340A\003\022\027\n\nexport_rts\030\006 \003(\tB\003\340A\003\022\034\n\017logic" - "al_bridges\030\007 \003(\tB\003\340A\003\022I\n\013oper_status\030\010 \001" - "(\0162/.opi_api.network.evpn_gw.v1alpha1.VR" - "FOperStatusB\003\340A\003\"`\n\020CreateVrfRequest\022\023\n\006" - "vrf_id\030\001 \001(\tB\003\340A\001\0227\n\003vrf\030\002 \001(\0132%.opi_api" - ".network.evpn_gw.v1alpha1.VrfB\003\340A\002\"B\n\017Li" - "stVrfsRequest\022\026\n\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n" - "\npage_token\030\002 \001(\tB\003\340A\001\"`\n\020ListVrfsRespon" - "se\0223\n\004vrfs\030\001 \003(\0132%.opi_api.network.evpn_" - "gw.v1alpha1.Vrf\022\027\n\017next_page_token\030\002 \001(\t" - "\"K\n\rGetVrfRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n" - "$opi_api.network.evpn_gw.v1alpha1/Vrf\"j\n" - "\020DeleteVrfRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n" - "$opi_api.network.evpn_gw.v1alpha1/Vrf\022\032\n" - "\rallow_missing\030\002 \001(\010B\003\340A\001\"\235\001\n\020UpdateVrfR" - "equest\0227\n\003vrf\030\001 \001(\0132%.opi_api.network.ev" - "pn_gw.v1alpha1.VrfB\003\340A\002\0224\n\013update_mask\030\002" - " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\032\n" - "\rallow_missing\030\003 \001(\010B\003\340A\001\"\332\001\n\003Svi\022\021\n\004nam" - "e\030\001 \001(\tB\003\340A\010\022<\n\004spec\030\002 \001(\0132).opi_api.net" - "work.evpn_gw.v1alpha1.SviSpecB\003\340A\002\022@\n\006st" - "atus\030\003 \001(\0132+.opi_api.network.evpn_gw.v1a" - "lpha1.SviStatusB\003\340A\003:@\352A=\n$opi_api.netwo" - "rk.evpn_gw.v1alpha1/Svi\022\nsvis/{svi}*\004svi" - "s2\003svi\"\253\002\n\007SviSpec\0229\n\003vrf\030\001 \001(\tB,\340A\002\372A&\n" - "$opi_api.network.evpn_gw.v1alpha1/Vrf\022N\n" - "\016logical_bridge\030\002 \001(\tB6\340A\002\372A0\n.opi_api.n" - "etwork.evpn_gw.v1alpha1/LogicalBridge\022\030\n" - "\013mac_address\030\003 \001(\014B\003\340A\002\022J\n\014gw_ip_prefix\030" - "\004 \003(\0132/.opi_api.network.opinetcommon.v1a" - "lpha1.IPPrefixB\003\340A\002\022\027\n\nenable_bgp\030\005 \001(\010B" - "\003\340A\001\022\026\n\tremote_as\030\006 \001(\rB\003\340A\001\"V\n\tSviStatu" - "s\022I\n\013oper_status\030\001 \001(\0162/.opi_api.network" - ".evpn_gw.v1alpha1.SVIOperStatusB\003\340A\003\"`\n\020" - "CreateSviRequest\022\023\n\006svi_id\030\001 \001(\tB\003\340A\001\0227\n" - "\003svi\030\002 \001(\0132%.opi_api.network.evpn_gw.v1a" - "lpha1.SviB\003\340A\002\"B\n\017ListSvisRequest\022\026\n\tpag" - "e_size\030\001 \001(\005B\003\340A\001\022\027\n\npage_token\030\002 \001(\tB\003\340" - "A\001\"`\n\020ListSvisResponse\0223\n\004svis\030\001 \003(\0132%.o" - "pi_api.network.evpn_gw.v1alpha1.Svi\022\027\n\017n" - "ext_page_token\030\002 \001(\t\"K\n\rGetSviRequest\022:\n" - "\004name\030\001 \001(\tB,\340A\002\372A&\n$opi_api.network.evp" - "n_gw.v1alpha1/Svi\"j\n\020DeleteSviRequest\022:\n" - "\004name\030\001 \001(\tB,\340A\002\372A&\n$opi_api.network.evp" - "n_gw.v1alpha1/Svi\022\032\n\rallow_missing\030\002 \001(\010" - "B\003\340A\001\"\235\001\n\020UpdateSviRequest\0227\n\003svi\030\001 \001(\0132" - "%.opi_api.network.evpn_gw.v1alpha1.SviB\003" - "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" - "uf.FieldMaskB\003\340A\001\022\032\n\rallow_missing\030\003 \001(\010" - "B\003\340A\001*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\276\005\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\004name\022\234\001\n\tUpda" - "teVrf\0222.opi_api.network.evpn_gw.v1alpha1" - ".UpdateVrfRequest\032%.opi_api.network.evpn" - "_gw.v1alpha1.Vrf\"4\202\323\344\223\002\0342\025/v1/{vrf.name=" - "vrfs/*}:\003vrf\332A\017vrf,update_mask2\276\005\n\nSviSe" - "rvice\022\212\001\n\tCreateSvi\0222.opi_api.network.ev" - "pn_gw.v1alpha1.CreateSviRequest\032%.opi_ap" - "i.network.evpn_gw.v1alpha1.Svi\"\"\202\323\344\223\002\017\"\010" - "/v1/svis:\003svi\332A\nsvi,svi_id\022\203\001\n\010ListSvis\022" - "1.opi_api.network.evpn_gw.v1alpha1.ListS" - "visRequest\0322.opi_api.network.evpn_gw.v1a" - "lpha1.ListSvisResponse\"\020\202\323\344\223\002\n\022\010/v1/svis" - "\022\202\001\n\006GetSvi\022/.opi_api.network.evpn_gw.v1" - "alpha1.GetSviRequest\032%.opi_api.network.e" - "vpn_gw.v1alpha1.Svi\" \202\323\344\223\002\023\022\021/v1/{name=s" - "vis/*}\332A\004name\022y\n\tDeleteSvi\0222.opi_api.net" - "work.evpn_gw.v1alpha1.DeleteSviRequest\032\026" - ".google.protobuf.Empty\" \202\323\344\223\002\023*\021/v1/{nam" - "e=svis/*}\332A\004name\022\234\001\n\tUpdateSvi\0222.opi_api" - ".network.evpn_gw.v1alpha1.UpdateSviReque" - "st\032%.opi_api.network.evpn_gw.v1alpha1.Sv" - "i\"4\202\323\344\223\002\0342\025/v1/{svi.name=svis/*}:\003svi\332A\017" - "svi,update_maskBw\n opi_api.network.evpn_" - "gw.v1alpha1B\022L3XpuInfraMgrProtoP\001Z=githu" - "b.com/opiproject/opi-api/network/evpn-gw" - "/v1alpha1/gen/gob\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_deps[7] = { - &::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_google_2fprotobuf_2ffield_5fmask_2eproto, - &::descriptor_table_networktypes_2eproto, -}; -static ::_pbi::once_flag descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_l3_5fxpu_5finfra_5fmgr_2eproto = { - false, false, 4504, 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, 7, 18, - 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 ::_pbi::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_PRIORITY2 static ::_pbi::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->_impl_.spec_; -} -const ::opi_api::network::evpn_gw::v1alpha1::VrfStatus& -Vrf::_Internal::status(const Vrf* msg) { - return *msg->_impl_.status_; -} -Vrf::Vrf(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.Vrf) -} -Vrf::Vrf(const Vrf& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Vrf* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.spec_){nullptr} - , decltype(_impl_.status_){nullptr} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_spec()) { - _this->_impl_.spec_ = new ::opi_api::network::evpn_gw::v1alpha1::VrfSpec(*from._impl_.spec_); - } - if (from._internal_has_status()) { - _this->_impl_.status_ = new ::opi_api::network::evpn_gw::v1alpha1::VrfStatus(*from._impl_.status_); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.Vrf) -} - -inline void Vrf::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.spec_){nullptr} - , decltype(_impl_.status_){nullptr} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -Vrf::~Vrf() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.Vrf) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void Vrf::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - if (this != internal_default_instance()) delete _impl_.spec_; - if (this != internal_default_instance()) delete _impl_.status_; -} - -void Vrf::SetCachedSize(int size) const { - _impl_._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; - - _impl_.name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.spec_ != nullptr) { - delete _impl_.spec_; - } - _impl_.spec_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.status_ != nullptr) { - delete _impl_.status_; - } - _impl_.status_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Vrf::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.Vrf.name")); - } 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = IDENTIFIER]; - 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::spec(this), - _Internal::spec(this).GetCachedSize(), target, stream); - } - - // .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::status(this), - _Internal::status(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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 [(.google.api.field_behavior) = IDENTIFIER]; - 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( - *_impl_.spec_); - } - - // .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.status_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Vrf::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Vrf::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Vrf::GetClassData() const { return &_class_data_; } - - -void Vrf::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_name(from._internal_name()); - } - if (from._internal_has_spec()) { - _this->_internal_mutable_spec()->::opi_api::network::evpn_gw::v1alpha1::VrfSpec::MergeFrom( - from._internal_spec()); - } - if (from._internal_has_status()) { - _this->_internal_mutable_status()->::opi_api::network::evpn_gw::v1alpha1::VrfStatus::MergeFrom( - from._internal_status()); - } - _this->_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( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Vrf, _impl_.status_) - + sizeof(Vrf::_impl_.status_) - - PROTOBUF_FIELD_OFFSET(Vrf, _impl_.spec_)>( - reinterpret_cast(&_impl_.spec_), - reinterpret_cast(&other->_impl_.spec_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Vrf::GetMetadata() const { - return ::_pbi::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: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_vni(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - 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->_impl_.loopback_ip_prefix_; -} -const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& -VrfSpec::_Internal::vtep_ip_prefix(const VrfSpec* msg) { - return *msg->_impl_.vtep_ip_prefix_; -} -void VrfSpec::clear_loopback_ip_prefix() { - if (GetArenaForAllocation() == nullptr && _impl_.loopback_ip_prefix_ != nullptr) { - delete _impl_.loopback_ip_prefix_; - } - _impl_.loopback_ip_prefix_ = nullptr; -} -void VrfSpec::clear_vtep_ip_prefix() { - if (GetArenaForAllocation() == nullptr && _impl_.vtep_ip_prefix_ != nullptr) { - delete _impl_.vtep_ip_prefix_; - } - _impl_.vtep_ip_prefix_ = nullptr; -} -VrfSpec::VrfSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.VrfSpec) -} -VrfSpec::VrfSpec(const VrfSpec& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - VrfSpec* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.loopback_ip_prefix_){nullptr} - , decltype(_impl_.vtep_ip_prefix_){nullptr} - , decltype(_impl_.vni_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_loopback_ip_prefix()) { - _this->_impl_.loopback_ip_prefix_ = new ::opi_api::network::opinetcommon::v1alpha1::IPPrefix(*from._impl_.loopback_ip_prefix_); - } - if (from._internal_has_vtep_ip_prefix()) { - _this->_impl_.vtep_ip_prefix_ = new ::opi_api::network::opinetcommon::v1alpha1::IPPrefix(*from._impl_.vtep_ip_prefix_); - } - _this->_impl_.vni_ = from._impl_.vni_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.VrfSpec) -} - -inline void VrfSpec::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.loopback_ip_prefix_){nullptr} - , decltype(_impl_.vtep_ip_prefix_){nullptr} - , decltype(_impl_.vni_){0u} - }; -} - -VrfSpec::~VrfSpec() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.VrfSpec) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void VrfSpec::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.loopback_ip_prefix_; - if (this != internal_default_instance()) delete _impl_.vtep_ip_prefix_; -} - -void VrfSpec::SetCachedSize(int size) const { - _impl_._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 && _impl_.loopback_ip_prefix_ != nullptr) { - delete _impl_.loopback_ip_prefix_; - } - _impl_.loopback_ip_prefix_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.vtep_ip_prefix_ != nullptr) { - delete _impl_.vtep_ip_prefix_; - } - _impl_.vtep_ip_prefix_ = nullptr; - _impl_.vni_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* VrfSpec::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_vni(&has_bits); - _impl_.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 [(.google.api.field_behavior) = OPTIONAL]; - 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: - _impl_._has_bits_.Or(has_bits); - 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; - - // optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; - if (_internal_has_vni()) { - target = stream->EnsureSpace(target); - target = ::_pbi::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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::loopback_ip_prefix(this), - _Internal::loopback_ip_prefix(this).GetCachedSize(), target, stream); - } - - // .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_has_vtep_ip_prefix()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::vtep_ip_prefix(this), - _Internal::vtep_ip_prefix(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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( - *_impl_.loopback_ip_prefix_); - } - - // .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_has_vtep_ip_prefix()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.vtep_ip_prefix_); - } - - // optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_vni()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VrfSpec::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - VrfSpec::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VrfSpec::GetClassData() const { return &_class_data_; } - - -void VrfSpec::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_mutable_loopback_ip_prefix()->::opi_api::network::opinetcommon::v1alpha1::IPPrefix::MergeFrom( - from._internal_loopback_ip_prefix()); - } - if (from._internal_has_vtep_ip_prefix()) { - _this->_internal_mutable_vtep_ip_prefix()->::opi_api::network::opinetcommon::v1alpha1::IPPrefix::MergeFrom( - from._internal_vtep_ip_prefix()); - } - if (from._internal_has_vni()) { - _this->_internal_set_vni(from._internal_vni()); - } - _this->_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_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(VrfSpec, _impl_.vni_) - + sizeof(VrfSpec::_impl_.vni_) - - PROTOBUF_FIELD_OFFSET(VrfSpec, _impl_.loopback_ip_prefix_)>( - reinterpret_cast(&_impl_.loopback_ip_prefix_), - reinterpret_cast(&other->_impl_.loopback_ip_prefix_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VrfSpec::GetMetadata() const { - return ::_pbi::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) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.VrfStatus) -} -VrfStatus::VrfStatus(const VrfStatus& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - VrfStatus* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.import_rts_){from._impl_.import_rts_} - , decltype(_impl_.export_rts_){from._impl_.export_rts_} - , decltype(_impl_.logical_bridges_){from._impl_.logical_bridges_} - , decltype(_impl_.rd_){} - , decltype(_impl_.rmac_){} - , decltype(_impl_.routing_table_){} - , decltype(_impl_.local_as_){} - , decltype(_impl_.oper_status_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.rd_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.rd_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_rd().empty()) { - _this->_impl_.rd_.Set(from._internal_rd(), - _this->GetArenaForAllocation()); - } - _impl_.rmac_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.rmac_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_rmac().empty()) { - _this->_impl_.rmac_.Set(from._internal_rmac(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.routing_table_, &from._impl_.routing_table_, - static_cast(reinterpret_cast(&_impl_.oper_status_) - - reinterpret_cast(&_impl_.routing_table_)) + sizeof(_impl_.oper_status_)); - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.VrfStatus) -} - -inline void VrfStatus::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.import_rts_){arena} - , decltype(_impl_.export_rts_){arena} - , decltype(_impl_.logical_bridges_){arena} - , decltype(_impl_.rd_){} - , decltype(_impl_.rmac_){} - , decltype(_impl_.routing_table_){0u} - , decltype(_impl_.local_as_){0u} - , decltype(_impl_.oper_status_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.rd_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.rd_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.rmac_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.rmac_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -VrfStatus::~VrfStatus() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.VrfStatus) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void VrfStatus::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.import_rts_.~RepeatedPtrField(); - _impl_.export_rts_.~RepeatedPtrField(); - _impl_.logical_bridges_.~RepeatedPtrField(); - _impl_.rd_.Destroy(); - _impl_.rmac_.Destroy(); -} - -void VrfStatus::SetCachedSize(int size) const { - _impl_._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; - - _impl_.import_rts_.Clear(); - _impl_.export_rts_.Clear(); - _impl_.logical_bridges_.Clear(); - _impl_.rd_.ClearToEmpty(); - _impl_.rmac_.ClearToEmpty(); - ::memset(&_impl_.routing_table_, 0, static_cast( - reinterpret_cast(&_impl_.oper_status_) - - reinterpret_cast(&_impl_.routing_table_)) + sizeof(_impl_.oper_status_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* VrfStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // uint32 routing_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.routing_table_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // uint32 local_as = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.local_as_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string rd = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_rd(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.VrfStatus.rd")); - } else - goto handle_unusual; - continue; - // bytes rmac = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_rmac(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated string import_rts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_import_rts(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.VrfStatus.import_rts")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else - goto handle_unusual; - continue; - // repeated string export_rts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_export_rts(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.VrfStatus.export_rts")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else - goto handle_unusual; - continue; - // repeated string logical_bridges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_logical_bridges(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.VrfStatus.logical_bridges")); - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_routing_table() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_routing_table(), target); - } - - // uint32 local_as = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_local_as() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_local_as(), target); - } - - // string rd = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (!this->_internal_rmac().empty()) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_rmac(), target); - } - - // repeated string import_rts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_oper_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 8, this->_internal_oper_status(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.import_rts_.size()); - for (int i = 0, n = _impl_.import_rts_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.import_rts_.Get(i)); - } - - // repeated string export_rts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.export_rts_.size()); - for (int i = 0, n = _impl_.export_rts_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.export_rts_.Get(i)); - } - - // repeated string logical_bridges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.logical_bridges_.size()); - for (int i = 0, n = _impl_.logical_bridges_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.logical_bridges_.Get(i)); - } - - // string rd = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (!this->_internal_rd().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_rd()); - } - - // bytes rmac = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (!this->_internal_rmac().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_rmac()); - } - - // uint32 routing_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_routing_table() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_routing_table()); - } - - // uint32 local_as = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_local_as() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_local_as()); - } - - // .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_oper_status() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_oper_status()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VrfStatus::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - VrfStatus::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VrfStatus::GetClassData() const { return &_class_data_; } - - -void VrfStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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; - - _this->_impl_.import_rts_.MergeFrom(from._impl_.import_rts_); - _this->_impl_.export_rts_.MergeFrom(from._impl_.export_rts_); - _this->_impl_.logical_bridges_.MergeFrom(from._impl_.logical_bridges_); - if (!from._internal_rd().empty()) { - _this->_internal_set_rd(from._internal_rd()); - } - if (!from._internal_rmac().empty()) { - _this->_internal_set_rmac(from._internal_rmac()); - } - if (from._internal_routing_table() != 0) { - _this->_internal_set_routing_table(from._internal_routing_table()); - } - if (from._internal_local_as() != 0) { - _this->_internal_set_local_as(from._internal_local_as()); - } - if (from._internal_oper_status() != 0) { - _this->_internal_set_oper_status(from._internal_oper_status()); - } - _this->_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_); - _impl_.import_rts_.InternalSwap(&other->_impl_.import_rts_); - _impl_.export_rts_.InternalSwap(&other->_impl_.export_rts_); - _impl_.logical_bridges_.InternalSwap(&other->_impl_.logical_bridges_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.rd_, lhs_arena, - &other->_impl_.rd_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.rmac_, lhs_arena, - &other->_impl_.rmac_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(VrfStatus, _impl_.oper_status_) - + sizeof(VrfStatus::_impl_.oper_status_) - - PROTOBUF_FIELD_OFFSET(VrfStatus, _impl_.routing_table_)>( - reinterpret_cast(&_impl_.routing_table_), - reinterpret_cast(&other->_impl_.routing_table_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata VrfStatus::GetMetadata() const { - return ::_pbi::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->_impl_.vrf_; -} -CreateVrfRequest::CreateVrfRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) -} -CreateVrfRequest::CreateVrfRequest(const CreateVrfRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CreateVrfRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.vrf_id_){} - , decltype(_impl_.vrf_){nullptr} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.vrf_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vrf_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_vrf_id().empty()) { - _this->_impl_.vrf_id_.Set(from._internal_vrf_id(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_vrf()) { - _this->_impl_.vrf_ = new ::opi_api::network::evpn_gw::v1alpha1::Vrf(*from._impl_.vrf_); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) -} - -inline void CreateVrfRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.vrf_id_){} - , decltype(_impl_.vrf_){nullptr} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.vrf_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vrf_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -CreateVrfRequest::~CreateVrfRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void CreateVrfRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.vrf_id_.Destroy(); - if (this != internal_default_instance()) delete _impl_.vrf_; -} - -void CreateVrfRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.vrf_id_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.vrf_ != nullptr) { - delete _impl_.vrf_; - } - _impl_.vrf_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CreateVrfRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string vrf_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_vrf_id(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf_id")); - } 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 [(.google.api.field_behavior) = OPTIONAL]; - 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::vrf(this), - _Internal::vrf(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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 [(.google.api.field_behavior) = OPTIONAL]; - 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( - *_impl_.vrf_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateVrfRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CreateVrfRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateVrfRequest::GetClassData() const { return &_class_data_; } - - -void CreateVrfRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_vrf_id(from._internal_vrf_id()); - } - if (from._internal_has_vrf()) { - _this->_internal_mutable_vrf()->::opi_api::network::evpn_gw::v1alpha1::Vrf::MergeFrom( - from._internal_vrf()); - } - _this->_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( - &_impl_.vrf_id_, lhs_arena, - &other->_impl_.vrf_id_, rhs_arena - ); - swap(_impl_.vrf_, other->_impl_.vrf_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CreateVrfRequest::GetMetadata() const { - return ::_pbi::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(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) -} -ListVrfsRequest::ListVrfsRequest(const ListVrfsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ListVrfsRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.page_token_){} - , decltype(_impl_.page_size_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_page_token().empty()) { - _this->_impl_.page_token_.Set(from._internal_page_token(), - _this->GetArenaForAllocation()); - } - _this->_impl_.page_size_ = from._impl_.page_size_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) -} - -inline void ListVrfsRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.page_token_){} - , decltype(_impl_.page_size_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -ListVrfsRequest::~ListVrfsRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ListVrfsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.page_token_.Destroy(); -} - -void ListVrfsRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.page_token_.ClearToEmpty(); - _impl_.page_size_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ListVrfsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_page_token(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.page_token")); - } 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 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_page_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_page_size(), target); - } - - // string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - 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 = ::_pbi::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 [(.google.api.field_behavior) = OPTIONAL]; - if (!this->_internal_page_token().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_page_token()); - } - - // int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_page_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_page_size()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListVrfsRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ListVrfsRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListVrfsRequest::GetClassData() const { return &_class_data_; } - - -void ListVrfsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_page_token(from._internal_page_token()); - } - if (from._internal_page_size() != 0) { - _this->_internal_set_page_size(from._internal_page_size()); - } - _this->_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( - &_impl_.page_token_, lhs_arena, - &other->_impl_.page_token_, rhs_arena - ); - swap(_impl_.page_size_, other->_impl_.page_size_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ListVrfsRequest::GetMetadata() const { - return ::_pbi::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) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) -} -ListVrfsResponse::ListVrfsResponse(const ListVrfsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ListVrfsResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.vrfs_){from._impl_.vrfs_} - , decltype(_impl_.next_page_token_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.next_page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.next_page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_next_page_token().empty()) { - _this->_impl_.next_page_token_.Set(from._internal_next_page_token(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) -} - -inline void ListVrfsResponse::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.vrfs_){arena} - , decltype(_impl_.next_page_token_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.next_page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.next_page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -ListVrfsResponse::~ListVrfsResponse() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ListVrfsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.vrfs_.~RepeatedPtrField(); - _impl_.next_page_token_.Destroy(); -} - -void ListVrfsResponse::SetCachedSize(int size) const { - _impl_._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; - - _impl_.vrfs_.Clear(); - _impl_.next_page_token_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ListVrfsResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.ListVrfsResponse.next_page_token")); - } 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 i = 0, - n = static_cast(this->_internal_vrfs_size()); i < n; i++) { - const auto& repfield = this->_internal_vrfs(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), 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 = ::_pbi::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->_impl_.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, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListVrfsResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ListVrfsResponse::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListVrfsResponse::GetClassData() const { return &_class_data_; } - - -void ListVrfsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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; - - _this->_impl_.vrfs_.MergeFrom(from._impl_.vrfs_); - if (!from._internal_next_page_token().empty()) { - _this->_internal_set_next_page_token(from._internal_next_page_token()); - } - _this->_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_); - _impl_.vrfs_.InternalSwap(&other->_impl_.vrfs_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.next_page_token_, lhs_arena, - &other->_impl_.next_page_token_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ListVrfsResponse::GetMetadata() const { - return ::_pbi::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(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) -} -GetVrfRequest::GetVrfRequest(const GetVrfRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GetVrfRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) -} - -inline void GetVrfRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -GetVrfRequest::~GetVrfRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void GetVrfRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); -} - -void GetVrfRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetVrfRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.name")); - } 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 = ::_pbi::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, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetVrfRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GetVrfRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetVrfRequest::GetClassData() const { return &_class_data_; } - - -void GetVrfRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_name(from._internal_name()); - } - _this->_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( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetVrfRequest::GetMetadata() const { - return ::_pbi::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(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) -} -DeleteVrfRequest::DeleteVrfRequest(const DeleteVrfRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - DeleteVrfRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.allow_missing_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _this->_impl_.allow_missing_ = from._impl_.allow_missing_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) -} - -inline void DeleteVrfRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.allow_missing_){false} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -DeleteVrfRequest::~DeleteVrfRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void DeleteVrfRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); -} - -void DeleteVrfRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.name_.ClearToEmpty(); - _impl_.allow_missing_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* DeleteVrfRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.name")); - } else - goto handle_unusual; - continue; - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.allow_missing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* 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); - } - - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_allow_missing(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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()); - } - - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - total_size += 1 + 1; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteVrfRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DeleteVrfRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteVrfRequest::GetClassData() const { return &_class_data_; } - - -void DeleteVrfRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_name(from._internal_name()); - } - if (from._internal_allow_missing() != 0) { - _this->_internal_set_allow_missing(from._internal_allow_missing()); - } - _this->_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( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - swap(_impl_.allow_missing_, other->_impl_.allow_missing_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata DeleteVrfRequest::GetMetadata() const { - return ::_pbi::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 UpdateVrfRequest::_Internal { - public: - static const ::opi_api::network::evpn_gw::v1alpha1::Vrf& vrf(const UpdateVrfRequest* msg); - static const ::PROTOBUF_NAMESPACE_ID::FieldMask& update_mask(const UpdateVrfRequest* msg); -}; - -const ::opi_api::network::evpn_gw::v1alpha1::Vrf& -UpdateVrfRequest::_Internal::vrf(const UpdateVrfRequest* msg) { - return *msg->_impl_.vrf_; -} -const ::PROTOBUF_NAMESPACE_ID::FieldMask& -UpdateVrfRequest::_Internal::update_mask(const UpdateVrfRequest* msg) { - return *msg->_impl_.update_mask_; -} -void UpdateVrfRequest::clear_update_mask() { - if (GetArenaForAllocation() == nullptr && _impl_.update_mask_ != nullptr) { - delete _impl_.update_mask_; - } - _impl_.update_mask_ = nullptr; -} -UpdateVrfRequest::UpdateVrfRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) -} -UpdateVrfRequest::UpdateVrfRequest(const UpdateVrfRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - UpdateVrfRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.vrf_){nullptr} - , decltype(_impl_.update_mask_){nullptr} - , decltype(_impl_.allow_missing_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_vrf()) { - _this->_impl_.vrf_ = new ::opi_api::network::evpn_gw::v1alpha1::Vrf(*from._impl_.vrf_); - } - if (from._internal_has_update_mask()) { - _this->_impl_.update_mask_ = new ::PROTOBUF_NAMESPACE_ID::FieldMask(*from._impl_.update_mask_); - } - _this->_impl_.allow_missing_ = from._impl_.allow_missing_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) -} - -inline void UpdateVrfRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.vrf_){nullptr} - , decltype(_impl_.update_mask_){nullptr} - , decltype(_impl_.allow_missing_){false} - , /*decltype(_impl_._cached_size_)*/{} - }; -} - -UpdateVrfRequest::~UpdateVrfRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void UpdateVrfRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.vrf_; - if (this != internal_default_instance()) delete _impl_.update_mask_; -} - -void UpdateVrfRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void UpdateVrfRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaForAllocation() == nullptr && _impl_.vrf_ != nullptr) { - delete _impl_.vrf_; - } - _impl_.vrf_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.update_mask_ != nullptr) { - delete _impl_.update_mask_; - } - _impl_.update_mask_ = nullptr; - _impl_.allow_missing_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* UpdateVrfRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.google.api.field_behavior) = REQUIRED]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_vrf(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_update_mask(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.allow_missing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* UpdateVrfRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.google.api.field_behavior) = REQUIRED]; - if (this->_internal_has_vrf()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::vrf(this), - _Internal::vrf(this).GetCachedSize(), target, stream); - } - - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_has_update_mask()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::update_mask(this), - _Internal::update_mask(this).GetCachedSize(), target, stream); - } - - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_allow_missing(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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.UpdateVrfRequest) - return target; -} - -size_t UpdateVrfRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) - 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.Vrf vrf = 1 [(.google.api.field_behavior) = REQUIRED]; - if (this->_internal_has_vrf()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.vrf_); - } - - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_has_update_mask()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.update_mask_); - } - - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - total_size += 1 + 1; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateVrfRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - UpdateVrfRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateVrfRequest::GetClassData() const { return &_class_data_; } - - -void UpdateVrfRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_vrf()) { - _this->_internal_mutable_vrf()->::opi_api::network::evpn_gw::v1alpha1::Vrf::MergeFrom( - from._internal_vrf()); - } - if (from._internal_has_update_mask()) { - _this->_internal_mutable_update_mask()->::PROTOBUF_NAMESPACE_ID::FieldMask::MergeFrom( - from._internal_update_mask()); - } - if (from._internal_allow_missing() != 0) { - _this->_internal_set_allow_missing(from._internal_allow_missing()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void UpdateVrfRequest::CopyFrom(const UpdateVrfRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateVrfRequest::IsInitialized() const { - return true; -} - -void UpdateVrfRequest::InternalSwap(UpdateVrfRequest* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(UpdateVrfRequest, _impl_.allow_missing_) - + sizeof(UpdateVrfRequest::_impl_.allow_missing_) - - PROTOBUF_FIELD_OFFSET(UpdateVrfRequest, _impl_.vrf_)>( - reinterpret_cast(&_impl_.vrf_), - reinterpret_cast(&other->_impl_.vrf_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata UpdateVrfRequest::GetMetadata() const { - return ::_pbi::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 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->_impl_.spec_; -} -const ::opi_api::network::evpn_gw::v1alpha1::SviStatus& -Svi::_Internal::status(const Svi* msg) { - return *msg->_impl_.status_; -} -Svi::Svi(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.Svi) -} -Svi::Svi(const Svi& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Svi* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.spec_){nullptr} - , decltype(_impl_.status_){nullptr} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_spec()) { - _this->_impl_.spec_ = new ::opi_api::network::evpn_gw::v1alpha1::SviSpec(*from._impl_.spec_); - } - if (from._internal_has_status()) { - _this->_impl_.status_ = new ::opi_api::network::evpn_gw::v1alpha1::SviStatus(*from._impl_.status_); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.Svi) -} - -inline void Svi::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.spec_){nullptr} - , decltype(_impl_.status_){nullptr} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -Svi::~Svi() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.Svi) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void Svi::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - if (this != internal_default_instance()) delete _impl_.spec_; - if (this != internal_default_instance()) delete _impl_.status_; -} - -void Svi::SetCachedSize(int size) const { - _impl_._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; - - _impl_.name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.spec_ != nullptr) { - delete _impl_.spec_; - } - _impl_.spec_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.status_ != nullptr) { - delete _impl_.status_; - } - _impl_.status_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Svi::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.Svi.name")); - } 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = IDENTIFIER]; - 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::spec(this), - _Internal::spec(this).GetCachedSize(), target, stream); - } - - // .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::status(this), - _Internal::status(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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 [(.google.api.field_behavior) = IDENTIFIER]; - 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( - *_impl_.spec_); - } - - // .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_has_status()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.status_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Svi::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Svi::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Svi::GetClassData() const { return &_class_data_; } - - -void Svi::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_name(from._internal_name()); - } - if (from._internal_has_spec()) { - _this->_internal_mutable_spec()->::opi_api::network::evpn_gw::v1alpha1::SviSpec::MergeFrom( - from._internal_spec()); - } - if (from._internal_has_status()) { - _this->_internal_mutable_status()->::opi_api::network::evpn_gw::v1alpha1::SviStatus::MergeFrom( - from._internal_status()); - } - _this->_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( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Svi, _impl_.status_) - + sizeof(Svi::_impl_.status_) - - PROTOBUF_FIELD_OFFSET(Svi, _impl_.spec_)>( - reinterpret_cast(&_impl_.spec_), - reinterpret_cast(&other->_impl_.spec_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Svi::GetMetadata() const { - return ::_pbi::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 SviSpec::_Internal { - public: -}; - -void SviSpec::clear_gw_ip_prefix() { - _impl_.gw_ip_prefix_.Clear(); -} -SviSpec::SviSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.SviSpec) -} -SviSpec::SviSpec(const SviSpec& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SviSpec* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.gw_ip_prefix_){from._impl_.gw_ip_prefix_} - , decltype(_impl_.vrf_){} - , decltype(_impl_.logical_bridge_){} - , decltype(_impl_.mac_address_){} - , decltype(_impl_.enable_bgp_){} - , decltype(_impl_.remote_as_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.vrf_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vrf_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_vrf().empty()) { - _this->_impl_.vrf_.Set(from._internal_vrf(), - _this->GetArenaForAllocation()); - } - _impl_.logical_bridge_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.logical_bridge_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_logical_bridge().empty()) { - _this->_impl_.logical_bridge_.Set(from._internal_logical_bridge(), - _this->GetArenaForAllocation()); - } - _impl_.mac_address_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.mac_address_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_mac_address().empty()) { - _this->_impl_.mac_address_.Set(from._internal_mac_address(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.enable_bgp_, &from._impl_.enable_bgp_, - static_cast(reinterpret_cast(&_impl_.remote_as_) - - reinterpret_cast(&_impl_.enable_bgp_)) + sizeof(_impl_.remote_as_)); - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.SviSpec) -} - -inline void SviSpec::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.gw_ip_prefix_){arena} - , decltype(_impl_.vrf_){} - , decltype(_impl_.logical_bridge_){} - , decltype(_impl_.mac_address_){} - , decltype(_impl_.enable_bgp_){false} - , decltype(_impl_.remote_as_){0u} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.vrf_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vrf_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.logical_bridge_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.logical_bridge_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.mac_address_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.mac_address_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -SviSpec::~SviSpec() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.SviSpec) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void SviSpec::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.gw_ip_prefix_.~RepeatedPtrField(); - _impl_.vrf_.Destroy(); - _impl_.logical_bridge_.Destroy(); - _impl_.mac_address_.Destroy(); -} - -void SviSpec::SetCachedSize(int size) const { - _impl_._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; - - _impl_.gw_ip_prefix_.Clear(); - _impl_.vrf_.ClearToEmpty(); - _impl_.logical_bridge_.ClearToEmpty(); - _impl_.mac_address_.ClearToEmpty(); - ::memset(&_impl_.enable_bgp_, 0, static_cast( - reinterpret_cast(&_impl_.remote_as_) - - reinterpret_cast(&_impl_.enable_bgp_)) + sizeof(_impl_.remote_as_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SviSpec::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.SviSpec.vrf")); - } 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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.SviSpec.logical_bridge")); - } 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 = ::_pbi::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 [(.google.api.field_behavior) = OPTIONAL]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _impl_.enable_bgp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // uint32 remote_as = 6 [(.google.api.field_behavior) = OPTIONAL]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _impl_.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 i = 0, - n = static_cast(this->_internal_gw_ip_prefix_size()); i < n; i++) { - const auto& repfield = this->_internal_gw_ip_prefix(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); - } - - // bool enable_bgp = 5 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_enable_bgp() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_enable_bgp(), target); - } - - // uint32 remote_as = 6 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_remote_as() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_remote_as(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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->_impl_.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 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_enable_bgp() != 0) { - total_size += 1 + 1; - } - - // uint32 remote_as = 6 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_remote_as() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_remote_as()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SviSpec::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SviSpec::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SviSpec::GetClassData() const { return &_class_data_; } - - -void SviSpec::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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; - - _this->_impl_.gw_ip_prefix_.MergeFrom(from._impl_.gw_ip_prefix_); - if (!from._internal_vrf().empty()) { - _this->_internal_set_vrf(from._internal_vrf()); - } - if (!from._internal_logical_bridge().empty()) { - _this->_internal_set_logical_bridge(from._internal_logical_bridge()); - } - if (!from._internal_mac_address().empty()) { - _this->_internal_set_mac_address(from._internal_mac_address()); - } - if (from._internal_enable_bgp() != 0) { - _this->_internal_set_enable_bgp(from._internal_enable_bgp()); - } - if (from._internal_remote_as() != 0) { - _this->_internal_set_remote_as(from._internal_remote_as()); - } - _this->_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_); - _impl_.gw_ip_prefix_.InternalSwap(&other->_impl_.gw_ip_prefix_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.vrf_, lhs_arena, - &other->_impl_.vrf_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.logical_bridge_, lhs_arena, - &other->_impl_.logical_bridge_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.mac_address_, lhs_arena, - &other->_impl_.mac_address_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SviSpec, _impl_.remote_as_) - + sizeof(SviSpec::_impl_.remote_as_) - - PROTOBUF_FIELD_OFFSET(SviSpec, _impl_.enable_bgp_)>( - reinterpret_cast(&_impl_.enable_bgp_), - reinterpret_cast(&other->_impl_.enable_bgp_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SviSpec::GetMetadata() const { - return ::_pbi::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 SviStatus::_Internal { - public: -}; - -SviStatus::SviStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.SviStatus) -} -SviStatus::SviStatus(const SviStatus& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SviStatus* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.oper_status_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.oper_status_ = from._impl_.oper_status_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.SviStatus) -} - -inline void SviStatus::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.oper_status_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; -} - -SviStatus::~SviStatus() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.SviStatus) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void SviStatus::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void SviStatus::SetCachedSize(int size) const { - _impl_._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; - - _impl_.oper_status_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SviStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .opi_api.network.evpn_gw.v1alpha1.SVIOperStatus oper_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_oper_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_oper_status(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - if (this->_internal_oper_status() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_oper_status()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SviStatus::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SviStatus::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SviStatus::GetClassData() const { return &_class_data_; } - - -void SviStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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) { - _this->_internal_set_oper_status(from._internal_oper_status()); - } - _this->_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(_impl_.oper_status_, other->_impl_.oper_status_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SviStatus::GetMetadata() const { - return ::_pbi::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 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->_impl_.svi_; -} -CreateSviRequest::CreateSviRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) -} -CreateSviRequest::CreateSviRequest(const CreateSviRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CreateSviRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.svi_id_){} - , decltype(_impl_.svi_){nullptr} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.svi_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.svi_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_svi_id().empty()) { - _this->_impl_.svi_id_.Set(from._internal_svi_id(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_svi()) { - _this->_impl_.svi_ = new ::opi_api::network::evpn_gw::v1alpha1::Svi(*from._impl_.svi_); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) -} - -inline void CreateSviRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.svi_id_){} - , decltype(_impl_.svi_){nullptr} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.svi_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.svi_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -CreateSviRequest::~CreateSviRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void CreateSviRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.svi_id_.Destroy(); - if (this != internal_default_instance()) delete _impl_.svi_; -} - -void CreateSviRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.svi_id_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.svi_ != nullptr) { - delete _impl_.svi_; - } - _impl_.svi_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* CreateSviRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string svi_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_svi_id(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi_id")); - } 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 [(.google.api.field_behavior) = OPTIONAL]; - 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::svi(this), - _Internal::svi(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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 [(.google.api.field_behavior) = OPTIONAL]; - 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( - *_impl_.svi_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateSviRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CreateSviRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateSviRequest::GetClassData() const { return &_class_data_; } - - -void CreateSviRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_svi_id(from._internal_svi_id()); - } - if (from._internal_has_svi()) { - _this->_internal_mutable_svi()->::opi_api::network::evpn_gw::v1alpha1::Svi::MergeFrom( - from._internal_svi()); - } - _this->_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( - &_impl_.svi_id_, lhs_arena, - &other->_impl_.svi_id_, rhs_arena - ); - swap(_impl_.svi_, other->_impl_.svi_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CreateSviRequest::GetMetadata() const { - return ::_pbi::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 ListSvisRequest::_Internal { - public: -}; - -ListSvisRequest::ListSvisRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) -} -ListSvisRequest::ListSvisRequest(const ListSvisRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ListSvisRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.page_token_){} - , decltype(_impl_.page_size_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_page_token().empty()) { - _this->_impl_.page_token_.Set(from._internal_page_token(), - _this->GetArenaForAllocation()); - } - _this->_impl_.page_size_ = from._impl_.page_size_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) -} - -inline void ListSvisRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.page_token_){} - , decltype(_impl_.page_size_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -ListSvisRequest::~ListSvisRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ListSvisRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.page_token_.Destroy(); -} - -void ListSvisRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.page_token_.ClearToEmpty(); - _impl_.page_size_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ListSvisRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_page_token(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.page_token")); - } 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 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_page_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_page_size(), target); - } - - // string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - 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 = ::_pbi::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 [(.google.api.field_behavior) = OPTIONAL]; - if (!this->_internal_page_token().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_page_token()); - } - - // int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_page_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_page_size()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListSvisRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ListSvisRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListSvisRequest::GetClassData() const { return &_class_data_; } - - -void ListSvisRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_page_token(from._internal_page_token()); - } - if (from._internal_page_size() != 0) { - _this->_internal_set_page_size(from._internal_page_size()); - } - _this->_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( - &_impl_.page_token_, lhs_arena, - &other->_impl_.page_token_, rhs_arena - ); - swap(_impl_.page_size_, other->_impl_.page_size_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ListSvisRequest::GetMetadata() const { - return ::_pbi::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 ListSvisResponse::_Internal { - public: -}; - -ListSvisResponse::ListSvisResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) -} -ListSvisResponse::ListSvisResponse(const ListSvisResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ListSvisResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.svis_){from._impl_.svis_} - , decltype(_impl_.next_page_token_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.next_page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.next_page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_next_page_token().empty()) { - _this->_impl_.next_page_token_.Set(from._internal_next_page_token(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) -} - -inline void ListSvisResponse::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.svis_){arena} - , decltype(_impl_.next_page_token_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.next_page_token_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.next_page_token_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -ListSvisResponse::~ListSvisResponse() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.ListSvisResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ListSvisResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.svis_.~RepeatedPtrField(); - _impl_.next_page_token_.Destroy(); -} - -void ListSvisResponse::SetCachedSize(int size) const { - _impl_._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; - - _impl_.svis_.Clear(); - _impl_.next_page_token_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ListSvisResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.ListSvisResponse.next_page_token")); - } 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 i = 0, - n = static_cast(this->_internal_svis_size()); i < n; i++) { - const auto& repfield = this->_internal_svis(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), 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 = ::_pbi::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->_impl_.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, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListSvisResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ListSvisResponse::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListSvisResponse::GetClassData() const { return &_class_data_; } - - -void ListSvisResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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; - - _this->_impl_.svis_.MergeFrom(from._impl_.svis_); - if (!from._internal_next_page_token().empty()) { - _this->_internal_set_next_page_token(from._internal_next_page_token()); - } - _this->_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_); - _impl_.svis_.InternalSwap(&other->_impl_.svis_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.next_page_token_, lhs_arena, - &other->_impl_.next_page_token_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ListSvisResponse::GetMetadata() const { - return ::_pbi::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 GetSviRequest::_Internal { - public: -}; - -GetSviRequest::GetSviRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) -} -GetSviRequest::GetSviRequest(const GetSviRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GetSviRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) -} - -inline void GetSviRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -GetSviRequest::~GetSviRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.GetSviRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void GetSviRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); -} - -void GetSviRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.name_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetSviRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.GetSviRequest.name")); - } 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 = ::_pbi::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, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetSviRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GetSviRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetSviRequest::GetClassData() const { return &_class_data_; } - - -void GetSviRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_name(from._internal_name()); - } - _this->_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( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetSviRequest::GetMetadata() const { - return ::_pbi::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]); -} - -// =================================================================== - -class DeleteSviRequest::_Internal { - public: -}; - -DeleteSviRequest::DeleteSviRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) -} -DeleteSviRequest::DeleteSviRequest(const DeleteSviRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - DeleteSviRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.allow_missing_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _this->_impl_.allow_missing_ = from._impl_.allow_missing_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) -} - -inline void DeleteSviRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.allow_missing_){false} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -DeleteSviRequest::~DeleteSviRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void DeleteSviRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); -} - -void DeleteSviRequest::SetCachedSize(int size) const { - _impl_._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; - - _impl_.name_.ClearToEmpty(); - _impl_.allow_missing_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* DeleteSviRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::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 = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.name")); - } else - goto handle_unusual; - continue; - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.allow_missing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* 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); - } - - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_allow_missing(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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()); - } - - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - total_size += 1 + 1; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeleteSviRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DeleteSviRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeleteSviRequest::GetClassData() const { return &_class_data_; } - - -void DeleteSviRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@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()) { - _this->_internal_set_name(from._internal_name()); - } - if (from._internal_allow_missing() != 0) { - _this->_internal_set_allow_missing(from._internal_allow_missing()); - } - _this->_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( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - swap(_impl_.allow_missing_, other->_impl_.allow_missing_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata DeleteSviRequest::GetMetadata() const { - return ::_pbi::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[16]); -} - -// =================================================================== - -class UpdateSviRequest::_Internal { - public: - static const ::opi_api::network::evpn_gw::v1alpha1::Svi& svi(const UpdateSviRequest* msg); - static const ::PROTOBUF_NAMESPACE_ID::FieldMask& update_mask(const UpdateSviRequest* msg); -}; - -const ::opi_api::network::evpn_gw::v1alpha1::Svi& -UpdateSviRequest::_Internal::svi(const UpdateSviRequest* msg) { - return *msg->_impl_.svi_; -} -const ::PROTOBUF_NAMESPACE_ID::FieldMask& -UpdateSviRequest::_Internal::update_mask(const UpdateSviRequest* msg) { - return *msg->_impl_.update_mask_; -} -void UpdateSviRequest::clear_update_mask() { - if (GetArenaForAllocation() == nullptr && _impl_.update_mask_ != nullptr) { - delete _impl_.update_mask_; - } - _impl_.update_mask_ = nullptr; -} -UpdateSviRequest::UpdateSviRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) -} -UpdateSviRequest::UpdateSviRequest(const UpdateSviRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - UpdateSviRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.svi_){nullptr} - , decltype(_impl_.update_mask_){nullptr} - , decltype(_impl_.allow_missing_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_svi()) { - _this->_impl_.svi_ = new ::opi_api::network::evpn_gw::v1alpha1::Svi(*from._impl_.svi_); - } - if (from._internal_has_update_mask()) { - _this->_impl_.update_mask_ = new ::PROTOBUF_NAMESPACE_ID::FieldMask(*from._impl_.update_mask_); - } - _this->_impl_.allow_missing_ = from._impl_.allow_missing_; - // @@protoc_insertion_point(copy_constructor:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) -} - -inline void UpdateSviRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.svi_){nullptr} - , decltype(_impl_.update_mask_){nullptr} - , decltype(_impl_.allow_missing_){false} - , /*decltype(_impl_._cached_size_)*/{} - }; -} - -UpdateSviRequest::~UpdateSviRequest() { - // @@protoc_insertion_point(destructor:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void UpdateSviRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.svi_; - if (this != internal_default_instance()) delete _impl_.update_mask_; -} - -void UpdateSviRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void UpdateSviRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaForAllocation() == nullptr && _impl_.svi_ != nullptr) { - delete _impl_.svi_; - } - _impl_.svi_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.update_mask_ != nullptr) { - delete _impl_.update_mask_; - } - _impl_.update_mask_ = nullptr; - _impl_.allow_missing_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* UpdateSviRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.google.api.field_behavior) = REQUIRED]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_svi(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_update_mask(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.allow_missing_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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* UpdateSviRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.google.api.field_behavior) = REQUIRED]; - if (this->_internal_has_svi()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::svi(this), - _Internal::svi(this).GetCachedSize(), target, stream); - } - - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_has_update_mask()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::update_mask(this), - _Internal::update_mask(this).GetCachedSize(), target, stream); - } - - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_allow_missing(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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.UpdateSviRequest) - return target; -} - -size_t UpdateSviRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) - 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.Svi svi = 1 [(.google.api.field_behavior) = REQUIRED]; - if (this->_internal_has_svi()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.svi_); - } - - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_has_update_mask()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.update_mask_); - } - - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - if (this->_internal_allow_missing() != 0) { - total_size += 1 + 1; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UpdateSviRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - UpdateSviRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UpdateSviRequest::GetClassData() const { return &_class_data_; } - - -void UpdateSviRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_svi()) { - _this->_internal_mutable_svi()->::opi_api::network::evpn_gw::v1alpha1::Svi::MergeFrom( - from._internal_svi()); - } - if (from._internal_has_update_mask()) { - _this->_internal_mutable_update_mask()->::PROTOBUF_NAMESPACE_ID::FieldMask::MergeFrom( - from._internal_update_mask()); - } - if (from._internal_allow_missing() != 0) { - _this->_internal_set_allow_missing(from._internal_allow_missing()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void UpdateSviRequest::CopyFrom(const UpdateSviRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateSviRequest::IsInitialized() const { - return true; -} - -void UpdateSviRequest::InternalSwap(UpdateSviRequest* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(UpdateSviRequest, _impl_.allow_missing_) - + sizeof(UpdateSviRequest::_impl_.allow_missing_) - - PROTOBUF_FIELD_OFFSET(UpdateSviRequest, _impl_.svi_)>( - reinterpret_cast(&_impl_.svi_), - reinterpret_cast(&other->_impl_.svi_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata UpdateSviRequest::GetMetadata() const { - return ::_pbi::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[17]); -} - -// @@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::UpdateVrfRequest* -Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest >(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); -} -template<> PROTOBUF_NOINLINE ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest* -Arena::CreateMaybeMessage< ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest >(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 deleted file mode 100644 index 4d4f1853..00000000 --- a/network/evpn-gw/v1alpha1/gen/cpp/l3_xpu_infra_mgr.pb.h +++ /dev/null @@ -1,6120 +0,0 @@ -// 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 < 3021000 -#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 3021006 < 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 // 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 -#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 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 UpdateSviRequest; -struct UpdateSviRequestDefaultTypeInternal; -extern UpdateSviRequestDefaultTypeInternal _UpdateSviRequest_default_instance_; -class UpdateVrfRequest; -struct UpdateVrfRequestDefaultTypeInternal; -extern UpdateVrfRequestDefaultTypeInternal _UpdateVrfRequest_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::UpdateSviRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::UpdateSviRequest>(Arena*); -template<> ::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest* Arena::CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::UpdateVrfRequest>(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 PROTOBUF_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) { - Vrf::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = IDENTIFIER]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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_; - struct Impl_ { - ::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_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - VrfSpec::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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(); - - // optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; - bool has_vni() const; - private: - bool _internal_has_vni() const; - public: - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* loopback_ip_prefix_; - ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* vtep_ip_prefix_; - uint32_t vni_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - VrfStatus::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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_; - struct Impl_ { - ::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_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - CreateVrfRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vrf_id_; - ::opi_api::network::evpn_gw::v1alpha1::Vrf* vrf_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - ListVrfsRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; - int32_t page_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - ListVrfsResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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_; - struct Impl_ { - ::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_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - GetVrfRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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) { - DeleteVrfRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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, - kAllowMissingFieldNumber = 2, - }; - // 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: - - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - void clear_allow_missing(); - bool allow_missing() const; - void set_allow_missing(bool value); - private: - bool _internal_allow_missing() const; - void _internal_set_allow_missing(bool value); - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - bool allow_missing_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; -}; -// ------------------------------------------------------------------- - -class UpdateVrfRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) */ { - public: - inline UpdateVrfRequest() : UpdateVrfRequest(nullptr) {} - ~UpdateVrfRequest() override; - explicit PROTOBUF_CONSTEXPR UpdateVrfRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - UpdateVrfRequest(const UpdateVrfRequest& from); - UpdateVrfRequest(UpdateVrfRequest&& from) noexcept - : UpdateVrfRequest() { - *this = ::std::move(from); - } - - inline UpdateVrfRequest& operator=(const UpdateVrfRequest& from) { - CopyFrom(from); - return *this; - } - inline UpdateVrfRequest& operator=(UpdateVrfRequest&& 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 UpdateVrfRequest& default_instance() { - return *internal_default_instance(); - } - static inline const UpdateVrfRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateVrfRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(UpdateVrfRequest& a, UpdateVrfRequest& b) { - a.Swap(&b); - } - inline void Swap(UpdateVrfRequest* 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(UpdateVrfRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - UpdateVrfRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const UpdateVrfRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const UpdateVrfRequest& from) { - UpdateVrfRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UpdateVrfRequest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest"; - } - protected: - explicit UpdateVrfRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - 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 { - kVrfFieldNumber = 1, - kUpdateMaskFieldNumber = 2, - kAllowMissingFieldNumber = 3, - }; - // .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.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(); - - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - bool has_update_mask() const; - private: - bool _internal_has_update_mask() const; - public: - void clear_update_mask(); - const ::PROTOBUF_NAMESPACE_ID::FieldMask& update_mask() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FieldMask* release_update_mask(); - ::PROTOBUF_NAMESPACE_ID::FieldMask* mutable_update_mask(); - void set_allocated_update_mask(::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask); - private: - const ::PROTOBUF_NAMESPACE_ID::FieldMask& _internal_update_mask() const; - ::PROTOBUF_NAMESPACE_ID::FieldMask* _internal_mutable_update_mask(); - public: - void unsafe_arena_set_allocated_update_mask( - ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask); - ::PROTOBUF_NAMESPACE_ID::FieldMask* unsafe_arena_release_update_mask(); - - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - void clear_allow_missing(); - bool allow_missing() const; - void set_allow_missing(bool value); - private: - bool _internal_allow_missing() const; - void _internal_set_allow_missing(bool value); - public: - - // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::opi_api::network::evpn_gw::v1alpha1::Vrf* vrf_; - ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask_; - bool allow_missing_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 9; - - 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) { - Svi::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = IDENTIFIER]; - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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_; - struct Impl_ { - ::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_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 10; - - 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) { - SviSpec::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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_; - struct Impl_ { - ::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_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 11; - - 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) { - SviStatus::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - 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_; - struct Impl_ { - int oper_status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 12; - - 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) { - CreateSviRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr svi_id_; - ::opi_api::network::evpn_gw::v1alpha1::Svi* svi_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 13; - - 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) { - ListSvisRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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 [(.google.api.field_behavior) = OPTIONAL]; - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; - int32_t page_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 14; - - 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) { - ListSvisResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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_; - struct Impl_ { - ::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_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 15; - - 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) { - GetSviRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 PROTOBUF_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 = - 16; - - 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) { - DeleteSviRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - 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); - 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, - kAllowMissingFieldNumber = 2, - }; - // 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: - - // bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - void clear_allow_missing(); - bool allow_missing() const; - void set_allow_missing(bool value); - private: - bool _internal_allow_missing() const; - void _internal_set_allow_missing(bool value); - 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_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - bool allow_missing_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_l3_5fxpu_5finfra_5fmgr_2eproto; -}; -// ------------------------------------------------------------------- - -class UpdateSviRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) */ { - public: - inline UpdateSviRequest() : UpdateSviRequest(nullptr) {} - ~UpdateSviRequest() override; - explicit PROTOBUF_CONSTEXPR UpdateSviRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - UpdateSviRequest(const UpdateSviRequest& from); - UpdateSviRequest(UpdateSviRequest&& from) noexcept - : UpdateSviRequest() { - *this = ::std::move(from); - } - - inline UpdateSviRequest& operator=(const UpdateSviRequest& from) { - CopyFrom(from); - return *this; - } - inline UpdateSviRequest& operator=(UpdateSviRequest&& 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 UpdateSviRequest& default_instance() { - return *internal_default_instance(); - } - static inline const UpdateSviRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateSviRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(UpdateSviRequest& a, UpdateSviRequest& b) { - a.Swap(&b); - } - inline void Swap(UpdateSviRequest* 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(UpdateSviRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - UpdateSviRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const UpdateSviRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const UpdateSviRequest& from) { - UpdateSviRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - 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 _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UpdateSviRequest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest"; - } - protected: - explicit UpdateSviRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - 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 { - kSviFieldNumber = 1, - kUpdateMaskFieldNumber = 2, - kAllowMissingFieldNumber = 3, - }; - // .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.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(); - - // .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - bool has_update_mask() const; - private: - bool _internal_has_update_mask() const; - public: - void clear_update_mask(); - const ::PROTOBUF_NAMESPACE_ID::FieldMask& update_mask() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FieldMask* release_update_mask(); - ::PROTOBUF_NAMESPACE_ID::FieldMask* mutable_update_mask(); - void set_allocated_update_mask(::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask); - private: - const ::PROTOBUF_NAMESPACE_ID::FieldMask& _internal_update_mask() const; - ::PROTOBUF_NAMESPACE_ID::FieldMask* _internal_mutable_update_mask(); - public: - void unsafe_arena_set_allocated_update_mask( - ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask); - ::PROTOBUF_NAMESPACE_ID::FieldMask* unsafe_arena_release_update_mask(); - - // bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - void clear_allow_missing(); - bool allow_missing() const; - void set_allow_missing(bool value); - private: - bool _internal_allow_missing() const; - void _internal_set_allow_missing(bool value); - public: - - // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::opi_api::network::evpn_gw::v1alpha1::Svi* svi_; - ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask_; - bool allow_missing_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - 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 [(.google.api.field_behavior) = IDENTIFIER]; -inline void Vrf::clear_name() { - _impl_.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) { - - _impl_.name_.Set(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 _impl_.name_.Get(); -} -inline void Vrf::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* Vrf::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* Vrf::release_name() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.Vrf.name) - return _impl_.name_.Release(); -} -inline void Vrf::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", 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() && _impl_.spec_ != nullptr; -} -inline bool Vrf::has_spec() const { - return _internal_has_spec(); -} -inline void Vrf::clear_spec() { - if (GetArenaForAllocation() == nullptr && _impl_.spec_ != nullptr) { - delete _impl_.spec_; - } - _impl_.spec_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::VrfSpec& Vrf::_internal_spec() const { - const ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* p = _impl_.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*>(_impl_.spec_); - } - _impl_.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 = _impl_.spec_; - _impl_.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 = _impl_.spec_; - _impl_.spec_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::VrfSpec* Vrf::_internal_mutable_spec() { - - if (_impl_.spec_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::VrfSpec>(GetArenaForAllocation()); - _impl_.spec_ = p; - } - return _impl_.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 _impl_.spec_; - } - if (spec) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(spec); - if (message_arena != submessage_arena) { - spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - - } else { - - } - _impl_.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 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline bool Vrf::_internal_has_status() const { - return this != internal_default_instance() && _impl_.status_ != nullptr; -} -inline bool Vrf::has_status() const { - return _internal_has_status(); -} -inline void Vrf::clear_status() { - if (GetArenaForAllocation() == nullptr && _impl_.status_ != nullptr) { - delete _impl_.status_; - } - _impl_.status_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::VrfStatus& Vrf::_internal_status() const { - const ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* p = _impl_.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*>(_impl_.status_); - } - _impl_.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 = _impl_.status_; - _impl_.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 = _impl_.status_; - _impl_.status_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::VrfStatus* Vrf::_internal_mutable_status() { - - if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::VrfStatus>(GetArenaForAllocation()); - _impl_.status_ = p; - } - return _impl_.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 _impl_.status_; - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(status); - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - _impl_.status_ = status; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.Vrf.status) -} - -// ------------------------------------------------------------------- - -// VrfSpec - -// optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; -inline bool VrfSpec::_internal_has_vni() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool VrfSpec::has_vni() const { - return _internal_has_vni(); -} -inline void VrfSpec::clear_vni() { - _impl_.vni_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline uint32_t VrfSpec::_internal_vni() const { - return _impl_.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) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.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() && _impl_.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 = _impl_.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*>(_impl_.loopback_ip_prefix_); - } - _impl_.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 = _impl_.loopback_ip_prefix_; - _impl_.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 = _impl_.loopback_ip_prefix_; - _impl_.loopback_ip_prefix_ = nullptr; - return temp; -} -inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* VrfSpec::_internal_mutable_loopback_ip_prefix() { - - if (_impl_.loopback_ip_prefix_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::opinetcommon::v1alpha1::IPPrefix>(GetArenaForAllocation()); - _impl_.loopback_ip_prefix_ = p; - } - return _impl_.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*>(_impl_.loopback_ip_prefix_); - } - if (loopback_ip_prefix) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - 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 { - - } - _impl_.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 [(.google.api.field_behavior) = OPTIONAL]; -inline bool VrfSpec::_internal_has_vtep_ip_prefix() const { - return this != internal_default_instance() && _impl_.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 = _impl_.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*>(_impl_.vtep_ip_prefix_); - } - _impl_.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 = _impl_.vtep_ip_prefix_; - _impl_.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 = _impl_.vtep_ip_prefix_; - _impl_.vtep_ip_prefix_ = nullptr; - return temp; -} -inline ::opi_api::network::opinetcommon::v1alpha1::IPPrefix* VrfSpec::_internal_mutable_vtep_ip_prefix() { - - if (_impl_.vtep_ip_prefix_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::opinetcommon::v1alpha1::IPPrefix>(GetArenaForAllocation()); - _impl_.vtep_ip_prefix_ = p; - } - return _impl_.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*>(_impl_.vtep_ip_prefix_); - } - if (vtep_ip_prefix) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - 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 { - - } - _impl_.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 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline void VrfStatus::clear_routing_table() { - _impl_.routing_table_ = 0u; -} -inline uint32_t VrfStatus::_internal_routing_table() const { - return _impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline void VrfStatus::clear_local_as() { - _impl_.local_as_ = 0u; -} -inline uint32_t VrfStatus::_internal_local_as() const { - return _impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline void VrfStatus::clear_rd() { - _impl_.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) { - - _impl_.rd_.Set(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 _impl_.rd_.Get(); -} -inline void VrfStatus::_internal_set_rd(const std::string& value) { - - _impl_.rd_.Set(value, GetArenaForAllocation()); -} -inline std::string* VrfStatus::_internal_mutable_rd() { - - return _impl_.rd_.Mutable(GetArenaForAllocation()); -} -inline std::string* VrfStatus::release_rd() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rd) - return _impl_.rd_.Release(); -} -inline void VrfStatus::set_allocated_rd(std::string* rd) { - if (rd != nullptr) { - - } else { - - } - _impl_.rd_.SetAllocated(rd, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.rd_.IsDefault()) { - _impl_.rd_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rd) -} - -// bytes rmac = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline void VrfStatus::clear_rmac() { - _impl_.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) { - - _impl_.rmac_.SetBytes(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 _impl_.rmac_.Get(); -} -inline void VrfStatus::_internal_set_rmac(const std::string& value) { - - _impl_.rmac_.Set(value, GetArenaForAllocation()); -} -inline std::string* VrfStatus::_internal_mutable_rmac() { - - return _impl_.rmac_.Mutable(GetArenaForAllocation()); -} -inline std::string* VrfStatus::release_rmac() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.VrfStatus.rmac) - return _impl_.rmac_.Release(); -} -inline void VrfStatus::set_allocated_rmac(std::string* rmac) { - if (rmac != nullptr) { - - } else { - - } - _impl_.rmac_.SetAllocated(rmac, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.rmac_.IsDefault()) { - _impl_.rmac_.Set("", 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline int VrfStatus::_internal_import_rts_size() const { - return _impl_.import_rts_.size(); -} -inline int VrfStatus::import_rts_size() const { - return _internal_import_rts_size(); -} -inline void VrfStatus::clear_import_rts() { - _impl_.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 _impl_.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 _impl_.import_rts_.Mutable(index); -} -inline void VrfStatus::set_import_rts(int index, const std::string& value) { - _impl_.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) { - _impl_.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); - _impl_.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) { - _impl_.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 _impl_.import_rts_.Add(); -} -inline void VrfStatus::add_import_rts(const std::string& value) { - _impl_.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) { - _impl_.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); - _impl_.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) { - _impl_.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 _impl_.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 &_impl_.import_rts_; -} - -// repeated string export_rts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline int VrfStatus::_internal_export_rts_size() const { - return _impl_.export_rts_.size(); -} -inline int VrfStatus::export_rts_size() const { - return _internal_export_rts_size(); -} -inline void VrfStatus::clear_export_rts() { - _impl_.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 _impl_.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 _impl_.export_rts_.Mutable(index); -} -inline void VrfStatus::set_export_rts(int index, const std::string& value) { - _impl_.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) { - _impl_.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); - _impl_.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) { - _impl_.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 _impl_.export_rts_.Add(); -} -inline void VrfStatus::add_export_rts(const std::string& value) { - _impl_.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) { - _impl_.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); - _impl_.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) { - _impl_.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 _impl_.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 &_impl_.export_rts_; -} - -// repeated string logical_bridges = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline int VrfStatus::_internal_logical_bridges_size() const { - return _impl_.logical_bridges_.size(); -} -inline int VrfStatus::logical_bridges_size() const { - return _internal_logical_bridges_size(); -} -inline void VrfStatus::clear_logical_bridges() { - _impl_.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 _impl_.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 _impl_.logical_bridges_.Mutable(index); -} -inline void VrfStatus::set_logical_bridges(int index, const std::string& value) { - _impl_.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) { - _impl_.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); - _impl_.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) { - _impl_.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 _impl_.logical_bridges_.Add(); -} -inline void VrfStatus::add_logical_bridges(const std::string& value) { - _impl_.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) { - _impl_.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); - _impl_.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) { - _impl_.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 _impl_.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 &_impl_.logical_bridges_; -} - -// .opi_api.network.evpn_gw.v1alpha1.VRFOperStatus oper_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline void VrfStatus::clear_oper_status() { - _impl_.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 >(_impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OPTIONAL]; -inline void CreateVrfRequest::clear_vrf_id() { - _impl_.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) { - - _impl_.vrf_id_.Set(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 _impl_.vrf_id_.Get(); -} -inline void CreateVrfRequest::_internal_set_vrf_id(const std::string& value) { - - _impl_.vrf_id_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateVrfRequest::_internal_mutable_vrf_id() { - - return _impl_.vrf_id_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateVrfRequest::release_vrf_id() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf_id) - return _impl_.vrf_id_.Release(); -} -inline void CreateVrfRequest::set_allocated_vrf_id(std::string* vrf_id) { - if (vrf_id != nullptr) { - - } else { - - } - _impl_.vrf_id_.SetAllocated(vrf_id, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.vrf_id_.IsDefault()) { - _impl_.vrf_id_.Set("", 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() && _impl_.vrf_ != nullptr; -} -inline bool CreateVrfRequest::has_vrf() const { - return _internal_has_vrf(); -} -inline void CreateVrfRequest::clear_vrf() { - if (GetArenaForAllocation() == nullptr && _impl_.vrf_ != nullptr) { - delete _impl_.vrf_; - } - _impl_.vrf_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::Vrf& CreateVrfRequest::_internal_vrf() const { - const ::opi_api::network::evpn_gw::v1alpha1::Vrf* p = _impl_.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*>(_impl_.vrf_); - } - _impl_.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 = _impl_.vrf_; - _impl_.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 = _impl_.vrf_; - _impl_.vrf_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::Vrf* CreateVrfRequest::_internal_mutable_vrf() { - - if (_impl_.vrf_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::Vrf>(GetArenaForAllocation()); - _impl_.vrf_ = p; - } - return _impl_.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 _impl_.vrf_; - } - if (vrf) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(vrf); - if (message_arena != submessage_arena) { - vrf = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, vrf, submessage_arena); - } - - } else { - - } - _impl_.vrf_ = vrf; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest.vrf) -} - -// ------------------------------------------------------------------- - -// ListVrfsRequest - -// int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; -inline void ListVrfsRequest::clear_page_size() { - _impl_.page_size_ = 0; -} -inline int32_t ListVrfsRequest::_internal_page_size() const { - return _impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OPTIONAL]; -inline void ListVrfsRequest::clear_page_token() { - _impl_.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) { - - _impl_.page_token_.Set(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 _impl_.page_token_.Get(); -} -inline void ListVrfsRequest::_internal_set_page_token(const std::string& value) { - - _impl_.page_token_.Set(value, GetArenaForAllocation()); -} -inline std::string* ListVrfsRequest::_internal_mutable_page_token() { - - return _impl_.page_token_.Mutable(GetArenaForAllocation()); -} -inline std::string* ListVrfsRequest::release_page_token() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.ListVrfsRequest.page_token) - return _impl_.page_token_.Release(); -} -inline void ListVrfsRequest::set_allocated_page_token(std::string* page_token) { - if (page_token != nullptr) { - - } else { - - } - _impl_.page_token_.SetAllocated(page_token, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.page_token_.IsDefault()) { - _impl_.page_token_.Set("", 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 _impl_.vrfs_.size(); -} -inline int ListVrfsResponse::vrfs_size() const { - return _internal_vrfs_size(); -} -inline void ListVrfsResponse::clear_vrfs() { - _impl_.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 _impl_.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 &_impl_.vrfs_; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::Vrf& ListVrfsResponse::_internal_vrfs(int index) const { - return _impl_.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 _impl_.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 _impl_.vrfs_; -} - -// string next_page_token = 2; -inline void ListVrfsResponse::clear_next_page_token() { - _impl_.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) { - - _impl_.next_page_token_.Set(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 _impl_.next_page_token_.Get(); -} -inline void ListVrfsResponse::_internal_set_next_page_token(const std::string& value) { - - _impl_.next_page_token_.Set(value, GetArenaForAllocation()); -} -inline std::string* ListVrfsResponse::_internal_mutable_next_page_token() { - - return _impl_.next_page_token_.Mutable(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 _impl_.next_page_token_.Release(); -} -inline void ListVrfsResponse::set_allocated_next_page_token(std::string* next_page_token) { - if (next_page_token != nullptr) { - - } else { - - } - _impl_.next_page_token_.SetAllocated(next_page_token, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.next_page_token_.IsDefault()) { - _impl_.next_page_token_.Set("", 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() { - _impl_.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) { - - _impl_.name_.Set(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 _impl_.name_.Get(); -} -inline void GetVrfRequest::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* GetVrfRequest::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* GetVrfRequest::release_name() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.GetVrfRequest.name) - return _impl_.name_.Release(); -} -inline void GetVrfRequest::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", 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() { - _impl_.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) { - - _impl_.name_.Set(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 _impl_.name_.Get(); -} -inline void DeleteVrfRequest::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* DeleteVrfRequest::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* DeleteVrfRequest::release_name() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.name) - return _impl_.name_.Release(); -} -inline void DeleteVrfRequest::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.name) -} - -// bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; -inline void DeleteVrfRequest::clear_allow_missing() { - _impl_.allow_missing_ = false; -} -inline bool DeleteVrfRequest::_internal_allow_missing() const { - return _impl_.allow_missing_; -} -inline bool DeleteVrfRequest::allow_missing() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.allow_missing) - return _internal_allow_missing(); -} -inline void DeleteVrfRequest::_internal_set_allow_missing(bool value) { - - _impl_.allow_missing_ = value; -} -inline void DeleteVrfRequest::set_allow_missing(bool value) { - _internal_set_allow_missing(value); - // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest.allow_missing) -} - -// ------------------------------------------------------------------- - -// UpdateVrfRequest - -// .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.google.api.field_behavior) = REQUIRED]; -inline bool UpdateVrfRequest::_internal_has_vrf() const { - return this != internal_default_instance() && _impl_.vrf_ != nullptr; -} -inline bool UpdateVrfRequest::has_vrf() const { - return _internal_has_vrf(); -} -inline void UpdateVrfRequest::clear_vrf() { - if (GetArenaForAllocation() == nullptr && _impl_.vrf_ != nullptr) { - delete _impl_.vrf_; - } - _impl_.vrf_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::Vrf& UpdateVrfRequest::_internal_vrf() const { - const ::opi_api::network::evpn_gw::v1alpha1::Vrf* p = _impl_.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& UpdateVrfRequest::vrf() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.vrf) - return _internal_vrf(); -} -inline void UpdateVrfRequest::unsafe_arena_set_allocated_vrf( - ::opi_api::network::evpn_gw::v1alpha1::Vrf* vrf) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.vrf_); - } - _impl_.vrf_ = vrf; - if (vrf) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.vrf) -} -inline ::opi_api::network::evpn_gw::v1alpha1::Vrf* UpdateVrfRequest::release_vrf() { - - ::opi_api::network::evpn_gw::v1alpha1::Vrf* temp = _impl_.vrf_; - _impl_.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* UpdateVrfRequest::unsafe_arena_release_vrf() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.vrf) - - ::opi_api::network::evpn_gw::v1alpha1::Vrf* temp = _impl_.vrf_; - _impl_.vrf_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::Vrf* UpdateVrfRequest::_internal_mutable_vrf() { - - if (_impl_.vrf_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::Vrf>(GetArenaForAllocation()); - _impl_.vrf_ = p; - } - return _impl_.vrf_; -} -inline ::opi_api::network::evpn_gw::v1alpha1::Vrf* UpdateVrfRequest::mutable_vrf() { - ::opi_api::network::evpn_gw::v1alpha1::Vrf* _msg = _internal_mutable_vrf(); - // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.vrf) - return _msg; -} -inline void UpdateVrfRequest::set_allocated_vrf(::opi_api::network::evpn_gw::v1alpha1::Vrf* vrf) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.vrf_; - } - if (vrf) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(vrf); - if (message_arena != submessage_arena) { - vrf = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, vrf, submessage_arena); - } - - } else { - - } - _impl_.vrf_ = vrf; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.vrf) -} - -// .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; -inline bool UpdateVrfRequest::_internal_has_update_mask() const { - return this != internal_default_instance() && _impl_.update_mask_ != nullptr; -} -inline bool UpdateVrfRequest::has_update_mask() const { - return _internal_has_update_mask(); -} -inline const ::PROTOBUF_NAMESPACE_ID::FieldMask& UpdateVrfRequest::_internal_update_mask() const { - const ::PROTOBUF_NAMESPACE_ID::FieldMask* p = _impl_.update_mask_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_FieldMask_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::FieldMask& UpdateVrfRequest::update_mask() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.update_mask) - return _internal_update_mask(); -} -inline void UpdateVrfRequest::unsafe_arena_set_allocated_update_mask( - ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.update_mask_); - } - _impl_.update_mask_ = update_mask; - if (update_mask) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.update_mask) -} -inline ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateVrfRequest::release_update_mask() { - - ::PROTOBUF_NAMESPACE_ID::FieldMask* temp = _impl_.update_mask_; - _impl_.update_mask_ = 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 ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateVrfRequest::unsafe_arena_release_update_mask() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.update_mask) - - ::PROTOBUF_NAMESPACE_ID::FieldMask* temp = _impl_.update_mask_; - _impl_.update_mask_ = nullptr; - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateVrfRequest::_internal_mutable_update_mask() { - - if (_impl_.update_mask_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldMask>(GetArenaForAllocation()); - _impl_.update_mask_ = p; - } - return _impl_.update_mask_; -} -inline ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateVrfRequest::mutable_update_mask() { - ::PROTOBUF_NAMESPACE_ID::FieldMask* _msg = _internal_mutable_update_mask(); - // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.update_mask) - return _msg; -} -inline void UpdateVrfRequest::set_allocated_update_mask(::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.update_mask_); - } - if (update_mask) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_mask)); - if (message_arena != submessage_arena) { - update_mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, update_mask, submessage_arena); - } - - } else { - - } - _impl_.update_mask_ = update_mask; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.update_mask) -} - -// bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; -inline void UpdateVrfRequest::clear_allow_missing() { - _impl_.allow_missing_ = false; -} -inline bool UpdateVrfRequest::_internal_allow_missing() const { - return _impl_.allow_missing_; -} -inline bool UpdateVrfRequest::allow_missing() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.allow_missing) - return _internal_allow_missing(); -} -inline void UpdateVrfRequest::_internal_set_allow_missing(bool value) { - - _impl_.allow_missing_ = value; -} -inline void UpdateVrfRequest::set_allow_missing(bool value) { - _internal_set_allow_missing(value); - // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.allow_missing) -} - -// ------------------------------------------------------------------- - -// Svi - -// string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; -inline void Svi::clear_name() { - _impl_.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) { - - _impl_.name_.Set(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 _impl_.name_.Get(); -} -inline void Svi::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* Svi::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* Svi::release_name() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.Svi.name) - return _impl_.name_.Release(); -} -inline void Svi::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", 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() && _impl_.spec_ != nullptr; -} -inline bool Svi::has_spec() const { - return _internal_has_spec(); -} -inline void Svi::clear_spec() { - if (GetArenaForAllocation() == nullptr && _impl_.spec_ != nullptr) { - delete _impl_.spec_; - } - _impl_.spec_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::SviSpec& Svi::_internal_spec() const { - const ::opi_api::network::evpn_gw::v1alpha1::SviSpec* p = _impl_.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*>(_impl_.spec_); - } - _impl_.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 = _impl_.spec_; - _impl_.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 = _impl_.spec_; - _impl_.spec_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::SviSpec* Svi::_internal_mutable_spec() { - - if (_impl_.spec_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::SviSpec>(GetArenaForAllocation()); - _impl_.spec_ = p; - } - return _impl_.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 _impl_.spec_; - } - if (spec) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(spec); - if (message_arena != submessage_arena) { - spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - - } else { - - } - _impl_.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 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline bool Svi::_internal_has_status() const { - return this != internal_default_instance() && _impl_.status_ != nullptr; -} -inline bool Svi::has_status() const { - return _internal_has_status(); -} -inline void Svi::clear_status() { - if (GetArenaForAllocation() == nullptr && _impl_.status_ != nullptr) { - delete _impl_.status_; - } - _impl_.status_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::SviStatus& Svi::_internal_status() const { - const ::opi_api::network::evpn_gw::v1alpha1::SviStatus* p = _impl_.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*>(_impl_.status_); - } - _impl_.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 = _impl_.status_; - _impl_.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 = _impl_.status_; - _impl_.status_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::SviStatus* Svi::_internal_mutable_status() { - - if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::SviStatus>(GetArenaForAllocation()); - _impl_.status_ = p; - } - return _impl_.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 _impl_.status_; - } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(status); - if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); - } - - } else { - - } - _impl_.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() { - _impl_.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) { - - _impl_.vrf_.Set(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 _impl_.vrf_.Get(); -} -inline void SviSpec::_internal_set_vrf(const std::string& value) { - - _impl_.vrf_.Set(value, GetArenaForAllocation()); -} -inline std::string* SviSpec::_internal_mutable_vrf() { - - return _impl_.vrf_.Mutable(GetArenaForAllocation()); -} -inline std::string* SviSpec::release_vrf() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.SviSpec.vrf) - return _impl_.vrf_.Release(); -} -inline void SviSpec::set_allocated_vrf(std::string* vrf) { - if (vrf != nullptr) { - - } else { - - } - _impl_.vrf_.SetAllocated(vrf, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.vrf_.IsDefault()) { - _impl_.vrf_.Set("", 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() { - _impl_.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) { - - _impl_.logical_bridge_.Set(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 _impl_.logical_bridge_.Get(); -} -inline void SviSpec::_internal_set_logical_bridge(const std::string& value) { - - _impl_.logical_bridge_.Set(value, GetArenaForAllocation()); -} -inline std::string* SviSpec::_internal_mutable_logical_bridge() { - - return _impl_.logical_bridge_.Mutable(GetArenaForAllocation()); -} -inline std::string* SviSpec::release_logical_bridge() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.SviSpec.logical_bridge) - return _impl_.logical_bridge_.Release(); -} -inline void SviSpec::set_allocated_logical_bridge(std::string* logical_bridge) { - if (logical_bridge != nullptr) { - - } else { - - } - _impl_.logical_bridge_.SetAllocated(logical_bridge, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.logical_bridge_.IsDefault()) { - _impl_.logical_bridge_.Set("", 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() { - _impl_.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) { - - _impl_.mac_address_.SetBytes(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 _impl_.mac_address_.Get(); -} -inline void SviSpec::_internal_set_mac_address(const std::string& value) { - - _impl_.mac_address_.Set(value, GetArenaForAllocation()); -} -inline std::string* SviSpec::_internal_mutable_mac_address() { - - return _impl_.mac_address_.Mutable(GetArenaForAllocation()); -} -inline std::string* SviSpec::release_mac_address() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.SviSpec.mac_address) - return _impl_.mac_address_.Release(); -} -inline void SviSpec::set_allocated_mac_address(std::string* mac_address) { - if (mac_address != nullptr) { - - } else { - - } - _impl_.mac_address_.SetAllocated(mac_address, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mac_address_.IsDefault()) { - _impl_.mac_address_.Set("", 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 _impl_.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 _impl_.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 &_impl_.gw_ip_prefix_; -} -inline const ::opi_api::network::opinetcommon::v1alpha1::IPPrefix& SviSpec::_internal_gw_ip_prefix(int index) const { - return _impl_.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 _impl_.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 _impl_.gw_ip_prefix_; -} - -// bool enable_bgp = 5 [(.google.api.field_behavior) = OPTIONAL]; -inline void SviSpec::clear_enable_bgp() { - _impl_.enable_bgp_ = false; -} -inline bool SviSpec::_internal_enable_bgp() const { - return _impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OPTIONAL]; -inline void SviSpec::clear_remote_as() { - _impl_.remote_as_ = 0u; -} -inline uint32_t SviSpec::_internal_remote_as() const { - return _impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OUTPUT_ONLY]; -inline void SviStatus::clear_oper_status() { - _impl_.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 >(_impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OPTIONAL]; -inline void CreateSviRequest::clear_svi_id() { - _impl_.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) { - - _impl_.svi_id_.Set(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 _impl_.svi_id_.Get(); -} -inline void CreateSviRequest::_internal_set_svi_id(const std::string& value) { - - _impl_.svi_id_.Set(value, GetArenaForAllocation()); -} -inline std::string* CreateSviRequest::_internal_mutable_svi_id() { - - return _impl_.svi_id_.Mutable(GetArenaForAllocation()); -} -inline std::string* CreateSviRequest::release_svi_id() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi_id) - return _impl_.svi_id_.Release(); -} -inline void CreateSviRequest::set_allocated_svi_id(std::string* svi_id) { - if (svi_id != nullptr) { - - } else { - - } - _impl_.svi_id_.SetAllocated(svi_id, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.svi_id_.IsDefault()) { - _impl_.svi_id_.Set("", 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() && _impl_.svi_ != nullptr; -} -inline bool CreateSviRequest::has_svi() const { - return _internal_has_svi(); -} -inline void CreateSviRequest::clear_svi() { - if (GetArenaForAllocation() == nullptr && _impl_.svi_ != nullptr) { - delete _impl_.svi_; - } - _impl_.svi_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::Svi& CreateSviRequest::_internal_svi() const { - const ::opi_api::network::evpn_gw::v1alpha1::Svi* p = _impl_.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*>(_impl_.svi_); - } - _impl_.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 = _impl_.svi_; - _impl_.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 = _impl_.svi_; - _impl_.svi_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::Svi* CreateSviRequest::_internal_mutable_svi() { - - if (_impl_.svi_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::Svi>(GetArenaForAllocation()); - _impl_.svi_ = p; - } - return _impl_.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 _impl_.svi_; - } - if (svi) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(svi); - if (message_arena != submessage_arena) { - svi = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, svi, submessage_arena); - } - - } else { - - } - _impl_.svi_ = svi; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.CreateSviRequest.svi) -} - -// ------------------------------------------------------------------- - -// ListSvisRequest - -// int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; -inline void ListSvisRequest::clear_page_size() { - _impl_.page_size_ = 0; -} -inline int32_t ListSvisRequest::_internal_page_size() const { - return _impl_.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) { - - _impl_.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 [(.google.api.field_behavior) = OPTIONAL]; -inline void ListSvisRequest::clear_page_token() { - _impl_.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) { - - _impl_.page_token_.Set(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 _impl_.page_token_.Get(); -} -inline void ListSvisRequest::_internal_set_page_token(const std::string& value) { - - _impl_.page_token_.Set(value, GetArenaForAllocation()); -} -inline std::string* ListSvisRequest::_internal_mutable_page_token() { - - return _impl_.page_token_.Mutable(GetArenaForAllocation()); -} -inline std::string* ListSvisRequest::release_page_token() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.ListSvisRequest.page_token) - return _impl_.page_token_.Release(); -} -inline void ListSvisRequest::set_allocated_page_token(std::string* page_token) { - if (page_token != nullptr) { - - } else { - - } - _impl_.page_token_.SetAllocated(page_token, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.page_token_.IsDefault()) { - _impl_.page_token_.Set("", 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 _impl_.svis_.size(); -} -inline int ListSvisResponse::svis_size() const { - return _internal_svis_size(); -} -inline void ListSvisResponse::clear_svis() { - _impl_.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 _impl_.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 &_impl_.svis_; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::Svi& ListSvisResponse::_internal_svis(int index) const { - return _impl_.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 _impl_.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 _impl_.svis_; -} - -// string next_page_token = 2; -inline void ListSvisResponse::clear_next_page_token() { - _impl_.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) { - - _impl_.next_page_token_.Set(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 _impl_.next_page_token_.Get(); -} -inline void ListSvisResponse::_internal_set_next_page_token(const std::string& value) { - - _impl_.next_page_token_.Set(value, GetArenaForAllocation()); -} -inline std::string* ListSvisResponse::_internal_mutable_next_page_token() { - - return _impl_.next_page_token_.Mutable(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 _impl_.next_page_token_.Release(); -} -inline void ListSvisResponse::set_allocated_next_page_token(std::string* next_page_token) { - if (next_page_token != nullptr) { - - } else { - - } - _impl_.next_page_token_.SetAllocated(next_page_token, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.next_page_token_.IsDefault()) { - _impl_.next_page_token_.Set("", 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() { - _impl_.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) { - - _impl_.name_.Set(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 _impl_.name_.Get(); -} -inline void GetSviRequest::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* GetSviRequest::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* GetSviRequest::release_name() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.GetSviRequest.name) - return _impl_.name_.Release(); -} -inline void GetSviRequest::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", 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() { - _impl_.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) { - - _impl_.name_.Set(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 _impl_.name_.Get(); -} -inline void DeleteSviRequest::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* DeleteSviRequest::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* DeleteSviRequest::release_name() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.name) - return _impl_.name_.Release(); -} -inline void DeleteSviRequest::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.name) -} - -// bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; -inline void DeleteSviRequest::clear_allow_missing() { - _impl_.allow_missing_ = false; -} -inline bool DeleteSviRequest::_internal_allow_missing() const { - return _impl_.allow_missing_; -} -inline bool DeleteSviRequest::allow_missing() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.allow_missing) - return _internal_allow_missing(); -} -inline void DeleteSviRequest::_internal_set_allow_missing(bool value) { - - _impl_.allow_missing_ = value; -} -inline void DeleteSviRequest::set_allow_missing(bool value) { - _internal_set_allow_missing(value); - // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest.allow_missing) -} - -// ------------------------------------------------------------------- - -// UpdateSviRequest - -// .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.google.api.field_behavior) = REQUIRED]; -inline bool UpdateSviRequest::_internal_has_svi() const { - return this != internal_default_instance() && _impl_.svi_ != nullptr; -} -inline bool UpdateSviRequest::has_svi() const { - return _internal_has_svi(); -} -inline void UpdateSviRequest::clear_svi() { - if (GetArenaForAllocation() == nullptr && _impl_.svi_ != nullptr) { - delete _impl_.svi_; - } - _impl_.svi_ = nullptr; -} -inline const ::opi_api::network::evpn_gw::v1alpha1::Svi& UpdateSviRequest::_internal_svi() const { - const ::opi_api::network::evpn_gw::v1alpha1::Svi* p = _impl_.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& UpdateSviRequest::svi() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.svi) - return _internal_svi(); -} -inline void UpdateSviRequest::unsafe_arena_set_allocated_svi( - ::opi_api::network::evpn_gw::v1alpha1::Svi* svi) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.svi_); - } - _impl_.svi_ = svi; - if (svi) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.svi) -} -inline ::opi_api::network::evpn_gw::v1alpha1::Svi* UpdateSviRequest::release_svi() { - - ::opi_api::network::evpn_gw::v1alpha1::Svi* temp = _impl_.svi_; - _impl_.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* UpdateSviRequest::unsafe_arena_release_svi() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.svi) - - ::opi_api::network::evpn_gw::v1alpha1::Svi* temp = _impl_.svi_; - _impl_.svi_ = nullptr; - return temp; -} -inline ::opi_api::network::evpn_gw::v1alpha1::Svi* UpdateSviRequest::_internal_mutable_svi() { - - if (_impl_.svi_ == nullptr) { - auto* p = CreateMaybeMessage<::opi_api::network::evpn_gw::v1alpha1::Svi>(GetArenaForAllocation()); - _impl_.svi_ = p; - } - return _impl_.svi_; -} -inline ::opi_api::network::evpn_gw::v1alpha1::Svi* UpdateSviRequest::mutable_svi() { - ::opi_api::network::evpn_gw::v1alpha1::Svi* _msg = _internal_mutable_svi(); - // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.svi) - return _msg; -} -inline void UpdateSviRequest::set_allocated_svi(::opi_api::network::evpn_gw::v1alpha1::Svi* svi) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.svi_; - } - if (svi) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(svi); - if (message_arena != submessage_arena) { - svi = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, svi, submessage_arena); - } - - } else { - - } - _impl_.svi_ = svi; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.svi) -} - -// .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; -inline bool UpdateSviRequest::_internal_has_update_mask() const { - return this != internal_default_instance() && _impl_.update_mask_ != nullptr; -} -inline bool UpdateSviRequest::has_update_mask() const { - return _internal_has_update_mask(); -} -inline const ::PROTOBUF_NAMESPACE_ID::FieldMask& UpdateSviRequest::_internal_update_mask() const { - const ::PROTOBUF_NAMESPACE_ID::FieldMask* p = _impl_.update_mask_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_FieldMask_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::FieldMask& UpdateSviRequest::update_mask() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.update_mask) - return _internal_update_mask(); -} -inline void UpdateSviRequest::unsafe_arena_set_allocated_update_mask( - ::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.update_mask_); - } - _impl_.update_mask_ = update_mask; - if (update_mask) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.update_mask) -} -inline ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateSviRequest::release_update_mask() { - - ::PROTOBUF_NAMESPACE_ID::FieldMask* temp = _impl_.update_mask_; - _impl_.update_mask_ = 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 ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateSviRequest::unsafe_arena_release_update_mask() { - // @@protoc_insertion_point(field_release:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.update_mask) - - ::PROTOBUF_NAMESPACE_ID::FieldMask* temp = _impl_.update_mask_; - _impl_.update_mask_ = nullptr; - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateSviRequest::_internal_mutable_update_mask() { - - if (_impl_.update_mask_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldMask>(GetArenaForAllocation()); - _impl_.update_mask_ = p; - } - return _impl_.update_mask_; -} -inline ::PROTOBUF_NAMESPACE_ID::FieldMask* UpdateSviRequest::mutable_update_mask() { - ::PROTOBUF_NAMESPACE_ID::FieldMask* _msg = _internal_mutable_update_mask(); - // @@protoc_insertion_point(field_mutable:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.update_mask) - return _msg; -} -inline void UpdateSviRequest::set_allocated_update_mask(::PROTOBUF_NAMESPACE_ID::FieldMask* update_mask) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.update_mask_); - } - if (update_mask) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(update_mask)); - if (message_arena != submessage_arena) { - update_mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, update_mask, submessage_arena); - } - - } else { - - } - _impl_.update_mask_ = update_mask; - // @@protoc_insertion_point(field_set_allocated:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.update_mask) -} - -// bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; -inline void UpdateSviRequest::clear_allow_missing() { - _impl_.allow_missing_ = false; -} -inline bool UpdateSviRequest::_internal_allow_missing() const { - return _impl_.allow_missing_; -} -inline bool UpdateSviRequest::allow_missing() const { - // @@protoc_insertion_point(field_get:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.allow_missing) - return _internal_allow_missing(); -} -inline void UpdateSviRequest::_internal_set_allow_missing(bool value) { - - _impl_.allow_missing_ = value; -} -inline void UpdateSviRequest::set_allow_missing(bool value) { - _internal_set_allow_missing(value); - // @@protoc_insertion_point(field_set:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.allow_missing) -} - -#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 index a398e0d0..586d5fd6 100644 --- 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 @@ -12,8 +12,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 +// protoc-gen-go v1.31.0 +// protoc (unknown) // source: l2_xpu_infra_mgr.proto package _go @@ -147,24 +147,24 @@ type BridgePortType int32 const ( // "unknown" bridge port type - BridgePortType_UNKNOWN BridgePortType = 0 + BridgePortType_BRIDGE_PORT_TYPE_UNSPECIFIED BridgePortType = 0 // "access" bridge port type - BridgePortType_ACCESS BridgePortType = 1 + BridgePortType_BRIDGE_PORT_TYPE_ACCESS BridgePortType = 1 // "trunk" bridge port type - BridgePortType_TRUNK BridgePortType = 2 + BridgePortType_BRIDGE_PORT_TYPE_TRUNK BridgePortType = 2 ) // Enum value maps for BridgePortType. var ( BridgePortType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "ACCESS", - 2: "TRUNK", + 0: "BRIDGE_PORT_TYPE_UNSPECIFIED", + 1: "BRIDGE_PORT_TYPE_ACCESS", + 2: "BRIDGE_PORT_TYPE_TRUNK", } BridgePortType_value = map[string]int32{ - "UNKNOWN": 0, - "ACCESS": 1, - "TRUNK": 2, + "BRIDGE_PORT_TYPE_UNSPECIFIED": 0, + "BRIDGE_PORT_TYPE_ACCESS": 1, + "BRIDGE_PORT_TYPE_TRUNK": 2, } ) @@ -874,7 +874,7 @@ func (x *BridgePortSpec) GetPtype() BridgePortType { if x != nil { return x.Ptype } - return BridgePortType_UNKNOWN + return BridgePortType_BRIDGE_PORT_TYPE_UNSPECIFIED } func (x *BridgePortSpec) GetLogicalBridges() []string { @@ -1506,135 +1506,139 @@ var file_l2_xpu_infra_mgr_proto_rawDesc = []byte{ 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, 0xc9, 0x07, 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, + 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x2a, 0x6b, 0x0a, 0x0e, + 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, + 0x0a, 0x1c, 0x42, 0x52, 0x49, 0x44, 0x47, 0x45, 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x52, 0x49, 0x44, 0x47, 0x45, 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x01, 0x12, 0x1a, 0x0a, + 0x16, 0x42, 0x52, 0x49, 0x44, 0x47, 0x45, 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x54, 0x52, 0x55, 0x4e, 0x4b, 0x10, 0x02, 0x32, 0xc9, 0x07, 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, 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, + 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, 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, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x0e, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x22, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, + 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 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, 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, 0x12, 0xe5, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 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, 0x55, 0x70, 0x64, 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, + 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, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x22, 0x5f, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x32, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6c, 0x6f, 0x67, 0x69, - 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, - 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x73, 0x2f, 0x2a, - 0x7d, 0x3a, 0x0e, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, 0x67, - 0x65, 0xda, 0x41, 0x1a, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, - 0x67, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x32, 0xfb, - 0x06, 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, + 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, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 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, 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, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 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, 0x12, 0xe5, 0x01, + 0x0a, 0x13, 0x55, 0x70, 0x64, 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, 0x55, 0x70, 0x64, 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, 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, 0x12, 0xd0, 0x01, 0x0a, 0x10, 0x55, 0x70, - 0x64, 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, 0x55, 0x70, 0x64, 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, 0x53, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x32, - 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x72, - 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, - 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x0b, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x70, 0x6f, - 0x72, 0x74, 0xda, 0x41, 0x17, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, - 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 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, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, + 0x69, 0x64, 0x67, 0x65, 0x22, 0x5f, 0xda, 0x41, 0x1a, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, + 0x5f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, + 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x3a, 0x0e, 0x6c, 0x6f, 0x67, 0x69, 0x63, + 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x32, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, + 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x2e, 0x6e, + 0x61, 0x6d, 0x65, 0x3d, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x72, 0x69, 0x64, 0x67, + 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x32, 0xfb, 0x06, 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, 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, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x0b, + 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x0f, 0x2f, 0x76, 0x31, + 0x2f, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x73, 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, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 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, 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, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 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, + 0x12, 0xd0, 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, 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, 0x55, 0x70, 0x64, 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, 0x53, + 0xda, 0x41, 0x17, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x2c, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, + 0x3a, 0x0b, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x32, 0x24, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x73, + 0x2f, 0x2a, 0x7d, 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 ( diff --git a/network/evpn-gw/v1alpha1/gen/go/l2_xpu_infra_mgr.pb.gw.go b/network/evpn-gw/v1alpha1/gen/go/l2_xpu_infra_mgr.pb.gw.go new file mode 100644 index 00000000..f6e19fa5 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/go/l2_xpu_infra_mgr.pb.gw.go @@ -0,0 +1,1270 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: l2_xpu_infra_mgr.proto + +/* +Package _go is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package _go + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +var ( + filter_LogicalBridgeService_CreateLogicalBridge_0 = &utilities.DoubleArray{Encoding: map[string]int{"logical_bridge": 0, "logicalBridge": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_LogicalBridgeService_CreateLogicalBridge_0(ctx context.Context, marshaler runtime.Marshaler, client LogicalBridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateLogicalBridgeRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.LogicalBridge); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_LogicalBridgeService_CreateLogicalBridge_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateLogicalBridge(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_LogicalBridgeService_CreateLogicalBridge_0(ctx context.Context, marshaler runtime.Marshaler, server LogicalBridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateLogicalBridgeRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.LogicalBridge); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_LogicalBridgeService_CreateLogicalBridge_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateLogicalBridge(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_LogicalBridgeService_ListLogicalBridges_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_LogicalBridgeService_ListLogicalBridges_0(ctx context.Context, marshaler runtime.Marshaler, client LogicalBridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListLogicalBridgesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_LogicalBridgeService_ListLogicalBridges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListLogicalBridges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_LogicalBridgeService_ListLogicalBridges_0(ctx context.Context, marshaler runtime.Marshaler, server LogicalBridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListLogicalBridgesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_LogicalBridgeService_ListLogicalBridges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListLogicalBridges(ctx, &protoReq) + return msg, metadata, err + +} + +func request_LogicalBridgeService_GetLogicalBridge_0(ctx context.Context, marshaler runtime.Marshaler, client LogicalBridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetLogicalBridgeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := client.GetLogicalBridge(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_LogicalBridgeService_GetLogicalBridge_0(ctx context.Context, marshaler runtime.Marshaler, server LogicalBridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetLogicalBridgeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := server.GetLogicalBridge(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_LogicalBridgeService_DeleteLogicalBridge_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} +) + +func request_LogicalBridgeService_DeleteLogicalBridge_0(ctx context.Context, marshaler runtime.Marshaler, client LogicalBridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteLogicalBridgeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_LogicalBridgeService_DeleteLogicalBridge_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.DeleteLogicalBridge(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_LogicalBridgeService_DeleteLogicalBridge_0(ctx context.Context, marshaler runtime.Marshaler, server LogicalBridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteLogicalBridgeRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_LogicalBridgeService_DeleteLogicalBridge_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.DeleteLogicalBridge(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_LogicalBridgeService_UpdateLogicalBridge_0 = &utilities.DoubleArray{Encoding: map[string]int{"logical_bridge": 0, "logicalBridge": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} +) + +func request_LogicalBridgeService_UpdateLogicalBridge_0(ctx context.Context, marshaler runtime.Marshaler, client LogicalBridgeServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateLogicalBridgeRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.LogicalBridge); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 { + if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.LogicalBridge); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } else { + protoReq.UpdateMask = fieldMask + } + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["logical_bridge.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "logical_bridge.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "logical_bridge.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "logical_bridge.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_LogicalBridgeService_UpdateLogicalBridge_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UpdateLogicalBridge(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_LogicalBridgeService_UpdateLogicalBridge_0(ctx context.Context, marshaler runtime.Marshaler, server LogicalBridgeServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateLogicalBridgeRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.LogicalBridge); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 { + if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.LogicalBridge); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } else { + protoReq.UpdateMask = fieldMask + } + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["logical_bridge.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "logical_bridge.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "logical_bridge.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "logical_bridge.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_LogicalBridgeService_UpdateLogicalBridge_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UpdateLogicalBridge(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_BridgePortService_CreateBridgePort_0 = &utilities.DoubleArray{Encoding: map[string]int{"bridge_port": 0, "bridgePort": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_BridgePortService_CreateBridgePort_0(ctx context.Context, marshaler runtime.Marshaler, client BridgePortServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateBridgePortRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.BridgePort); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgePortService_CreateBridgePort_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateBridgePort(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_BridgePortService_CreateBridgePort_0(ctx context.Context, marshaler runtime.Marshaler, server BridgePortServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateBridgePortRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.BridgePort); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgePortService_CreateBridgePort_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateBridgePort(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_BridgePortService_ListBridgePorts_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_BridgePortService_ListBridgePorts_0(ctx context.Context, marshaler runtime.Marshaler, client BridgePortServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListBridgePortsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgePortService_ListBridgePorts_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListBridgePorts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_BridgePortService_ListBridgePorts_0(ctx context.Context, marshaler runtime.Marshaler, server BridgePortServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListBridgePortsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgePortService_ListBridgePorts_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListBridgePorts(ctx, &protoReq) + return msg, metadata, err + +} + +func request_BridgePortService_GetBridgePort_0(ctx context.Context, marshaler runtime.Marshaler, client BridgePortServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetBridgePortRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := client.GetBridgePort(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_BridgePortService_GetBridgePort_0(ctx context.Context, marshaler runtime.Marshaler, server BridgePortServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetBridgePortRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := server.GetBridgePort(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_BridgePortService_DeleteBridgePort_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} +) + +func request_BridgePortService_DeleteBridgePort_0(ctx context.Context, marshaler runtime.Marshaler, client BridgePortServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteBridgePortRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgePortService_DeleteBridgePort_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.DeleteBridgePort(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_BridgePortService_DeleteBridgePort_0(ctx context.Context, marshaler runtime.Marshaler, server BridgePortServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteBridgePortRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgePortService_DeleteBridgePort_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.DeleteBridgePort(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_BridgePortService_UpdateBridgePort_0 = &utilities.DoubleArray{Encoding: map[string]int{"bridge_port": 0, "bridgePort": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}} +) + +func request_BridgePortService_UpdateBridgePort_0(ctx context.Context, marshaler runtime.Marshaler, client BridgePortServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateBridgePortRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.BridgePort); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 { + if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.BridgePort); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } else { + protoReq.UpdateMask = fieldMask + } + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["bridge_port.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "bridge_port.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "bridge_port.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "bridge_port.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgePortService_UpdateBridgePort_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UpdateBridgePort(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_BridgePortService_UpdateBridgePort_0(ctx context.Context, marshaler runtime.Marshaler, server BridgePortServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateBridgePortRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.BridgePort); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 { + if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.BridgePort); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } else { + protoReq.UpdateMask = fieldMask + } + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["bridge_port.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "bridge_port.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "bridge_port.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "bridge_port.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BridgePortService_UpdateBridgePort_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UpdateBridgePort(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterLogicalBridgeServiceHandlerServer registers the http handlers for service LogicalBridgeService to "mux". +// UnaryRPC :call LogicalBridgeServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLogicalBridgeServiceHandlerFromEndpoint instead. +func RegisterLogicalBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LogicalBridgeServiceServer) error { + + mux.Handle("POST", pattern_LogicalBridgeService_CreateLogicalBridge_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/CreateLogicalBridge", runtime.WithHTTPPathPattern("/v1/logicalBridges")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_LogicalBridgeService_CreateLogicalBridge_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_LogicalBridgeService_CreateLogicalBridge_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_LogicalBridgeService_ListLogicalBridges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/ListLogicalBridges", runtime.WithHTTPPathPattern("/v1/logicalBridges")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_LogicalBridgeService_ListLogicalBridges_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_LogicalBridgeService_ListLogicalBridges_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_LogicalBridgeService_GetLogicalBridge_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/GetLogicalBridge", runtime.WithHTTPPathPattern("/v1/{name=logicalBridges/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_LogicalBridgeService_GetLogicalBridge_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_LogicalBridgeService_GetLogicalBridge_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_LogicalBridgeService_DeleteLogicalBridge_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/DeleteLogicalBridge", runtime.WithHTTPPathPattern("/v1/{name=logicalBridges/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_LogicalBridgeService_DeleteLogicalBridge_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_LogicalBridgeService_DeleteLogicalBridge_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_LogicalBridgeService_UpdateLogicalBridge_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/UpdateLogicalBridge", runtime.WithHTTPPathPattern("/v1/{logical_bridge.name=logicalBridges/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_LogicalBridgeService_UpdateLogicalBridge_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_LogicalBridgeService_UpdateLogicalBridge_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterBridgePortServiceHandlerServer registers the http handlers for service BridgePortService to "mux". +// UnaryRPC :call BridgePortServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBridgePortServiceHandlerFromEndpoint instead. +func RegisterBridgePortServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BridgePortServiceServer) error { + + mux.Handle("POST", pattern_BridgePortService_CreateBridgePort_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/CreateBridgePort", runtime.WithHTTPPathPattern("/v1/bridgePorts")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_BridgePortService_CreateBridgePort_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_BridgePortService_CreateBridgePort_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_BridgePortService_ListBridgePorts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/ListBridgePorts", runtime.WithHTTPPathPattern("/v1/bridgePorts")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_BridgePortService_ListBridgePorts_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_BridgePortService_ListBridgePorts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_BridgePortService_GetBridgePort_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/GetBridgePort", runtime.WithHTTPPathPattern("/v1/{name=bridgePorts/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_BridgePortService_GetBridgePort_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_BridgePortService_GetBridgePort_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_BridgePortService_DeleteBridgePort_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/DeleteBridgePort", runtime.WithHTTPPathPattern("/v1/{name=bridgePorts/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_BridgePortService_DeleteBridgePort_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_BridgePortService_DeleteBridgePort_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_BridgePortService_UpdateBridgePort_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/UpdateBridgePort", runtime.WithHTTPPathPattern("/v1/{bridge_port.name=bridgePorts/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_BridgePortService_UpdateBridgePort_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_BridgePortService_UpdateBridgePort_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterLogicalBridgeServiceHandlerFromEndpoint is same as RegisterLogicalBridgeServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterLogicalBridgeServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterLogicalBridgeServiceHandler(ctx, mux, conn) +} + +// RegisterLogicalBridgeServiceHandler registers the http handlers for service LogicalBridgeService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterLogicalBridgeServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterLogicalBridgeServiceHandlerClient(ctx, mux, NewLogicalBridgeServiceClient(conn)) +} + +// RegisterLogicalBridgeServiceHandlerClient registers the http handlers for service LogicalBridgeService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LogicalBridgeServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LogicalBridgeServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "LogicalBridgeServiceClient" to call the correct interceptors. +func RegisterLogicalBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LogicalBridgeServiceClient) error { + + mux.Handle("POST", pattern_LogicalBridgeService_CreateLogicalBridge_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/CreateLogicalBridge", runtime.WithHTTPPathPattern("/v1/logicalBridges")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_LogicalBridgeService_CreateLogicalBridge_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_LogicalBridgeService_CreateLogicalBridge_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_LogicalBridgeService_ListLogicalBridges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/ListLogicalBridges", runtime.WithHTTPPathPattern("/v1/logicalBridges")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_LogicalBridgeService_ListLogicalBridges_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_LogicalBridgeService_ListLogicalBridges_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_LogicalBridgeService_GetLogicalBridge_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/GetLogicalBridge", runtime.WithHTTPPathPattern("/v1/{name=logicalBridges/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_LogicalBridgeService_GetLogicalBridge_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_LogicalBridgeService_GetLogicalBridge_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_LogicalBridgeService_DeleteLogicalBridge_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/DeleteLogicalBridge", runtime.WithHTTPPathPattern("/v1/{name=logicalBridges/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_LogicalBridgeService_DeleteLogicalBridge_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_LogicalBridgeService_DeleteLogicalBridge_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_LogicalBridgeService_UpdateLogicalBridge_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/UpdateLogicalBridge", runtime.WithHTTPPathPattern("/v1/{logical_bridge.name=logicalBridges/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_LogicalBridgeService_UpdateLogicalBridge_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_LogicalBridgeService_UpdateLogicalBridge_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_LogicalBridgeService_CreateLogicalBridge_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "logicalBridges"}, "")) + + pattern_LogicalBridgeService_ListLogicalBridges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "logicalBridges"}, "")) + + pattern_LogicalBridgeService_GetLogicalBridge_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "logicalBridges", "name"}, "")) + + pattern_LogicalBridgeService_DeleteLogicalBridge_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "logicalBridges", "name"}, "")) + + pattern_LogicalBridgeService_UpdateLogicalBridge_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "logicalBridges", "logical_bridge.name"}, "")) +) + +var ( + forward_LogicalBridgeService_CreateLogicalBridge_0 = runtime.ForwardResponseMessage + + forward_LogicalBridgeService_ListLogicalBridges_0 = runtime.ForwardResponseMessage + + forward_LogicalBridgeService_GetLogicalBridge_0 = runtime.ForwardResponseMessage + + forward_LogicalBridgeService_DeleteLogicalBridge_0 = runtime.ForwardResponseMessage + + forward_LogicalBridgeService_UpdateLogicalBridge_0 = runtime.ForwardResponseMessage +) + +// RegisterBridgePortServiceHandlerFromEndpoint is same as RegisterBridgePortServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterBridgePortServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterBridgePortServiceHandler(ctx, mux, conn) +} + +// RegisterBridgePortServiceHandler registers the http handlers for service BridgePortService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterBridgePortServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterBridgePortServiceHandlerClient(ctx, mux, NewBridgePortServiceClient(conn)) +} + +// RegisterBridgePortServiceHandlerClient registers the http handlers for service BridgePortService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BridgePortServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BridgePortServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "BridgePortServiceClient" to call the correct interceptors. +func RegisterBridgePortServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BridgePortServiceClient) error { + + mux.Handle("POST", pattern_BridgePortService_CreateBridgePort_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/CreateBridgePort", runtime.WithHTTPPathPattern("/v1/bridgePorts")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_BridgePortService_CreateBridgePort_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_BridgePortService_CreateBridgePort_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_BridgePortService_ListBridgePorts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/ListBridgePorts", runtime.WithHTTPPathPattern("/v1/bridgePorts")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_BridgePortService_ListBridgePorts_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_BridgePortService_ListBridgePorts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_BridgePortService_GetBridgePort_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/GetBridgePort", runtime.WithHTTPPathPattern("/v1/{name=bridgePorts/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_BridgePortService_GetBridgePort_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_BridgePortService_GetBridgePort_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_BridgePortService_DeleteBridgePort_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/DeleteBridgePort", runtime.WithHTTPPathPattern("/v1/{name=bridgePorts/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_BridgePortService_DeleteBridgePort_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_BridgePortService_DeleteBridgePort_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_BridgePortService_UpdateBridgePort_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/UpdateBridgePort", runtime.WithHTTPPathPattern("/v1/{bridge_port.name=bridgePorts/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_BridgePortService_UpdateBridgePort_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_BridgePortService_UpdateBridgePort_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_BridgePortService_CreateBridgePort_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "bridgePorts"}, "")) + + pattern_BridgePortService_ListBridgePorts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "bridgePorts"}, "")) + + pattern_BridgePortService_GetBridgePort_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "bridgePorts", "name"}, "")) + + pattern_BridgePortService_DeleteBridgePort_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "bridgePorts", "name"}, "")) + + pattern_BridgePortService_UpdateBridgePort_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "bridgePorts", "bridge_port.name"}, "")) +) + +var ( + forward_BridgePortService_CreateBridgePort_0 = runtime.ForwardResponseMessage + + forward_BridgePortService_ListBridgePorts_0 = runtime.ForwardResponseMessage + + forward_BridgePortService_GetBridgePort_0 = runtime.ForwardResponseMessage + + forward_BridgePortService_DeleteBridgePort_0 = runtime.ForwardResponseMessage + + forward_BridgePortService_UpdateBridgePort_0 = runtime.ForwardResponseMessage +) diff --git a/network/evpn-gw/v1alpha1/gen/go/l2_xpu_infra_mgr_grpc.pb.go b/network/evpn-gw/v1alpha1/gen/go/l2_xpu_infra_mgr_grpc.pb.go index 72bd15b0..d4e45ace 100644 --- a/network/evpn-gw/v1alpha1/gen/go/l2_xpu_infra_mgr_grpc.pb.go +++ b/network/evpn-gw/v1alpha1/gen/go/l2_xpu_infra_mgr_grpc.pb.go @@ -1,7 +1,19 @@ +// 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-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.6 +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) // source: l2_xpu_infra_mgr.proto package _go @@ -19,6 +31,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + LogicalBridgeService_CreateLogicalBridge_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/CreateLogicalBridge" + LogicalBridgeService_ListLogicalBridges_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/ListLogicalBridges" + LogicalBridgeService_GetLogicalBridge_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/GetLogicalBridge" + LogicalBridgeService_DeleteLogicalBridge_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/DeleteLogicalBridge" + LogicalBridgeService_UpdateLogicalBridge_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/UpdateLogicalBridge" +) + // LogicalBridgeServiceClient is the client API for LogicalBridgeService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -45,7 +65,7 @@ func NewLogicalBridgeServiceClient(cc grpc.ClientConnInterface) LogicalBridgeSer 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...) + err := c.cc.Invoke(ctx, LogicalBridgeService_CreateLogicalBridge_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -54,7 +74,7 @@ func (c *logicalBridgeServiceClient) CreateLogicalBridge(ctx context.Context, in 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...) + err := c.cc.Invoke(ctx, LogicalBridgeService_ListLogicalBridges_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -63,7 +83,7 @@ func (c *logicalBridgeServiceClient) ListLogicalBridges(ctx context.Context, in 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...) + err := c.cc.Invoke(ctx, LogicalBridgeService_GetLogicalBridge_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -72,7 +92,7 @@ func (c *logicalBridgeServiceClient) GetLogicalBridge(ctx context.Context, in *G 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...) + err := c.cc.Invoke(ctx, LogicalBridgeService_DeleteLogicalBridge_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -81,7 +101,7 @@ func (c *logicalBridgeServiceClient) DeleteLogicalBridge(ctx context.Context, in func (c *logicalBridgeServiceClient) UpdateLogicalBridge(ctx context.Context, in *UpdateLogicalBridgeRequest, opts ...grpc.CallOption) (*LogicalBridge, error) { out := new(LogicalBridge) - err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/UpdateLogicalBridge", in, out, opts...) + err := c.cc.Invoke(ctx, LogicalBridgeService_UpdateLogicalBridge_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -89,7 +109,7 @@ func (c *logicalBridgeServiceClient) UpdateLogicalBridge(ctx context.Context, in } // LogicalBridgeServiceServer is the server API for LogicalBridgeService service. -// All implementations should embed UnimplementedLogicalBridgeServiceServer +// All implementations must embed UnimplementedLogicalBridgeServiceServer // for forward compatibility type LogicalBridgeServiceServer interface { // Create a Logical Bridge @@ -102,9 +122,10 @@ type LogicalBridgeServiceServer interface { DeleteLogicalBridge(context.Context, *DeleteLogicalBridgeRequest) (*emptypb.Empty, error) // Update a Logical Bridge UpdateLogicalBridge(context.Context, *UpdateLogicalBridgeRequest) (*LogicalBridge, error) + mustEmbedUnimplementedLogicalBridgeServiceServer() } -// UnimplementedLogicalBridgeServiceServer should be embedded to have forward compatible implementations. +// UnimplementedLogicalBridgeServiceServer must be embedded to have forward compatible implementations. type UnimplementedLogicalBridgeServiceServer struct { } @@ -123,6 +144,7 @@ func (UnimplementedLogicalBridgeServiceServer) DeleteLogicalBridge(context.Conte func (UnimplementedLogicalBridgeServiceServer) UpdateLogicalBridge(context.Context, *UpdateLogicalBridgeRequest) (*LogicalBridge, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateLogicalBridge not implemented") } +func (UnimplementedLogicalBridgeServiceServer) mustEmbedUnimplementedLogicalBridgeServiceServer() {} // UnsafeLogicalBridgeServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to LogicalBridgeServiceServer will @@ -145,7 +167,7 @@ func _LogicalBridgeService_CreateLogicalBridge_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/CreateLogicalBridge", + FullMethod: LogicalBridgeService_CreateLogicalBridge_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LogicalBridgeServiceServer).CreateLogicalBridge(ctx, req.(*CreateLogicalBridgeRequest)) @@ -163,7 +185,7 @@ func _LogicalBridgeService_ListLogicalBridges_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/ListLogicalBridges", + FullMethod: LogicalBridgeService_ListLogicalBridges_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LogicalBridgeServiceServer).ListLogicalBridges(ctx, req.(*ListLogicalBridgesRequest)) @@ -181,7 +203,7 @@ func _LogicalBridgeService_GetLogicalBridge_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/GetLogicalBridge", + FullMethod: LogicalBridgeService_GetLogicalBridge_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LogicalBridgeServiceServer).GetLogicalBridge(ctx, req.(*GetLogicalBridgeRequest)) @@ -199,7 +221,7 @@ func _LogicalBridgeService_DeleteLogicalBridge_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/DeleteLogicalBridge", + FullMethod: LogicalBridgeService_DeleteLogicalBridge_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LogicalBridgeServiceServer).DeleteLogicalBridge(ctx, req.(*DeleteLogicalBridgeRequest)) @@ -217,7 +239,7 @@ func _LogicalBridgeService_UpdateLogicalBridge_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.LogicalBridgeService/UpdateLogicalBridge", + FullMethod: LogicalBridgeService_UpdateLogicalBridge_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LogicalBridgeServiceServer).UpdateLogicalBridge(ctx, req.(*UpdateLogicalBridgeRequest)) @@ -257,6 +279,14 @@ var LogicalBridgeService_ServiceDesc = grpc.ServiceDesc{ Metadata: "l2_xpu_infra_mgr.proto", } +const ( + BridgePortService_CreateBridgePort_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/CreateBridgePort" + BridgePortService_ListBridgePorts_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/ListBridgePorts" + BridgePortService_GetBridgePort_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/GetBridgePort" + BridgePortService_DeleteBridgePort_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/DeleteBridgePort" + BridgePortService_UpdateBridgePort_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/UpdateBridgePort" +) + // BridgePortServiceClient is the client API for BridgePortService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -283,7 +313,7 @@ func NewBridgePortServiceClient(cc grpc.ClientConnInterface) BridgePortServiceCl 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...) + err := c.cc.Invoke(ctx, BridgePortService_CreateBridgePort_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -292,7 +322,7 @@ func (c *bridgePortServiceClient) CreateBridgePort(ctx context.Context, in *Crea 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...) + err := c.cc.Invoke(ctx, BridgePortService_ListBridgePorts_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -301,7 +331,7 @@ func (c *bridgePortServiceClient) ListBridgePorts(ctx context.Context, in *ListB 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...) + err := c.cc.Invoke(ctx, BridgePortService_GetBridgePort_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -310,7 +340,7 @@ func (c *bridgePortServiceClient) GetBridgePort(ctx context.Context, in *GetBrid 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...) + err := c.cc.Invoke(ctx, BridgePortService_DeleteBridgePort_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -319,7 +349,7 @@ func (c *bridgePortServiceClient) DeleteBridgePort(ctx context.Context, in *Dele func (c *bridgePortServiceClient) UpdateBridgePort(ctx context.Context, in *UpdateBridgePortRequest, opts ...grpc.CallOption) (*BridgePort, error) { out := new(BridgePort) - err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/UpdateBridgePort", in, out, opts...) + err := c.cc.Invoke(ctx, BridgePortService_UpdateBridgePort_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -327,7 +357,7 @@ func (c *bridgePortServiceClient) UpdateBridgePort(ctx context.Context, in *Upda } // BridgePortServiceServer is the server API for BridgePortService service. -// All implementations should embed UnimplementedBridgePortServiceServer +// All implementations must embed UnimplementedBridgePortServiceServer // for forward compatibility type BridgePortServiceServer interface { // Create a Bridge Port @@ -340,9 +370,10 @@ type BridgePortServiceServer interface { DeleteBridgePort(context.Context, *DeleteBridgePortRequest) (*emptypb.Empty, error) // Update a Bridge Port UpdateBridgePort(context.Context, *UpdateBridgePortRequest) (*BridgePort, error) + mustEmbedUnimplementedBridgePortServiceServer() } -// UnimplementedBridgePortServiceServer should be embedded to have forward compatible implementations. +// UnimplementedBridgePortServiceServer must be embedded to have forward compatible implementations. type UnimplementedBridgePortServiceServer struct { } @@ -361,6 +392,7 @@ func (UnimplementedBridgePortServiceServer) DeleteBridgePort(context.Context, *D func (UnimplementedBridgePortServiceServer) UpdateBridgePort(context.Context, *UpdateBridgePortRequest) (*BridgePort, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateBridgePort not implemented") } +func (UnimplementedBridgePortServiceServer) mustEmbedUnimplementedBridgePortServiceServer() {} // UnsafeBridgePortServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to BridgePortServiceServer will @@ -383,7 +415,7 @@ func _BridgePortService_CreateBridgePort_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/CreateBridgePort", + FullMethod: BridgePortService_CreateBridgePort_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgePortServiceServer).CreateBridgePort(ctx, req.(*CreateBridgePortRequest)) @@ -401,7 +433,7 @@ func _BridgePortService_ListBridgePorts_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/ListBridgePorts", + FullMethod: BridgePortService_ListBridgePorts_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgePortServiceServer).ListBridgePorts(ctx, req.(*ListBridgePortsRequest)) @@ -419,7 +451,7 @@ func _BridgePortService_GetBridgePort_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/GetBridgePort", + FullMethod: BridgePortService_GetBridgePort_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgePortServiceServer).GetBridgePort(ctx, req.(*GetBridgePortRequest)) @@ -437,7 +469,7 @@ func _BridgePortService_DeleteBridgePort_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/DeleteBridgePort", + FullMethod: BridgePortService_DeleteBridgePort_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgePortServiceServer).DeleteBridgePort(ctx, req.(*DeleteBridgePortRequest)) @@ -455,7 +487,7 @@ func _BridgePortService_UpdateBridgePort_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.BridgePortService/UpdateBridgePort", + FullMethod: BridgePortService_UpdateBridgePort_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BridgePortServiceServer).UpdateBridgePort(ctx, req.(*UpdateBridgePortRequest)) 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 index ed0dd2c4..75a0c5de 100644 --- 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 @@ -12,8 +12,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 +// protoc-gen-go v1.31.0 +// protoc (unknown) // source: l3_xpu_infra_mgr.proto package _go @@ -1559,9 +1559,9 @@ var file_l3_xpu_infra_mgr_proto_rawDesc = []byte{ 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, + 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x72, 0x66, 0x22, 0x22, 0xda, 0x41, 0x0a, 0x76, 0x72, 0x66, + 0x2c, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x3a, 0x03, 0x76, + 0x72, 0x66, 0x22, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x72, 0x66, 0x73, 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, @@ -1576,36 +1576,36 @@ var file_l3_xpu_infra_mgr_proto_rawDesc = []byte{ 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, + 0x31, 0x2e, 0x56, 0x72, 0x66, 0x22, 0x20, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 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, 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, 0x12, 0x9c, 0x01, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x72, 0x66, + 0x22, 0x20, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 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, 0x12, 0x9c, 0x01, 0x0a, 0x09, 0x55, 0x70, 0x64, 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, 0x55, 0x70, 0x64, 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, 0x34, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x1c, 0x32, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x76, 0x72, 0x66, 0x2e, 0x6e, 0x61, - 0x6d, 0x65, 0x3d, 0x76, 0x72, 0x66, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x03, 0x76, 0x72, 0x66, 0xda, - 0x41, 0x0f, 0x76, 0x72, 0x66, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, - 0x6b, 0x32, 0xbe, 0x05, 0x0a, 0x0a, 0x53, 0x76, 0x69, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x56, 0x72, 0x66, 0x22, 0x34, 0xda, 0x41, 0x0f, + 0x76, 0x72, 0x66, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x03, 0x76, 0x72, 0x66, 0x32, 0x15, 0x2f, 0x76, 0x31, 0x2f, + 0x7b, 0x76, 0x72, 0x66, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x76, 0x72, 0x66, 0x73, 0x2f, 0x2a, + 0x7d, 0x32, 0xbe, 0x05, 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, + 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x76, 0x69, 0x22, 0x22, 0xda, 0x41, 0x0a, 0x73, 0x76, + 0x69, 0x2c, 0x73, 0x76, 0x69, 0x5f, 0x69, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x3a, 0x03, + 0x73, 0x76, 0x69, 0x22, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x76, 0x69, 0x73, 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, @@ -1620,27 +1620,27 @@ var file_l3_xpu_infra_mgr_proto_rawDesc = []byte{ 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, + 0x61, 0x31, 0x2e, 0x53, 0x76, 0x69, 0x22, 0x20, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 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, 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, 0x12, 0x9c, 0x01, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x76, + 0x79, 0x22, 0x20, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 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, 0x12, 0x9c, 0x01, 0x0a, 0x09, 0x55, 0x70, 0x64, 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, 0x55, 0x70, 0x64, 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, 0x34, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x1c, 0x32, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x76, 0x69, 0x2e, 0x6e, - 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x76, 0x69, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x03, 0x73, 0x76, 0x69, - 0xda, 0x41, 0x0f, 0x73, 0x76, 0x69, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, - 0x73, 0x6b, 0x42, 0x77, 0x0a, 0x20, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x76, 0x69, 0x22, 0x34, 0xda, 0x41, + 0x0f, 0x73, 0x76, 0x69, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x3a, 0x03, 0x73, 0x76, 0x69, 0x32, 0x15, 0x2f, 0x76, 0x31, + 0x2f, 0x7b, 0x73, 0x76, 0x69, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x76, 0x69, 0x73, 0x2f, + 0x2a, 0x7d, 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, diff --git a/network/evpn-gw/v1alpha1/gen/go/l3_xpu_infra_mgr.pb.gw.go b/network/evpn-gw/v1alpha1/gen/go/l3_xpu_infra_mgr.pb.gw.go new file mode 100644 index 00000000..191dd3f4 --- /dev/null +++ b/network/evpn-gw/v1alpha1/gen/go/l3_xpu_infra_mgr.pb.gw.go @@ -0,0 +1,1270 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: l3_xpu_infra_mgr.proto + +/* +Package _go is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package _go + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +var ( + filter_VrfService_CreateVrf_0 = &utilities.DoubleArray{Encoding: map[string]int{"vrf": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} +) + +func request_VrfService_CreateVrf_0(ctx context.Context, marshaler runtime.Marshaler, client VrfServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateVrfRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Vrf); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_VrfService_CreateVrf_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateVrf(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_VrfService_CreateVrf_0(ctx context.Context, marshaler runtime.Marshaler, server VrfServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateVrfRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Vrf); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_VrfService_CreateVrf_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateVrf(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_VrfService_ListVrfs_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_VrfService_ListVrfs_0(ctx context.Context, marshaler runtime.Marshaler, client VrfServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListVrfsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_VrfService_ListVrfs_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListVrfs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_VrfService_ListVrfs_0(ctx context.Context, marshaler runtime.Marshaler, server VrfServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListVrfsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_VrfService_ListVrfs_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListVrfs(ctx, &protoReq) + return msg, metadata, err + +} + +func request_VrfService_GetVrf_0(ctx context.Context, marshaler runtime.Marshaler, client VrfServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetVrfRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := client.GetVrf(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_VrfService_GetVrf_0(ctx context.Context, marshaler runtime.Marshaler, server VrfServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetVrfRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := server.GetVrf(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_VrfService_DeleteVrf_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} +) + +func request_VrfService_DeleteVrf_0(ctx context.Context, marshaler runtime.Marshaler, client VrfServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteVrfRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_VrfService_DeleteVrf_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.DeleteVrf(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_VrfService_DeleteVrf_0(ctx context.Context, marshaler runtime.Marshaler, server VrfServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteVrfRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_VrfService_DeleteVrf_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.DeleteVrf(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_VrfService_UpdateVrf_0 = &utilities.DoubleArray{Encoding: map[string]int{"vrf": 0, "name": 1}, Base: []int{1, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 4, 2, 2, 3}} +) + +func request_VrfService_UpdateVrf_0(ctx context.Context, marshaler runtime.Marshaler, client VrfServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateVrfRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Vrf); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 { + if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Vrf); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } else { + protoReq.UpdateMask = fieldMask + } + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["vrf.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "vrf.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "vrf.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "vrf.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_VrfService_UpdateVrf_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UpdateVrf(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_VrfService_UpdateVrf_0(ctx context.Context, marshaler runtime.Marshaler, server VrfServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateVrfRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Vrf); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 { + if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Vrf); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } else { + protoReq.UpdateMask = fieldMask + } + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["vrf.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "vrf.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "vrf.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "vrf.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_VrfService_UpdateVrf_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UpdateVrf(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_SviService_CreateSvi_0 = &utilities.DoubleArray{Encoding: map[string]int{"svi": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} +) + +func request_SviService_CreateSvi_0(ctx context.Context, marshaler runtime.Marshaler, client SviServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateSviRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Svi); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SviService_CreateSvi_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateSvi(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_SviService_CreateSvi_0(ctx context.Context, marshaler runtime.Marshaler, server SviServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateSviRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Svi); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SviService_CreateSvi_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateSvi(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_SviService_ListSvis_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_SviService_ListSvis_0(ctx context.Context, marshaler runtime.Marshaler, client SviServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListSvisRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SviService_ListSvis_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListSvis(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_SviService_ListSvis_0(ctx context.Context, marshaler runtime.Marshaler, server SviServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListSvisRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SviService_ListSvis_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListSvis(ctx, &protoReq) + return msg, metadata, err + +} + +func request_SviService_GetSvi_0(ctx context.Context, marshaler runtime.Marshaler, client SviServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetSviRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := client.GetSvi(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_SviService_GetSvi_0(ctx context.Context, marshaler runtime.Marshaler, server SviServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetSviRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := server.GetSvi(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_SviService_DeleteSvi_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} +) + +func request_SviService_DeleteSvi_0(ctx context.Context, marshaler runtime.Marshaler, client SviServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteSviRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SviService_DeleteSvi_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.DeleteSvi(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_SviService_DeleteSvi_0(ctx context.Context, marshaler runtime.Marshaler, server SviServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteSviRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SviService_DeleteSvi_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.DeleteSvi(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_SviService_UpdateSvi_0 = &utilities.DoubleArray{Encoding: map[string]int{"svi": 0, "name": 1}, Base: []int{1, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 4, 2, 2, 3}} +) + +func request_SviService_UpdateSvi_0(ctx context.Context, marshaler runtime.Marshaler, client SviServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateSviRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Svi); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 { + if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Svi); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } else { + protoReq.UpdateMask = fieldMask + } + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["svi.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "svi.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "svi.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "svi.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SviService_UpdateSvi_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UpdateSvi(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_SviService_UpdateSvi_0(ctx context.Context, marshaler runtime.Marshaler, server SviServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateSviRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Svi); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 { + if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Svi); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } else { + protoReq.UpdateMask = fieldMask + } + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["svi.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "svi.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "svi.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "svi.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SviService_UpdateSvi_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UpdateSvi(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterVrfServiceHandlerServer registers the http handlers for service VrfService to "mux". +// UnaryRPC :call VrfServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterVrfServiceHandlerFromEndpoint instead. +func RegisterVrfServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VrfServiceServer) error { + + mux.Handle("POST", pattern_VrfService_CreateVrf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.VrfService/CreateVrf", runtime.WithHTTPPathPattern("/v1/vrfs")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_VrfService_CreateVrf_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_VrfService_CreateVrf_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_VrfService_ListVrfs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.VrfService/ListVrfs", runtime.WithHTTPPathPattern("/v1/vrfs")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_VrfService_ListVrfs_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_VrfService_ListVrfs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_VrfService_GetVrf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.VrfService/GetVrf", runtime.WithHTTPPathPattern("/v1/{name=vrfs/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_VrfService_GetVrf_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_VrfService_GetVrf_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_VrfService_DeleteVrf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.VrfService/DeleteVrf", runtime.WithHTTPPathPattern("/v1/{name=vrfs/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_VrfService_DeleteVrf_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_VrfService_DeleteVrf_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_VrfService_UpdateVrf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.VrfService/UpdateVrf", runtime.WithHTTPPathPattern("/v1/{vrf.name=vrfs/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_VrfService_UpdateVrf_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_VrfService_UpdateVrf_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterSviServiceHandlerServer registers the http handlers for service SviService to "mux". +// UnaryRPC :call SviServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSviServiceHandlerFromEndpoint instead. +func RegisterSviServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SviServiceServer) error { + + mux.Handle("POST", pattern_SviService_CreateSvi_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.SviService/CreateSvi", runtime.WithHTTPPathPattern("/v1/svis")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_SviService_CreateSvi_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SviService_CreateSvi_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_SviService_ListSvis_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.SviService/ListSvis", runtime.WithHTTPPathPattern("/v1/svis")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_SviService_ListSvis_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SviService_ListSvis_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_SviService_GetSvi_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.SviService/GetSvi", runtime.WithHTTPPathPattern("/v1/{name=svis/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_SviService_GetSvi_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SviService_GetSvi_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_SviService_DeleteSvi_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.SviService/DeleteSvi", runtime.WithHTTPPathPattern("/v1/{name=svis/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_SviService_DeleteSvi_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SviService_DeleteSvi_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_SviService_UpdateSvi_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.SviService/UpdateSvi", runtime.WithHTTPPathPattern("/v1/{svi.name=svis/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_SviService_UpdateSvi_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SviService_UpdateSvi_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterVrfServiceHandlerFromEndpoint is same as RegisterVrfServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterVrfServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterVrfServiceHandler(ctx, mux, conn) +} + +// RegisterVrfServiceHandler registers the http handlers for service VrfService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterVrfServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterVrfServiceHandlerClient(ctx, mux, NewVrfServiceClient(conn)) +} + +// RegisterVrfServiceHandlerClient registers the http handlers for service VrfService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "VrfServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "VrfServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "VrfServiceClient" to call the correct interceptors. +func RegisterVrfServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VrfServiceClient) error { + + mux.Handle("POST", pattern_VrfService_CreateVrf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.VrfService/CreateVrf", runtime.WithHTTPPathPattern("/v1/vrfs")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_VrfService_CreateVrf_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_VrfService_CreateVrf_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_VrfService_ListVrfs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.VrfService/ListVrfs", runtime.WithHTTPPathPattern("/v1/vrfs")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_VrfService_ListVrfs_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_VrfService_ListVrfs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_VrfService_GetVrf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.VrfService/GetVrf", runtime.WithHTTPPathPattern("/v1/{name=vrfs/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_VrfService_GetVrf_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_VrfService_GetVrf_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_VrfService_DeleteVrf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.VrfService/DeleteVrf", runtime.WithHTTPPathPattern("/v1/{name=vrfs/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_VrfService_DeleteVrf_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_VrfService_DeleteVrf_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_VrfService_UpdateVrf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.VrfService/UpdateVrf", runtime.WithHTTPPathPattern("/v1/{vrf.name=vrfs/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_VrfService_UpdateVrf_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_VrfService_UpdateVrf_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_VrfService_CreateVrf_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "vrfs"}, "")) + + pattern_VrfService_ListVrfs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "vrfs"}, "")) + + pattern_VrfService_GetVrf_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "vrfs", "name"}, "")) + + pattern_VrfService_DeleteVrf_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "vrfs", "name"}, "")) + + pattern_VrfService_UpdateVrf_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "vrfs", "vrf.name"}, "")) +) + +var ( + forward_VrfService_CreateVrf_0 = runtime.ForwardResponseMessage + + forward_VrfService_ListVrfs_0 = runtime.ForwardResponseMessage + + forward_VrfService_GetVrf_0 = runtime.ForwardResponseMessage + + forward_VrfService_DeleteVrf_0 = runtime.ForwardResponseMessage + + forward_VrfService_UpdateVrf_0 = runtime.ForwardResponseMessage +) + +// RegisterSviServiceHandlerFromEndpoint is same as RegisterSviServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterSviServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterSviServiceHandler(ctx, mux, conn) +} + +// RegisterSviServiceHandler registers the http handlers for service SviService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterSviServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterSviServiceHandlerClient(ctx, mux, NewSviServiceClient(conn)) +} + +// RegisterSviServiceHandlerClient registers the http handlers for service SviService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SviServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SviServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "SviServiceClient" to call the correct interceptors. +func RegisterSviServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SviServiceClient) error { + + mux.Handle("POST", pattern_SviService_CreateSvi_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.SviService/CreateSvi", runtime.WithHTTPPathPattern("/v1/svis")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_SviService_CreateSvi_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SviService_CreateSvi_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_SviService_ListSvis_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.SviService/ListSvis", runtime.WithHTTPPathPattern("/v1/svis")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_SviService_ListSvis_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SviService_ListSvis_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_SviService_GetSvi_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.SviService/GetSvi", runtime.WithHTTPPathPattern("/v1/{name=svis/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_SviService_GetSvi_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SviService_GetSvi_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_SviService_DeleteSvi_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.SviService/DeleteSvi", runtime.WithHTTPPathPattern("/v1/{name=svis/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_SviService_DeleteSvi_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SviService_DeleteSvi_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PATCH", pattern_SviService_UpdateSvi_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/opi_api.network.evpn_gw.v1alpha1.SviService/UpdateSvi", runtime.WithHTTPPathPattern("/v1/{svi.name=svis/*}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_SviService_UpdateSvi_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SviService_UpdateSvi_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_SviService_CreateSvi_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "svis"}, "")) + + pattern_SviService_ListSvis_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "svis"}, "")) + + pattern_SviService_GetSvi_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "svis", "name"}, "")) + + pattern_SviService_DeleteSvi_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "svis", "name"}, "")) + + pattern_SviService_UpdateSvi_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "svis", "svi.name"}, "")) +) + +var ( + forward_SviService_CreateSvi_0 = runtime.ForwardResponseMessage + + forward_SviService_ListSvis_0 = runtime.ForwardResponseMessage + + forward_SviService_GetSvi_0 = runtime.ForwardResponseMessage + + forward_SviService_DeleteSvi_0 = runtime.ForwardResponseMessage + + forward_SviService_UpdateSvi_0 = runtime.ForwardResponseMessage +) diff --git a/network/evpn-gw/v1alpha1/gen/go/l3_xpu_infra_mgr_grpc.pb.go b/network/evpn-gw/v1alpha1/gen/go/l3_xpu_infra_mgr_grpc.pb.go index 5c7fb773..fe9aa89e 100644 --- a/network/evpn-gw/v1alpha1/gen/go/l3_xpu_infra_mgr_grpc.pb.go +++ b/network/evpn-gw/v1alpha1/gen/go/l3_xpu_infra_mgr_grpc.pb.go @@ -1,7 +1,19 @@ +// 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-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.6 +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) // source: l3_xpu_infra_mgr.proto package _go @@ -19,6 +31,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + VrfService_CreateVrf_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.VrfService/CreateVrf" + VrfService_ListVrfs_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.VrfService/ListVrfs" + VrfService_GetVrf_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.VrfService/GetVrf" + VrfService_DeleteVrf_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.VrfService/DeleteVrf" + VrfService_UpdateVrf_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.VrfService/UpdateVrf" +) + // VrfServiceClient is the client API for VrfService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -45,7 +65,7 @@ func NewVrfServiceClient(cc grpc.ClientConnInterface) VrfServiceClient { 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...) + err := c.cc.Invoke(ctx, VrfService_CreateVrf_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -54,7 +74,7 @@ func (c *vrfServiceClient) CreateVrf(ctx context.Context, in *CreateVrfRequest, 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...) + err := c.cc.Invoke(ctx, VrfService_ListVrfs_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -63,7 +83,7 @@ func (c *vrfServiceClient) ListVrfs(ctx context.Context, in *ListVrfsRequest, op 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...) + err := c.cc.Invoke(ctx, VrfService_GetVrf_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -72,7 +92,7 @@ func (c *vrfServiceClient) GetVrf(ctx context.Context, in *GetVrfRequest, opts . 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...) + err := c.cc.Invoke(ctx, VrfService_DeleteVrf_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -81,7 +101,7 @@ func (c *vrfServiceClient) DeleteVrf(ctx context.Context, in *DeleteVrfRequest, func (c *vrfServiceClient) UpdateVrf(ctx context.Context, in *UpdateVrfRequest, opts ...grpc.CallOption) (*Vrf, error) { out := new(Vrf) - err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.VrfService/UpdateVrf", in, out, opts...) + err := c.cc.Invoke(ctx, VrfService_UpdateVrf_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -89,7 +109,7 @@ func (c *vrfServiceClient) UpdateVrf(ctx context.Context, in *UpdateVrfRequest, } // VrfServiceServer is the server API for VrfService service. -// All implementations should embed UnimplementedVrfServiceServer +// All implementations must embed UnimplementedVrfServiceServer // for forward compatibility type VrfServiceServer interface { // Create a Vrf @@ -102,9 +122,10 @@ type VrfServiceServer interface { DeleteVrf(context.Context, *DeleteVrfRequest) (*emptypb.Empty, error) // Update a Vrf UpdateVrf(context.Context, *UpdateVrfRequest) (*Vrf, error) + mustEmbedUnimplementedVrfServiceServer() } -// UnimplementedVrfServiceServer should be embedded to have forward compatible implementations. +// UnimplementedVrfServiceServer must be embedded to have forward compatible implementations. type UnimplementedVrfServiceServer struct { } @@ -123,6 +144,7 @@ func (UnimplementedVrfServiceServer) DeleteVrf(context.Context, *DeleteVrfReques func (UnimplementedVrfServiceServer) UpdateVrf(context.Context, *UpdateVrfRequest) (*Vrf, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateVrf not implemented") } +func (UnimplementedVrfServiceServer) mustEmbedUnimplementedVrfServiceServer() {} // UnsafeVrfServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to VrfServiceServer will @@ -145,7 +167,7 @@ func _VrfService_CreateVrf_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.VrfService/CreateVrf", + FullMethod: VrfService_CreateVrf_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VrfServiceServer).CreateVrf(ctx, req.(*CreateVrfRequest)) @@ -163,7 +185,7 @@ func _VrfService_ListVrfs_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.VrfService/ListVrfs", + FullMethod: VrfService_ListVrfs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VrfServiceServer).ListVrfs(ctx, req.(*ListVrfsRequest)) @@ -181,7 +203,7 @@ func _VrfService_GetVrf_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.VrfService/GetVrf", + FullMethod: VrfService_GetVrf_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VrfServiceServer).GetVrf(ctx, req.(*GetVrfRequest)) @@ -199,7 +221,7 @@ func _VrfService_DeleteVrf_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.VrfService/DeleteVrf", + FullMethod: VrfService_DeleteVrf_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VrfServiceServer).DeleteVrf(ctx, req.(*DeleteVrfRequest)) @@ -217,7 +239,7 @@ func _VrfService_UpdateVrf_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.VrfService/UpdateVrf", + FullMethod: VrfService_UpdateVrf_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VrfServiceServer).UpdateVrf(ctx, req.(*UpdateVrfRequest)) @@ -257,6 +279,14 @@ var VrfService_ServiceDesc = grpc.ServiceDesc{ Metadata: "l3_xpu_infra_mgr.proto", } +const ( + SviService_CreateSvi_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.SviService/CreateSvi" + SviService_ListSvis_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.SviService/ListSvis" + SviService_GetSvi_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.SviService/GetSvi" + SviService_DeleteSvi_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.SviService/DeleteSvi" + SviService_UpdateSvi_FullMethodName = "/opi_api.network.evpn_gw.v1alpha1.SviService/UpdateSvi" +) + // SviServiceClient is the client API for SviService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -283,7 +313,7 @@ func NewSviServiceClient(cc grpc.ClientConnInterface) SviServiceClient { 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...) + err := c.cc.Invoke(ctx, SviService_CreateSvi_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -292,7 +322,7 @@ func (c *sviServiceClient) CreateSvi(ctx context.Context, in *CreateSviRequest, 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...) + err := c.cc.Invoke(ctx, SviService_ListSvis_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -301,7 +331,7 @@ func (c *sviServiceClient) ListSvis(ctx context.Context, in *ListSvisRequest, op 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...) + err := c.cc.Invoke(ctx, SviService_GetSvi_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -310,7 +340,7 @@ func (c *sviServiceClient) GetSvi(ctx context.Context, in *GetSviRequest, opts . 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...) + err := c.cc.Invoke(ctx, SviService_DeleteSvi_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -319,7 +349,7 @@ func (c *sviServiceClient) DeleteSvi(ctx context.Context, in *DeleteSviRequest, func (c *sviServiceClient) UpdateSvi(ctx context.Context, in *UpdateSviRequest, opts ...grpc.CallOption) (*Svi, error) { out := new(Svi) - err := c.cc.Invoke(ctx, "/opi_api.network.evpn_gw.v1alpha1.SviService/UpdateSvi", in, out, opts...) + err := c.cc.Invoke(ctx, SviService_UpdateSvi_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -327,7 +357,7 @@ func (c *sviServiceClient) UpdateSvi(ctx context.Context, in *UpdateSviRequest, } // SviServiceServer is the server API for SviService service. -// All implementations should embed UnimplementedSviServiceServer +// All implementations must embed UnimplementedSviServiceServer // for forward compatibility type SviServiceServer interface { // Create a Svi @@ -340,9 +370,10 @@ type SviServiceServer interface { DeleteSvi(context.Context, *DeleteSviRequest) (*emptypb.Empty, error) // Update a Svi UpdateSvi(context.Context, *UpdateSviRequest) (*Svi, error) + mustEmbedUnimplementedSviServiceServer() } -// UnimplementedSviServiceServer should be embedded to have forward compatible implementations. +// UnimplementedSviServiceServer must be embedded to have forward compatible implementations. type UnimplementedSviServiceServer struct { } @@ -361,6 +392,7 @@ func (UnimplementedSviServiceServer) DeleteSvi(context.Context, *DeleteSviReques func (UnimplementedSviServiceServer) UpdateSvi(context.Context, *UpdateSviRequest) (*Svi, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateSvi not implemented") } +func (UnimplementedSviServiceServer) mustEmbedUnimplementedSviServiceServer() {} // UnsafeSviServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to SviServiceServer will @@ -383,7 +415,7 @@ func _SviService_CreateSvi_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.SviService/CreateSvi", + FullMethod: SviService_CreateSvi_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SviServiceServer).CreateSvi(ctx, req.(*CreateSviRequest)) @@ -401,7 +433,7 @@ func _SviService_ListSvis_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.SviService/ListSvis", + FullMethod: SviService_ListSvis_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SviServiceServer).ListSvis(ctx, req.(*ListSvisRequest)) @@ -419,7 +451,7 @@ func _SviService_GetSvi_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.SviService/GetSvi", + FullMethod: SviService_GetSvi_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SviServiceServer).GetSvi(ctx, req.(*GetSviRequest)) @@ -437,7 +469,7 @@ func _SviService_DeleteSvi_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.SviService/DeleteSvi", + FullMethod: SviService_DeleteSvi_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SviServiceServer).DeleteSvi(ctx, req.(*DeleteSviRequest)) @@ -455,7 +487,7 @@ func _SviService_UpdateSvi_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.network.evpn_gw.v1alpha1.SviService/UpdateSvi", + FullMethod: SviService_UpdateSvi_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SviServiceServer).UpdateSvi(ctx, req.(*UpdateSviRequest)) 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 deleted file mode 100644 index a7db95c9..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BPOperStatus.java +++ /dev/null @@ -1,150 +0,0 @@ -// 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 deleted file mode 100644 index e7429fb2..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePort.java +++ /dev/null @@ -1,1095 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = REQUIRED]; - * @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 [(.google.api.field_behavior) = REQUIRED]; - * @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 [(.google.api.field_behavior) = REQUIRED]; - */ - @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = REQUIRED]; - * @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 [(.google.api.field_behavior) = REQUIRED]; - * @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 [(.google.api.field_behavior) = REQUIRED]; - */ - 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 [(.google.api.field_behavior) = REQUIRED]; - */ - 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 [(.google.api.field_behavior) = REQUIRED]; - */ - 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 [(.google.api.field_behavior) = REQUIRED]; - */ - 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 [(.google.api.field_behavior) = REQUIRED]; - */ - 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 [(.google.api.field_behavior) = REQUIRED]; - */ - 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 [(.google.api.field_behavior) = REQUIRED]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 deleted file mode 100644 index 599efe8e..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -// 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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Bridge Port network configuration
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the spec field is set. - */ - boolean hasSpec(); - /** - *
-   * Bridge Port network configuration
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The spec. - */ - opi_api.network.evpn_gw.v1alpha1.BridgePortSpec getSpec(); - /** - *
-   * Bridge Port network configuration
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePortSpec spec = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - opi_api.network.evpn_gw.v1alpha1.BridgePortSpecOrBuilder getSpecOrBuilder(); - - /** - *
-   * Bridge Port network status
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - *
-   * Bridge Port network status
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The status. - */ - opi_api.network.evpn_gw.v1alpha1.BridgePortStatus getStatus(); - /** - *
-   * Bridge Port network status
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePortStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 deleted file mode 100644 index e8b96340..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortServiceGrpc.java +++ /dev/null @@ -1,647 +0,0 @@ -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; - } - - private static volatile io.grpc.MethodDescriptor getUpdateBridgePortMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBridgePort", - requestType = opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.class, - responseType = opi_api.network.evpn_gw.v1alpha1.BridgePort.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateBridgePortMethod() { - io.grpc.MethodDescriptor getUpdateBridgePortMethod; - if ((getUpdateBridgePortMethod = BridgePortServiceGrpc.getUpdateBridgePortMethod) == null) { - synchronized (BridgePortServiceGrpc.class) { - if ((getUpdateBridgePortMethod = BridgePortServiceGrpc.getUpdateBridgePortMethod) == null) { - BridgePortServiceGrpc.getUpdateBridgePortMethod = getUpdateBridgePortMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBridgePort")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - opi_api.network.evpn_gw.v1alpha1.BridgePort.getDefaultInstance())) - .setSchemaDescriptor(new BridgePortServiceMethodDescriptorSupplier("UpdateBridgePort")) - .build(); - } - } - } - return getUpdateBridgePortMethod; - } - - /** - * 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); - } - - /** - *
-     * Update a Bridge Port
-     * 
- */ - public void updateBridgePort(opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBridgePortMethod(), 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))) - .addMethod( - getUpdateBridgePortMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest, - opi_api.network.evpn_gw.v1alpha1.BridgePort>( - this, METHODID_UPDATE_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); - } - - /** - *
-     * Update a Bridge Port
-     * 
- */ - public void updateBridgePort(opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBridgePortMethod(), 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); - } - - /** - *
-     * Update a Bridge Port
-     * 
- */ - public opi_api.network.evpn_gw.v1alpha1.BridgePort updateBridgePort(opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBridgePortMethod(), 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); - } - - /** - *
-     * Update a Bridge Port
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateBridgePort( - opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBridgePortMethod(), 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 int METHODID_UPDATE_BRIDGE_PORT = 4; - - 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; - case METHODID_UPDATE_BRIDGE_PORT: - serviceImpl.updateBridgePort((opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) 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()) - .addMethod(getUpdateBridgePortMethod()) - .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 deleted file mode 100644 index 8614270b..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortSpec.java +++ /dev/null @@ -1,897 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index d118f336..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortSpecOrBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -// 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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 0ae2e8cd..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortStatus.java +++ /dev/null @@ -1,553 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 deleted file mode 100644 index fdee1da0..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortStatusOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 deleted file mode 100644 index 4296499c..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/BridgePortType.java +++ /dev/null @@ -1,150 +0,0 @@ -// 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 deleted file mode 100644 index 020f41af..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateBridgePortRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 5de6f439..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateBridgePortRequestOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -// 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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index b9bb43e4..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateLogicalBridgeRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 4de500bc..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateLogicalBridgeRequestOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -// 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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 353f6143..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateSviRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 387b5d84..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateSviRequestOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -// 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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index abf5d47a..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateVrfRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 22694ae2..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/CreateVrfRequestOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -// 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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 8ce40c78..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteBridgePortRequest.java +++ /dev/null @@ -1,687 +0,0 @@ -// 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; - } - case 16: { - - allowMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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; - } - } - - public static final int ALLOW_MISSING_FIELD_NUMBER = 2; - private boolean allowMissing_; - /** - *
-   * If set to true, and the resource is not found, the request will succeed
-   * but no action will be taken on the server
-   * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - - 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 (allowMissing_ != false) { - output.writeBool(2, allowMissing_); - } - 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 (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowMissing_); - } - 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 (getAllowMissing() - != other.getAllowMissing()) 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 = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); - 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_ = ""; - - allowMissing_ = false; - - 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_; - result.allowMissing_ = allowMissing_; - 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(); - } - if (other.getAllowMissing() != false) { - setAllowMissing(other.getAllowMissing()); - } - 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; - } - - private boolean allowMissing_ ; - /** - *
-     * If set to true, and the resource is not found, the request will succeed
-     * but no action will be taken on the server
-     * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - /** - *
-     * If set to true, and the resource is not found, the request will succeed
-     * but no action will be taken on the server
-     * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The allowMissing to set. - * @return This builder for chaining. - */ - public Builder setAllowMissing(boolean value) { - - allowMissing_ = value; - onChanged(); - return this; - } - /** - *
-     * If set to true, and the resource is not found, the request will succeed
-     * but no action will be taken on the server
-     * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAllowMissing() { - - allowMissing_ = false; - 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 deleted file mode 100644 index b043b060..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteBridgePortRequestOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// 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(); - - /** - *
-   * If set to true, and the resource is not found, the request will succeed
-   * but no action will be taken on the server
-   * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - boolean getAllowMissing(); -} 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 deleted file mode 100644 index 07f31d63..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteLogicalBridgeRequest.java +++ /dev/null @@ -1,687 +0,0 @@ -// 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; - } - case 16: { - - allowMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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; - } - } - - public static final int ALLOW_MISSING_FIELD_NUMBER = 2; - private boolean allowMissing_; - /** - *
-   * If set to true, and the resource is not found, the request will succeed
-   * but no action will be taken on the server
-   * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - - 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 (allowMissing_ != false) { - output.writeBool(2, allowMissing_); - } - 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 (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowMissing_); - } - 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 (getAllowMissing() - != other.getAllowMissing()) 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 = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); - 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_ = ""; - - allowMissing_ = false; - - 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_; - result.allowMissing_ = allowMissing_; - 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(); - } - if (other.getAllowMissing() != false) { - setAllowMissing(other.getAllowMissing()); - } - 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; - } - - private boolean allowMissing_ ; - /** - *
-     * If set to true, and the resource is not found, the request will succeed
-     * but no action will be taken on the server
-     * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - /** - *
-     * If set to true, and the resource is not found, the request will succeed
-     * but no action will be taken on the server
-     * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The allowMissing to set. - * @return This builder for chaining. - */ - public Builder setAllowMissing(boolean value) { - - allowMissing_ = value; - onChanged(); - return this; - } - /** - *
-     * If set to true, and the resource is not found, the request will succeed
-     * but no action will be taken on the server
-     * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAllowMissing() { - - allowMissing_ = false; - 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 deleted file mode 100644 index 80c013de..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteLogicalBridgeRequestOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// 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(); - - /** - *
-   * If set to true, and the resource is not found, the request will succeed
-   * but no action will be taken on the server
-   * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - boolean getAllowMissing(); -} 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 deleted file mode 100644 index 83051c5a..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteSviRequest.java +++ /dev/null @@ -1,687 +0,0 @@ -// 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; - } - case 16: { - - allowMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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; - } - } - - public static final int ALLOW_MISSING_FIELD_NUMBER = 2; - private boolean allowMissing_; - /** - *
-   * If set to true, and the resource is not found, the request will succeed
-   * but no action will be taken on the server
-   * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - - 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 (allowMissing_ != false) { - output.writeBool(2, allowMissing_); - } - 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 (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowMissing_); - } - 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 (getAllowMissing() - != other.getAllowMissing()) 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 = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); - 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_ = ""; - - allowMissing_ = false; - - 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_; - result.allowMissing_ = allowMissing_; - 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(); - } - if (other.getAllowMissing() != false) { - setAllowMissing(other.getAllowMissing()); - } - 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; - } - - private boolean allowMissing_ ; - /** - *
-     * If set to true, and the resource is not found, the request will succeed
-     * but no action will be taken on the server
-     * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - /** - *
-     * If set to true, and the resource is not found, the request will succeed
-     * but no action will be taken on the server
-     * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The allowMissing to set. - * @return This builder for chaining. - */ - public Builder setAllowMissing(boolean value) { - - allowMissing_ = value; - onChanged(); - return this; - } - /** - *
-     * If set to true, and the resource is not found, the request will succeed
-     * but no action will be taken on the server
-     * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAllowMissing() { - - allowMissing_ = false; - 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 deleted file mode 100644 index 68b69a13..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteSviRequestOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// 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(); - - /** - *
-   * If set to true, and the resource is not found, the request will succeed
-   * but no action will be taken on the server
-   * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - boolean getAllowMissing(); -} 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 deleted file mode 100644 index 42127e28..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteVrfRequest.java +++ /dev/null @@ -1,687 +0,0 @@ -// 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; - } - case 16: { - - allowMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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; - } - } - - public static final int ALLOW_MISSING_FIELD_NUMBER = 2; - private boolean allowMissing_; - /** - *
-   * If set to true, and the resource is not found, the request will succeed
-   * but no action will be taken on the server
-   * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - - 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 (allowMissing_ != false) { - output.writeBool(2, allowMissing_); - } - 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 (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowMissing_); - } - 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 (getAllowMissing() - != other.getAllowMissing()) 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 = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); - 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_ = ""; - - allowMissing_ = false; - - 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_; - result.allowMissing_ = allowMissing_; - 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(); - } - if (other.getAllowMissing() != false) { - setAllowMissing(other.getAllowMissing()); - } - 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; - } - - private boolean allowMissing_ ; - /** - *
-     * If set to true, and the resource is not found, the request will succeed
-     * but no action will be taken on the server
-     * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - /** - *
-     * If set to true, and the resource is not found, the request will succeed
-     * but no action will be taken on the server
-     * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The allowMissing to set. - * @return This builder for chaining. - */ - public Builder setAllowMissing(boolean value) { - - allowMissing_ = value; - onChanged(); - return this; - } - /** - *
-     * If set to true, and the resource is not found, the request will succeed
-     * but no action will be taken on the server
-     * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAllowMissing() { - - allowMissing_ = false; - 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 deleted file mode 100644 index ade178e2..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/DeleteVrfRequestOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// 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(); - - /** - *
-   * If set to true, and the resource is not found, the request will succeed
-   * but no action will be taken on the server
-   * 
- * - * bool allow_missing = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - boolean getAllowMissing(); -} 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 deleted file mode 100644 index 28d8b77e..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetBridgePortRequest.java +++ /dev/null @@ -1,602 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 deleted file mode 100644 index e3304292..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetBridgePortRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index f02aae71..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetLogicalBridgeRequest.java +++ /dev/null @@ -1,602 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 deleted file mode 100644 index 5e7f9ef4..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetLogicalBridgeRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index 81bb0525..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetSviRequest.java +++ /dev/null @@ -1,602 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 deleted file mode 100644 index 1e9cfdc9..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetSviRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index f8e0e8bb..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetVrfRequest.java +++ /dev/null @@ -1,602 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 deleted file mode 100644 index 3bf3617c..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/GetVrfRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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 deleted file mode 100644 index abe55fb9..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/L2XpuInfraMgrProto.java +++ /dev/null @@ -1,382 +0,0 @@ -// 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_UpdateLogicalBridgeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateLogicalBridgeRequest_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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateBridgePortRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateBridgePortRequest_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\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 goo" + - "gle/protobuf/field_mask.proto\032\031google/ap" + - "i/resource.proto\"\253\002\n\rLogicalBridge\022\021\n\004na" + - "me\030\001 \001(\tB\003\340A\010\022F\n\004spec\030\002 \001(\01323.opi_api.ne" + - "twork.evpn_gw.v1alpha1.LogicalBridgeSpec" + - "B\003\340A\002\022J\n\006status\030\003 \001(\01325.opi_api.network." + - "evpn_gw.v1alpha1.LogicalBridgeStatusB\003\340A" + - "\003:s\352Ap\n.opi_api.network.evpn_gw.v1alpha1" + - "/LogicalBridge\022\037logicalBridges/{logical_" + - "bridge}*\016logicalBridges2\rlogicalBridge\"\226" + - "\001\n\021LogicalBridgeSpec\022\024\n\007vlan_id\030\001 \001(\rB\003\340" + - "A\002\022\025\n\003vni\030\002 \001(\rB\003\340A\001H\000\210\001\001\022L\n\016vtep_ip_pre" + - "fix\030\003 \001(\0132/.opi_api.network.opinetcommon" + - ".v1alpha1.IPPrefixB\003\340A\001B\006\n\004_vni\"_\n\023Logic" + - "alBridgeStatus\022H\n\013oper_status\030\001 \001(\0162..op" + - "i_api.network.evpn_gw.v1alpha1.LBOperSta" + - "tusB\003\340A\003\"\212\001\n\032CreateLogicalBridgeRequest\022" + - "\036\n\021logical_bridge_id\030\001 \001(\tB\003\340A\001\022L\n\016logic" + - "al_bridge\030\002 \001(\0132/.opi_api.network.evpn_g" + - "w.v1alpha1.LogicalBridgeB\003\340A\002\"L\n\031ListLog" + - "icalBridgesRequest\022\026\n\tpage_size\030\001 \001(\005B\003\340" + - "A\001\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\"\177\n\032ListLogic" + - "alBridgesResponse\022H\n\017logical_bridges\030\001 \003" + - "(\0132/.opi_api.network.evpn_gw.v1alpha1.Lo" + - "gicalBridge\022\027\n\017next_page_token\030\002 \001(\t\"_\n\027" + - "GetLogicalBridgeRequest\022D\n\004name\030\001 \001(\tB6\340" + - "A\002\372A0\n.opi_api.network.evpn_gw.v1alpha1/" + - "LogicalBridge\"~\n\032DeleteLogicalBridgeRequ" + - "est\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.opi_api.netwo" + - "rk.evpn_gw.v1alpha1/LogicalBridge\022\032\n\rall" + - "ow_missing\030\002 \001(\010B\003\340A\001\"\274\001\n\032UpdateLogicalB" + - "ridgeRequest\022L\n\016logical_bridge\030\001 \001(\0132/.o" + - "pi_api.network.evpn_gw.v1alpha1.LogicalB" + - "ridgeB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" + - ".protobuf.FieldMaskB\003\340A\001\022\032\n\rallow_missin" + - "g\030\003 \001(\010B\003\340A\001\"\223\002\n\nBridgePort\022\021\n\004name\030\001 \001(" + - "\tB\003\340A\010\022C\n\004spec\030\002 \001(\01320.opi_api.network.e" + - "vpn_gw.v1alpha1.BridgePortSpecB\003\340A\002\022G\n\006s" + - "tatus\030\003 \001(\01322.opi_api.network.evpn_gw.v1" + - "alpha1.BridgePortStatusB\003\340A\003:d\352Aa\n+opi_a" + - "pi.network.evpn_gw.v1alpha1/BridgePort\022\031" + - "bridgePorts/{bridge_port}*\013bridgePorts2\n" + - "bridgePort\"\216\001\n\016BridgePortSpec\022\030\n\013mac_add" + - "ress\030\001 \001(\014B\003\340A\002\022D\n\005ptype\030\002 \001(\01620.opi_api" + - ".network.evpn_gw.v1alpha1.BridgePortType" + - "B\003\340A\002\022\034\n\017logical_bridges\030\003 \003(\tB\003\340A\001\"\\\n\020B" + - "ridgePortStatus\022H\n\013oper_status\030\001 \001(\0162..o" + - "pi_api.network.evpn_gw.v1alpha1.BPOperSt" + - "atusB\003\340A\003\"~\n\027CreateBridgePortRequest\022\033\n\016" + - "bridge_port_id\030\001 \001(\tB\003\340A\001\022F\n\013bridge_port" + - "\030\002 \001(\0132,.opi_api.network.evpn_gw.v1alpha" + - "1.BridgePortB\003\340A\002\"I\n\026ListBridgePortsRequ" + - "est\022\026\n\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\npage_toke" + - "n\030\002 \001(\tB\003\340A\001\"v\n\027ListBridgePortsResponse\022" + - "B\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\024GetBridgePortRequest\022A\n\004" + - "name\030\001 \001(\tB3\340A\002\372A-\n+opi_api.network.evpn" + - "_gw.v1alpha1/BridgePort\"x\n\027DeleteBridgeP" + - "ortRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+opi_ap" + - "i.network.evpn_gw.v1alpha1/BridgePort\022\032\n" + - "\rallow_missing\030\002 \001(\010B\003\340A\001\"\263\001\n\027UpdateBrid" + - "gePortRequest\022F\n\013bridge_port\030\001 \001(\0132,.opi" + - "_api.network.evpn_gw.v1alpha1.BridgePort" + - "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + - "obuf.FieldMaskB\003\340A\001\022\032\n\rallow_missing\030\003 \001" + - "(\010B\003\340A\001*^\n\014LBOperStatus\022\036\n\032LB_OPER_STATU" + - "S_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_UNSPECIFIED\020\000\022\025\n\021BP_OP" + - "ER_STATUS_UP\020\001\022\027\n\023BP_OPER_STATUS_DOWN\020\002*" + - "4\n\016BridgePortType\022\013\n\007UNKNOWN\020\000\022\n\n\006ACCESS" + - "\020\001\022\t\n\005TRUNK\020\0022\311\007\n\024LogicalBridgeService\022\323" + - "\001\n\023CreateLogicalBridge\022<.opi_api.network" + - ".evpn_gw.v1alpha1.CreateLogicalBridgeReq" + - "uest\032/.opi_api.network.evpn_gw.v1alpha1." + - "LogicalBridge\"M\202\323\344\223\002$\"\022/v1/logicalBridge" + - "s:\016logical_bridge\332A logical_bridge,logic" + - "al_bridge_id\022\253\001\n\022ListLogicalBridges\022;.op" + - "i_api.network.evpn_gw.v1alpha1.ListLogic" + - "alBridgesRequest\032<.opi_api.network.evpn_" + - "gw.v1alpha1.ListLogicalBridgesResponse\"\032" + - "\202\323\344\223\002\024\022\022/v1/logicalBridges\022\252\001\n\020GetLogica" + - "lBridge\0229.opi_api.network.evpn_gw.v1alph" + - "a1.GetLogicalBridgeRequest\032/.opi_api.net" + - "work.evpn_gw.v1alpha1.LogicalBridge\"*\202\323\344" + - "\223\002\035\022\033/v1/{name=logicalBridges/*}\332A\004name\022" + - "\227\001\n\023DeleteLogicalBridge\022<.opi_api.networ" + - "k.evpn_gw.v1alpha1.DeleteLogicalBridgeRe" + - "quest\032\026.google.protobuf.Empty\"*\202\323\344\223\002\035*\033/" + - "v1/{name=logicalBridges/*}\332A\004name\022\345\001\n\023Up" + - "dateLogicalBridge\022<.opi_api.network.evpn" + - "_gw.v1alpha1.UpdateLogicalBridgeRequest\032" + - "/.opi_api.network.evpn_gw.v1alpha1.Logic" + - "alBridge\"_\202\323\344\223\002<2*/v1/{logical_bridge.na" + - "me=logicalBridges/*}:\016logical_bridge\332A\032l" + - "ogical_bridge,update_mask2\373\006\n\021BridgePort" + - "Service\022\276\001\n\020CreateBridgePort\0229.opi_api.n" + - "etwork.evpn_gw.v1alpha1.CreateBridgePort" + - "Request\032,.opi_api.network.evpn_gw.v1alph" + - "a1.BridgePort\"A\202\323\344\223\002\036\"\017/v1/bridgePorts:\013" + - "bridge_port\332A\032bridge_port,bridge_port_id" + - "\022\237\001\n\017ListBridgePorts\0228.opi_api.network.e" + - "vpn_gw.v1alpha1.ListBridgePortsRequest\0329" + - ".opi_api.network.evpn_gw.v1alpha1.ListBr" + - "idgePortsResponse\"\027\202\323\344\223\002\021\022\017/v1/bridgePor" + - "ts\022\236\001\n\rGetBridgePort\0226.opi_api.network.e" + - "vpn_gw.v1alpha1.GetBridgePortRequest\032,.o" + - "pi_api.network.evpn_gw.v1alpha1.BridgePo" + - "rt\"\'\202\323\344\223\002\032\022\030/v1/{name=bridgePorts/*}\332A\004n" + - "ame\022\216\001\n\020DeleteBridgePort\0229.opi_api.netwo" + - "rk.evpn_gw.v1alpha1.DeleteBridgePortRequ" + - "est\032\026.google.protobuf.Empty\"\'\202\323\344\223\002\032*\030/v1" + - "/{name=bridgePorts/*}\332A\004name\022\320\001\n\020UpdateB" + - "ridgePort\0229.opi_api.network.evpn_gw.v1al" + - "pha1.UpdateBridgePortRequest\032,.opi_api.n" + - "etwork.evpn_gw.v1alpha1.BridgePort\"S\202\323\344\223" + - "\00232$/v1/{bridge_port.name=bridgePorts/*}" + - ":\013bridge_port\332A\027bridge_port,update_maskB" + - "w\n opi_api.network.evpn_gw.v1alpha1B\022L2X" + - "puInfraMgrProtoP\001Z=github.com/opiproject" + - "/opi-api/network/evpn-gw/v1alpha1/gen/go" + - "b\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.protobuf.FieldMaskProto.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", "VtepIpPrefix", "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", "AllowMissing", }); - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateLogicalBridgeRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateLogicalBridgeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateLogicalBridgeRequest_descriptor, - new java.lang.String[] { "LogicalBridge", "UpdateMask", "AllowMissing", }); - internal_static_opi_api_network_evpn_gw_v1alpha1_BridgePort_descriptor = - getDescriptor().getMessageTypes().get(9); - 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(10); - 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(11); - 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(12); - 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(13); - 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(14); - 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(15); - 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(16); - 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", "AllowMissing", }); - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateBridgePortRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateBridgePortRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateBridgePortRequest_descriptor, - new java.lang.String[] { "BridgePort", "UpdateMask", "AllowMissing", }); - 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.protobuf.FieldMaskProto.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 deleted file mode 100644 index d72645d6..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/L3XpuInfraMgrProto.java +++ /dev/null @@ -1,368 +0,0 @@ -// 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_UpdateVrfRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateVrfRequest_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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateSviRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateSviRequest_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 goo" + - "gle/protobuf/field_mask.proto\032\031google/ap" + - "i/resource.proto\"\332\001\n\003Vrf\022\021\n\004name\030\001 \001(\tB\003" + - "\340A\010\022<\n\004spec\030\002 \001(\0132).opi_api.network.evpn" + - "_gw.v1alpha1.VrfSpecB\003\340A\002\022@\n\006status\030\003 \001(" + - "\0132+.opi_api.network.evpn_gw.v1alpha1.Vrf" + - "StatusB\003\340A\003:@\352A=\n$opi_api.network.evpn_g" + - "w.v1alpha1/Vrf\022\nvrfs/{vrf}*\004vrfs2\003vrf\"\310\001" + - "\n\007VrfSpec\022\025\n\003vni\030\001 \001(\rB\003\340A\001H\000\210\001\001\022P\n\022loop" + - "back_ip_prefix\030\002 \001(\0132/.opi_api.network.o" + - "pinetcommon.v1alpha1.IPPrefixB\003\340A\002\022L\n\016vt" + - "ep_ip_prefix\030\003 \001(\0132/.opi_api.network.opi" + - "netcommon.v1alpha1.IPPrefixB\003\340A\001B\006\n\004_vni" + - "\"\375\001\n\tVrfStatus\022\032\n\rrouting_table\030\001 \001(\rB\003\340" + - "A\003\022\025\n\010local_as\030\002 \001(\rB\003\340A\003\022\017\n\002rd\030\003 \001(\tB\003\340" + - "A\003\022\021\n\004rmac\030\004 \001(\014B\003\340A\003\022\027\n\nimport_rts\030\005 \003(" + - "\tB\003\340A\003\022\027\n\nexport_rts\030\006 \003(\tB\003\340A\003\022\034\n\017logic" + - "al_bridges\030\007 \003(\tB\003\340A\003\022I\n\013oper_status\030\010 \001" + - "(\0162/.opi_api.network.evpn_gw.v1alpha1.VR" + - "FOperStatusB\003\340A\003\"`\n\020CreateVrfRequest\022\023\n\006" + - "vrf_id\030\001 \001(\tB\003\340A\001\0227\n\003vrf\030\002 \001(\0132%.opi_api" + - ".network.evpn_gw.v1alpha1.VrfB\003\340A\002\"B\n\017Li" + - "stVrfsRequest\022\026\n\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n" + - "\npage_token\030\002 \001(\tB\003\340A\001\"`\n\020ListVrfsRespon" + - "se\0223\n\004vrfs\030\001 \003(\0132%.opi_api.network.evpn_" + - "gw.v1alpha1.Vrf\022\027\n\017next_page_token\030\002 \001(\t" + - "\"K\n\rGetVrfRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n" + - "$opi_api.network.evpn_gw.v1alpha1/Vrf\"j\n" + - "\020DeleteVrfRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n" + - "$opi_api.network.evpn_gw.v1alpha1/Vrf\022\032\n" + - "\rallow_missing\030\002 \001(\010B\003\340A\001\"\235\001\n\020UpdateVrfR" + - "equest\0227\n\003vrf\030\001 \001(\0132%.opi_api.network.ev" + - "pn_gw.v1alpha1.VrfB\003\340A\002\0224\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\032\n" + - "\rallow_missing\030\003 \001(\010B\003\340A\001\"\332\001\n\003Svi\022\021\n\004nam" + - "e\030\001 \001(\tB\003\340A\010\022<\n\004spec\030\002 \001(\0132).opi_api.net" + - "work.evpn_gw.v1alpha1.SviSpecB\003\340A\002\022@\n\006st" + - "atus\030\003 \001(\0132+.opi_api.network.evpn_gw.v1a" + - "lpha1.SviStatusB\003\340A\003:@\352A=\n$opi_api.netwo" + - "rk.evpn_gw.v1alpha1/Svi\022\nsvis/{svi}*\004svi" + - "s2\003svi\"\253\002\n\007SviSpec\0229\n\003vrf\030\001 \001(\tB,\340A\002\372A&\n" + - "$opi_api.network.evpn_gw.v1alpha1/Vrf\022N\n" + - "\016logical_bridge\030\002 \001(\tB6\340A\002\372A0\n.opi_api.n" + - "etwork.evpn_gw.v1alpha1/LogicalBridge\022\030\n" + - "\013mac_address\030\003 \001(\014B\003\340A\002\022J\n\014gw_ip_prefix\030" + - "\004 \003(\0132/.opi_api.network.opinetcommon.v1a" + - "lpha1.IPPrefixB\003\340A\002\022\027\n\nenable_bgp\030\005 \001(\010B" + - "\003\340A\001\022\026\n\tremote_as\030\006 \001(\rB\003\340A\001\"V\n\tSviStatu" + - "s\022I\n\013oper_status\030\001 \001(\0162/.opi_api.network" + - ".evpn_gw.v1alpha1.SVIOperStatusB\003\340A\003\"`\n\020" + - "CreateSviRequest\022\023\n\006svi_id\030\001 \001(\tB\003\340A\001\0227\n" + - "\003svi\030\002 \001(\0132%.opi_api.network.evpn_gw.v1a" + - "lpha1.SviB\003\340A\002\"B\n\017ListSvisRequest\022\026\n\tpag" + - "e_size\030\001 \001(\005B\003\340A\001\022\027\n\npage_token\030\002 \001(\tB\003\340" + - "A\001\"`\n\020ListSvisResponse\0223\n\004svis\030\001 \003(\0132%.o" + - "pi_api.network.evpn_gw.v1alpha1.Svi\022\027\n\017n" + - "ext_page_token\030\002 \001(\t\"K\n\rGetSviRequest\022:\n" + - "\004name\030\001 \001(\tB,\340A\002\372A&\n$opi_api.network.evp" + - "n_gw.v1alpha1/Svi\"j\n\020DeleteSviRequest\022:\n" + - "\004name\030\001 \001(\tB,\340A\002\372A&\n$opi_api.network.evp" + - "n_gw.v1alpha1/Svi\022\032\n\rallow_missing\030\002 \001(\010" + - "B\003\340A\001\"\235\001\n\020UpdateSviRequest\0227\n\003svi\030\001 \001(\0132" + - "%.opi_api.network.evpn_gw.v1alpha1.SviB\003" + - "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + - "uf.FieldMaskB\003\340A\001\022\032\n\rallow_missing\030\003 \001(\010" + - "B\003\340A\001*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\276\005\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\004name\022\234\001\n\tUpda" + - "teVrf\0222.opi_api.network.evpn_gw.v1alpha1" + - ".UpdateVrfRequest\032%.opi_api.network.evpn" + - "_gw.v1alpha1.Vrf\"4\202\323\344\223\002\0342\025/v1/{vrf.name=" + - "vrfs/*}:\003vrf\332A\017vrf,update_mask2\276\005\n\nSviSe" + - "rvice\022\212\001\n\tCreateSvi\0222.opi_api.network.ev" + - "pn_gw.v1alpha1.CreateSviRequest\032%.opi_ap" + - "i.network.evpn_gw.v1alpha1.Svi\"\"\202\323\344\223\002\017\"\010" + - "/v1/svis:\003svi\332A\nsvi,svi_id\022\203\001\n\010ListSvis\022" + - "1.opi_api.network.evpn_gw.v1alpha1.ListS" + - "visRequest\0322.opi_api.network.evpn_gw.v1a" + - "lpha1.ListSvisResponse\"\020\202\323\344\223\002\n\022\010/v1/svis" + - "\022\202\001\n\006GetSvi\022/.opi_api.network.evpn_gw.v1" + - "alpha1.GetSviRequest\032%.opi_api.network.e" + - "vpn_gw.v1alpha1.Svi\" \202\323\344\223\002\023\022\021/v1/{name=s" + - "vis/*}\332A\004name\022y\n\tDeleteSvi\0222.opi_api.net" + - "work.evpn_gw.v1alpha1.DeleteSviRequest\032\026" + - ".google.protobuf.Empty\" \202\323\344\223\002\023*\021/v1/{nam" + - "e=svis/*}\332A\004name\022\234\001\n\tUpdateSvi\0222.opi_api" + - ".network.evpn_gw.v1alpha1.UpdateSviReque" + - "st\032%.opi_api.network.evpn_gw.v1alpha1.Sv" + - "i\"4\202\323\344\223\002\0342\025/v1/{svi.name=svis/*}:\003svi\332A\017" + - "svi,update_maskBw\n opi_api.network.evpn_" + - "gw.v1alpha1B\022L3XpuInfraMgrProtoP\001Z=githu" + - "b.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.protobuf.FieldMaskProto.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", "Vni", }); - 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", "AllowMissing", }); - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateVrfRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateVrfRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateVrfRequest_descriptor, - new java.lang.String[] { "Vrf", "UpdateMask", "AllowMissing", }); - internal_static_opi_api_network_evpn_gw_v1alpha1_Svi_descriptor = - getDescriptor().getMessageTypes().get(9); - 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(10); - 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(11); - 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(12); - 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(13); - 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(14); - 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(15); - 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(16); - 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", "AllowMissing", }); - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateSviRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateSviRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_opi_api_network_evpn_gw_v1alpha1_UpdateSviRequest_descriptor, - new java.lang.String[] { "Svi", "UpdateMask", "AllowMissing", }); - 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.protobuf.FieldMaskProto.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 deleted file mode 100644 index f635bef2..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LBOperStatus.java +++ /dev/null @@ -1,150 +0,0 @@ -// 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 deleted file mode 100644 index 5778edc3..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsRequest.java +++ /dev/null @@ -1,675 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * page size of list request
-     * 
- * - * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
-     * page token of list request
-     * 
- * - * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index e6b2f930..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * page token of list request
-   * 
- * - * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * page token of list request
-   * 
- * - * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index ccd69b35..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsResponse.java +++ /dev/null @@ -1,1038 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 deleted file mode 100644 index 6799ed42..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListBridgePortsResponseOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index f830b1ed..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesRequest.java +++ /dev/null @@ -1,675 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * page size of list request
-     * 
- * - * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
-     * page token of list request
-     * 
- * - * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 879528f9..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * page token of list request
-   * 
- * - * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * page token of list request
-   * 
- * - * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 67dbb648..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesResponse.java +++ /dev/null @@ -1,1038 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 deleted file mode 100644 index de10fd20..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListLogicalBridgesResponseOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 6befd0b1..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisRequest.java +++ /dev/null @@ -1,675 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * page size of list request
-     * 
- * - * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
-     * page token of list request
-     * 
- * - * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 11b4d377..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * page token of list request
-   * 
- * - * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * page token of list request
-   * 
- * - * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index d4f8b032..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisResponse.java +++ /dev/null @@ -1,1038 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 deleted file mode 100644 index 24a2184d..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListSvisResponseOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index bee8dcfe..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsRequest.java +++ /dev/null @@ -1,675 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * page size of list request
-     * 
- * - * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
-     * page token of list request
-     * 
- * - * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 7ce28c29..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// 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 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * page token of list request
-   * 
- * - * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * page token of list request
-   * 
- * - * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index de049bb8..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsResponse.java +++ /dev/null @@ -1,1038 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 deleted file mode 100644 index 85b936d8..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/ListVrfsResponseOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// 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 deleted file mode 100644 index 3e95f1f8..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridge.java +++ /dev/null @@ -1,1095 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 deleted file mode 100644 index 2555adc5..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -// 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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - *
-   * Logical Bridge network status
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The status. - */ - opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus getStatus(); - /** - *
-   * Logical Bridge network status
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 deleted file mode 100644 index b68a7ff3..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeServiceGrpc.java +++ /dev/null @@ -1,647 +0,0 @@ -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; - } - - private static volatile io.grpc.MethodDescriptor getUpdateLogicalBridgeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateLogicalBridge", - requestType = opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.class, - responseType = opi_api.network.evpn_gw.v1alpha1.LogicalBridge.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateLogicalBridgeMethod() { - io.grpc.MethodDescriptor getUpdateLogicalBridgeMethod; - if ((getUpdateLogicalBridgeMethod = LogicalBridgeServiceGrpc.getUpdateLogicalBridgeMethod) == null) { - synchronized (LogicalBridgeServiceGrpc.class) { - if ((getUpdateLogicalBridgeMethod = LogicalBridgeServiceGrpc.getUpdateLogicalBridgeMethod) == null) { - LogicalBridgeServiceGrpc.getUpdateLogicalBridgeMethod = getUpdateLogicalBridgeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateLogicalBridge")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - opi_api.network.evpn_gw.v1alpha1.LogicalBridge.getDefaultInstance())) - .setSchemaDescriptor(new LogicalBridgeServiceMethodDescriptorSupplier("UpdateLogicalBridge")) - .build(); - } - } - } - return getUpdateLogicalBridgeMethod; - } - - /** - * 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); - } - - /** - *
-     * Update a Logical Bridge
-     * 
- */ - public void updateLogicalBridge(opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateLogicalBridgeMethod(), 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))) - .addMethod( - getUpdateLogicalBridgeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest, - opi_api.network.evpn_gw.v1alpha1.LogicalBridge>( - this, METHODID_UPDATE_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); - } - - /** - *
-     * Update a Logical Bridge
-     * 
- */ - public void updateLogicalBridge(opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateLogicalBridgeMethod(), 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); - } - - /** - *
-     * Update a Logical Bridge
-     * 
- */ - public opi_api.network.evpn_gw.v1alpha1.LogicalBridge updateLogicalBridge(opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateLogicalBridgeMethod(), 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); - } - - /** - *
-     * Update a Logical Bridge
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateLogicalBridge( - opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateLogicalBridgeMethod(), 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 int METHODID_UPDATE_LOGICAL_BRIDGE = 4; - - 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; - case METHODID_UPDATE_LOGICAL_BRIDGE: - serviceImpl.updateLogicalBridge((opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) 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()) - .addMethod(getUpdateLogicalBridgeMethod()) - .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 deleted file mode 100644 index 29f892d8..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeSpec.java +++ /dev/null @@ -1,883 +0,0 @@ -// 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(); - } - 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: { - - vlanId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000001; - vni_ = input.readUInt32(); - 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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); - } - - private int bitField0_; - 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. --)
-   * 
- * - * optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the vni field is set. - */ - @java.lang.Override - public boolean hasVni() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   *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. --)
-   * 
- * - * optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The vni. - */ - @java.lang.Override - public int getVni() { - return vni_; - } - - 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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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 (vlanId_ != 0) { - output.writeUInt32(1, vlanId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeUInt32(2, vni_); - } - 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 (vlanId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, vlanId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, vni_); - } - 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.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 (hasVni() != other.hasVni()) return false; - if (hasVni()) { - if (getVni() - != other.getVni()) 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) + VLAN_ID_FIELD_NUMBER; - hash = (53 * hash) + getVlanId(); - if (hasVni()) { - hash = (37 * hash) + VNI_FIELD_NUMBER; - hash = (53 * hash) + getVni(); - } - 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.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; - bitField0_ = (bitField0_ & ~0x00000001); - 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.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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.vlanId_ = vlanId_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.vni_ = vni_; - to_bitField0_ |= 0x00000001; - } - if (vtepIpPrefixBuilder_ == null) { - result.vtepIpPrefix_ = vtepIpPrefix_; - } else { - result.vtepIpPrefix_ = vtepIpPrefixBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.hasVni()) { - setVni(other.getVni()); - } - 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.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 bitField0_; - - 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. --)
-     * 
- * - * optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the vni field is set. - */ - @java.lang.Override - public boolean hasVni() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     *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. --)
-     * 
- * - * optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @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. --)
-     * 
- * - * optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The vni to set. - * @return This builder for chaining. - */ - public Builder setVni(int value) { - bitField0_ |= 0x00000001; - 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. --)
-     * 
- * - * optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearVni() { - bitField0_ = (bitField0_ & ~0x00000001); - vni_ = 0; - onChanged(); - return this; - } - - 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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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.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 deleted file mode 100644 index 55853fdb..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeSpecOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// 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. --)
-   * 
- * - * optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the vni field is set. - */ - boolean hasVni(); - /** - *
-   *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. --)
-   * 
- * - * optional uint32 vni = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The vni. - */ - int getVni(); - - /** - *
-   * IPv4 or IPv6 IP address prefix for the VXLAN TEP
-   * 
- * - * .opi_api.network.opinetcommon.v1alpha1.IPPrefix vtep_ip_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - */ - opi_api.network.opinetcommon.v1alpha1.IPPrefixOrBuilder getVtepIpPrefixOrBuilder(); -} 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 deleted file mode 100644 index 78dad632..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeStatus.java +++ /dev/null @@ -1,553 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 deleted file mode 100644 index 59f89403..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/LogicalBridgeStatusOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 deleted file mode 100644 index 37407d6d..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SVIOperStatus.java +++ /dev/null @@ -1,150 +0,0 @@ -// 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 deleted file mode 100644 index a44cde68..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/Svi.java +++ /dev/null @@ -1,1095 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 deleted file mode 100644 index b03874ad..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -// 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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - *
-   * Svi's network status
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The status. - */ - opi_api.network.evpn_gw.v1alpha1.SviStatus getStatus(); - /** - *
-   * Svi's network status
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.SviStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 deleted file mode 100644 index 031e4e18..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviServiceGrpc.java +++ /dev/null @@ -1,647 +0,0 @@ -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; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSviMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSvi", - requestType = opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.class, - responseType = opi_api.network.evpn_gw.v1alpha1.Svi.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSviMethod() { - io.grpc.MethodDescriptor getUpdateSviMethod; - if ((getUpdateSviMethod = SviServiceGrpc.getUpdateSviMethod) == null) { - synchronized (SviServiceGrpc.class) { - if ((getUpdateSviMethod = SviServiceGrpc.getUpdateSviMethod) == null) { - SviServiceGrpc.getUpdateSviMethod = getUpdateSviMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSvi")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - opi_api.network.evpn_gw.v1alpha1.Svi.getDefaultInstance())) - .setSchemaDescriptor(new SviServiceMethodDescriptorSupplier("UpdateSvi")) - .build(); - } - } - } - return getUpdateSviMethod; - } - - /** - * 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); - } - - /** - *
-     * Update a Svi
-     * 
- */ - public void updateSvi(opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSviMethod(), 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))) - .addMethod( - getUpdateSviMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest, - opi_api.network.evpn_gw.v1alpha1.Svi>( - this, METHODID_UPDATE_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); - } - - /** - *
-     * Update a Svi
-     * 
- */ - public void updateSvi(opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSviMethod(), 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); - } - - /** - *
-     * Update a Svi
-     * 
- */ - public opi_api.network.evpn_gw.v1alpha1.Svi updateSvi(opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSviMethod(), 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); - } - - /** - *
-     * Update a Svi
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSvi( - opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSviMethod(), 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 int METHODID_UPDATE_SVI = 4; - - 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; - case METHODID_UPDATE_SVI: - serviceImpl.updateSvi((opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) 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()) - .addMethod(getUpdateSviMethod()) - .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 deleted file mode 100644 index 3f2b5615..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviSpec.java +++ /dev/null @@ -1,1471 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 083456c0..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviSpecOrBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -// 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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 deleted file mode 100644 index 5b942f56..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviStatus.java +++ /dev/null @@ -1,553 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 deleted file mode 100644 index 2abda7e6..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/SviStatusOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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/UpdateBridgePortRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateBridgePortRequest.java deleted file mode 100644 index 9c8f1468..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateBridgePortRequest.java +++ /dev/null @@ -1,986 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: l2_xpu_infra_mgr.proto - -package opi_api.network.evpn_gw.v1alpha1; - -/** - *
- * UpdateBridgePortRequest structure
- * 
- * - * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest} - */ -public final class UpdateBridgePortRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) - UpdateBridgePortRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateBridgePortRequest.newBuilder() to construct. - private UpdateBridgePortRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateBridgePortRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateBridgePortRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpdateBridgePortRequest( - 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: { - 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; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - allowMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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_UpdateBridgePortRequest_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_UpdateBridgePortRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.class, opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.Builder.class); - } - - public static final int BRIDGE_PORT_FIELD_NUMBER = 1; - private opi_api.network.evpn_gw.v1alpha1.BridgePort bridgePort_; - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the bridgePort field is set. - */ - @java.lang.Override - public boolean hasBridgePort() { - return bridgePort_ != null; - } - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.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 object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder getBridgePortOrBuilder() { - return getBridgePort(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int ALLOW_MISSING_FIELD_NUMBER = 3; - private boolean allowMissing_; - /** - *
-   * If set to true, and the object is not found, a new object will be created.
-   * In this situation, `update_mask` is ignored.
-   * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - - 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 (bridgePort_ != null) { - output.writeMessage(1, getBridgePort()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - if (allowMissing_ != false) { - output.writeBool(3, allowMissing_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (bridgePort_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBridgePort()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, allowMissing_); - } - 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.UpdateBridgePortRequest)) { - return super.equals(obj); - } - opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest other = (opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) obj; - - if (hasBridgePort() != other.hasBridgePort()) return false; - if (hasBridgePort()) { - if (!getBridgePort() - .equals(other.getBridgePort())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; - } - if (getAllowMissing() - != other.getAllowMissing()) 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 (hasBridgePort()) { - hash = (37 * hash) + BRIDGE_PORT_FIELD_NUMBER; - hash = (53 * hash) + getBridgePort().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest 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.UpdateBridgePortRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest 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.UpdateBridgePortRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest 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.UpdateBridgePortRequest 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.UpdateBridgePortRequest 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.UpdateBridgePortRequest 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.UpdateBridgePortRequest 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.UpdateBridgePortRequest 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.UpdateBridgePortRequest 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.UpdateBridgePortRequest 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; - } - /** - *
-   * UpdateBridgePortRequest structure
-   * 
- * - * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) - opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequestOrBuilder { - 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_UpdateBridgePortRequest_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_UpdateBridgePortRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.class, opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.Builder.class); - } - - // Construct using opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.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(); - if (bridgePortBuilder_ == null) { - bridgePort_ = null; - } else { - bridgePort_ = null; - bridgePortBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - allowMissing_ = false; - - 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_UpdateBridgePortRequest_descriptor; - } - - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest getDefaultInstanceForType() { - return opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.getDefaultInstance(); - } - - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest build() { - opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest buildPartial() { - opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest result = new opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest(this); - if (bridgePortBuilder_ == null) { - result.bridgePort_ = bridgePort_; - } else { - result.bridgePort_ = bridgePortBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.allowMissing_ = allowMissing_; - 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.UpdateBridgePortRequest) { - return mergeFrom((opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest other) { - if (other == opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest.getDefaultInstance()) return this; - if (other.hasBridgePort()) { - mergeBridgePort(other.getBridgePort()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.getAllowMissing() != false) { - setAllowMissing(other.getAllowMissing()); - } - 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.UpdateBridgePortRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the bridgePort field is set. - */ - public boolean hasBridgePort() { - return bridgePortBuilder_ != null || bridgePort_ != null; - } - /** - *
-     * The object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearBridgePort() { - if (bridgePortBuilder_ == null) { - bridgePort_ = null; - onChanged(); - } else { - bridgePort_ = null; - bridgePortBuilder_ = null; - } - - return this; - } - /** - *
-     * The object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public opi_api.network.evpn_gw.v1alpha1.BridgePort.Builder getBridgePortBuilder() { - - onChanged(); - return getBridgePortFieldBuilder().getBuilder(); - } - /** - *
-     * The object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.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_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private boolean allowMissing_ ; - /** - *
-     * If set to true, and the object is not found, a new object will be created.
-     * In this situation, `update_mask` is ignored.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - /** - *
-     * If set to true, and the object is not found, a new object will be created.
-     * In this situation, `update_mask` is ignored.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The allowMissing to set. - * @return This builder for chaining. - */ - public Builder setAllowMissing(boolean value) { - - allowMissing_ = value; - onChanged(); - return this; - } - /** - *
-     * If set to true, and the object is not found, a new object will be created.
-     * In this situation, `update_mask` is ignored.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAllowMissing() { - - allowMissing_ = false; - 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.UpdateBridgePortRequest) - } - - // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) - private static final opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest(); - } - - public static opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBridgePortRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateBridgePortRequest(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.UpdateBridgePortRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateBridgePortRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateBridgePortRequestOrBuilder.java deleted file mode 100644 index dc7a4e59..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateBridgePortRequestOrBuilder.java +++ /dev/null @@ -1,74 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: l2_xpu_infra_mgr.proto - -package opi_api.network.evpn_gw.v1alpha1; - -public interface UpdateBridgePortRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the bridgePort field is set. - */ - boolean hasBridgePort(); - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bridgePort. - */ - opi_api.network.evpn_gw.v1alpha1.BridgePort getBridgePort(); - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.BridgePort bridge_port = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - opi_api.network.evpn_gw.v1alpha1.BridgePortOrBuilder getBridgePortOrBuilder(); - - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - *
-   * If set to true, and the object is not found, a new object will be created.
-   * In this situation, `update_mask` is ignored.
-   * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - boolean getAllowMissing(); -} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateLogicalBridgeRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateLogicalBridgeRequest.java deleted file mode 100644 index 454ae0c5..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateLogicalBridgeRequest.java +++ /dev/null @@ -1,986 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: l2_xpu_infra_mgr.proto - -package opi_api.network.evpn_gw.v1alpha1; - -/** - *
- * UpdateLogicalBridgeRequest structure
- * 
- * - * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest} - */ -public final class UpdateLogicalBridgeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) - UpdateLogicalBridgeRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateLogicalBridgeRequest.newBuilder() to construct. - private UpdateLogicalBridgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateLogicalBridgeRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateLogicalBridgeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpdateLogicalBridgeRequest( - 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: { - 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; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - allowMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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_UpdateLogicalBridgeRequest_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_UpdateLogicalBridgeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.class, opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.Builder.class); - } - - public static final int LOGICAL_BRIDGE_FIELD_NUMBER = 1; - private opi_api.network.evpn_gw.v1alpha1.LogicalBridge logicalBridge_; - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the logicalBridge field is set. - */ - @java.lang.Override - public boolean hasLogicalBridge() { - return logicalBridge_ != null; - } - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.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 object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder getLogicalBridgeOrBuilder() { - return getLogicalBridge(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int ALLOW_MISSING_FIELD_NUMBER = 3; - private boolean allowMissing_; - /** - *
-   * If set to true, and the object is not found, a new object will be created.
-   * In this situation, `update_mask` is ignored.
-   * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - - 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 (logicalBridge_ != null) { - output.writeMessage(1, getLogicalBridge()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - if (allowMissing_ != false) { - output.writeBool(3, allowMissing_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (logicalBridge_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLogicalBridge()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, allowMissing_); - } - 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.UpdateLogicalBridgeRequest)) { - return super.equals(obj); - } - opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest other = (opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) obj; - - if (hasLogicalBridge() != other.hasLogicalBridge()) return false; - if (hasLogicalBridge()) { - if (!getLogicalBridge() - .equals(other.getLogicalBridge())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; - } - if (getAllowMissing() - != other.getAllowMissing()) 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 (hasLogicalBridge()) { - hash = (37 * hash) + LOGICAL_BRIDGE_FIELD_NUMBER; - hash = (53 * hash) + getLogicalBridge().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest 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.UpdateLogicalBridgeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest 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.UpdateLogicalBridgeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest 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.UpdateLogicalBridgeRequest 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.UpdateLogicalBridgeRequest 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.UpdateLogicalBridgeRequest 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.UpdateLogicalBridgeRequest 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.UpdateLogicalBridgeRequest 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.UpdateLogicalBridgeRequest 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.UpdateLogicalBridgeRequest 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; - } - /** - *
-   * UpdateLogicalBridgeRequest structure
-   * 
- * - * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) - opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequestOrBuilder { - 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_UpdateLogicalBridgeRequest_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_UpdateLogicalBridgeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.class, opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.Builder.class); - } - - // Construct using opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.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(); - if (logicalBridgeBuilder_ == null) { - logicalBridge_ = null; - } else { - logicalBridge_ = null; - logicalBridgeBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - allowMissing_ = false; - - 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_UpdateLogicalBridgeRequest_descriptor; - } - - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest getDefaultInstanceForType() { - return opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.getDefaultInstance(); - } - - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest build() { - opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest buildPartial() { - opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest result = new opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest(this); - if (logicalBridgeBuilder_ == null) { - result.logicalBridge_ = logicalBridge_; - } else { - result.logicalBridge_ = logicalBridgeBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.allowMissing_ = allowMissing_; - 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.UpdateLogicalBridgeRequest) { - return mergeFrom((opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest other) { - if (other == opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest.getDefaultInstance()) return this; - if (other.hasLogicalBridge()) { - mergeLogicalBridge(other.getLogicalBridge()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.getAllowMissing() != false) { - setAllowMissing(other.getAllowMissing()); - } - 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.UpdateLogicalBridgeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the logicalBridge field is set. - */ - public boolean hasLogicalBridge() { - return logicalBridgeBuilder_ != null || logicalBridge_ != null; - } - /** - *
-     * The object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearLogicalBridge() { - if (logicalBridgeBuilder_ == null) { - logicalBridge_ = null; - onChanged(); - } else { - logicalBridge_ = null; - logicalBridgeBuilder_ = null; - } - - return this; - } - /** - *
-     * The object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public opi_api.network.evpn_gw.v1alpha1.LogicalBridge.Builder getLogicalBridgeBuilder() { - - onChanged(); - return getLogicalBridgeFieldBuilder().getBuilder(); - } - /** - *
-     * The object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.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_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private boolean allowMissing_ ; - /** - *
-     * If set to true, and the object is not found, a new object will be created.
-     * In this situation, `update_mask` is ignored.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - /** - *
-     * If set to true, and the object is not found, a new object will be created.
-     * In this situation, `update_mask` is ignored.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The allowMissing to set. - * @return This builder for chaining. - */ - public Builder setAllowMissing(boolean value) { - - allowMissing_ = value; - onChanged(); - return this; - } - /** - *
-     * If set to true, and the object is not found, a new object will be created.
-     * In this situation, `update_mask` is ignored.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAllowMissing() { - - allowMissing_ = false; - 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.UpdateLogicalBridgeRequest) - } - - // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) - private static final opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest(); - } - - public static opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateLogicalBridgeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateLogicalBridgeRequest(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.UpdateLogicalBridgeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateLogicalBridgeRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateLogicalBridgeRequestOrBuilder.java deleted file mode 100644 index 973241cc..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateLogicalBridgeRequestOrBuilder.java +++ /dev/null @@ -1,74 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: l2_xpu_infra_mgr.proto - -package opi_api.network.evpn_gw.v1alpha1; - -public interface UpdateLogicalBridgeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the logicalBridge field is set. - */ - boolean hasLogicalBridge(); - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The logicalBridge. - */ - opi_api.network.evpn_gw.v1alpha1.LogicalBridge getLogicalBridge(); - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.LogicalBridge logical_bridge = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - opi_api.network.evpn_gw.v1alpha1.LogicalBridgeOrBuilder getLogicalBridgeOrBuilder(); - - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - *
-   * If set to true, and the object is not found, a new object will be created.
-   * In this situation, `update_mask` is ignored.
-   * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - boolean getAllowMissing(); -} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateSviRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateSviRequest.java deleted file mode 100644 index bb28f407..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateSviRequest.java +++ /dev/null @@ -1,986 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: l3_xpu_infra_mgr.proto - -package opi_api.network.evpn_gw.v1alpha1; - -/** - *
- * UpdateSviRequest structure
- * 
- * - * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest} - */ -public final class UpdateSviRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) - UpdateSviRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateSviRequest.newBuilder() to construct. - private UpdateSviRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateSviRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateSviRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpdateSviRequest( - 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: { - 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; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - allowMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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_UpdateSviRequest_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_UpdateSviRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.class, opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.Builder.class); - } - - public static final int SVI_FIELD_NUMBER = 1; - private opi_api.network.evpn_gw.v1alpha1.Svi svi_; - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the svi field is set. - */ - @java.lang.Override - public boolean hasSvi() { - return svi_ != null; - } - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.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 object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.SviOrBuilder getSviOrBuilder() { - return getSvi(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int ALLOW_MISSING_FIELD_NUMBER = 3; - private boolean allowMissing_; - /** - *
-   * If set to true, and the object is not found, a new object will be created.
-   * In this situation, `update_mask` is ignored.
-   * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - - 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 (svi_ != null) { - output.writeMessage(1, getSvi()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - if (allowMissing_ != false) { - output.writeBool(3, allowMissing_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (svi_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSvi()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, allowMissing_); - } - 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.UpdateSviRequest)) { - return super.equals(obj); - } - opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest other = (opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) obj; - - if (hasSvi() != other.hasSvi()) return false; - if (hasSvi()) { - if (!getSvi() - .equals(other.getSvi())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; - } - if (getAllowMissing() - != other.getAllowMissing()) 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 (hasSvi()) { - hash = (37 * hash) + SVI_FIELD_NUMBER; - hash = (53 * hash) + getSvi().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest 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.UpdateSviRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest 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.UpdateSviRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest 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.UpdateSviRequest 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.UpdateSviRequest 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.UpdateSviRequest 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.UpdateSviRequest 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.UpdateSviRequest 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.UpdateSviRequest 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.UpdateSviRequest 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; - } - /** - *
-   * UpdateSviRequest structure
-   * 
- * - * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) - opi_api.network.evpn_gw.v1alpha1.UpdateSviRequestOrBuilder { - 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_UpdateSviRequest_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_UpdateSviRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.class, opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.Builder.class); - } - - // Construct using opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.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(); - if (sviBuilder_ == null) { - svi_ = null; - } else { - svi_ = null; - sviBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - allowMissing_ = false; - - 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_UpdateSviRequest_descriptor; - } - - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest getDefaultInstanceForType() { - return opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.getDefaultInstance(); - } - - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest build() { - opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest buildPartial() { - opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest result = new opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest(this); - if (sviBuilder_ == null) { - result.svi_ = svi_; - } else { - result.svi_ = sviBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.allowMissing_ = allowMissing_; - 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.UpdateSviRequest) { - return mergeFrom((opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest other) { - if (other == opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest.getDefaultInstance()) return this; - if (other.hasSvi()) { - mergeSvi(other.getSvi()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.getAllowMissing() != false) { - setAllowMissing(other.getAllowMissing()); - } - 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.UpdateSviRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the svi field is set. - */ - public boolean hasSvi() { - return sviBuilder_ != null || svi_ != null; - } - /** - *
-     * The object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearSvi() { - if (sviBuilder_ == null) { - svi_ = null; - onChanged(); - } else { - svi_ = null; - sviBuilder_ = null; - } - - return this; - } - /** - *
-     * The object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public opi_api.network.evpn_gw.v1alpha1.Svi.Builder getSviBuilder() { - - onChanged(); - return getSviFieldBuilder().getBuilder(); - } - /** - *
-     * The object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.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_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private boolean allowMissing_ ; - /** - *
-     * If set to true, and the object is not found, a new object will be created.
-     * In this situation, `update_mask` is ignored.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - /** - *
-     * If set to true, and the object is not found, a new object will be created.
-     * In this situation, `update_mask` is ignored.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The allowMissing to set. - * @return This builder for chaining. - */ - public Builder setAllowMissing(boolean value) { - - allowMissing_ = value; - onChanged(); - return this; - } - /** - *
-     * If set to true, and the object is not found, a new object will be created.
-     * In this situation, `update_mask` is ignored.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAllowMissing() { - - allowMissing_ = false; - 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.UpdateSviRequest) - } - - // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) - private static final opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest(); - } - - public static opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSviRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSviRequest(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.UpdateSviRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateSviRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateSviRequestOrBuilder.java deleted file mode 100644 index a75b601d..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateSviRequestOrBuilder.java +++ /dev/null @@ -1,74 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: l3_xpu_infra_mgr.proto - -package opi_api.network.evpn_gw.v1alpha1; - -public interface UpdateSviRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the svi field is set. - */ - boolean hasSvi(); - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The svi. - */ - opi_api.network.evpn_gw.v1alpha1.Svi getSvi(); - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Svi svi = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - opi_api.network.evpn_gw.v1alpha1.SviOrBuilder getSviOrBuilder(); - - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - *
-   * If set to true, and the object is not found, a new object will be created.
-   * In this situation, `update_mask` is ignored.
-   * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - boolean getAllowMissing(); -} diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateVrfRequest.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateVrfRequest.java deleted file mode 100644 index 173d01b1..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateVrfRequest.java +++ /dev/null @@ -1,986 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: l3_xpu_infra_mgr.proto - -package opi_api.network.evpn_gw.v1alpha1; - -/** - *
- * UpdateVrfRequest structure
- * 
- * - * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest} - */ -public final class UpdateVrfRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) - UpdateVrfRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateVrfRequest.newBuilder() to construct. - private UpdateVrfRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateVrfRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateVrfRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpdateVrfRequest( - 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: { - 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; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - allowMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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_UpdateVrfRequest_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_UpdateVrfRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.class, opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.Builder.class); - } - - public static final int VRF_FIELD_NUMBER = 1; - private opi_api.network.evpn_gw.v1alpha1.Vrf vrf_; - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the vrf field is set. - */ - @java.lang.Override - public boolean hasVrf() { - return vrf_ != null; - } - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.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 object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder getVrfOrBuilder() { - return getVrf(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int ALLOW_MISSING_FIELD_NUMBER = 3; - private boolean allowMissing_; - /** - *
-   * If set to true, and the object is not found, a new object will be created.
-   * In this situation, `update_mask` is ignored.
-   * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - - 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 (vrf_ != null) { - output.writeMessage(1, getVrf()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - if (allowMissing_ != false) { - output.writeBool(3, allowMissing_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (vrf_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVrf()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, allowMissing_); - } - 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.UpdateVrfRequest)) { - return super.equals(obj); - } - opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest other = (opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) obj; - - if (hasVrf() != other.hasVrf()) return false; - if (hasVrf()) { - if (!getVrf() - .equals(other.getVrf())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; - } - if (getAllowMissing() - != other.getAllowMissing()) 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 (hasVrf()) { - hash = (37 * hash) + VRF_FIELD_NUMBER; - hash = (53 * hash) + getVrf().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest 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.UpdateVrfRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest 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.UpdateVrfRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest 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.UpdateVrfRequest 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.UpdateVrfRequest 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.UpdateVrfRequest 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.UpdateVrfRequest 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.UpdateVrfRequest 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.UpdateVrfRequest 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.UpdateVrfRequest 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; - } - /** - *
-   * UpdateVrfRequest structure
-   * 
- * - * Protobuf type {@code opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) - opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequestOrBuilder { - 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_UpdateVrfRequest_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_UpdateVrfRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.class, opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.Builder.class); - } - - // Construct using opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.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(); - if (vrfBuilder_ == null) { - vrf_ = null; - } else { - vrf_ = null; - vrfBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - allowMissing_ = false; - - 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_UpdateVrfRequest_descriptor; - } - - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest getDefaultInstanceForType() { - return opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.getDefaultInstance(); - } - - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest build() { - opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest buildPartial() { - opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest result = new opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest(this); - if (vrfBuilder_ == null) { - result.vrf_ = vrf_; - } else { - result.vrf_ = vrfBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.allowMissing_ = allowMissing_; - 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.UpdateVrfRequest) { - return mergeFrom((opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest other) { - if (other == opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.getDefaultInstance()) return this; - if (other.hasVrf()) { - mergeVrf(other.getVrf()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.getAllowMissing() != false) { - setAllowMissing(other.getAllowMissing()); - } - 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.UpdateVrfRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the vrf field is set. - */ - public boolean hasVrf() { - return vrfBuilder_ != null || vrf_ != null; - } - /** - *
-     * The object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearVrf() { - if (vrfBuilder_ == null) { - vrf_ = null; - onChanged(); - } else { - vrf_ = null; - vrfBuilder_ = null; - } - - return this; - } - /** - *
-     * The object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public opi_api.network.evpn_gw.v1alpha1.Vrf.Builder getVrfBuilder() { - - onChanged(); - return getVrfFieldBuilder().getBuilder(); - } - /** - *
-     * The object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.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 object's `name` field is used to identify the object to be updated.
-     * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.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_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * The list of fields to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private boolean allowMissing_ ; - /** - *
-     * If set to true, and the object is not found, a new object will be created.
-     * In this situation, `update_mask` is ignored.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - /** - *
-     * If set to true, and the object is not found, a new object will be created.
-     * In this situation, `update_mask` is ignored.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The allowMissing to set. - * @return This builder for chaining. - */ - public Builder setAllowMissing(boolean value) { - - allowMissing_ = value; - onChanged(); - return this; - } - /** - *
-     * If set to true, and the object is not found, a new object will be created.
-     * In this situation, `update_mask` is ignored.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAllowMissing() { - - allowMissing_ = false; - 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.UpdateVrfRequest) - } - - // @@protoc_insertion_point(class_scope:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) - private static final opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest(); - } - - public static opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateVrfRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateVrfRequest(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.UpdateVrfRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateVrfRequestOrBuilder.java b/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateVrfRequestOrBuilder.java deleted file mode 100644 index 3a66ff7e..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/UpdateVrfRequestOrBuilder.java +++ /dev/null @@ -1,74 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: l3_xpu_infra_mgr.proto - -package opi_api.network.evpn_gw.v1alpha1; - -public interface UpdateVrfRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the vrf field is set. - */ - boolean hasVrf(); - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The vrf. - */ - opi_api.network.evpn_gw.v1alpha1.Vrf getVrf(); - /** - *
-   * The object's `name` field is used to identify the object to be updated.
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.Vrf vrf = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - opi_api.network.evpn_gw.v1alpha1.VrfOrBuilder getVrfOrBuilder(); - - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * The list of fields to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - *
-   * If set to true, and the object is not found, a new object will be created.
-   * In this situation, `update_mask` is ignored.
-   * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - boolean getAllowMissing(); -} 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 deleted file mode 100644 index 7a2edce0..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VRFOperStatus.java +++ /dev/null @@ -1,150 +0,0 @@ -// 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 deleted file mode 100644 index e0c28c05..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/Vrf.java +++ /dev/null @@ -1,1095 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 deleted file mode 100644 index f5939fc9..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -// 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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = IDENTIFIER]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - *
-   * Vrf's network status
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The status. - */ - opi_api.network.evpn_gw.v1alpha1.VrfStatus getStatus(); - /** - *
-   * Vrf's network status
-   * 
- * - * .opi_api.network.evpn_gw.v1alpha1.VrfStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - 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 deleted file mode 100644 index dd13b122..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfServiceGrpc.java +++ /dev/null @@ -1,647 +0,0 @@ -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; - } - - private static volatile io.grpc.MethodDescriptor getUpdateVrfMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateVrf", - requestType = opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.class, - responseType = opi_api.network.evpn_gw.v1alpha1.Vrf.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateVrfMethod() { - io.grpc.MethodDescriptor getUpdateVrfMethod; - if ((getUpdateVrfMethod = VrfServiceGrpc.getUpdateVrfMethod) == null) { - synchronized (VrfServiceGrpc.class) { - if ((getUpdateVrfMethod = VrfServiceGrpc.getUpdateVrfMethod) == null) { - VrfServiceGrpc.getUpdateVrfMethod = getUpdateVrfMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVrf")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - opi_api.network.evpn_gw.v1alpha1.Vrf.getDefaultInstance())) - .setSchemaDescriptor(new VrfServiceMethodDescriptorSupplier("UpdateVrf")) - .build(); - } - } - } - return getUpdateVrfMethod; - } - - /** - * 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); - } - - /** - *
-     * Update a Vrf
-     * 
- */ - public void updateVrf(opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateVrfMethod(), 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))) - .addMethod( - getUpdateVrfMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest, - opi_api.network.evpn_gw.v1alpha1.Vrf>( - this, METHODID_UPDATE_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); - } - - /** - *
-     * Update a Vrf
-     * 
- */ - public void updateVrf(opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateVrfMethod(), 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); - } - - /** - *
-     * Update a Vrf
-     * 
- */ - public opi_api.network.evpn_gw.v1alpha1.Vrf updateVrf(opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateVrfMethod(), 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); - } - - /** - *
-     * Update a Vrf
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateVrf( - opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateVrfMethod(), 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 int METHODID_UPDATE_VRF = 4; - - 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; - case METHODID_UPDATE_VRF: - serviceImpl.updateVrf((opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest) 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()) - .addMethod(getUpdateVrfMethod()) - .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 deleted file mode 100644 index 6aaeae4c..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfSpec.java +++ /dev/null @@ -1,1031 +0,0 @@ -// 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(); - } - 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: { - bitField0_ |= 0x00000001; - 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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); - } - - private int bitField0_; - 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. --)
-   * 
- * - * optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the vni field is set. - */ - @java.lang.Override - public boolean hasVni() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * 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. --)
-   * 
- * - * optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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 (((bitField0_ & 0x00000001) != 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 (((bitField0_ & 0x00000001) != 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 (hasVni() != other.hasVni()) return false; - if (hasVni()) { - 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(); - if (hasVni()) { - 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; - bitField0_ = (bitField0_ & ~0x00000001); - 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); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.vni_ = vni_; - to_bitField0_ |= 0x00000001; - } - if (loopbackIpPrefixBuilder_ == null) { - result.loopbackIpPrefix_ = loopbackIpPrefix_; - } else { - result.loopbackIpPrefix_ = loopbackIpPrefixBuilder_.build(); - } - if (vtepIpPrefixBuilder_ == null) { - result.vtepIpPrefix_ = vtepIpPrefix_; - } else { - result.vtepIpPrefix_ = vtepIpPrefixBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.hasVni()) { - 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 bitField0_; - - 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. --)
-     * 
- * - * optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the vni field is set. - */ - @java.lang.Override - public boolean hasVni() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * 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. --)
-     * 
- * - * optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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. --)
-     * 
- * - * optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The vni to set. - * @return This builder for chaining. - */ - public Builder setVni(int value) { - bitField0_ |= 0x00000001; - 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. --)
-     * 
- * - * optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearVni() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 deleted file mode 100644 index 0d8bf311..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfSpecOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// 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. --)
-   * 
- * - * optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the vni field is set. - */ - boolean hasVni(); - /** - *
-   * 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. --)
-   * 
- * - * optional uint32 vni = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - * @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 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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 deleted file mode 100644 index 1d8627a1..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfStatus.java +++ /dev/null @@ -1,1727 +0,0 @@ -// 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return A list containing the importRts. - */ - public com.google.protobuf.ProtocolStringList - getImportRtsList() { - return importRts_; - } - /** - *
-   * List of import RTs
-   * 
- * - * repeated string import_rts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The count of importRts. - */ - public int getImportRtsCount() { - return importRts_.size(); - } - /** - *
-   * List of import RTs
-   * 
- * - * repeated string import_rts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return A list containing the exportRts. - */ - public com.google.protobuf.ProtocolStringList - getExportRtsList() { - return exportRts_; - } - /** - *
-   * List of export RTs
-   * 
- * - * repeated string export_rts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The count of exportRts. - */ - public int getExportRtsCount() { - return exportRts_.size(); - } - /** - *
-   * List of export RTs
-   * 
- * - * repeated string export_rts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearLocalAs() { - - localAs_ = 0; - onChanged(); - return this; - } - - private java.lang.Object rd_ = ""; - /** - *
-     * Route distinguisher
-     * 
- * - * string rd = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearRd() { - - rd_ = getDefaultInstance().getRd(); - onChanged(); - return this; - } - /** - *
-     * Route distinguisher
-     * 
- * - * string rd = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The rmac. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRmac() { - return rmac_; - } - /** - *
-     * Router MAC address of the Vrf
-     * 
- * - * bytes rmac = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return A list containing the importRts. - */ - public com.google.protobuf.ProtocolStringList - getImportRtsList() { - return importRts_.getUnmodifiableView(); - } - /** - *
-     * List of import RTs
-     * 
- * - * repeated string import_rts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The count of importRts. - */ - public int getImportRtsCount() { - return importRts_.size(); - } - /** - *
-     * List of import RTs
-     * 
- * - * repeated string import_rts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return A list containing the exportRts. - */ - public com.google.protobuf.ProtocolStringList - getExportRtsList() { - return exportRts_.getUnmodifiableView(); - } - /** - *
-     * List of export RTs
-     * 
- * - * repeated string export_rts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The count of exportRts. - */ - public int getExportRtsCount() { - return exportRts_.size(); - } - /** - *
-     * List of export RTs
-     * 
- * - * repeated string export_rts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 deleted file mode 100644 index 2264c317..00000000 --- a/network/evpn-gw/v1alpha1/gen/java/opi_api/network/evpn_gw/v1alpha1/VrfStatusOrBuilder.java +++ /dev/null @@ -1,209 +0,0 @@ -// 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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The localAs. - */ - int getLocalAs(); - - /** - *
-   * Route distinguisher
-   * 
- * - * string rd = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The rd. - */ - java.lang.String getRd(); - /** - *
-   * Route distinguisher
-   * 
- * - * string rd = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for rd. - */ - com.google.protobuf.ByteString - getRdBytes(); - - /** - *
-   * Router MAC address of the Vrf
-   * 
- * - * bytes rmac = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The rmac. - */ - com.google.protobuf.ByteString getRmac(); - - /** - *
-   * List of import RTs
-   * 
- * - * repeated string import_rts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return A list containing the importRts. - */ - java.util.List - getImportRtsList(); - /** - *
-   * List of import RTs
-   * 
- * - * repeated string import_rts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The count of importRts. - */ - int getImportRtsCount(); - /** - *
-   * List of import RTs
-   * 
- * - * repeated string import_rts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return A list containing the exportRts. - */ - java.util.List - getExportRtsList(); - /** - *
-   * List of export RTs
-   * 
- * - * repeated string export_rts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The count of exportRts. - */ - int getExportRtsCount(); - /** - *
-   * List of export RTs
-   * 
- * - * repeated string export_rts = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @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 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The operStatus. - */ - opi_api.network.evpn_gw.v1alpha1.VRFOperStatus getOperStatus(); -} 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 index 59ebe264..db270e28 100644 --- 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 @@ -1,11 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: l2_xpu_infra_mgr.proto +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,150 +21,150 @@ 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\x12networktypes.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x19google/api/resource.proto\"\xab\x02\n\rLogicalBridge\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x46\n\x04spec\x18\x02 \x01(\x0b\x32\x33.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpecB\x03\xe0\x41\x02\x12J\n\x06status\x18\x03 \x01(\x0b\x32\x35.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatusB\x03\xe0\x41\x03:s\xea\x41p\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge\x12\x1flogicalBridges/{logical_bridge}*\x0elogicalBridges2\rlogicalBridge\"\x96\x01\n\x11LogicalBridgeSpec\x12\x14\n\x07vlan_id\x18\x01 \x01(\rB\x03\xe0\x41\x02\x12\x15\n\x03vni\x18\x02 \x01(\rB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12L\n\x0evtep_ip_prefix\x18\x03 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x03\xe0\x41\x01\x42\x06\n\x04_vni\"_\n\x13LogicalBridgeStatus\x12H\n\x0boper_status\x18\x01 \x01(\x0e\x32..opi_api.network.evpn_gw.v1alpha1.LBOperStatusB\x03\xe0\x41\x03\"\x8a\x01\n\x1a\x43reateLogicalBridgeRequest\x12\x1e\n\x11logical_bridge_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12L\n\x0elogical_bridge\x18\x02 \x01(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeB\x03\xe0\x41\x02\"L\n\x19ListLogicalBridgesRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\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\"~\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\x12\x1a\n\rallow_missing\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xbc\x01\n\x1aUpdateLogicalBridgeRequest\x12L\n\x0elogical_bridge\x18\x01 \x01(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x93\x02\n\nBridgePort\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x43\n\x04spec\x18\x02 \x01(\x0b\x32\x30.opi_api.network.evpn_gw.v1alpha1.BridgePortSpecB\x03\xe0\x41\x02\x12G\n\x06status\x18\x03 \x01(\x0b\x32\x32.opi_api.network.evpn_gw.v1alpha1.BridgePortStatusB\x03\xe0\x41\x03:d\xea\x41\x61\n+opi_api.network.evpn_gw.v1alpha1/BridgePort\x12\x19\x62ridgePorts/{bridge_port}*\x0b\x62ridgePorts2\nbridgePort\"\x8e\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\x1c\n\x0flogical_bridges\x18\x03 \x03(\tB\x03\xe0\x41\x01\"\\\n\x10\x42ridgePortStatus\x12H\n\x0boper_status\x18\x01 \x01(\x0e\x32..opi_api.network.evpn_gw.v1alpha1.BPOperStatusB\x03\xe0\x41\x03\"~\n\x17\x43reateBridgePortRequest\x12\x1b\n\x0e\x62ridge_port_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x46\n\x0b\x62ridge_port\x18\x02 \x01(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePortB\x03\xe0\x41\x02\"I\n\x16ListBridgePortsRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"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\"x\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\x12\x1a\n\rallow_missing\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xb3\x01\n\x17UpdateBridgePortRequest\x12\x46\n\x0b\x62ridge_port\x18\x01 \x01(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePortB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01*^\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\xc9\x07\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\x04name\x12\xe5\x01\n\x13UpdateLogicalBridge\x12<.opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest\x1a/.opi_api.network.evpn_gw.v1alpha1.LogicalBridge\"_\x82\xd3\xe4\x93\x02<2*/v1/{logical_bridge.name=logicalBridges/*}:\x0elogical_bridge\xda\x41\x1alogical_bridge,update_mask2\xfb\x06\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\x04name\x12\xd0\x01\n\x10UpdateBridgePort\x12\x39.opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest\x1a,.opi_api.network.evpn_gw.v1alpha1.BridgePort\"S\x82\xd3\xe4\x93\x02\x33\x32$/v1/{bridge_port.name=bridgePorts/*}:\x0b\x62ridge_port\xda\x41\x17\x62ridge_port,update_maskBw\n opi_api.network.evpn_gw.v1alpha1B\x12L2XpuInfraMgrProtoP\x01Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/gob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16l2_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 google/protobuf/field_mask.proto\x1a\x19google/api/resource.proto\"\xc2\x02\n\rLogicalBridge\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12M\n\x04spec\x18\x02 \x01(\x0b\x32\x33.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeSpecB\x04\xe2\x41\x01\x02R\x04spec\x12S\n\x06status\x18\x03 \x01(\x0b\x32\x35.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeStatusB\x04\xe2\x41\x01\x03R\x06status:s\xea\x41p\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge\x12\x1flogicalBridges/{logical_bridge}*\x0elogicalBridges2\rlogicalBridge\"\xb4\x01\n\x11LogicalBridgeSpec\x12\x1d\n\x07vlan_id\x18\x01 \x01(\rB\x04\xe2\x41\x01\x02R\x06vlanId\x12\x1b\n\x03vni\x18\x02 \x01(\rB\x04\xe2\x41\x01\x01H\x00R\x03vni\x88\x01\x01\x12[\n\x0evtep_ip_prefix\x18\x03 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x04\xe2\x41\x01\x01R\x0cvtepIpPrefixB\x06\n\x04_vni\"l\n\x13LogicalBridgeStatus\x12U\n\x0boper_status\x18\x01 \x01(\x0e\x32..opi_api.network.evpn_gw.v1alpha1.LBOperStatusB\x04\xe2\x41\x01\x03R\noperStatus\"\xac\x01\n\x1a\x43reateLogicalBridgeRequest\x12\x30\n\x11logical_bridge_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\x0flogicalBridgeId\x12\\\n\x0elogical_bridge\x18\x02 \x01(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeB\x04\xe2\x41\x01\x02R\rlogicalBridge\"c\n\x19ListLogicalBridgesRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"\x9e\x01\n\x1aListLogicalBridgesResponse\x12X\n\x0flogical_bridges\x18\x01 \x03(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeR\x0elogicalBridges\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"f\n\x17GetLogicalBridgeRequest\x12K\n\x04name\x18\x01 \x01(\tB7\xe2\x41\x01\x02\xfa\x41\x30\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridgeR\x04name\"\x94\x01\n\x1a\x44\x65leteLogicalBridgeRequest\x12K\n\x04name\x18\x01 \x01(\tB7\xe2\x41\x01\x02\xfa\x41\x30\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridgeR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xe8\x01\n\x1aUpdateLogicalBridgeRequest\x12\\\n\x0elogical_bridge\x18\x01 \x01(\x0b\x32/.opi_api.network.evpn_gw.v1alpha1.LogicalBridgeB\x04\xe2\x41\x01\x02R\rlogicalBridge\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xaa\x02\n\nBridgePort\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12J\n\x04spec\x18\x02 \x01(\x0b\x32\x30.opi_api.network.evpn_gw.v1alpha1.BridgePortSpecB\x04\xe2\x41\x01\x02R\x04spec\x12P\n\x06status\x18\x03 \x01(\x0b\x32\x32.opi_api.network.evpn_gw.v1alpha1.BridgePortStatusB\x04\xe2\x41\x01\x03R\x06status:d\xea\x41\x61\n+opi_api.network.evpn_gw.v1alpha1/BridgePort\x12\x19\x62ridgePorts/{bridge_port}*\x0b\x62ridgePorts2\nbridgePort\"\xb4\x01\n\x0e\x42ridgePortSpec\x12%\n\x0bmac_address\x18\x01 \x01(\x0c\x42\x04\xe2\x41\x01\x02R\nmacAddress\x12L\n\x05ptype\x18\x02 \x01(\x0e\x32\x30.opi_api.network.evpn_gw.v1alpha1.BridgePortTypeB\x04\xe2\x41\x01\x02R\x05ptype\x12-\n\x0flogical_bridges\x18\x03 \x03(\tB\x04\xe2\x41\x01\x01R\x0elogicalBridges\"i\n\x10\x42ridgePortStatus\x12U\n\x0boper_status\x18\x01 \x01(\x0e\x32..opi_api.network.evpn_gw.v1alpha1.BPOperStatusB\x04\xe2\x41\x01\x03R\noperStatus\"\x9a\x01\n\x17\x43reateBridgePortRequest\x12*\n\x0e\x62ridge_port_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\x0c\x62ridgePortId\x12S\n\x0b\x62ridge_port\x18\x02 \x01(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePortB\x04\xe2\x41\x01\x02R\nbridgePort\"`\n\x16ListBridgePortsRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"\x92\x01\n\x17ListBridgePortsResponse\x12O\n\x0c\x62ridge_ports\x18\x01 \x03(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePortR\x0b\x62ridgePorts\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"`\n\x14GetBridgePortRequest\x12H\n\x04name\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+opi_api.network.evpn_gw.v1alpha1/BridgePortR\x04name\"\x8e\x01\n\x17\x44\x65leteBridgePortRequest\x12H\n\x04name\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+opi_api.network.evpn_gw.v1alpha1/BridgePortR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xdc\x01\n\x17UpdateBridgePortRequest\x12S\n\x0b\x62ridge_port\x18\x01 \x01(\x0b\x32,.opi_api.network.evpn_gw.v1alpha1.BridgePortB\x04\xe2\x41\x01\x02R\nbridgePort\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing*^\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*k\n\x0e\x42ridgePortType\x12 \n\x1c\x42RIDGE_PORT_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x42RIDGE_PORT_TYPE_ACCESS\x10\x01\x12\x1a\n\x16\x42RIDGE_PORT_TYPE_TRUNK\x10\x02\x32\xc9\x07\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\xda\x41 logical_bridge,logical_bridge_id\x82\xd3\xe4\x93\x02$\"\x12/v1/logicalBridges:\x0elogical_bridge\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\"*\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1d\x12\x1b/v1/{name=logicalBridges/*}\x12\x97\x01\n\x13\x44\x65leteLogicalBridge\x12<.opi_api.network.evpn_gw.v1alpha1.DeleteLogicalBridgeRequest\x1a\x16.google.protobuf.Empty\"*\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1d*\x1b/v1/{name=logicalBridges/*}\x12\xe5\x01\n\x13UpdateLogicalBridge\x12<.opi_api.network.evpn_gw.v1alpha1.UpdateLogicalBridgeRequest\x1a/.opi_api.network.evpn_gw.v1alpha1.LogicalBridge\"_\xda\x41\x1alogical_bridge,update_mask\x82\xd3\xe4\x93\x02<2*/v1/{logical_bridge.name=logicalBridges/*}:\x0elogical_bridge2\xfb\x06\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\xda\x41\x1a\x62ridge_port,bridge_port_id\x82\xd3\xe4\x93\x02\x1e\"\x0f/v1/bridgePorts:\x0b\x62ridge_port\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\"\'\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1a\x12\x18/v1/{name=bridgePorts/*}\x12\x8e\x01\n\x10\x44\x65leteBridgePort\x12\x39.opi_api.network.evpn_gw.v1alpha1.DeleteBridgePortRequest\x1a\x16.google.protobuf.Empty\"\'\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1a*\x18/v1/{name=bridgePorts/*}\x12\xd0\x01\n\x10UpdateBridgePort\x12\x39.opi_api.network.evpn_gw.v1alpha1.UpdateBridgePortRequest\x1a,.opi_api.network.evpn_gw.v1alpha1.BridgePort\"S\xda\x41\x17\x62ridge_port,update_mask\x82\xd3\xe4\x93\x02\x33\x32$/v1/{bridge_port.name=bridgePorts/*}:\x0b\x62ridge_portBw\n opi_api.network.evpn_gw.v1alpha1B\x12L2XpuInfraMgrProtoP\x01Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/gob\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'l2_xpu_infra_mgr_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'l2_xpu_infra_mgr_pb2', _globals) 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['name']._options = None - _LOGICALBRIDGE.fields_by_name['name']._serialized_options = b'\340A\010' - _LOGICALBRIDGE.fields_by_name['spec']._options = None - _LOGICALBRIDGE.fields_by_name['spec']._serialized_options = b'\340A\002' - _LOGICALBRIDGE.fields_by_name['status']._options = None - _LOGICALBRIDGE.fields_by_name['status']._serialized_options = b'\340A\003' - _LOGICALBRIDGE._options = None - _LOGICALBRIDGE._serialized_options = b'\352Ap\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge\022\037logicalBridges/{logical_bridge}*\016logicalBridges2\rlogicalBridge' - _LOGICALBRIDGESPEC.fields_by_name['vlan_id']._options = None - _LOGICALBRIDGESPEC.fields_by_name['vlan_id']._serialized_options = b'\340A\002' - _LOGICALBRIDGESPEC.fields_by_name['vni']._options = None - _LOGICALBRIDGESPEC.fields_by_name['vni']._serialized_options = b'\340A\001' - _LOGICALBRIDGESPEC.fields_by_name['vtep_ip_prefix']._options = None - _LOGICALBRIDGESPEC.fields_by_name['vtep_ip_prefix']._serialized_options = b'\340A\001' - _LOGICALBRIDGESTATUS.fields_by_name['oper_status']._options = None - _LOGICALBRIDGESTATUS.fields_by_name['oper_status']._serialized_options = b'\340A\003' - _CREATELOGICALBRIDGEREQUEST.fields_by_name['logical_bridge_id']._options = None - _CREATELOGICALBRIDGEREQUEST.fields_by_name['logical_bridge_id']._serialized_options = b'\340A\001' - _CREATELOGICALBRIDGEREQUEST.fields_by_name['logical_bridge']._options = None - _CREATELOGICALBRIDGEREQUEST.fields_by_name['logical_bridge']._serialized_options = b'\340A\002' - _LISTLOGICALBRIDGESREQUEST.fields_by_name['page_size']._options = None - _LISTLOGICALBRIDGESREQUEST.fields_by_name['page_size']._serialized_options = b'\340A\001' - _LISTLOGICALBRIDGESREQUEST.fields_by_name['page_token']._options = None - _LISTLOGICALBRIDGESREQUEST.fields_by_name['page_token']._serialized_options = b'\340A\001' - _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' - _DELETELOGICALBRIDGEREQUEST.fields_by_name['allow_missing']._options = None - _DELETELOGICALBRIDGEREQUEST.fields_by_name['allow_missing']._serialized_options = b'\340A\001' - _UPDATELOGICALBRIDGEREQUEST.fields_by_name['logical_bridge']._options = None - _UPDATELOGICALBRIDGEREQUEST.fields_by_name['logical_bridge']._serialized_options = b'\340A\002' - _UPDATELOGICALBRIDGEREQUEST.fields_by_name['update_mask']._options = None - _UPDATELOGICALBRIDGEREQUEST.fields_by_name['update_mask']._serialized_options = b'\340A\001' - _UPDATELOGICALBRIDGEREQUEST.fields_by_name['allow_missing']._options = None - _UPDATELOGICALBRIDGEREQUEST.fields_by_name['allow_missing']._serialized_options = b'\340A\001' - _BRIDGEPORT.fields_by_name['name']._options = None - _BRIDGEPORT.fields_by_name['name']._serialized_options = b'\340A\010' - _BRIDGEPORT.fields_by_name['spec']._options = None - _BRIDGEPORT.fields_by_name['spec']._serialized_options = b'\340A\002' - _BRIDGEPORT.fields_by_name['status']._options = None - _BRIDGEPORT.fields_by_name['status']._serialized_options = b'\340A\003' - _BRIDGEPORT._options = None - _BRIDGEPORT._serialized_options = b'\352Aa\n+opi_api.network.evpn_gw.v1alpha1/BridgePort\022\031bridgePorts/{bridge_port}*\013bridgePorts2\nbridgePort' - _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' - _BRIDGEPORTSPEC.fields_by_name['logical_bridges']._options = None - _BRIDGEPORTSPEC.fields_by_name['logical_bridges']._serialized_options = b'\340A\001' - _BRIDGEPORTSTATUS.fields_by_name['oper_status']._options = None - _BRIDGEPORTSTATUS.fields_by_name['oper_status']._serialized_options = b'\340A\003' - _CREATEBRIDGEPORTREQUEST.fields_by_name['bridge_port_id']._options = None - _CREATEBRIDGEPORTREQUEST.fields_by_name['bridge_port_id']._serialized_options = b'\340A\001' - _CREATEBRIDGEPORTREQUEST.fields_by_name['bridge_port']._options = None - _CREATEBRIDGEPORTREQUEST.fields_by_name['bridge_port']._serialized_options = b'\340A\002' - _LISTBRIDGEPORTSREQUEST.fields_by_name['page_size']._options = None - _LISTBRIDGEPORTSREQUEST.fields_by_name['page_size']._serialized_options = b'\340A\001' - _LISTBRIDGEPORTSREQUEST.fields_by_name['page_token']._options = None - _LISTBRIDGEPORTSREQUEST.fields_by_name['page_token']._serialized_options = b'\340A\001' - _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' - _DELETEBRIDGEPORTREQUEST.fields_by_name['allow_missing']._options = None - _DELETEBRIDGEPORTREQUEST.fields_by_name['allow_missing']._serialized_options = b'\340A\001' - _UPDATEBRIDGEPORTREQUEST.fields_by_name['bridge_port']._options = None - _UPDATEBRIDGEPORTREQUEST.fields_by_name['bridge_port']._serialized_options = b'\340A\002' - _UPDATEBRIDGEPORTREQUEST.fields_by_name['update_mask']._options = None - _UPDATEBRIDGEPORTREQUEST.fields_by_name['update_mask']._serialized_options = b'\340A\001' - _UPDATEBRIDGEPORTREQUEST.fields_by_name['allow_missing']._options = None - _UPDATEBRIDGEPORTREQUEST.fields_by_name['allow_missing']._serialized_options = b'\340A\001' - _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' - _LOGICALBRIDGESERVICE.methods_by_name['UpdateLogicalBridge']._options = None - _LOGICALBRIDGESERVICE.methods_by_name['UpdateLogicalBridge']._serialized_options = b'\202\323\344\223\002<2*/v1/{logical_bridge.name=logicalBridges/*}:\016logical_bridge\332A\032logical_bridge,update_mask' - _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' - _BRIDGEPORTSERVICE.methods_by_name['UpdateBridgePort']._options = None - _BRIDGEPORTSERVICE.methods_by_name['UpdateBridgePort']._serialized_options = b'\202\323\344\223\00232$/v1/{bridge_port.name=bridgePorts/*}:\013bridge_port\332A\027bridge_port,update_mask' - _LBOPERSTATUS._serialized_start=2809 - _LBOPERSTATUS._serialized_end=2903 - _BPOPERSTATUS._serialized_start=2905 - _BPOPERSTATUS._serialized_end=2999 - _BRIDGEPORTTYPE._serialized_start=3001 - _BRIDGEPORTTYPE._serialized_end=3053 - _LOGICALBRIDGE._serialized_start=259 - _LOGICALBRIDGE._serialized_end=558 - _LOGICALBRIDGESPEC._serialized_start=561 - _LOGICALBRIDGESPEC._serialized_end=711 - _LOGICALBRIDGESTATUS._serialized_start=713 - _LOGICALBRIDGESTATUS._serialized_end=808 - _CREATELOGICALBRIDGEREQUEST._serialized_start=811 - _CREATELOGICALBRIDGEREQUEST._serialized_end=949 - _LISTLOGICALBRIDGESREQUEST._serialized_start=951 - _LISTLOGICALBRIDGESREQUEST._serialized_end=1027 - _LISTLOGICALBRIDGESRESPONSE._serialized_start=1029 - _LISTLOGICALBRIDGESRESPONSE._serialized_end=1156 - _GETLOGICALBRIDGEREQUEST._serialized_start=1158 - _GETLOGICALBRIDGEREQUEST._serialized_end=1253 - _DELETELOGICALBRIDGEREQUEST._serialized_start=1255 - _DELETELOGICALBRIDGEREQUEST._serialized_end=1381 - _UPDATELOGICALBRIDGEREQUEST._serialized_start=1384 - _UPDATELOGICALBRIDGEREQUEST._serialized_end=1572 - _BRIDGEPORT._serialized_start=1575 - _BRIDGEPORT._serialized_end=1850 - _BRIDGEPORTSPEC._serialized_start=1853 - _BRIDGEPORTSPEC._serialized_end=1995 - _BRIDGEPORTSTATUS._serialized_start=1997 - _BRIDGEPORTSTATUS._serialized_end=2089 - _CREATEBRIDGEPORTREQUEST._serialized_start=2091 - _CREATEBRIDGEPORTREQUEST._serialized_end=2217 - _LISTBRIDGEPORTSREQUEST._serialized_start=2219 - _LISTBRIDGEPORTSREQUEST._serialized_end=2292 - _LISTBRIDGEPORTSRESPONSE._serialized_start=2294 - _LISTBRIDGEPORTSRESPONSE._serialized_end=2412 - _GETBRIDGEPORTREQUEST._serialized_start=2414 - _GETBRIDGEPORTREQUEST._serialized_end=2503 - _DELETEBRIDGEPORTREQUEST._serialized_start=2505 - _DELETEBRIDGEPORTREQUEST._serialized_end=2625 - _UPDATEBRIDGEPORTREQUEST._serialized_start=2628 - _UPDATEBRIDGEPORTREQUEST._serialized_end=2807 - _LOGICALBRIDGESERVICE._serialized_start=3056 - _LOGICALBRIDGESERVICE._serialized_end=4025 - _BRIDGEPORTSERVICE._serialized_start=4028 - _BRIDGEPORTSERVICE._serialized_end=4919 + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n opi_api.network.evpn_gw.v1alpha1B\022L2XpuInfraMgrProtoP\001Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/go' + _globals['_LOGICALBRIDGE'].fields_by_name['name']._options = None + _globals['_LOGICALBRIDGE'].fields_by_name['name']._serialized_options = b'\342A\001\010' + _globals['_LOGICALBRIDGE'].fields_by_name['spec']._options = None + _globals['_LOGICALBRIDGE'].fields_by_name['spec']._serialized_options = b'\342A\001\002' + _globals['_LOGICALBRIDGE'].fields_by_name['status']._options = None + _globals['_LOGICALBRIDGE'].fields_by_name['status']._serialized_options = b'\342A\001\003' + _globals['_LOGICALBRIDGE']._options = None + _globals['_LOGICALBRIDGE']._serialized_options = b'\352Ap\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge\022\037logicalBridges/{logical_bridge}*\016logicalBridges2\rlogicalBridge' + _globals['_LOGICALBRIDGESPEC'].fields_by_name['vlan_id']._options = None + _globals['_LOGICALBRIDGESPEC'].fields_by_name['vlan_id']._serialized_options = b'\342A\001\002' + _globals['_LOGICALBRIDGESPEC'].fields_by_name['vni']._options = None + _globals['_LOGICALBRIDGESPEC'].fields_by_name['vni']._serialized_options = b'\342A\001\001' + _globals['_LOGICALBRIDGESPEC'].fields_by_name['vtep_ip_prefix']._options = None + _globals['_LOGICALBRIDGESPEC'].fields_by_name['vtep_ip_prefix']._serialized_options = b'\342A\001\001' + _globals['_LOGICALBRIDGESTATUS'].fields_by_name['oper_status']._options = None + _globals['_LOGICALBRIDGESTATUS'].fields_by_name['oper_status']._serialized_options = b'\342A\001\003' + _globals['_CREATELOGICALBRIDGEREQUEST'].fields_by_name['logical_bridge_id']._options = None + _globals['_CREATELOGICALBRIDGEREQUEST'].fields_by_name['logical_bridge_id']._serialized_options = b'\342A\001\001' + _globals['_CREATELOGICALBRIDGEREQUEST'].fields_by_name['logical_bridge']._options = None + _globals['_CREATELOGICALBRIDGEREQUEST'].fields_by_name['logical_bridge']._serialized_options = b'\342A\001\002' + _globals['_LISTLOGICALBRIDGESREQUEST'].fields_by_name['page_size']._options = None + _globals['_LISTLOGICALBRIDGESREQUEST'].fields_by_name['page_size']._serialized_options = b'\342A\001\001' + _globals['_LISTLOGICALBRIDGESREQUEST'].fields_by_name['page_token']._options = None + _globals['_LISTLOGICALBRIDGESREQUEST'].fields_by_name['page_token']._serialized_options = b'\342A\001\001' + _globals['_GETLOGICALBRIDGEREQUEST'].fields_by_name['name']._options = None + _globals['_GETLOGICALBRIDGEREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A0\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge' + _globals['_DELETELOGICALBRIDGEREQUEST'].fields_by_name['name']._options = None + _globals['_DELETELOGICALBRIDGEREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A0\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge' + _globals['_DELETELOGICALBRIDGEREQUEST'].fields_by_name['allow_missing']._options = None + _globals['_DELETELOGICALBRIDGEREQUEST'].fields_by_name['allow_missing']._serialized_options = b'\342A\001\001' + _globals['_UPDATELOGICALBRIDGEREQUEST'].fields_by_name['logical_bridge']._options = None + _globals['_UPDATELOGICALBRIDGEREQUEST'].fields_by_name['logical_bridge']._serialized_options = b'\342A\001\002' + _globals['_UPDATELOGICALBRIDGEREQUEST'].fields_by_name['update_mask']._options = None + _globals['_UPDATELOGICALBRIDGEREQUEST'].fields_by_name['update_mask']._serialized_options = b'\342A\001\001' + _globals['_UPDATELOGICALBRIDGEREQUEST'].fields_by_name['allow_missing']._options = None + _globals['_UPDATELOGICALBRIDGEREQUEST'].fields_by_name['allow_missing']._serialized_options = b'\342A\001\001' + _globals['_BRIDGEPORT'].fields_by_name['name']._options = None + _globals['_BRIDGEPORT'].fields_by_name['name']._serialized_options = b'\342A\001\010' + _globals['_BRIDGEPORT'].fields_by_name['spec']._options = None + _globals['_BRIDGEPORT'].fields_by_name['spec']._serialized_options = b'\342A\001\002' + _globals['_BRIDGEPORT'].fields_by_name['status']._options = None + _globals['_BRIDGEPORT'].fields_by_name['status']._serialized_options = b'\342A\001\003' + _globals['_BRIDGEPORT']._options = None + _globals['_BRIDGEPORT']._serialized_options = b'\352Aa\n+opi_api.network.evpn_gw.v1alpha1/BridgePort\022\031bridgePorts/{bridge_port}*\013bridgePorts2\nbridgePort' + _globals['_BRIDGEPORTSPEC'].fields_by_name['mac_address']._options = None + _globals['_BRIDGEPORTSPEC'].fields_by_name['mac_address']._serialized_options = b'\342A\001\002' + _globals['_BRIDGEPORTSPEC'].fields_by_name['ptype']._options = None + _globals['_BRIDGEPORTSPEC'].fields_by_name['ptype']._serialized_options = b'\342A\001\002' + _globals['_BRIDGEPORTSPEC'].fields_by_name['logical_bridges']._options = None + _globals['_BRIDGEPORTSPEC'].fields_by_name['logical_bridges']._serialized_options = b'\342A\001\001' + _globals['_BRIDGEPORTSTATUS'].fields_by_name['oper_status']._options = None + _globals['_BRIDGEPORTSTATUS'].fields_by_name['oper_status']._serialized_options = b'\342A\001\003' + _globals['_CREATEBRIDGEPORTREQUEST'].fields_by_name['bridge_port_id']._options = None + _globals['_CREATEBRIDGEPORTREQUEST'].fields_by_name['bridge_port_id']._serialized_options = b'\342A\001\001' + _globals['_CREATEBRIDGEPORTREQUEST'].fields_by_name['bridge_port']._options = None + _globals['_CREATEBRIDGEPORTREQUEST'].fields_by_name['bridge_port']._serialized_options = b'\342A\001\002' + _globals['_LISTBRIDGEPORTSREQUEST'].fields_by_name['page_size']._options = None + _globals['_LISTBRIDGEPORTSREQUEST'].fields_by_name['page_size']._serialized_options = b'\342A\001\001' + _globals['_LISTBRIDGEPORTSREQUEST'].fields_by_name['page_token']._options = None + _globals['_LISTBRIDGEPORTSREQUEST'].fields_by_name['page_token']._serialized_options = b'\342A\001\001' + _globals['_GETBRIDGEPORTREQUEST'].fields_by_name['name']._options = None + _globals['_GETBRIDGEPORTREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A-\n+opi_api.network.evpn_gw.v1alpha1/BridgePort' + _globals['_DELETEBRIDGEPORTREQUEST'].fields_by_name['name']._options = None + _globals['_DELETEBRIDGEPORTREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A-\n+opi_api.network.evpn_gw.v1alpha1/BridgePort' + _globals['_DELETEBRIDGEPORTREQUEST'].fields_by_name['allow_missing']._options = None + _globals['_DELETEBRIDGEPORTREQUEST'].fields_by_name['allow_missing']._serialized_options = b'\342A\001\001' + _globals['_UPDATEBRIDGEPORTREQUEST'].fields_by_name['bridge_port']._options = None + _globals['_UPDATEBRIDGEPORTREQUEST'].fields_by_name['bridge_port']._serialized_options = b'\342A\001\002' + _globals['_UPDATEBRIDGEPORTREQUEST'].fields_by_name['update_mask']._options = None + _globals['_UPDATEBRIDGEPORTREQUEST'].fields_by_name['update_mask']._serialized_options = b'\342A\001\001' + _globals['_UPDATEBRIDGEPORTREQUEST'].fields_by_name['allow_missing']._options = None + _globals['_UPDATEBRIDGEPORTREQUEST'].fields_by_name['allow_missing']._serialized_options = b'\342A\001\001' + _globals['_LOGICALBRIDGESERVICE'].methods_by_name['CreateLogicalBridge']._options = None + _globals['_LOGICALBRIDGESERVICE'].methods_by_name['CreateLogicalBridge']._serialized_options = b'\332A logical_bridge,logical_bridge_id\202\323\344\223\002$\"\022/v1/logicalBridges:\016logical_bridge' + _globals['_LOGICALBRIDGESERVICE'].methods_by_name['ListLogicalBridges']._options = None + _globals['_LOGICALBRIDGESERVICE'].methods_by_name['ListLogicalBridges']._serialized_options = b'\202\323\344\223\002\024\022\022/v1/logicalBridges' + _globals['_LOGICALBRIDGESERVICE'].methods_by_name['GetLogicalBridge']._options = None + _globals['_LOGICALBRIDGESERVICE'].methods_by_name['GetLogicalBridge']._serialized_options = b'\332A\004name\202\323\344\223\002\035\022\033/v1/{name=logicalBridges/*}' + _globals['_LOGICALBRIDGESERVICE'].methods_by_name['DeleteLogicalBridge']._options = None + _globals['_LOGICALBRIDGESERVICE'].methods_by_name['DeleteLogicalBridge']._serialized_options = b'\332A\004name\202\323\344\223\002\035*\033/v1/{name=logicalBridges/*}' + _globals['_LOGICALBRIDGESERVICE'].methods_by_name['UpdateLogicalBridge']._options = None + _globals['_LOGICALBRIDGESERVICE'].methods_by_name['UpdateLogicalBridge']._serialized_options = b'\332A\032logical_bridge,update_mask\202\323\344\223\002<2*/v1/{logical_bridge.name=logicalBridges/*}:\016logical_bridge' + _globals['_BRIDGEPORTSERVICE'].methods_by_name['CreateBridgePort']._options = None + _globals['_BRIDGEPORTSERVICE'].methods_by_name['CreateBridgePort']._serialized_options = b'\332A\032bridge_port,bridge_port_id\202\323\344\223\002\036\"\017/v1/bridgePorts:\013bridge_port' + _globals['_BRIDGEPORTSERVICE'].methods_by_name['ListBridgePorts']._options = None + _globals['_BRIDGEPORTSERVICE'].methods_by_name['ListBridgePorts']._serialized_options = b'\202\323\344\223\002\021\022\017/v1/bridgePorts' + _globals['_BRIDGEPORTSERVICE'].methods_by_name['GetBridgePort']._options = None + _globals['_BRIDGEPORTSERVICE'].methods_by_name['GetBridgePort']._serialized_options = b'\332A\004name\202\323\344\223\002\032\022\030/v1/{name=bridgePorts/*}' + _globals['_BRIDGEPORTSERVICE'].methods_by_name['DeleteBridgePort']._options = None + _globals['_BRIDGEPORTSERVICE'].methods_by_name['DeleteBridgePort']._serialized_options = b'\332A\004name\202\323\344\223\002\032*\030/v1/{name=bridgePorts/*}' + _globals['_BRIDGEPORTSERVICE'].methods_by_name['UpdateBridgePort']._options = None + _globals['_BRIDGEPORTSERVICE'].methods_by_name['UpdateBridgePort']._serialized_options = b'\332A\027bridge_port,update_mask\202\323\344\223\00232$/v1/{bridge_port.name=bridgePorts/*}:\013bridge_port' + _globals['_LBOPERSTATUS']._serialized_start=3264 + _globals['_LBOPERSTATUS']._serialized_end=3358 + _globals['_BPOPERSTATUS']._serialized_start=3360 + _globals['_BPOPERSTATUS']._serialized_end=3454 + _globals['_BRIDGEPORTTYPE']._serialized_start=3456 + _globals['_BRIDGEPORTTYPE']._serialized_end=3563 + _globals['_LOGICALBRIDGE']._serialized_start=259 + _globals['_LOGICALBRIDGE']._serialized_end=581 + _globals['_LOGICALBRIDGESPEC']._serialized_start=584 + _globals['_LOGICALBRIDGESPEC']._serialized_end=764 + _globals['_LOGICALBRIDGESTATUS']._serialized_start=766 + _globals['_LOGICALBRIDGESTATUS']._serialized_end=874 + _globals['_CREATELOGICALBRIDGEREQUEST']._serialized_start=877 + _globals['_CREATELOGICALBRIDGEREQUEST']._serialized_end=1049 + _globals['_LISTLOGICALBRIDGESREQUEST']._serialized_start=1051 + _globals['_LISTLOGICALBRIDGESREQUEST']._serialized_end=1150 + _globals['_LISTLOGICALBRIDGESRESPONSE']._serialized_start=1153 + _globals['_LISTLOGICALBRIDGESRESPONSE']._serialized_end=1311 + _globals['_GETLOGICALBRIDGEREQUEST']._serialized_start=1313 + _globals['_GETLOGICALBRIDGEREQUEST']._serialized_end=1415 + _globals['_DELETELOGICALBRIDGEREQUEST']._serialized_start=1418 + _globals['_DELETELOGICALBRIDGEREQUEST']._serialized_end=1566 + _globals['_UPDATELOGICALBRIDGEREQUEST']._serialized_start=1569 + _globals['_UPDATELOGICALBRIDGEREQUEST']._serialized_end=1801 + _globals['_BRIDGEPORT']._serialized_start=1804 + _globals['_BRIDGEPORT']._serialized_end=2102 + _globals['_BRIDGEPORTSPEC']._serialized_start=2105 + _globals['_BRIDGEPORTSPEC']._serialized_end=2285 + _globals['_BRIDGEPORTSTATUS']._serialized_start=2287 + _globals['_BRIDGEPORTSTATUS']._serialized_end=2392 + _globals['_CREATEBRIDGEPORTREQUEST']._serialized_start=2395 + _globals['_CREATEBRIDGEPORTREQUEST']._serialized_end=2549 + _globals['_LISTBRIDGEPORTSREQUEST']._serialized_start=2551 + _globals['_LISTBRIDGEPORTSREQUEST']._serialized_end=2647 + _globals['_LISTBRIDGEPORTSRESPONSE']._serialized_start=2650 + _globals['_LISTBRIDGEPORTSRESPONSE']._serialized_end=2796 + _globals['_GETBRIDGEPORTREQUEST']._serialized_start=2798 + _globals['_GETBRIDGEPORTREQUEST']._serialized_end=2894 + _globals['_DELETEBRIDGEPORTREQUEST']._serialized_start=2897 + _globals['_DELETEBRIDGEPORTREQUEST']._serialized_end=3039 + _globals['_UPDATEBRIDGEPORTREQUEST']._serialized_start=3042 + _globals['_UPDATEBRIDGEPORTREQUEST']._serialized_end=3262 + _globals['_LOGICALBRIDGESERVICE']._serialized_start=3566 + _globals['_LOGICALBRIDGESERVICE']._serialized_end=4535 + _globals['_BRIDGEPORTSERVICE']._serialized_start=4538 + _globals['_BRIDGEPORTSERVICE']._serialized_end=5429 # @@protoc_insertion_point(module_scope) 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 index 9fe95662..9b3b900c 100644 --- 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 @@ -1,11 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: l3_xpu_infra_mgr.proto +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,168 +21,168 @@ 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 google/protobuf/field_mask.proto\x1a\x19google/api/resource.proto\"\xda\x01\n\x03Vrf\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\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.VrfStatusB\x03\xe0\x41\x03:@\xea\x41=\n$opi_api.network.evpn_gw.v1alpha1/Vrf\x12\nvrfs/{vrf}*\x04vrfs2\x03vrf\"\xc8\x01\n\x07VrfSpec\x12\x15\n\x03vni\x18\x01 \x01(\rB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12P\n\x12loopback_ip_prefix\x18\x02 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x03\xe0\x41\x02\x12L\n\x0evtep_ip_prefix\x18\x03 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x03\xe0\x41\x01\x42\x06\n\x04_vni\"\xfd\x01\n\tVrfStatus\x12\x1a\n\rrouting_table\x18\x01 \x01(\rB\x03\xe0\x41\x03\x12\x15\n\x08local_as\x18\x02 \x01(\rB\x03\xe0\x41\x03\x12\x0f\n\x02rd\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04rmac\x18\x04 \x01(\x0c\x42\x03\xe0\x41\x03\x12\x17\n\nimport_rts\x18\x05 \x03(\tB\x03\xe0\x41\x03\x12\x17\n\nexport_rts\x18\x06 \x03(\tB\x03\xe0\x41\x03\x12\x1c\n\x0flogical_bridges\x18\x07 \x03(\tB\x03\xe0\x41\x03\x12I\n\x0boper_status\x18\x08 \x01(\x0e\x32/.opi_api.network.evpn_gw.v1alpha1.VRFOperStatusB\x03\xe0\x41\x03\"`\n\x10\x43reateVrfRequest\x12\x13\n\x06vrf_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x37\n\x03vrf\x18\x02 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.VrfB\x03\xe0\x41\x02\"B\n\x0fListVrfsRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"`\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\"j\n\x10\x44\x65leteVrfRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/Vrf\x12\x1a\n\rallow_missing\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\x9d\x01\n\x10UpdateVrfRequest\x12\x37\n\x03vrf\x18\x01 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.VrfB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xda\x01\n\x03Svi\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\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.SviStatusB\x03\xe0\x41\x03:@\xea\x41=\n$opi_api.network.evpn_gw.v1alpha1/Svi\x12\nsvis/{svi}*\x04svis2\x03svi\"\xab\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\x17\n\nenable_bgp\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x16\n\tremote_as\x18\x06 \x01(\rB\x03\xe0\x41\x01\"V\n\tSviStatus\x12I\n\x0boper_status\x18\x01 \x01(\x0e\x32/.opi_api.network.evpn_gw.v1alpha1.SVIOperStatusB\x03\xe0\x41\x03\"`\n\x10\x43reateSviRequest\x12\x13\n\x06svi_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x37\n\x03svi\x18\x02 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.SviB\x03\xe0\x41\x02\"B\n\x0fListSvisRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"`\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\"j\n\x10\x44\x65leteSviRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/Svi\x12\x1a\n\rallow_missing\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\x9d\x01\n\x10UpdateSviRequest\x12\x37\n\x03svi\x18\x01 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.SviB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01*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\xbe\x05\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\x04name\x12\x9c\x01\n\tUpdateVrf\x12\x32.opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Vrf\"4\x82\xd3\xe4\x93\x02\x1c\x32\x15/v1/{vrf.name=vrfs/*}:\x03vrf\xda\x41\x0fvrf,update_mask2\xbe\x05\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\x04name\x12\x9c\x01\n\tUpdateSvi\x12\x32.opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Svi\"4\x82\xd3\xe4\x93\x02\x1c\x32\x15/v1/{svi.name=svis/*}:\x03svi\xda\x41\x0fsvi,update_maskBw\n opi_api.network.evpn_gw.v1alpha1B\x12L3XpuInfraMgrProtoP\x01Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/gob\x06proto3') +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 google/protobuf/field_mask.proto\x1a\x19google/api/resource.proto\"\xf1\x01\n\x03Vrf\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12\x43\n\x04spec\x18\x02 \x01(\x0b\x32).opi_api.network.evpn_gw.v1alpha1.VrfSpecB\x04\xe2\x41\x01\x02R\x04spec\x12I\n\x06status\x18\x03 \x01(\x0b\x32+.opi_api.network.evpn_gw.v1alpha1.VrfStatusB\x04\xe2\x41\x01\x03R\x06status:@\xea\x41=\n$opi_api.network.evpn_gw.v1alpha1/Vrf\x12\nvrfs/{vrf}*\x04vrfs2\x03vrf\"\xf0\x01\n\x07VrfSpec\x12\x1b\n\x03vni\x18\x01 \x01(\rB\x04\xe2\x41\x01\x01H\x00R\x03vni\x88\x01\x01\x12\x63\n\x12loopback_ip_prefix\x18\x02 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x04\xe2\x41\x01\x02R\x10loopbackIpPrefix\x12[\n\x0evtep_ip_prefix\x18\x03 \x01(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x04\xe2\x41\x01\x01R\x0cvtepIpPrefixB\x06\n\x04_vni\"\xd8\x02\n\tVrfStatus\x12)\n\rrouting_table\x18\x01 \x01(\rB\x04\xe2\x41\x01\x03R\x0croutingTable\x12\x1f\n\x08local_as\x18\x02 \x01(\rB\x04\xe2\x41\x01\x03R\x07localAs\x12\x14\n\x02rd\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03R\x02rd\x12\x18\n\x04rmac\x18\x04 \x01(\x0c\x42\x04\xe2\x41\x01\x03R\x04rmac\x12#\n\nimport_rts\x18\x05 \x03(\tB\x04\xe2\x41\x01\x03R\timportRts\x12#\n\nexport_rts\x18\x06 \x03(\tB\x04\xe2\x41\x01\x03R\texportRts\x12-\n\x0flogical_bridges\x18\x07 \x03(\tB\x04\xe2\x41\x01\x03R\x0elogicalBridges\x12V\n\x0boper_status\x18\x08 \x01(\x0e\x32/.opi_api.network.evpn_gw.v1alpha1.VRFOperStatusB\x04\xe2\x41\x01\x03R\noperStatus\"n\n\x10\x43reateVrfRequest\x12\x1b\n\x06vrf_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\x05vrfId\x12=\n\x03vrf\x18\x02 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.VrfB\x04\xe2\x41\x01\x02R\x03vrf\"Y\n\x0fListVrfsRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"u\n\x10ListVrfsResponse\x12\x39\n\x04vrfs\x18\x01 \x03(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.VrfR\x04vrfs\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"R\n\rGetVrfRequest\x12\x41\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/VrfR\x04name\"\x80\x01\n\x10\x44\x65leteVrfRequest\x12\x41\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/VrfR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xbf\x01\n\x10UpdateVrfRequest\x12=\n\x03vrf\x18\x01 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.VrfB\x04\xe2\x41\x01\x02R\x03vrf\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xf1\x01\n\x03Svi\x12\x18\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08R\x04name\x12\x43\n\x04spec\x18\x02 \x01(\x0b\x32).opi_api.network.evpn_gw.v1alpha1.SviSpecB\x04\xe2\x41\x01\x02R\x04spec\x12I\n\x06status\x18\x03 \x01(\x0b\x32+.opi_api.network.evpn_gw.v1alpha1.SviStatusB\x04\xe2\x41\x01\x03R\x06status:@\xea\x41=\n$opi_api.network.evpn_gw.v1alpha1/Svi\x12\nsvis/{svi}*\x04svis2\x03svi\"\xf2\x02\n\x07SviSpec\x12?\n\x03vrf\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/VrfR\x03vrf\x12^\n\x0elogical_bridge\x18\x02 \x01(\tB7\xe2\x41\x01\x02\xfa\x41\x30\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridgeR\rlogicalBridge\x12%\n\x0bmac_address\x18\x03 \x01(\x0c\x42\x04\xe2\x41\x01\x02R\nmacAddress\x12W\n\x0cgw_ip_prefix\x18\x04 \x03(\x0b\x32/.opi_api.network.opinetcommon.v1alpha1.IPPrefixB\x04\xe2\x41\x01\x02R\ngwIpPrefix\x12#\n\nenable_bgp\x18\x05 \x01(\x08\x42\x04\xe2\x41\x01\x01R\tenableBgp\x12!\n\tremote_as\x18\x06 \x01(\rB\x04\xe2\x41\x01\x01R\x08remoteAs\"c\n\tSviStatus\x12V\n\x0boper_status\x18\x01 \x01(\x0e\x32/.opi_api.network.evpn_gw.v1alpha1.SVIOperStatusB\x04\xe2\x41\x01\x03R\noperStatus\"n\n\x10\x43reateSviRequest\x12\x1b\n\x06svi_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x01R\x05sviId\x12=\n\x03svi\x18\x02 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.SviB\x04\xe2\x41\x01\x02R\x03svi\"Y\n\x0fListSvisRequest\x12!\n\tpage_size\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x01R\x08pageSize\x12#\n\npage_token\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01R\tpageToken\"u\n\x10ListSvisResponse\x12\x39\n\x04svis\x18\x01 \x03(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.SviR\x04svis\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"R\n\rGetSviRequest\x12\x41\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/SviR\x04name\"\x80\x01\n\x10\x44\x65leteSviRequest\x12\x41\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$opi_api.network.evpn_gw.v1alpha1/SviR\x04name\x12)\n\rallow_missing\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing\"\xbf\x01\n\x10UpdateSviRequest\x12=\n\x03svi\x18\x01 \x01(\x0b\x32%.opi_api.network.evpn_gw.v1alpha1.SviB\x04\xe2\x41\x01\x02R\x03svi\x12\x41\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01R\nupdateMask\x12)\n\rallow_missing\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\x0c\x61llowMissing*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\xbe\x05\n\nVrfService\x12\x8a\x01\n\tCreateVrf\x12\x32.opi_api.network.evpn_gw.v1alpha1.CreateVrfRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Vrf\"\"\xda\x41\nvrf,vrf_id\x82\xd3\xe4\x93\x02\x0f\"\x08/v1/vrfs:\x03vrf\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\" \xda\x41\x04name\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/{name=vrfs/*}\x12y\n\tDeleteVrf\x12\x32.opi_api.network.evpn_gw.v1alpha1.DeleteVrfRequest\x1a\x16.google.protobuf.Empty\" \xda\x41\x04name\x82\xd3\xe4\x93\x02\x13*\x11/v1/{name=vrfs/*}\x12\x9c\x01\n\tUpdateVrf\x12\x32.opi_api.network.evpn_gw.v1alpha1.UpdateVrfRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Vrf\"4\xda\x41\x0fvrf,update_mask\x82\xd3\xe4\x93\x02\x1c\x32\x15/v1/{vrf.name=vrfs/*}:\x03vrf2\xbe\x05\n\nSviService\x12\x8a\x01\n\tCreateSvi\x12\x32.opi_api.network.evpn_gw.v1alpha1.CreateSviRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Svi\"\"\xda\x41\nsvi,svi_id\x82\xd3\xe4\x93\x02\x0f\"\x08/v1/svis:\x03svi\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\" \xda\x41\x04name\x82\xd3\xe4\x93\x02\x13\x12\x11/v1/{name=svis/*}\x12y\n\tDeleteSvi\x12\x32.opi_api.network.evpn_gw.v1alpha1.DeleteSviRequest\x1a\x16.google.protobuf.Empty\" \xda\x41\x04name\x82\xd3\xe4\x93\x02\x13*\x11/v1/{name=svis/*}\x12\x9c\x01\n\tUpdateSvi\x12\x32.opi_api.network.evpn_gw.v1alpha1.UpdateSviRequest\x1a%.opi_api.network.evpn_gw.v1alpha1.Svi\"4\xda\x41\x0fsvi,update_mask\x82\xd3\xe4\x93\x02\x1c\x32\x15/v1/{svi.name=svis/*}:\x03sviBw\n opi_api.network.evpn_gw.v1alpha1B\x12L3XpuInfraMgrProtoP\x01Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/gob\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'l3_xpu_infra_mgr_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'l3_xpu_infra_mgr_pb2', _globals) 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['name']._options = None - _VRF.fields_by_name['name']._serialized_options = b'\340A\010' - _VRF.fields_by_name['spec']._options = None - _VRF.fields_by_name['spec']._serialized_options = b'\340A\002' - _VRF.fields_by_name['status']._options = None - _VRF.fields_by_name['status']._serialized_options = b'\340A\003' - _VRF._options = None - _VRF._serialized_options = b'\352A=\n$opi_api.network.evpn_gw.v1alpha1/Vrf\022\nvrfs/{vrf}*\004vrfs2\003vrf' - _VRFSPEC.fields_by_name['vni']._options = None - _VRFSPEC.fields_by_name['vni']._serialized_options = b'\340A\001' - _VRFSPEC.fields_by_name['loopback_ip_prefix']._options = None - _VRFSPEC.fields_by_name['loopback_ip_prefix']._serialized_options = b'\340A\002' - _VRFSPEC.fields_by_name['vtep_ip_prefix']._options = None - _VRFSPEC.fields_by_name['vtep_ip_prefix']._serialized_options = b'\340A\001' - _VRFSTATUS.fields_by_name['routing_table']._options = None - _VRFSTATUS.fields_by_name['routing_table']._serialized_options = b'\340A\003' - _VRFSTATUS.fields_by_name['local_as']._options = None - _VRFSTATUS.fields_by_name['local_as']._serialized_options = b'\340A\003' - _VRFSTATUS.fields_by_name['rd']._options = None - _VRFSTATUS.fields_by_name['rd']._serialized_options = b'\340A\003' - _VRFSTATUS.fields_by_name['rmac']._options = None - _VRFSTATUS.fields_by_name['rmac']._serialized_options = b'\340A\003' - _VRFSTATUS.fields_by_name['import_rts']._options = None - _VRFSTATUS.fields_by_name['import_rts']._serialized_options = b'\340A\003' - _VRFSTATUS.fields_by_name['export_rts']._options = None - _VRFSTATUS.fields_by_name['export_rts']._serialized_options = b'\340A\003' - _VRFSTATUS.fields_by_name['logical_bridges']._options = None - _VRFSTATUS.fields_by_name['logical_bridges']._serialized_options = b'\340A\003' - _VRFSTATUS.fields_by_name['oper_status']._options = None - _VRFSTATUS.fields_by_name['oper_status']._serialized_options = b'\340A\003' - _CREATEVRFREQUEST.fields_by_name['vrf_id']._options = None - _CREATEVRFREQUEST.fields_by_name['vrf_id']._serialized_options = b'\340A\001' - _CREATEVRFREQUEST.fields_by_name['vrf']._options = None - _CREATEVRFREQUEST.fields_by_name['vrf']._serialized_options = b'\340A\002' - _LISTVRFSREQUEST.fields_by_name['page_size']._options = None - _LISTVRFSREQUEST.fields_by_name['page_size']._serialized_options = b'\340A\001' - _LISTVRFSREQUEST.fields_by_name['page_token']._options = None - _LISTVRFSREQUEST.fields_by_name['page_token']._serialized_options = b'\340A\001' - _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' - _DELETEVRFREQUEST.fields_by_name['allow_missing']._options = None - _DELETEVRFREQUEST.fields_by_name['allow_missing']._serialized_options = b'\340A\001' - _UPDATEVRFREQUEST.fields_by_name['vrf']._options = None - _UPDATEVRFREQUEST.fields_by_name['vrf']._serialized_options = b'\340A\002' - _UPDATEVRFREQUEST.fields_by_name['update_mask']._options = None - _UPDATEVRFREQUEST.fields_by_name['update_mask']._serialized_options = b'\340A\001' - _UPDATEVRFREQUEST.fields_by_name['allow_missing']._options = None - _UPDATEVRFREQUEST.fields_by_name['allow_missing']._serialized_options = b'\340A\001' - _SVI.fields_by_name['name']._options = None - _SVI.fields_by_name['name']._serialized_options = b'\340A\010' - _SVI.fields_by_name['spec']._options = None - _SVI.fields_by_name['spec']._serialized_options = b'\340A\002' - _SVI.fields_by_name['status']._options = None - _SVI.fields_by_name['status']._serialized_options = b'\340A\003' - _SVI._options = None - _SVI._serialized_options = b'\352A=\n$opi_api.network.evpn_gw.v1alpha1/Svi\022\nsvis/{svi}*\004svis2\003svi' - _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' - _SVISPEC.fields_by_name['enable_bgp']._options = None - _SVISPEC.fields_by_name['enable_bgp']._serialized_options = b'\340A\001' - _SVISPEC.fields_by_name['remote_as']._options = None - _SVISPEC.fields_by_name['remote_as']._serialized_options = b'\340A\001' - _SVISTATUS.fields_by_name['oper_status']._options = None - _SVISTATUS.fields_by_name['oper_status']._serialized_options = b'\340A\003' - _CREATESVIREQUEST.fields_by_name['svi_id']._options = None - _CREATESVIREQUEST.fields_by_name['svi_id']._serialized_options = b'\340A\001' - _CREATESVIREQUEST.fields_by_name['svi']._options = None - _CREATESVIREQUEST.fields_by_name['svi']._serialized_options = b'\340A\002' - _LISTSVISREQUEST.fields_by_name['page_size']._options = None - _LISTSVISREQUEST.fields_by_name['page_size']._serialized_options = b'\340A\001' - _LISTSVISREQUEST.fields_by_name['page_token']._options = None - _LISTSVISREQUEST.fields_by_name['page_token']._serialized_options = b'\340A\001' - _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' - _DELETESVIREQUEST.fields_by_name['allow_missing']._options = None - _DELETESVIREQUEST.fields_by_name['allow_missing']._serialized_options = b'\340A\001' - _UPDATESVIREQUEST.fields_by_name['svi']._options = None - _UPDATESVIREQUEST.fields_by_name['svi']._serialized_options = b'\340A\002' - _UPDATESVIREQUEST.fields_by_name['update_mask']._options = None - _UPDATESVIREQUEST.fields_by_name['update_mask']._serialized_options = b'\340A\001' - _UPDATESVIREQUEST.fields_by_name['allow_missing']._options = None - _UPDATESVIREQUEST.fields_by_name['allow_missing']._serialized_options = b'\340A\001' - _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' - _VRFSERVICE.methods_by_name['UpdateVrf']._options = None - _VRFSERVICE.methods_by_name['UpdateVrf']._serialized_options = b'\202\323\344\223\002\0342\025/v1/{vrf.name=vrfs/*}:\003vrf\332A\017vrf,update_mask' - _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' - _SVISERVICE.methods_by_name['UpdateSvi']._options = None - _SVISERVICE.methods_by_name['UpdateSvi']._serialized_options = b'\202\323\344\223\002\0342\025/v1/{svi.name=svis/*}:\003svi\332A\017svi,update_mask' - _VRFOPERSTATUS._serialized_start=2767 - _VRFOPERSTATUS._serialized_end=2865 - _SVIOPERSTATUS._serialized_start=2867 - _SVIOPERSTATUS._serialized_end=2965 - _VRF._serialized_start=259 - _VRF._serialized_end=477 - _VRFSPEC._serialized_start=480 - _VRFSPEC._serialized_end=680 - _VRFSTATUS._serialized_start=683 - _VRFSTATUS._serialized_end=936 - _CREATEVRFREQUEST._serialized_start=938 - _CREATEVRFREQUEST._serialized_end=1034 - _LISTVRFSREQUEST._serialized_start=1036 - _LISTVRFSREQUEST._serialized_end=1102 - _LISTVRFSRESPONSE._serialized_start=1104 - _LISTVRFSRESPONSE._serialized_end=1200 - _GETVRFREQUEST._serialized_start=1202 - _GETVRFREQUEST._serialized_end=1277 - _DELETEVRFREQUEST._serialized_start=1279 - _DELETEVRFREQUEST._serialized_end=1385 - _UPDATEVRFREQUEST._serialized_start=1388 - _UPDATEVRFREQUEST._serialized_end=1545 - _SVI._serialized_start=1548 - _SVI._serialized_end=1766 - _SVISPEC._serialized_start=1769 - _SVISPEC._serialized_end=2068 - _SVISTATUS._serialized_start=2070 - _SVISTATUS._serialized_end=2156 - _CREATESVIREQUEST._serialized_start=2158 - _CREATESVIREQUEST._serialized_end=2254 - _LISTSVISREQUEST._serialized_start=2256 - _LISTSVISREQUEST._serialized_end=2322 - _LISTSVISRESPONSE._serialized_start=2324 - _LISTSVISRESPONSE._serialized_end=2420 - _GETSVIREQUEST._serialized_start=2422 - _GETSVIREQUEST._serialized_end=2497 - _DELETESVIREQUEST._serialized_start=2499 - _DELETESVIREQUEST._serialized_end=2605 - _UPDATESVIREQUEST._serialized_start=2608 - _UPDATESVIREQUEST._serialized_end=2765 - _VRFSERVICE._serialized_start=2968 - _VRFSERVICE._serialized_end=3670 - _SVISERVICE._serialized_start=3673 - _SVISERVICE._serialized_end=4375 + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n opi_api.network.evpn_gw.v1alpha1B\022L3XpuInfraMgrProtoP\001Z=github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/go' + _globals['_VRF'].fields_by_name['name']._options = None + _globals['_VRF'].fields_by_name['name']._serialized_options = b'\342A\001\010' + _globals['_VRF'].fields_by_name['spec']._options = None + _globals['_VRF'].fields_by_name['spec']._serialized_options = b'\342A\001\002' + _globals['_VRF'].fields_by_name['status']._options = None + _globals['_VRF'].fields_by_name['status']._serialized_options = b'\342A\001\003' + _globals['_VRF']._options = None + _globals['_VRF']._serialized_options = b'\352A=\n$opi_api.network.evpn_gw.v1alpha1/Vrf\022\nvrfs/{vrf}*\004vrfs2\003vrf' + _globals['_VRFSPEC'].fields_by_name['vni']._options = None + _globals['_VRFSPEC'].fields_by_name['vni']._serialized_options = b'\342A\001\001' + _globals['_VRFSPEC'].fields_by_name['loopback_ip_prefix']._options = None + _globals['_VRFSPEC'].fields_by_name['loopback_ip_prefix']._serialized_options = b'\342A\001\002' + _globals['_VRFSPEC'].fields_by_name['vtep_ip_prefix']._options = None + _globals['_VRFSPEC'].fields_by_name['vtep_ip_prefix']._serialized_options = b'\342A\001\001' + _globals['_VRFSTATUS'].fields_by_name['routing_table']._options = None + _globals['_VRFSTATUS'].fields_by_name['routing_table']._serialized_options = b'\342A\001\003' + _globals['_VRFSTATUS'].fields_by_name['local_as']._options = None + _globals['_VRFSTATUS'].fields_by_name['local_as']._serialized_options = b'\342A\001\003' + _globals['_VRFSTATUS'].fields_by_name['rd']._options = None + _globals['_VRFSTATUS'].fields_by_name['rd']._serialized_options = b'\342A\001\003' + _globals['_VRFSTATUS'].fields_by_name['rmac']._options = None + _globals['_VRFSTATUS'].fields_by_name['rmac']._serialized_options = b'\342A\001\003' + _globals['_VRFSTATUS'].fields_by_name['import_rts']._options = None + _globals['_VRFSTATUS'].fields_by_name['import_rts']._serialized_options = b'\342A\001\003' + _globals['_VRFSTATUS'].fields_by_name['export_rts']._options = None + _globals['_VRFSTATUS'].fields_by_name['export_rts']._serialized_options = b'\342A\001\003' + _globals['_VRFSTATUS'].fields_by_name['logical_bridges']._options = None + _globals['_VRFSTATUS'].fields_by_name['logical_bridges']._serialized_options = b'\342A\001\003' + _globals['_VRFSTATUS'].fields_by_name['oper_status']._options = None + _globals['_VRFSTATUS'].fields_by_name['oper_status']._serialized_options = b'\342A\001\003' + _globals['_CREATEVRFREQUEST'].fields_by_name['vrf_id']._options = None + _globals['_CREATEVRFREQUEST'].fields_by_name['vrf_id']._serialized_options = b'\342A\001\001' + _globals['_CREATEVRFREQUEST'].fields_by_name['vrf']._options = None + _globals['_CREATEVRFREQUEST'].fields_by_name['vrf']._serialized_options = b'\342A\001\002' + _globals['_LISTVRFSREQUEST'].fields_by_name['page_size']._options = None + _globals['_LISTVRFSREQUEST'].fields_by_name['page_size']._serialized_options = b'\342A\001\001' + _globals['_LISTVRFSREQUEST'].fields_by_name['page_token']._options = None + _globals['_LISTVRFSREQUEST'].fields_by_name['page_token']._serialized_options = b'\342A\001\001' + _globals['_GETVRFREQUEST'].fields_by_name['name']._options = None + _globals['_GETVRFREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A&\n$opi_api.network.evpn_gw.v1alpha1/Vrf' + _globals['_DELETEVRFREQUEST'].fields_by_name['name']._options = None + _globals['_DELETEVRFREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A&\n$opi_api.network.evpn_gw.v1alpha1/Vrf' + _globals['_DELETEVRFREQUEST'].fields_by_name['allow_missing']._options = None + _globals['_DELETEVRFREQUEST'].fields_by_name['allow_missing']._serialized_options = b'\342A\001\001' + _globals['_UPDATEVRFREQUEST'].fields_by_name['vrf']._options = None + _globals['_UPDATEVRFREQUEST'].fields_by_name['vrf']._serialized_options = b'\342A\001\002' + _globals['_UPDATEVRFREQUEST'].fields_by_name['update_mask']._options = None + _globals['_UPDATEVRFREQUEST'].fields_by_name['update_mask']._serialized_options = b'\342A\001\001' + _globals['_UPDATEVRFREQUEST'].fields_by_name['allow_missing']._options = None + _globals['_UPDATEVRFREQUEST'].fields_by_name['allow_missing']._serialized_options = b'\342A\001\001' + _globals['_SVI'].fields_by_name['name']._options = None + _globals['_SVI'].fields_by_name['name']._serialized_options = b'\342A\001\010' + _globals['_SVI'].fields_by_name['spec']._options = None + _globals['_SVI'].fields_by_name['spec']._serialized_options = b'\342A\001\002' + _globals['_SVI'].fields_by_name['status']._options = None + _globals['_SVI'].fields_by_name['status']._serialized_options = b'\342A\001\003' + _globals['_SVI']._options = None + _globals['_SVI']._serialized_options = b'\352A=\n$opi_api.network.evpn_gw.v1alpha1/Svi\022\nsvis/{svi}*\004svis2\003svi' + _globals['_SVISPEC'].fields_by_name['vrf']._options = None + _globals['_SVISPEC'].fields_by_name['vrf']._serialized_options = b'\342A\001\002\372A&\n$opi_api.network.evpn_gw.v1alpha1/Vrf' + _globals['_SVISPEC'].fields_by_name['logical_bridge']._options = None + _globals['_SVISPEC'].fields_by_name['logical_bridge']._serialized_options = b'\342A\001\002\372A0\n.opi_api.network.evpn_gw.v1alpha1/LogicalBridge' + _globals['_SVISPEC'].fields_by_name['mac_address']._options = None + _globals['_SVISPEC'].fields_by_name['mac_address']._serialized_options = b'\342A\001\002' + _globals['_SVISPEC'].fields_by_name['gw_ip_prefix']._options = None + _globals['_SVISPEC'].fields_by_name['gw_ip_prefix']._serialized_options = b'\342A\001\002' + _globals['_SVISPEC'].fields_by_name['enable_bgp']._options = None + _globals['_SVISPEC'].fields_by_name['enable_bgp']._serialized_options = b'\342A\001\001' + _globals['_SVISPEC'].fields_by_name['remote_as']._options = None + _globals['_SVISPEC'].fields_by_name['remote_as']._serialized_options = b'\342A\001\001' + _globals['_SVISTATUS'].fields_by_name['oper_status']._options = None + _globals['_SVISTATUS'].fields_by_name['oper_status']._serialized_options = b'\342A\001\003' + _globals['_CREATESVIREQUEST'].fields_by_name['svi_id']._options = None + _globals['_CREATESVIREQUEST'].fields_by_name['svi_id']._serialized_options = b'\342A\001\001' + _globals['_CREATESVIREQUEST'].fields_by_name['svi']._options = None + _globals['_CREATESVIREQUEST'].fields_by_name['svi']._serialized_options = b'\342A\001\002' + _globals['_LISTSVISREQUEST'].fields_by_name['page_size']._options = None + _globals['_LISTSVISREQUEST'].fields_by_name['page_size']._serialized_options = b'\342A\001\001' + _globals['_LISTSVISREQUEST'].fields_by_name['page_token']._options = None + _globals['_LISTSVISREQUEST'].fields_by_name['page_token']._serialized_options = b'\342A\001\001' + _globals['_GETSVIREQUEST'].fields_by_name['name']._options = None + _globals['_GETSVIREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A&\n$opi_api.network.evpn_gw.v1alpha1/Svi' + _globals['_DELETESVIREQUEST'].fields_by_name['name']._options = None + _globals['_DELETESVIREQUEST'].fields_by_name['name']._serialized_options = b'\342A\001\002\372A&\n$opi_api.network.evpn_gw.v1alpha1/Svi' + _globals['_DELETESVIREQUEST'].fields_by_name['allow_missing']._options = None + _globals['_DELETESVIREQUEST'].fields_by_name['allow_missing']._serialized_options = b'\342A\001\001' + _globals['_UPDATESVIREQUEST'].fields_by_name['svi']._options = None + _globals['_UPDATESVIREQUEST'].fields_by_name['svi']._serialized_options = b'\342A\001\002' + _globals['_UPDATESVIREQUEST'].fields_by_name['update_mask']._options = None + _globals['_UPDATESVIREQUEST'].fields_by_name['update_mask']._serialized_options = b'\342A\001\001' + _globals['_UPDATESVIREQUEST'].fields_by_name['allow_missing']._options = None + _globals['_UPDATESVIREQUEST'].fields_by_name['allow_missing']._serialized_options = b'\342A\001\001' + _globals['_VRFSERVICE'].methods_by_name['CreateVrf']._options = None + _globals['_VRFSERVICE'].methods_by_name['CreateVrf']._serialized_options = b'\332A\nvrf,vrf_id\202\323\344\223\002\017\"\010/v1/vrfs:\003vrf' + _globals['_VRFSERVICE'].methods_by_name['ListVrfs']._options = None + _globals['_VRFSERVICE'].methods_by_name['ListVrfs']._serialized_options = b'\202\323\344\223\002\n\022\010/v1/vrfs' + _globals['_VRFSERVICE'].methods_by_name['GetVrf']._options = None + _globals['_VRFSERVICE'].methods_by_name['GetVrf']._serialized_options = b'\332A\004name\202\323\344\223\002\023\022\021/v1/{name=vrfs/*}' + _globals['_VRFSERVICE'].methods_by_name['DeleteVrf']._options = None + _globals['_VRFSERVICE'].methods_by_name['DeleteVrf']._serialized_options = b'\332A\004name\202\323\344\223\002\023*\021/v1/{name=vrfs/*}' + _globals['_VRFSERVICE'].methods_by_name['UpdateVrf']._options = None + _globals['_VRFSERVICE'].methods_by_name['UpdateVrf']._serialized_options = b'\332A\017vrf,update_mask\202\323\344\223\002\0342\025/v1/{vrf.name=vrfs/*}:\003vrf' + _globals['_SVISERVICE'].methods_by_name['CreateSvi']._options = None + _globals['_SVISERVICE'].methods_by_name['CreateSvi']._serialized_options = b'\332A\nsvi,svi_id\202\323\344\223\002\017\"\010/v1/svis:\003svi' + _globals['_SVISERVICE'].methods_by_name['ListSvis']._options = None + _globals['_SVISERVICE'].methods_by_name['ListSvis']._serialized_options = b'\202\323\344\223\002\n\022\010/v1/svis' + _globals['_SVISERVICE'].methods_by_name['GetSvi']._options = None + _globals['_SVISERVICE'].methods_by_name['GetSvi']._serialized_options = b'\332A\004name\202\323\344\223\002\023\022\021/v1/{name=svis/*}' + _globals['_SVISERVICE'].methods_by_name['DeleteSvi']._options = None + _globals['_SVISERVICE'].methods_by_name['DeleteSvi']._serialized_options = b'\332A\004name\202\323\344\223\002\023*\021/v1/{name=svis/*}' + _globals['_SVISERVICE'].methods_by_name['UpdateSvi']._options = None + _globals['_SVISERVICE'].methods_by_name['UpdateSvi']._serialized_options = b'\332A\017svi,update_mask\202\323\344\223\002\0342\025/v1/{svi.name=svis/*}:\003svi' + _globals['_VRFOPERSTATUS']._serialized_start=3272 + _globals['_VRFOPERSTATUS']._serialized_end=3370 + _globals['_SVIOPERSTATUS']._serialized_start=3372 + _globals['_SVIOPERSTATUS']._serialized_end=3470 + _globals['_VRF']._serialized_start=259 + _globals['_VRF']._serialized_end=500 + _globals['_VRFSPEC']._serialized_start=503 + _globals['_VRFSPEC']._serialized_end=743 + _globals['_VRFSTATUS']._serialized_start=746 + _globals['_VRFSTATUS']._serialized_end=1090 + _globals['_CREATEVRFREQUEST']._serialized_start=1092 + _globals['_CREATEVRFREQUEST']._serialized_end=1202 + _globals['_LISTVRFSREQUEST']._serialized_start=1204 + _globals['_LISTVRFSREQUEST']._serialized_end=1293 + _globals['_LISTVRFSRESPONSE']._serialized_start=1295 + _globals['_LISTVRFSRESPONSE']._serialized_end=1412 + _globals['_GETVRFREQUEST']._serialized_start=1414 + _globals['_GETVRFREQUEST']._serialized_end=1496 + _globals['_DELETEVRFREQUEST']._serialized_start=1499 + _globals['_DELETEVRFREQUEST']._serialized_end=1627 + _globals['_UPDATEVRFREQUEST']._serialized_start=1630 + _globals['_UPDATEVRFREQUEST']._serialized_end=1821 + _globals['_SVI']._serialized_start=1824 + _globals['_SVI']._serialized_end=2065 + _globals['_SVISPEC']._serialized_start=2068 + _globals['_SVISPEC']._serialized_end=2438 + _globals['_SVISTATUS']._serialized_start=2440 + _globals['_SVISTATUS']._serialized_end=2539 + _globals['_CREATESVIREQUEST']._serialized_start=2541 + _globals['_CREATESVIREQUEST']._serialized_end=2651 + _globals['_LISTSVISREQUEST']._serialized_start=2653 + _globals['_LISTSVISREQUEST']._serialized_end=2742 + _globals['_LISTSVISRESPONSE']._serialized_start=2744 + _globals['_LISTSVISRESPONSE']._serialized_end=2861 + _globals['_GETSVIREQUEST']._serialized_start=2863 + _globals['_GETSVIREQUEST']._serialized_end=2945 + _globals['_DELETESVIREQUEST']._serialized_start=2948 + _globals['_DELETESVIREQUEST']._serialized_end=3076 + _globals['_UPDATESVIREQUEST']._serialized_start=3079 + _globals['_UPDATESVIREQUEST']._serialized_end=3270 + _globals['_VRFSERVICE']._serialized_start=3473 + _globals['_VRFSERVICE']._serialized_end=4175 + _globals['_SVISERVICE']._serialized_start=4178 + _globals['_SVISERVICE']._serialized_end=4880 # @@protoc_insertion_point(module_scope)