diff --git a/proto/context.proto b/proto/context.proto index 9fde6a3c132843eeab8e921ad49aedb3f2cd18fb..cd00b4ed06de8f484ad9a0428e90c54fa06ee9ca 100644 --- a/proto/context.proto +++ b/proto/context.proto @@ -19,8 +19,10 @@ package context; import "google/protobuf/any.proto"; import "acl.proto"; +import "ipowdm.proto"; import "ip_link.proto"; import "kpi_sample_types.proto"; +import "tapi_lsp.proto"; service ContextService { rpc ListContextIds (Empty ) returns ( ContextIdList ) {} @@ -354,6 +356,8 @@ enum ServiceTypeEnum { SERVICETYPE_INT = 9; SERVICETYPE_ACL = 10; SERVICETYPE_IP_LINK = 11; + SERVICETYPE_TAPI_LSP = 12; + SERVICETYPE_IPOWDM = 13; } enum ServiceStatusEnum { @@ -567,6 +571,16 @@ message ConfigRule_ACL { acl.AclRuleSet rule_set = 2; } +message ConfigRule_IPOWDM { + EndPointId endpoint_id = 1; + ipowdm.IpowdmRuleSet rule_set = 2; +} + +message ConfigRule_TAPI_LSP { + EndPointId endpoint_id = 1; + repeated tapi_lsp.TapiLspRuleSet rule_set = 2; +} + message ConfigRule_IP_LINK { EndPointId endpoint_id = 1; ip_link.IpLinkRuleSet rule_set = 2; @@ -575,9 +589,11 @@ message ConfigRule_IP_LINK { message ConfigRule { ConfigActionEnum action = 1; oneof config_rule { - ConfigRule_Custom custom = 2; - ConfigRule_ACL acl = 3; + ConfigRule_Custom custom = 2; + ConfigRule_ACL acl = 3; ConfigRule_IP_LINK ip_link = 4; + ConfigRule_TAPI_LSP tapi_lsp = 5; + ConfigRule_IPOWDM ipowdm = 6; } } @@ -749,7 +765,7 @@ message OpticalLinkDetails { map c_slots = 7; map l_slots = 8; map s_slots = 9; - + } message OpticalLink { @@ -770,9 +786,9 @@ message OpticalBandId { message OpticalBand { - - OpticalBandId opticalband_id = 1 ; - ConnectionId connection_id =2 ; + + OpticalBandId opticalband_id = 1 ; + ConnectionId connection_id =2 ; ChannelId channel_id = 3; ServiceId service_id =4; oneof field { diff --git a/proto/ipowdm.proto b/proto/ipowdm.proto new file mode 100644 index 0000000000000000000000000000000000000000..b3f101ae677f6992a30bb9d517d77733a851f954 --- /dev/null +++ b/proto/ipowdm.proto @@ -0,0 +1,54 @@ +// Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; +package ipowdm; + +message RuleEndpoint { + string uuid = 1; + string ip_address = 2; + string ip_mask = 3; + int32 vlan_id = 4; +} + +message DigitalSubCarrierId { + int32 sub_carrier_id = 1; + string active = 2; +} + +message DigitalSubCarriersGroup { + int32 digital_sub_carriers_group_id = 1; + repeated DigitalSubCarrierId digital_sub_carrier_id = 4; +} + +message Component { + string name = 1; + float frequency = 2; + float target_output_power = 3; + int32 operational_mode = 4; + repeated DigitalSubCarriersGroup digital_sub_carriers_group = 5; + string operation = 6; +} + +message Transceiver { + repeated Component components = 1; +} + +message IpowdmRuleSet { + repeated RuleEndpoint src = 1; + repeated RuleEndpoint dst = 2; + int32 bw = 3; + string uuid = 4; + Transceiver transceiver = 5; +} diff --git a/proto/tapi_lsp.proto b/proto/tapi_lsp.proto new file mode 100644 index 0000000000000000000000000000000000000000..8db84cf7cab2ada5362df99b08f283b45845307a --- /dev/null +++ b/proto/tapi_lsp.proto @@ -0,0 +1,36 @@ +// Copyright 2022-2025 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; +package tapi_lsp; + +message TapiLspRuleSet { + string input_sip = 1; + string output_sip = 2; + string uuid = 3; + string bw = 4; + string tenant_uuid = 5; + string layer_protocol_name = 6; + string layer_protocol_qualifier = 7; + string lower_frequency_mhz = 8; + string upper_frequency_mhz = 9; + repeated string link_uuid_path = 10; + string granularity = 11; + string grid_type = 12; + string direction = 13; + string capacity_unit = 14; + string capacity_value = 15; + string route_objective_function = 16; + string url = 17; +} diff --git a/src/analytics/backend/Dockerfile b/src/analytics/backend/Dockerfile index 34e506f8e9c8404c328642e4f8a6c1a650fa26db..316b70b6aa6419e74e60d4f18c01a42d68b35c2f 100644 --- a/src/analytics/backend/Dockerfile +++ b/src/analytics/backend/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/analytics/frontend/Dockerfile b/src/analytics/frontend/Dockerfile index a88fb3c5e74916156d37142c88e9d18016917838..50edd0aae4dd1d442bcc76eb6dc94ecb1260bd7d 100644 --- a/src/analytics/frontend/Dockerfile +++ b/src/analytics/frontend/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/automation/Dockerfile b/src/automation/Dockerfile index a8ebce336931e5517faa60d8628e13e19dd9745e..03264745d00d14f05975597f0d4ecf6f93711e61 100644 --- a/src/automation/Dockerfile +++ b/src/automation/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/bgpls_speaker/Dockerfile b/src/bgpls_speaker/Dockerfile index eed5b30e93e25c172c7bdfa84ba29171b3e12e47..316efca16f7067d486bb95f1b7d25de867e5f27c 100644 --- a/src/bgpls_speaker/Dockerfile +++ b/src/bgpls_speaker/Dockerfile @@ -56,13 +56,13 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' -# Install OpenJDK-21 -RUN apt-get update && \ - apt-get install -y openjdk-21-jre && \ +# Install OpenJDK-17 +RUN apt-get update -y && \ + apt-get install -y openjdk-17-jre && \ apt-get clean; # Get common Python packages @@ -96,7 +96,7 @@ RUN python3 -m pip install -r requirements.txt # Java module necessary config files WORKDIR /var/teraflow/bgpls_speaker RUN mkdir -p /java -COPY src/bgpls_speaker/service/java/* /java/ +COPY src/bgpls_speaker/service/java/* /java/ COPY --from=build /netphony-topology/target/bgp-ls-speaker-jar-with-dependencies.jar /var/teraflow/bgpls_speaker/service/java/bgp_ls.jar # Add component files into working directory diff --git a/src/common/tests/MockServicerImpl_Context.py b/src/common/tests/MockServicerImpl_Context.py index 310eb92b5b8827aa76d3b1079004f0395949a5a6..2cdfac7f7a2c1819e20d3ca3b22a929313572ce7 100644 --- a/src/common/tests/MockServicerImpl_Context.py +++ b/src/common/tests/MockServicerImpl_Context.py @@ -315,8 +315,8 @@ class MockServicerImpl_Context(ContextServiceServicer): if exclude_config_rules: del reply_device.device_config.config_rules[:] # pylint: disable=no-member if exclude_components: del reply_device.components[:] # pylint: disable=no-member devices.append(reply_device) - - reply = DeviceList(devices=devices) + + reply = DeviceList(devices=devices) LOGGER.debug('[SelectDevice] reply={:s}'.format(grpc_message_to_json_string(reply))) return reply @@ -468,13 +468,13 @@ class MockServicerImpl_Context(ContextServiceServicer): container_name = 'slice[{:s}]'.format(str(slice_id.context_id.context_uuid.uuid)) slice_uuid = slice_id.slice_uuid.uuid container_entry_uuids.setdefault(container_name, set()).add(slice_uuid) - + exclude_endpoint_ids = not request.include_endpoint_ids exclude_constraints = not request.include_constraints exclude_service_ids = not request.include_service_ids - exclude_subslice_ids = not request.include_subslice_ids + exclude_subslice_ids = not request.include_subslice_ids exclude_config_rules = not request.include_config_rules - + slices = list() for container_name in sorted(container_entry_uuids.keys()): entry_uuids = container_entry_uuids[container_name] @@ -487,7 +487,7 @@ class MockServicerImpl_Context(ContextServiceServicer): if exclude_subslice_ids : del reply_slice.slice_subslice_ids[:] # pylint: disable=no-member if exclude_config_rules: del reply_slice.slice_config .config_rules[:] # pylint: disable=no-member slices.append(reply_slice) - + reply = SliceList(slices=slices) LOGGER.debug('[SelectSlice] reply={:s}'.format(grpc_message_to_json_string(reply))) return reply @@ -563,23 +563,24 @@ class MockServicerImpl_Context(ContextServiceServicer): container_name = 'service[{:s}]'.format(str(service_id.context_id.context_uuid.uuid)) service_uuid = service_id.service_uuid.uuid container_entry_uuids.setdefault(container_name, set()).add(service_uuid) - + exclude_endpoint_ids = not request.include_endpoint_ids exclude_constraints = not request.include_constraints exclude_config_rules = not request.include_config_rules - + services = list() for container_name in sorted(container_entry_uuids.keys()): entry_uuids = container_entry_uuids[container_name] for service in self.obj_db.select_entries(container_name, entry_uuids): + LOGGER.debug('service={:s}'.format(grpc_message_to_json_string(service))) reply_service = Service() reply_service.CopyFrom(service) if exclude_endpoint_ids: del reply_service.service_endpoint_ids[:] # pylint: disable=no-member if exclude_constraints : del reply_service.service_constraints[:] # pylint: disable=no-member if exclude_config_rules: del reply_service.service_config.config_rules[:] # pylint: disable=no-member services.append(reply_service) - - reply = ServiceList(services=services) + + reply = ServiceList(services=services) LOGGER.debug('[SelectService] reply={:s}'.format(grpc_message_to_json_string(reply))) return reply diff --git a/src/common/tools/object_factory/Service.py b/src/common/tools/object_factory/Service.py index 5f5c776dc6bbcf3365f3436cbfb1569a32aafc85..d4e01b65f115be7cf06ffa5135e07abe8e6f7c04 100644 --- a/src/common/tools/object_factory/Service.py +++ b/src/common/tools/object_factory/Service.py @@ -93,7 +93,7 @@ def json_service_p4_planned( service_uuid, ServiceTypeEnum.SERVICETYPE_L1NM, context_id=json_context_id(context_uuid), status=ServiceStatusEnum.SERVICESTATUS_PLANNED, endpoint_ids=endpoint_ids, constraints=constraints, config_rules=config_rules) - + def json_service_iplink_planned( service_uuid : str, endpoint_ids : List[Dict] = [], constraints : List[Dict] = [], config_rules : List[Dict] = [], context_uuid : str = DEFAULT_CONTEXT_NAME @@ -103,3 +103,23 @@ def json_service_iplink_planned( service_uuid, ServiceTypeEnum.SERVICETYPE_IP_LINK, context_id=json_context_id(context_uuid), status=ServiceStatusEnum.SERVICESTATUS_PLANNED, endpoint_ids=endpoint_ids, constraints=constraints, config_rules=config_rules) + +def json_service_ipowdm_planned( + service_uuid : str, endpoint_ids : List[Dict] = [], constraints : List[Dict] = [], + config_rules : List[Dict] = [], context_uuid : str = DEFAULT_CONTEXT_NAME + ): + + return json_service( + service_uuid, ServiceTypeEnum.SERVICETYPE_IPOWDM, context_id=json_context_id(context_uuid), + status=ServiceStatusEnum.SERVICESTATUS_PLANNED, endpoint_ids=endpoint_ids, constraints=constraints, + config_rules=config_rules) + +def json_service_tapi_lsp_planned( + service_uuid : str, endpoint_ids : List[Dict] = [], constraints : List[Dict] = [], + config_rules : List[Dict] = [], context_uuid : str = DEFAULT_CONTEXT_NAME + ): + + return json_service( + service_uuid, ServiceTypeEnum.SERVICETYPE_TAPI_LSP, context_id=json_context_id(context_uuid), + status=ServiceStatusEnum.SERVICESTATUS_PLANNED, endpoint_ids=endpoint_ids, constraints=constraints, + config_rules=config_rules) diff --git a/src/common/tools/rest_conf/server/Dockerfile b/src/common/tools/rest_conf/server/Dockerfile index 1dbe96c0abe3b632829809d6c0f0e8ea0b5df365..6e87c0656515a2a49e8e60b1f51f8de4f02230e2 100644 --- a/src/common/tools/rest_conf/server/Dockerfile +++ b/src/common/tools/rest_conf/server/Dockerfile @@ -38,9 +38,9 @@ RUN ldconfig ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Create component sub-folders, get specific Python packages RUN mkdir -p /var/teraflow/restconf_server/ diff --git a/src/common/type_checkers/Assertions.py b/src/common/type_checkers/Assertions.py index a448a9a0716c9d1fa254b75a47a4ca3337084c81..478186059c542dec6d6197f8bce2addccfc25200 100644 --- a/src/common/type_checkers/Assertions.py +++ b/src/common/type_checkers/Assertions.py @@ -116,6 +116,8 @@ def validate_service_type_enum(message): 'SERVICETYPE_IP_LINK' 'SERVICETYPE_OPTICAL_CONNECTIVITY', 'SERVICETYPE_QKD', + 'SERVICETYPE_IPOWDM', + 'SERVICETYPE_TAPI_LSP', ] def validate_service_state_enum(message): @@ -153,7 +155,9 @@ def validate_uuid(message, allow_empty=False): CONFIG_RULE_TYPES = { 'custom', 'acl', - 'ip_link' + 'ip_link', + 'ipowdm', + 'tapi_lsp' } def validate_config_rule(message): assert isinstance(message, dict) diff --git a/src/context/service/database/ConfigRule.py b/src/context/service/database/ConfigRule.py index b24b0c6518935b6640475f23ceca02bfb29c5176..b801be68f8486963d4366530908ed2853855a311 100644 --- a/src/context/service/database/ConfigRule.py +++ b/src/context/service/database/ConfigRule.py @@ -71,8 +71,13 @@ def compose_config_rules_data( _, _, endpoint_uuid = endpoint_get_uuid(config_rule.acl.endpoint_id, allow_random=False) rule_set_name = config_rule.acl.rule_set.name configrule_name = '{:s}:{:s}:{:s}:{:s}'.format(parent_kind, kind.value, endpoint_uuid, rule_set_name) - elif kind == ConfigRuleKindEnum.IP_LINK: + elif kind == ConfigRuleKindEnum.IP_LINK: _, _, endpoint_uuid = endpoint_get_uuid(config_rule.ip_link.endpoint_id, allow_random=False) + elif kind == ConfigRuleKindEnum.IPOWDM: + _, _, endpoint_uuid = endpoint_get_uuid(config_rule.ipowdm.endpoint_id, allow_random=False) + configrule_name = '{:s}:{:s}:{:s}'.format(parent_kind, kind.value, endpoint_uuid) + elif kind == ConfigRuleKindEnum.TAPI_LSP: + _, _, endpoint_uuid = endpoint_get_uuid(config_rule.tapi_lsp.endpoint_id, allow_random=False) configrule_name = '{:s}:{:s}:{:s}'.format(parent_kind, kind.value, endpoint_uuid) else: MSG = 'Name for ConfigRule({:s}) cannot be inferred '+\ diff --git a/src/context/service/database/Service.py b/src/context/service/database/Service.py index ba872c50f6ceac4f0aa56947129604f4a4ac74bc..6685d1fbac3ca1254f634d95bb44ace812857817 100644 --- a/src/context/service/database/Service.py +++ b/src/context/service/database/Service.py @@ -90,6 +90,10 @@ def service_set(db_engine : Engine, messagebroker : MessageBroker, request : Ser service_type = "OPTICAL_CONNECTIVITY" if service_type is None and request.service_type == ServiceTypeEnum.SERVICETYPE_IP_LINK : service_type = "IP_LINK" + if service_type is None and request.service_type == ServiceTypeEnum.SERVICETYPE_IPOWDM: + service_type = "IPOWDM" + if service_type is None and request.service_type == ServiceTypeEnum.SERVICETYPE_TAPI_LSP: + service_type = "TAPI_LSP" service_status = grpc_to_enum__service_status(request.service_status.service_status) diff --git a/src/context/service/database/models/ConfigRuleModel.py b/src/context/service/database/models/ConfigRuleModel.py index f098c1253fef99e8c1e5c55da956811691ed2df2..fdc6d6f64d0042fd3c36ed2633acb9005c26ef16 100644 --- a/src/context/service/database/models/ConfigRuleModel.py +++ b/src/context/service/database/models/ConfigRuleModel.py @@ -21,9 +21,11 @@ from ._Base import _Base # Enum values should match name of field in ConfigRule message class ConfigRuleKindEnum(enum.Enum): - CUSTOM = 'custom' - ACL = 'acl' - IP_LINK = 'ip_link' + CUSTOM = 'custom' + ACL = 'acl' + IP_LINK = 'ip_link' + IPOWDM = 'ipowdm' + TAPI_LSP = 'tapi_lsp' class DeviceConfigRuleModel(_Base): __tablename__ = 'device_configrule' diff --git a/src/context/service/database/models/enums/ServiceType.py b/src/context/service/database/models/enums/ServiceType.py index 29631ce3c27ceee4a949afb68fd36d201594ebeb..c672d160ff194f35b085971a0639f8d6c8470307 100644 --- a/src/context/service/database/models/enums/ServiceType.py +++ b/src/context/service/database/models/enums/ServiceType.py @@ -34,6 +34,8 @@ class ORM_ServiceTypeEnum(enum.Enum): INT = ServiceTypeEnum.SERVICETYPE_INT ACL = ServiceTypeEnum.SERVICETYPE_ACL IP_LINK = ServiceTypeEnum.SERVICETYPE_IP_LINK + IPOWDM = ServiceTypeEnum.SERVICETYPE_IPOWDM + TAPI_LSP = ServiceTypeEnum.SERVICETYPE_TAPI_LSP grpc_to_enum__service_type = functools.partial( grpc_to_enum, ServiceTypeEnum, ORM_ServiceTypeEnum) diff --git a/src/dbscanserving/Dockerfile b/src/dbscanserving/Dockerfile index a7233cf6521cf608c08d74c234a8e60639283e4a..87c6c6fafb00bb51d97ceacffc71f2d2ea31e534 100644 --- a/src/dbscanserving/Dockerfile +++ b/src/dbscanserving/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/device/Dockerfile b/src/device/Dockerfile index d8541912838a4e7c19923a6ad10c67d909a4a622..e33f4e980a46560e07828f071a9486d6f8b76698 100644 --- a/src/device/Dockerfile +++ b/src/device/Dockerfile @@ -43,9 +43,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/device/service/Tools.py b/src/device/service/Tools.py index 6b8eb4caefe916b38c37f9fed57a5eb789e1c53a..1adde7d6f78b09295eaf0b4990835c22ea694f6b 100644 --- a/src/device/service/Tools.py +++ b/src/device/service/Tools.py @@ -165,7 +165,7 @@ def populate_endpoints( _sub_device.name = _sub_device_name _sub_device.device_type = resource_value['type'] _sub_device.device_operational_status = resource_value['status'] - + # Sub-devices might not have a driver assigned. if 'drivers' in resource_value: drivers = resource_value['drivers'] @@ -382,9 +382,9 @@ def populate_initial_config_rules(device_uuid : str, device_config : DeviceConfi def compute_rules_to_add_delete( device : Device, request : Device ) -> Tuple[List[Tuple[str, Any]], List[Tuple[str, Any]]]: - # convert config rules from context into a dictionary + # convert config rules from context into a dictionary context_config_rules = {} - for config_rule in device.device_config.config_rules: + for config_rule in device.device_config.config_rules: config_rule_kind = config_rule.WhichOneof('config_rule') if config_rule_kind == 'custom': # process "custom" rules context_config_rules[config_rule.custom.resource_key] = config_rule.custom.resource_value # get the resource value of the rule resource @@ -393,39 +393,74 @@ def compute_rules_to_add_delete( endpoint_uuid = config_rule.acl.endpoint_id.endpoint_uuid.uuid # get the endpoint name acl_ruleset_name = config_rule.acl.rule_set.name # get the acl name ACL_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/acl_ruleset[{:s}]' - key_or_path = ACL_KEY_TEMPLATE.format(device_uuid, endpoint_uuid, acl_ruleset_name) + key_or_path = ACL_KEY_TEMPLATE.format(device_uuid, endpoint_uuid, acl_ruleset_name) context_config_rules[key_or_path] = grpc_message_to_json(config_rule.acl) # get the resource value of the acl elif config_rule_kind == 'ip_link': device_uuid = config_rule.ip_link.endpoint_id.device_id.device_uuid.uuid # get the device name endpoint_uuid = config_rule.ip_link.endpoint_id.endpoint_uuid.uuid # get the endpoint name request_config_rules = [] ip_link_ruleset_name = config_rule.ip_link.rule_set.name # get the ip_link name IP_LINK_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/ip_link_ruleset[{:s}]' - key_or_path = IP_LINK_KEY_TEMPLATE.format(device_uuid, endpoint_uuid, ip_link_ruleset_name) + key_or_path = IP_LINK_KEY_TEMPLATE.format(device_uuid, endpoint_uuid, ip_link_ruleset_name) context_config_rules[key_or_path] = grpc_message_to_json(config_rule.ip_link) # get the resource value of the ip_link + elif config_rule_kind == 'ipowdm': + device_uuid = config_rule.ipowdm.endpoint_id.device_id.device_uuid.uuid + endpoint_uuid = config_rule.ipowdm.endpoint_id.endpoint_uuid.uuid + ipowdm_ruleset_name = config_rule.ipowdm.rule_set.uuid + IPOWDM_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/ipowdm_ruleset[{:s}]' + key_or_path = IPOWDM_KEY_TEMPLATE.format(device_uuid, endpoint_uuid, ipowdm_ruleset_name) + context_config_rules[key_or_path] = grpc_message_to_json(config_rule.ipowdm) + LOGGER.debug('context_config_rules [%s] = %s', key_or_path, context_config_rules[key_or_path]) + elif config_rule_kind == 'tapi_lsp': + device_uuid = config_rule.tapi_lsp.endpoint_id.device_id.device_uuid.uuid # get the device name + endpoint_uuid = config_rule.tapi_lsp.endpoint_id.endpoint_uuid.uuid # get the endpoint name + tapi_lsp_ruleset_name = config_rule.tapi_lsp.rule_set.name # get the ip_link name + TAPI_LSP_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/tapi_lsp_ruleset[{:s}]' + key_or_path = TAPI_LSP_KEY_TEMPLATE.format(device_uuid, endpoint_uuid, tapi_lsp_ruleset_name) + context_config_rules[key_or_path] = grpc_message_to_json(config_rule.tapi_lsp) + LOGGER.debug('context_config_rules [%s] = {context_config_rules[%s]}',key_or_path, key_or_path) + request_config_rules = [] for config_rule in request.device_config.config_rules: config_rule_kind = config_rule.WhichOneof('config_rule') - if config_rule_kind == 'custom': # resource management of "custom" rule + if config_rule_kind == 'custom': # resource management of "custom" rule request_config_rules.append(( config_rule.action, config_rule.custom.resource_key, config_rule.custom.resource_value )) - elif config_rule_kind == 'acl': # resource management of "acl" rule + elif config_rule_kind == 'acl': # resource management of "acl" rule device_uuid = config_rule.acl.endpoint_id.device_id.device_uuid.uuid endpoint_uuid = config_rule.acl.endpoint_id.endpoint_uuid.uuid acl_ruleset_name = config_rule.acl.rule_set.name ACL_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/acl_ruleset[{:s}]' - key_or_path = ACL_KEY_TEMPLATE.format(device_uuid, endpoint_uuid, acl_ruleset_name) + key_or_path = ACL_KEY_TEMPLATE.format(device_uuid, endpoint_uuid, acl_ruleset_name) request_config_rules.append(( config_rule.action, key_or_path, grpc_message_to_json(config_rule.acl) )) - elif config_rule_kind == 'ip_link': # resource management of "ip_link" rule + elif config_rule_kind == 'ip_link': # resource management of "ip_link" rule device_uuid = config_rule.ip_link.endpoint_id.device_id.device_uuid.uuid endpoint_uuid = config_rule.ip_link.endpoint_id.endpoint_uuid.uuid IP_LINK_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/ip_link_ruleset' - key_or_path = IP_LINK_KEY_TEMPLATE.format(device_uuid, endpoint_uuid) + key_or_path = IP_LINK_KEY_TEMPLATE.format(device_uuid, endpoint_uuid) request_config_rules.append(( config_rule.action, key_or_path, grpc_message_to_json(config_rule.ip_link) )) + elif config_rule_kind == 'ipowdm': # resource management of "ipowdm" rule + device_uuid = config_rule.ipowdm.endpoint_id.device_id.device_uuid.uuid + endpoint_uuid = config_rule.ipowdm.endpoint_id.endpoint_uuid.uuid + ipowdm_name = config_rule.ipowdm.rule_set.uuid + IPOWDM_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/ipowdm_ruleset[{:s}]' + key_or_path = IPOWDM_KEY_TEMPLATE.format(device_uuid, endpoint_uuid,ipowdm_name) + request_config_rules.append(( + config_rule.action, key_or_path, grpc_message_to_json(config_rule.ipowdm) + )) + LOGGER.debug('context_config_rules= %s', request_config_rules) + elif config_rule_kind == 'tapi_lsp': # resource management of "tapi_lsp" rule + device_uuid = config_rule.tapi_lsp.endpoint_id.device_id.device_uuid.uuid + endpoint_uuid = config_rule.tapi_lsp.endpoint_id.endpoint_uuid.uuid + TAPI_LSP_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/tapi_lsp_ruleset' + key_or_path = TAPI_LSP_KEY_TEMPLATE.format(device_uuid, endpoint_uuid) + request_config_rules.append(( + config_rule.action, key_or_path, grpc_message_to_json(config_rule.tapi_lsp) + )) resources_to_set : List[Tuple[str, Any]] = [] # key, value resources_to_delete : List[Tuple[str, Any]] = [] # key, value @@ -504,7 +539,7 @@ def subscribe_kpi(request : MonitoringSettings, driver : _Driver, monitoring_loo return errors def unsubscribe_kpi(request : MonitoringSettings, driver : _Driver, monitoring_loops : MonitoringLoops) -> List[str]: - kpi_uuid = request.kpi_id.kpi_id.uuid + kpi_uuid = request.kpi_id.kpi_id.uuid kpi_details = monitoring_loops.get_kpi_by_uuid(kpi_uuid) if kpi_details is None: @@ -601,7 +636,7 @@ def extract_resources(config : dict, device : Device) -> list[list[dict], dict]: else : resources.append(is_key_existed('channel_namespace', config)) resources.append(is_key_existed('add_transceiver', config)) - + conditions['is_opticalband'] = is_opticalband if 'flow' in config: #for tuple_value in config['flow'][device.name]: @@ -609,7 +644,7 @@ def extract_resources(config : dict, device : Device) -> list[list[dict], dict]: dest_vals = [] handled_flow = [] for tuple_value in config['flow']: - source_port = None + source_port = None destination_port = None source_port_uuid, destination_port_uuid = tuple_value if source_port_uuid != '0': @@ -639,24 +674,24 @@ def extract_resources(config : dict, device : Device) -> list[list[dict], dict]: if device.device_type == DeviceTypeEnum.OPEN_ROADM._value_ : resources.append(is_key_existed('band', keys_dic=config['new_config'], key_name_to_use='band')) - + for t_port in handled_flow: for i in list(t_port): - if i : + if i : t_circuit ={} - for c in config['interfaces'] : - - ports_list = c["port"].split('/') - - if i in ports_list : + for c in config['interfaces'] : + + ports_list = c["port"].split('/') + + if i in ports_list : # in case it has no type the targeted port has no configuration yet if c['type'] =='Null' : resources.append({'resource_key': 'interface_list'+'-'+i, 'value': c["interface_list"] }) resources.append({"resource_key":"supporting-circuit-pack-name"+'-'+i,"value":c["circuit_pack_name"]}) - resources.append({"resource_key":"administrative_state"+'-'+i,"value":c["administrative_state"]}) + resources.append({"resource_key":"administrative_state"+'-'+i,"value":c["administrative_state"]}) resources.append({"resource_key":"frequency","value":c["frequency"]}) resources.append({'resource_key': 'interface_type'+'-'+i, 'value': "Null" }) - # in case it has nmc type , extract only the interface name which may be used later in cross connection + # in case it has nmc type , extract only the interface name which may be used later in cross connection elif c['type'] == 'nmc': resources.append({'resource_key': 'interface_name'+'-'+i+'-'+'nmc', 'value': c["name"] }) resources.append({'resource_key': 'interface_list'+'-'+i, 'value': c["interface_list"] }) @@ -665,8 +700,8 @@ def extract_resources(config : dict, device : Device) -> list[list[dict], dict]: resources.append({'resource_key': 'interface_name'+'-'+i+'-'+'srg', 'value': c["name"] }) resources.append({'resource_key': 'interface_list'+'-'+i, 'value': c["interface_list"] }) resources.append({'resource_key': 'interface_type'+'-'+i+'-'+'srg', 'value': "srg" }) - - + + if not is_opticalband: if 'frequency' in config['new_config'] and 'band' in config['new_config'] and conditions['edit_type'] == 'media-channel': diff --git a/src/device/service/drivers/emulated/Tools.py b/src/device/service/drivers/emulated/Tools.py index d65e2ff1db36afd9895b6193c5f2ce3f412bb7e0..697a5995a7c8bfd43517b9fb124e374e467147d5 100644 --- a/src/device/service/drivers/emulated/Tools.py +++ b/src/device/service/drivers/emulated/Tools.py @@ -79,7 +79,7 @@ def compose_resource_endpoint(endpoint_data : Dict[str, Any]) -> Optional[Tuple[ if len(sample_types) > 0: endpoint_resource_value['sample_types'] = sample_types - + if 'location' in endpoint_data: endpoint_resource_value['location'] = endpoint_data['location'] @@ -102,7 +102,7 @@ def compose_resource_endpoint(endpoint_data : Dict[str, Any]) -> Optional[Tuple[ endpoint_resource_value["ipv4_lan_prefixes"] = endpoint_data[ "ipv4_lan_prefixes" ] - + return endpoint_resource_key, endpoint_resource_value except: # pylint: disable=bare-except LOGGER.exception('Problem composing endpoint({:s})'.format(str(endpoint_data))) diff --git a/src/device/service/drivers/ietf_l3vpn/IetfL3VpnDriver.py b/src/device/service/drivers/ietf_l3vpn/IetfL3VpnDriver.py index c1cf51536d7a4f09eefba26a836ef13d0e2f64c8..08f34b8ad12ae34ee38d94bb18ad762e958c18cb 100644 --- a/src/device/service/drivers/ietf_l3vpn/IetfL3VpnDriver.py +++ b/src/device/service/drivers/ietf_l3vpn/IetfL3VpnDriver.py @@ -27,6 +27,7 @@ from .handlers.SubscriptionHandler import ( from .Constants import SPECIAL_RESOURCE_MAPPINGS from .TfsApiClient import TfsApiClient from .Tools import compose_resource_endpoint +from .templates.tools import create_request LOGGER = logging.getLogger(__name__) @@ -188,21 +189,59 @@ class IetfL3VpnDriver(_Driver): results = [] if len(resources) == 0: return results with self.__lock: - for i, resource in enumerate(resources): - str_resource_name = 'resource_key[#{:d}]'.format(i) - LOGGER.info('[SetConfig] resource = {:s}'.format(str(resource))) - resource_key, resource_value = resource - - if not RE_IETF_L3VPN_DATA.match(resource_key): continue - - try: - resource_value = json.loads(resource_value) - self.tac.create_connectivity_service(resource_value) - results.append((resource_key, True)) - except Exception as e: - MSG = 'Unhandled error processing SET {:s}: resource_key({:s})' - LOGGER.exception(MSG.format(str_resource_name, str(resource_key))) - results.append((resource_key, e)) + if 'ipowdm' in str(resources): + for resource in resources: + if 'ipowdm' in str(resource): + try: + create_request(resource) + LOGGER.info('Request created successfully') + results.append((resource, True)) + except Exception as e: + MSG = 'Invalid resource_value type: expected dict, got {:s}' + results.append((resource, e)) + else: + for resource in resources: + resource_key, resource_value = resource + if RE_IETF_L3VPN_OPERATION.match(resource_key): + operation_type = json.loads(resource_value)["type"] + results.append((resource_key, True)) + break + else: + raise Exception("operation type not found in resources") + for resource in resources: + LOGGER.info('resource = {:s}'.format(str(resource))) + resource_key, resource_value = resource + if not RE_IETF_L3VPN_DATA.match(resource_key): + continue + try: + resource_value = json.loads(resource_value) + + # if service_exists(self.__tfs_nbi_root, self.__auth, service_uuid): + # exc = NotImplementedError( + # "IETF L3VPN Service Update is still not supported" + # ) + # results.append((resource[0], exc)) + # continue + if operation_type == "create": + service_id = resource_value["ietf-l3vpn-svc:l3vpn-svc"][ + "vpn-services" + ]["vpn-service"][0]["vpn-id"] + self.tac.create_connectivity_service(resource_value) + elif operation_type == "update": + service_id = resource_value["ietf-l3vpn-svc:l3vpn-svc"][ + "vpn-services" + ]["vpn-service"][0]["vpn-id"] + self.tac.update_connectivity_service(resource_value) + else: + raise Exception("operation type not supported") + results.append((resource_key, True)) + except Exception as e: # pylint: disable=broad-except + LOGGER.exception( + "Unhandled error processing resource_key({:s})".format( + str(resource_key) + ) + ) + results.append((resource_key, e)) return results diff --git a/src/device/service/drivers/ietf_l3vpn/templates/ipowdm.json b/src/device/service/drivers/ietf_l3vpn/templates/ipowdm.json new file mode 100644 index 0000000000000000000000000000000000000000..db700293f442d8b10b16318ec8d388d818d2e61e --- /dev/null +++ b/src/device/service/drivers/ietf_l3vpn/templates/ipowdm.json @@ -0,0 +1,29 @@ +{ + "services": [ + { + "service_id": { + "context_id": {"context_uuid": {"uuid": "admin"}}, + "service_uuid": {"uuid": "IPoWDM"} + }, + "service_type": 12, + "service_status": {"service_status": 1}, + "service_endpoint_ids": [ + {"device_id": {"device_uuid": {"uuid": "IP1"}},"endpoint_uuid": {"uuid": "PORT-xe4"}}, + {"device_id": {"device_uuid": {"uuid": "IP2"}},"endpoint_uuid": {"uuid": "PORT-xe4"}} + ], + "service_constraints": [], + "service_config": {"config_rules": [ + {"action": 1, "ipowdm": { + "endpoint_id": { + "device_id": {"device_uuid": {"uuid": "IP1"}}, + "endpoint_uuid": {"uuid": "PORT-xe4"} + }, + "rule_set": { + "src" : [], + "dst" : [] + } + }} + ]} + } + ] +} diff --git a/src/device/service/drivers/ietf_l3vpn/templates/tools.py b/src/device/service/drivers/ietf_l3vpn/templates/tools.py new file mode 100644 index 0000000000000000000000000000000000000000..a9a4adbb24f6770ce5bcba3058337370721f3019 --- /dev/null +++ b/src/device/service/drivers/ietf_l3vpn/templates/tools.py @@ -0,0 +1,316 @@ +# Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import json +import logging +import os +import requests +from concurrent.futures import ThreadPoolExecutor + +LOGGER = logging.getLogger(__name__) + +HEADERS = { + "Accept": "application/yang-data+json", + "Content-Type": "application/yang-data+json" +} + +executor = ThreadPoolExecutor() + +site_template = { + "site-id": "", + "devices": { + "device": [ + { + "device-id": "", + "location": "" + } + ] + }, + "site-network-accesses": { + "site-network-access": [ + { + "site-network-access-id": "", + "device-reference": "", + "ip-connection": { + "ipv4": { + "address-allocation-type": "ietf-l3vpn-svc:static-address", + "addresses": { + "provider-address": "", + "customer-address": "", + "prefix-length": "" + } + } + }, + "vpn-attachment": { + "vpn-id": "vpn-p2mp" + }, + "site-network-access-type": "ietf-l3vpn-svc:multipoint" + } + ] + } +} + +def generate_l3vpn_template_pair(src, dst, vpn_id): + + return { + "ietf-l3vpn-svc:l3vpn-svc": { + "vpn-services": { + "vpn-service": [{"vpn-id": vpn_id}] + }, + "sites": { + "site": [ + { + "site-id": src["uuid"], + "management": {"type": "ietf-l3vpn-svc:provider-managed"}, + "locations": {"location": [{"location-id": f"location-{src['uuid']}"}]}, + "devices": {"device": [{ + "device-id": "10.0.30.1", + "location": f"location-{src['uuid']}" + }]}, + "routing-protocols": {"routing-protocol": [{ + "type": "ietf-l3vpn-svc:static", + "static": { + "cascaded-lan-prefixes": { + "ipv4-lan-prefixes": [ + { + "lan": "128.32.10.1/24", + "lan-tag": f"vlan{src['vlan_id']}", + "next-hop": "10.0.30.10" + } + ] + } + } + }]}, + "site-network-accesses": { + "site-network-access": [{ + "site-network-access-id": f"{src['vlan_id']}", + "site-network-access-type": "ietf-l3vpn-svc:multipoint", + "device-reference": "10.0.30.1", + "vpn-attachment": { + "vpn-id": vpn_id, "site-role": "ietf-l3vpn-svc:spoke-role" + }, + "ip-connection": { + "ipv4": { + "address-allocation-type": "ietf-l3vpn-svc:static-address", + "addresses": { + "provider-address": "10.0.30.254", + "customer-address": "10.0.30.10", + "prefix-length": 24 + } + } + }, + "routing-protocols": {"routing-protocol": [{ + "type": "ietf-l3vpn-svc:static", + "static": { + "cascaded-lan-prefixes": { + "ipv4-lan-prefixes": [ + { + "lan": "172.1.101.1/24", + "lan-tag": "vlan100", + "next-hop": "10.0.30.254" + } + ] + } + } + }]}, + "service": { + "svc-mtu": 1500, + "svc-input-bandwidth": 1000000000, + "svc-output-bandwidth": 1000000000, + "qos": { + "qos-profile": { + "classes": { + "class": [ + { + "class-id": "qos-realtime", + "direction": "ietf-l3vpn-svc:both", + "latency": { + "latency-boundary": 10 + }, + "bandwidth": { + "guaranteed-bw-percent": 100 + } + } + ] + } + } + } + } + }] + } + }, + { + "site-id": dst["uuid"], + "management": {"type": "ietf-l3vpn-svc:provider-managed"}, + "locations": {"location": [{"location-id": f"location-{dst['uuid']}"}]}, + "devices": {"device": [{ + "device-id": "10.0.20.1", + "location": f"location-{dst['uuid']}" + }]}, + "routing-protocols": {"routing-protocol": [{ + "type": "ietf-l3vpn-svc:static", + "static": { + "cascaded-lan-prefixes": { + "ipv4-lan-prefixes": [ + { + "lan": "172.1.101.1/24", + "lan-tag": "vlan200", + "next-hop": "172.10.33.2" + } + ] + } + } + }]}, + "site-network-accesses": { + "site-network-access": [{ + "site-network-access-id": f"{dst['vlan_id']}", + "site-network-access-type": "ietf-l3vpn-svc:multipoint", + "device-reference": "10.0.20.1", + "vpn-attachment": { + "vpn-id": vpn_id, "site-role": "ietf-l3vpn-svc:hub-role" + }, + "ip-connection": { + "ipv4": { + "address-allocation-type": "ietf-l3vpn-svc:static-address", + "addresses": { + "provider-address": "172.10.33.254", + "customer-address": "172.10.33.2", + "prefix-length": 24 + } + } + }, + "routing-protocols": {"routing-protocol": [{ + "type": "ietf-l3vpn-svc:static", + "static": { + "cascaded-lan-prefixes": { + "ipv4-lan-prefixes": [ + { + "lan": "128.32.10.1/24", + "lan-tag": "vlan200", + "next-hop": "172.10.33.254" + } + ] + } + } + }]}, + "service": { + "svc-mtu": 1500, + "svc-input-bandwidth": 1000000000, + "svc-output-bandwidth": 1000000000, + "qos": { + "qos-profile": { + "classes": { + "class": [ + { + "class-id": "qos-realtime", + "direction": "ietf-l3vpn-svc:both", + "latency": { + "latency-boundary": 10 + }, + "bandwidth": { + "guaranteed-bw-percent": 100 + } + } + ] + } + } + } + } + }] + } + } + ] + } + } + } + +def create_request(resource_value): + """ Create and send HTTP request based on a JSON template and provided resource value. + The JSON template is expected to be in the same directory as this script, named 'ipowdm.json'. + Example resource_value: + {"rule_set": { + "uuid": "unique-service-uuid", + "bw": 100, + "src": [{"uuid": "src-device-uuid", "ip_address": "192.168.1.1", "ip_mask": "24", "vlan_id": 100, "power": 10, "frequency": 193100}], + "dst": [{"uuid": "dst-device-uuid", "ip_address": "192.168.3.3", "ip_mask": "24", "vlan_id": 100, "power": 10, "frequency": 193100}] + }} + The src and dst fields are lists to accommodate future extensions for multi-endpoint scenarios. + The request is sent to a predefined URL with appropriate headers. + Returns a response-like object with status_code and text attributes. + In case of error, returns a SimpleNamespace with status_code 500 and the error message in text. + + Note: The actual HTTP request sending is currently mocked for testing purposes. + The URL and headers are hardcoded for demonstration and should be adapted as needed. + """ + + LOGGER.info("Creating request for resource_value: %s", resource_value) + + node_src = resource_value[1]['rule_set']['src'][0] + src = [{ + 'uuid': node_src["uuid"], + 'ip_address': node_src["ip_address"], + 'ip_mask': node_src["ip_mask"], + 'vlan_id': node_src["vlan_id"] + }] + dst_list = resource_value[1]['rule_set']['dst'] + dsts = [] + for node in dst_list: + dsts.append({ + 'uuid': node["uuid"], + 'ip_address': node["ip_address"], + 'ip_mask': node["ip_mask"], + 'vlan_id': node["vlan_id"] + }) + + sites_input = src + dsts + + components = resource_value[1]['rule_set']['transceiver']['components'] + for i, device in enumerate(components): + name = sites_input[i]['uuid'] + + if name == "T2.1":device["frequency"]= 195000000 + if name == "T1.1":device["frequency"]= 195006250 + if name == "T1.2":device["frequency"]= 195018750 + if name == "T1.3":device["frequency"]= 195031250 + + LOGGER.debug(f"NODE TO CONFIGURE: \n{name}: {json.dumps(device, indent=2)}") + response = patch_optical_channel_frequency(device, name) + LOGGER.debug(f"RESPONSE :\n {response}") + templates = [] + for dst in dsts: + vpn = "L3VPN_"+src[0]['uuid']+"_"+dst['uuid'] + templates.append(generate_l3vpn_template_pair(src[0], dst,vpn)) + + url = "http://192.168.202.254:80/restconf/data/ietf-l3vpn-svc:l3vpn-svc/vpn-services" + headers = { + 'accept': 'application/json', + 'Content-Type': 'application/json' + } + + for template in templates: + LOGGER.info("Generated L3VPN P2MP service JSON:\n%s", json.dumps(template, indent=2)) + + response = requests.post(url = url, headers= headers, json=template) + LOGGER.debug(response) + return None + +def patch_optical_channel_frequency(data, DEVICE_ID): + encoded_path = f"http://192.168.202.254:80/restconf/data/device={DEVICE_ID}/openconfig-platform:components/component=channel-1/optical-channel/config" + + patch_data = data + response = requests.patch(f"{encoded_path}", + json=patch_data, + headers=HEADERS) + assert response.status_code == 200 + return response diff --git a/src/device/service/drivers/openconfig/OpenConfigDriver.py b/src/device/service/drivers/openconfig/OpenConfigDriver.py index 46931674b10bd765129b90d6fa6c3cf0d8513caa..e6c861e721116d4599a8d6894c2f153b0397d130 100644 --- a/src/device/service/drivers/openconfig/OpenConfigDriver.py +++ b/src/device/service/drivers/openconfig/OpenConfigDriver.py @@ -96,14 +96,14 @@ class NetconfSessionHandler: def use_candidate(self): return self.__candidate_supported and not self.__force_running @property - def commit_per_rule(self): return self.__commit_per_rule + def commit_per_rule(self): return self.__commit_per_rule @property def vendor(self): return self.__vendor - + @property def version(self): return self.__version - + @property def message_renderer(self): return self.__message_renderer @@ -216,18 +216,18 @@ def edit_config( if "L2VSI" in resources[0][1]: #Configure by CLI logger.warning("CLI Configuration") - cli_compose_config(resources, delete=delete, host= netconf_handler._NetconfSessionHandler__address, user=netconf_handler._NetconfSessionHandler__username, passw=netconf_handler._NetconfSessionHandler__password) + cli_compose_config(resources, delete=delete, host= netconf_handler._NetconfSessionHandler__address, user=netconf_handler._NetconfSessionHandler__username, passw=netconf_handler._NetconfSessionHandler__password) for i,resource in enumerate(resources): results.append(True) - else: + else: logger.warning("CLI Configuration CISCO INTERFACE") - cisco_interface(resources, delete=delete, host= netconf_handler._NetconfSessionHandler__address, user=netconf_handler._NetconfSessionHandler__username, passw=netconf_handler._NetconfSessionHandler__password) + cisco_interface(resources, delete=delete, host= netconf_handler._NetconfSessionHandler__address, user=netconf_handler._NetconfSessionHandler__username, passw=netconf_handler._NetconfSessionHandler__password) for i,resource in enumerate(resources): results.append(True) - elif netconf_handler.vendor == "UFISPACE": + elif netconf_handler.vendor == "UFISPACE": #Configure by CLI logger.warning("CLI Configuration: {:s}".format(resources)) - ufi_interface(resources, delete=delete) + ufi_interface(resources, delete=delete) for i,resource in enumerate(resources): results.append(True) else: @@ -241,7 +241,7 @@ def edit_config( chk_string(str_resource_name + '.key', resource_key, allow_empty=False) str_config_messages = compose_config( # get template for configuration resource_key, resource_value, delete=delete, vendor=netconf_handler.vendor, message_renderer=netconf_handler.message_renderer) - for str_config_message in str_config_messages: # configuration of the received templates + for str_config_message in str_config_messages: # configuration of the received templates if str_config_message is None: raise UnsupportedResourceKeyException(resource_key) logger.debug('[{:s}] str_config_message[{:d}] = {:s}'.format( str_method, len(str_config_message), str(str_config_message))) @@ -252,7 +252,7 @@ def edit_config( netconf_handler.commit() # configuration commit if 'table_connections' in resource_key: time.sleep(5) # CPU usage might exceed critical level after route redistribution, BGP daemon needs time to reload - + #results[i] = True results.append(True) except Exception as e: # pylint: disable=broad-except diff --git a/src/device/service/drivers/openconfig/templates/Interfaces.py b/src/device/service/drivers/openconfig/templates/Interfaces.py index aea737100bcd980a097d2d2254750e44d59809a0..9f8d9a58518d6e2fadd9037f404a15c76a1e7856 100644 --- a/src/device/service/drivers/openconfig/templates/Interfaces.py +++ b/src/device/service/drivers/openconfig/templates/Interfaces.py @@ -39,11 +39,11 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: elif xml_interface.find('oci:state/oci:type', namespaces=NAMESPACES) is not None: interface_type = xml_interface.find('oci:state/oci:type', namespaces=NAMESPACES) else: continue - + interface_name = xml_interface.find('oci:name', namespaces=NAMESPACES) if interface_name is None or interface_name.text is None: continue add_value_from_tag(interface, 'name', interface_name) - + # Get the type of interface according to the vendor's type if 'ianaift:' in interface_type.text: interface_type.text = interface_type.text.replace('ianaift:', '') #ADVA @@ -102,10 +102,10 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: address = xml_ipv6_address.find('ociip:state/ociip:ip', namespaces=NAMESPACES) add_value_from_tag(subinterface, 'address_ipv6', address) - + prefix = xml_ipv6_address.find('ociip:state/ociip:prefix-length', namespaces=NAMESPACES) add_value_from_tag(subinterface, 'address_prefix_v6', prefix, cast=int) - + if len(subinterface) == 0: continue resource_key = '/interface[{:s}]/subinterface[{:s}]'.format(interface['name'], str(subinterface['index'])) response.append((resource_key, subinterface)) diff --git a/src/device/service/drivers/openconfig/templates/Inventory.py b/src/device/service/drivers/openconfig/templates/Inventory.py index d54d21d47aa1ed7e821e2c8572cc19f481a406f7..cfa31d9ba50a816547304a28da33c0e75f23e14f 100644 --- a/src/device/service/drivers/openconfig/templates/Inventory.py +++ b/src/device/service/drivers/openconfig/templates/Inventory.py @@ -25,30 +25,30 @@ XPATH_PORTS = "//ocp:components/ocp:component" #Method Name: parse #Parameters: - + - xml_data: [ET.Element] Represents the XML data to be parsed. # Functionality: The parse function of the inventerio class has the functionality to parse - an XML document represented by the xml_data parameter and extract specific - information from the XML elements, namely the relevant characteristics of the - components. + an XML document represented by the xml_data parameter and extract specific + information from the XML elements, namely the relevant characteristics of the + components. To generate the template the following steps are performed: 1) An empty list called response is created to store the results of the analysis. - 2) Iterate over the XML elements that match the pattern specified by the XPATH_PORTS + 2) Iterate over the XML elements that match the pattern specified by the XPATH_PORTS expression. These elements represent components in the XML document. 3) For each component element: - A dictionary called inventory is initialized that will store the information extracted + A dictionary called inventory is initialized that will store the information extracted from the component.The values of the relevant XML elements are extracted and added to the dictionary. -#Return: - List[Tuple[str, Dict[str, Any]]] The response list containing the tuples (path, dictionary) +#Return: + List[Tuple[str, Dict[str, Any]]] The response list containing the tuples (path, dictionary) with the information extracted from the XML document components is returned. """ @@ -59,19 +59,19 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: LOGGER.info('xml_component inventario = {:s}'.format(str(ET.tostring(xml_component)))) inventory = {} inventory['parent-component-references'] = '' - inventory['name'] = '' + inventory['name'] = '' inventory['class'] = '' inventory['attributes'] = {} component_reference = [] component_name = xml_component.find('ocp:name', namespaces=NAMESPACES) if component_name is None or component_name.text is None: continue - add_value_from_tag(inventory, 'name', component_name) + add_value_from_tag(inventory, 'name', component_name) component_description = xml_component.find('ocp:state/ocp:description', namespaces=NAMESPACES) if not component_description is None: add_value_from_tag(inventory['attributes'], 'description', component_description) - + component_location = xml_component.find('ocp:state/ocp:location', namespaces=NAMESPACES) if not component_location is None: add_value_from_tag(inventory['attributes'], 'location', component_location) @@ -79,12 +79,12 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: component_id = xml_component.find('ocp:state/ocp:id', namespaces=NAMESPACES) if not component_id is None: add_value_from_tag(inventory['attributes'], 'id', component_id) - + component_type = xml_component.find('ocp:state/ocp:type', namespaces=NAMESPACES) if component_type is not None: component_type.text = component_type.text.replace('oc-platform-types:','') add_value_from_tag(inventory, 'class', component_type) - + if inventory['class'] == 'CPU' or inventory['class'] == 'STORAGE': continue component_empty = xml_component.find('ocp:state/ocp:empty', namespaces=NAMESPACES) @@ -92,7 +92,7 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: add_value_from_tag(inventory['attributes'], 'empty', component_empty) component_parent = xml_component.find('ocp:state/ocp:parent', namespaces=NAMESPACES) - if not component_parent is None: + if not component_parent is None: add_value_from_tag(inventory, 'parent-component-references', component_parent) component_HW = xml_component.find('ocp:state/ocp:hardware-version', namespaces=NAMESPACES) @@ -114,7 +114,7 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: component_mfg_name = xml_component.find('ocp:state/ocp:mfg-name', namespaces=NAMESPACES) if not component_mfg_name is None: add_value_from_tag(inventory['attributes'], 'mfg-name', component_mfg_name) - + component_removable = xml_component.find('ocp:state/ocp:removable', namespaces=NAMESPACES) if not component_removable is None: add_value_from_tag(inventory['attributes'], 'removable', component_removable) @@ -127,10 +127,10 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: component_serial_t = xml_component.find('ocptr:transceiver/ocptr:state/ocptr:serial-no', namespaces=NAMESPACES) if not component_serial_t is None: add_value_from_tag(inventory['attributes'], 'serial-num', component_serial_t) - + component_present = xml_component.find('ocptr:transceiver/ocptr:state/ocptr:present', namespaces=NAMESPACES) if component_present is not None and 'NOT_PRESENT' in component_present.text: continue - + component_vendor = xml_component.find('ocptr:transceiver/ocptr:state/ocptr:vendor', namespaces=NAMESPACES) if not component_vendor is None: add_value_from_tag(inventory['attributes'], 'vendor', component_vendor) @@ -138,7 +138,7 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: if not component_connector is None: component_connector.text = component_connector.text.replace('oc-opt-types:','') add_value_from_tag(inventory['attributes'], 'connector-type', component_connector) - + component_form = xml_component.find('ocptr:transceiver/ocptr:state/ocptr:form-factor', namespaces=NAMESPACES) if not component_form is None: component_form.text = component_form.text.replace('oc-opt-types:','') @@ -148,7 +148,7 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: parent_types[inventory['parent-component-references']] = len(parent_types) + 1 component_reference.extend([parent_types[inventory['parent-component-references']]]) - + response.append(('/inventory/{:s}'.format(inventory['name']), inventory)) for tupla in response: @@ -156,5 +156,5 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: component_reference.extend([tupla[1]['class']]) inventory['component-reference'] = component_reference - + return response diff --git a/src/device/service/drivers/openconfig/templates/NetworkInstances.py b/src/device/service/drivers/openconfig/templates/NetworkInstances.py index 7fee1b76137e9d0d55451d2326c2a38c2d51d79e..bab097d79f15c6c4cf46c28b12bac55d496b4324 100644 --- a/src/device/service/drivers/openconfig/templates/NetworkInstances.py +++ b/src/device/service/drivers/openconfig/templates/NetworkInstances.py @@ -48,7 +48,7 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: ni_type.text = ni_type.text.replace('oc-ni-types:','') add_value_from_tag(network_instance, 'type', ni_type) ''' - + if xml_network_instance.find('ocni:config/ocni:type', namespaces=NAMESPACES) is not None: ni_type = xml_network_instance.find('ocni:config/ocni:type', namespaces=NAMESPACES) elif xml_network_instance.find('oci:state/oci:type', namespaces=NAMESPACES) is not None: @@ -60,7 +60,7 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: elif 'idx'in ni_type.text: ni_type.text = ni_type.text.replace('idx:', '') #CISCO add_value_from_tag(network_instance, 'type', ni_type) - + ni_router_id = xml_network_instance.find('ocni:config/ocni:router-id', namespaces=NAMESPACES) add_value_from_tag(network_instance, 'router_id', ni_router_id) @@ -145,10 +145,10 @@ def parse(xml_data : ET.Element) -> List[Tuple[str, Dict[str, Any]]]: name_iface = xml_interface.find('ocni:config/ocni:interface', namespaces=NAMESPACES) if name_iface is None or name_iface.text is None: continue add_value_from_tag(interface, 'name_iface', name_iface) - + name_subiface = xml_interface.find('ocni:config/ocni:subinterface', namespaces=NAMESPACES) add_value_from_tag(interface, 'name_subiface', name_subiface) - + resource_key = '/network_instance[{:s}]/interface[{:s}]'.format( network_instance['name'], interface['name_iface']) response.append((resource_key, interface)) diff --git a/src/device/service/drivers/openconfig/templates/Tools.py b/src/device/service/drivers/openconfig/templates/Tools.py index 2bf9535b3965aedf372a122b3d2c66678a419761..dc1d9ae0c5fd1288c4f9e3751efd106eca487c04 100644 --- a/src/device/service/drivers/openconfig/templates/Tools.py +++ b/src/device/service/drivers/openconfig/templates/Tools.py @@ -33,20 +33,20 @@ def add_value_from_collection(target : Dict, field_name: str, field_value : Coll """ # Method Name: generate_templates - + # Parameters: - resource_key: [str] Variable to identify the rule to be executed. - resource_value: [str] Variable with the configuration parameters of the rule to be executed. - delete: [bool] Variable to identify whether to create or delete the rule. - vendor: [str] Variable to identify the vendor of the equipment to be configured. - + # Functionality: - This method generates the template to configure the equipment using pyangbind. + This method generates the template to configure the equipment using pyangbind. To generate the template the following steps are performed: 1) Get the first parameter of the variable "resource_key" to identify the main path of the rule. 2) Search for the specific configuration path - 3) Call the method with the configuration parameters (resource_data variable). - + 3) Call the method with the configuration parameters (resource_data variable). + # Return: [dict] Set of templates generated according to the configuration rule """ @@ -86,7 +86,7 @@ def generate_templates(resource_key: str, resource_value: str, delete: bool,vend result_templates.append(create_rp_statement(data, delete)) elif "acl_ruleset" in resource_key: # acl rules management result_templates.extend(acl_mgmt(resource_value,vendor, delete)) - else: + else: if "ip_link" in resource_key: result_templates.append(ip_link_mgmt(resource_value,vendor,delete)) diff --git a/src/device/service/drivers/transport_api/Tools.py b/src/device/service/drivers/transport_api/Tools.py index e2906ff352410939c9f28e7756da73e220c1640b..63b54b4ddd993eb3cc89f1b0717d385d7afe4825 100644 --- a/src/device/service/drivers/transport_api/Tools.py +++ b/src/device/service/drivers/transport_api/Tools.py @@ -16,9 +16,13 @@ import json, logging, operator, requests from requests.auth import HTTPBasicAuth from typing import Optional from device.service.driver_api._Driver import RESOURCE_ENDPOINTS, RESOURCE_SERVICES +from concurrent.futures import ThreadPoolExecutor + LOGGER = logging.getLogger(__name__) +EXECUTOR = ThreadPoolExecutor() + HTTP_OK_CODES = { 200, # OK 201, # Created @@ -196,3 +200,96 @@ def delete_connectivity_service(root_url, uuid, auth : Optional[HTTPBasicAuth] = LOGGER.error(msg.format(str(uuid), str(response.status_code), str(response))) results.append(response.status_code in HTTP_OK_CODES) return results + +def tapi_tequest(resource_value): + + services, urls = build_tapi_connectivity(resource_value) + for service, url in zip(services, urls): + LOGGER.info(f"Services to be processed: {json.dumps(service, indent=2)}") + LOGGER.info(f"URL to be used: {url}") + + EXECUTOR.submit(process_uuid, service, url) + +def process_uuid(service, url): + headers = { + "Content-Type": "application/json", + "Accept": "application/json" + } + + LOGGER.info(f"Processing service {service} to URL: {url}") + try: + response = requests.post(url = url, json=service, headers=headers, timeout=300) + LOGGER.info("Response Status code: %s", response) + except requests.exceptions.RequestException as e: + LOGGER.info(f"ERROR equest to {service} failed: {e}") + +def build_tapi_connectivity(service_data): + LOGGER.info(f"Building TAPI connectivity for services data: {service_data}") + outputs = [] + urls = [] + rules_set = service_data[1]["rule_set"] + for rule_set in rules_set: + direction = rule_set["direction"] + layer_name = rule_set["layer_protocol_name"] + layer_qualifier = rule_set["layer_protocol_qualifier"] + urls.append(rule_set["url"]) + cs = { + "uuid": rule_set["uuid"], + "connectivity-direction": direction, + "layer-protocol-name": layer_name, + "layer-protocol-qualifier": layer_qualifier, + "end-point": [] + } + + endpoints = [] + if direction == "UNIDIRECTIONAL": + endpoints.append({ + "layer-protocol-name": layer_name, + "layer-protocol-qualifier": layer_qualifier, + "service-interface-point": {"service-interface-point-uuid": rule_set["input_sip"]}, + "direction:": "INPUT", + "local-id": rule_set["input_sip"] + }) + endpoints.append({ + "layer-protocol-name": layer_name, + "layer-protocol-qualifier": layer_qualifier, + "service-interface-point": {"service-interface-point-uuid": rule_set["output_sip"]}, + "direction:": "OUTPUT", + "local-id": rule_set["output_sip"] + }) + else: + for point in [rule_set["input_sip"], rule_set["output_sip"]]: + ep = { + "layer-protocol-name": layer_name, + "layer-protocol-qualifier": layer_qualifier, + "service-interface-point": {"service-interface-point-uuid": point}, + "direction:": "BIDIRECTIONAL", + "local-id": point + } + if rule_set.get("lower_frequency_mhz") != "NONE": + ep["tapi-photonic-media:media-channel-connectivity-service-end-point-spec"] = { + "mc-config": { + "spectrum": { + "frequency-constraint": { + "adjustment-granularity": rule_set.get("granularity", "NONE"), + "grid-type": rule_set.get("grid_type", "NONE") + }, + "lower-frequency": rule_set["lower_frequency_mhz"], + "upper-frequency": rule_set["upper_frequency_mhz"] + } + } + } + endpoints.append(ep) + cs["end-point"] = endpoints + + route_obj = rule_set.get("route_objective_function", "UNSPECIFIED") + cs["route-objective-function"] = route_obj if route_obj != "NONE" else "10000" + capacity_value = rule_set.get("capacity_value", "NONE") + capacity_unit = rule_set.get("capacity_unit" , "NONE") + + if capacity_value != "NONE": + cs["requested-capacity"] = { + "total-size": {"value": capacity_value, "unit": capacity_unit} + } + outputs.append({"tapi-connectivity:connectivity-service": [cs]}) + return outputs, urls diff --git a/src/device/service/drivers/transport_api/TransportApiDriver.py b/src/device/service/drivers/transport_api/TransportApiDriver.py index 02f3bccf948ab9b7003ed8b521d6a45327abe9fd..6f958dc9bc02b59ca7cb73771efc27f1800b7d78 100644 --- a/src/device/service/drivers/transport_api/TransportApiDriver.py +++ b/src/device/service/drivers/transport_api/TransportApiDriver.py @@ -19,7 +19,7 @@ from common.method_wrappers.Decorator import MetricsPool, metered_subclass_metho from common.type_checkers.Checkers import chk_string, chk_type from device.service.driver_api._Driver import _Driver from . import ALL_RESOURCE_KEYS -from .Tools import create_connectivity_service, find_key, config_getter, delete_connectivity_service +from .Tools import create_connectivity_service, find_key, config_getter, delete_connectivity_service, tapi_tequest LOGGER = logging.getLogger(__name__) @@ -84,22 +84,31 @@ class TransportApiDriver(_Driver): if len(resources) == 0: return results with self.__lock: - for resource in resources: - LOGGER.info('resource = {:s}'.format(str(resource))) + if "tapi_lsp" in str(resources): + for resource in resources: + try: + tapi_tequest(resource) + results.append((resource, True)) + except Exception as e: + MSG = "Invalid resource_value type: expected dict, got {:s}" + results.append((resource, e)) + else: + for resource in resources: + LOGGER.info('resource = {:s}'.format(str(resource))) - uuid = find_key(resource, 'uuid') - input_sip = find_key(resource, 'input_sip_uuid') - output_sip = find_key(resource, 'output_sip_uuid') - capacity_value = find_key(resource, 'capacity_value') - capacity_unit = find_key(resource, 'capacity_unit') - layer_protocol_name = find_key(resource, 'layer_protocol_name') - layer_protocol_qualifier = find_key(resource, 'layer_protocol_qualifier') - direction = find_key(resource, 'direction') + uuid = find_key(resource, 'uuid') + input_sip = find_key(resource, 'input_sip_uuid') + output_sip = find_key(resource, 'output_sip_uuid') + capacity_value = find_key(resource, 'capacity_value') + capacity_unit = find_key(resource, 'capacity_unit') + layer_protocol_name = find_key(resource, 'layer_protocol_name') + layer_protocol_qualifier = find_key(resource, 'layer_protocol_qualifier') + direction = find_key(resource, 'direction') - data = create_connectivity_service( - self.__tapi_root, uuid, input_sip, output_sip, direction, capacity_value, capacity_unit, - layer_protocol_name, layer_protocol_qualifier, timeout=self.__timeout, auth=self.__auth) - results.extend(data) + data = create_connectivity_service( + self.__tapi_root, uuid, input_sip, output_sip, direction, capacity_value, capacity_unit, + layer_protocol_name, layer_protocol_qualifier, timeout=self.__timeout, auth=self.__auth) + results.extend(data) return results @metered_subclass_method(METRICS_POOL) diff --git a/src/dlt/connector/Dockerfile b/src/dlt/connector/Dockerfile index 53788da18d62c62e6570aece3a30d70eeda55c28..22d44a13d0c4e5f5f8f45a516e905e9aa15e4683 100644 --- a/src/dlt/connector/Dockerfile +++ b/src/dlt/connector/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/dlt/mock_blockchain/Dockerfile b/src/dlt/mock_blockchain/Dockerfile index 14b63c9ab38e5a76e13afabd4676b3f8e76b5bb9..92066f20bc12518ea9e99722906404631d492b74 100644 --- a/src/dlt/mock_blockchain/Dockerfile +++ b/src/dlt/mock_blockchain/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/e2e_orchestrator/Dockerfile b/src/e2e_orchestrator/Dockerfile index 483aebb79155f9b886771cf1a214b925759880c8..ba3b57c3a3abfc2cc36d43f30c03d931bec51e14 100644 --- a/src/e2e_orchestrator/Dockerfile +++ b/src/e2e_orchestrator/Dockerfile @@ -42,9 +42,9 @@ RUN python3 -m venv ${VIRTUAL_ENV} ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/forecaster/Dockerfile b/src/forecaster/Dockerfile index f72ebadedaf0320ac7c5d047d8b75351d2aa3172..2cc6428f418912a9d05793178b483a01fe8d36ab 100644 --- a/src/forecaster/Dockerfile +++ b/src/forecaster/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/interdomain/Dockerfile b/src/interdomain/Dockerfile index ea99ce3990354d82ab898fbd4dd3afff40fb891c..7e689bdd1baba5648acc9e82ad37860a63cb8ccd 100644 --- a/src/interdomain/Dockerfile +++ b/src/interdomain/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/kpi_manager/Dockerfile b/src/kpi_manager/Dockerfile index 8bf1cedd61296388ce322f32d7fc7e08cbbe8d92..3057534bedae58d281c3057d4fbd6d7fec5909d3 100644 --- a/src/kpi_manager/Dockerfile +++ b/src/kpi_manager/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/kpi_value_api/Dockerfile b/src/kpi_value_api/Dockerfile index 1386fcd49792bc1866d3c5076d53850e80a408b9..c1bfb9ca7ae38e5ddaa9798ac729d01025f4dda9 100644 --- a/src/kpi_value_api/Dockerfile +++ b/src/kpi_value_api/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/kpi_value_writer/Dockerfile b/src/kpi_value_writer/Dockerfile index 9e6b4ff2992c59ce28ab38d9144c04b70905c8fc..6f7f16a84c9b85a93cb8ee8e086d7d51f7f35864 100644 --- a/src/kpi_value_writer/Dockerfile +++ b/src/kpi_value_writer/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/l3_attackmitigator/Dockerfile b/src/l3_attackmitigator/Dockerfile index 2c074d759253f2cf514b3c2c0abb67008a67a3ab..14002ada6aa9e74f166355bedab4e8fa50e93bf8 100644 --- a/src/l3_attackmitigator/Dockerfile +++ b/src/l3_attackmitigator/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/l3_centralizedattackdetector/Dockerfile b/src/l3_centralizedattackdetector/Dockerfile index a409449e32be70d60498ebadbcbb609cda8420bd..acaa28b3d8f3f82e633e2eace966bf3d44c2ab3c 100644 --- a/src/l3_centralizedattackdetector/Dockerfile +++ b/src/l3_centralizedattackdetector/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/l3_distributedattackdetector/Dockerfile b/src/l3_distributedattackdetector/Dockerfile index c41fbc86994f180cae859c7eb7379a310a928ce0..64f862b8ba5bf71b26ffbd595f1ad2e7b75f54b2 100644 --- a/src/l3_distributedattackdetector/Dockerfile +++ b/src/l3_distributedattackdetector/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/load_generator/Dockerfile b/src/load_generator/Dockerfile index ca70a36974d5f047bff1ed77b998421e3b46ce69..54d5d3c0e6c917453ad5a98dd75aa62614578695 100644 --- a/src/load_generator/Dockerfile +++ b/src/load_generator/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/monitoring/Dockerfile b/src/monitoring/Dockerfile index 9ed58954f63c8451080b4fbe5327a102ae79124b..1689986b17924421ea9d2452832a3dca2d0ad480 100644 --- a/src/monitoring/Dockerfile +++ b/src/monitoring/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/nbi/Dockerfile b/src/nbi/Dockerfile index e34aaa36d865ec2e9606a31094bca2321be50b10..1a08ddbe163f0ea6e0ad2e1679757c34f013bd88 100644 --- a/src/nbi/Dockerfile +++ b/src/nbi/Dockerfile @@ -38,9 +38,9 @@ RUN ldconfig ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/nbi/service/app.py b/src/nbi/service/app.py index 7dfe2ea85be5ec7146d47b70133271b53e2563ac..67fd3c604fd168fc0c2e253f7fd685a3ac04b935 100644 --- a/src/nbi/service/app.py +++ b/src/nbi/service/app.py @@ -46,7 +46,7 @@ from .osm_nbi import register_osm_api from .vntm_recommend import register_vntm_recommend from .sse_telemetry import register_telemetry_subscription from .well_known_meta import register_well_known - +from .e2e_services import register_etsi_api LOG_LEVEL = get_log_level() logging.basicConfig( @@ -101,6 +101,7 @@ register_qkd_app (nbi_app) register_vntm_recommend (nbi_app) register_telemetry_subscription(nbi_app) register_camara_qod (nbi_app) +register_etsi_api (nbi_app) register_osm_api (nbi_app) LOGGER.info('All connectors registered') diff --git a/src/nbi/service/e2e_services/Resources.py b/src/nbi/service/e2e_services/Resources.py new file mode 100644 index 0000000000000000000000000000000000000000..6d496b3736d495911fe2414a9b409910a5568699 --- /dev/null +++ b/src/nbi/service/e2e_services/Resources.py @@ -0,0 +1,128 @@ +# Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import ast +import json +import logging +import requests +from flask_restful import Resource +from common.Constants import DEFAULT_CONTEXT_NAME +from service.client.ServiceClient import ServiceClient +from .Tools import grpc_service_id +from concurrent.futures import ThreadPoolExecutor +import requests +import threading + +LOGGER = logging.getLogger(__name__) + + +HEADERS = { + "Accept": "application/yang-data+json", + "Content-Type": "application/yang-data+json" +} + +headers = { + "Content-Type": "application/json", + "Expect": "" +} + +class E2EInfoDelete(Resource): + def __init__(self): + super().__init__() + self.service_client = ServiceClient() + + def delete(self, allocationId: str): + service_id = "" + if 'ipowdm' in allocationId: + service_id = allocationId.split('=')[1].split(':')[0].split('[[')[0] + nodes_str = allocationId.split('[[')[1].split(']]')[0] + nodes_list_str = nodes_str + ']' + nodes = ast.literal_eval(nodes_list_str) + data_str = allocationId.split(':', 1)[1] + data = json.loads(data_str) + components = data.get("components", []) + + src = nodes[0] + dst_list = nodes[1:] + services = [f"L3VPN_{src}_{dst}" for dst in dst_list] + for service in services: + url = f"http://192.168.202.254:80/restconf/data/ietf-l3vpn-svc:l3vpn-svc/vpn-services/vpn-service={service}" + response = requests.delete(url=url) + LOGGER.debug(f"RESPONSE :\n {response}") + + for i, device in enumerate(components): + if i >= len(nodes): + LOGGER.warning(f"Index {i} exceeds nodes list length {len(nodes)}") + break + name = nodes[i] + if name == "T2.1":device["frequency"]= 195000000 + if name == "T1.1":device["frequency"]= 195006250 + if name == "T1.2":device["frequency"]= 195018750 + if name == "T1.3":device["frequency"]= 195031250 + + LOGGER.debug(f"NODE TO DELETE: \n{name}:{device}") + response = test_patch_optical_channel_frequency(device, name) + LOGGER.debug(f"RESPONSE :\n {response}") + elif 'tapi_lsp' in allocationId: + service_id = str(allocationId.split('=')[1]) + service_id_list = [s.strip() for s in service_id.split(',')] + service_id = service_id_list[0] + + LOGGER.info("Service ID list: %s", service_id_list) + + executor = ThreadPoolExecutor(max_workers=len(service_id_list)) + for key in service_id_list: + executor.submit(delete_slice, key, headers) + + threading.Thread(target=executor.shutdown, kwargs={'wait': True}).start() + else: + LOGGER.error("Unknown service type for allocationId: %s", allocationId) + return { + 'status': 'Error', + 'message': 'Unknown service type', + }, 400 + + service_id = grpc_service_id(DEFAULT_CONTEXT_NAME, service_id) + self.service_client.DeleteService(service_id) + + return { + 'status': 'Service deleted', + 'allocationId': allocationId, + }, 200 + +def delete_slice(key, headers): + url_delete_slice = f'http://172.24.36.54:4900/restconf/data/tapi-common:context/tapi-connectivity:connectivity-context/connectivity-service={key}' + try: + response = requests.delete(url=url_delete_slice, headers=headers, timeout=300) + LOGGER.info("Key: %s", key) + LOGGER.info("Response Status code: %s", response.status_code) + LOGGER.info("Response Text: %s", response.text) + except requests.exceptions.RequestException as e: + LOGGER.info(f"ERROR request to delete slice {key} failed: {e}") + +def test_patch_optical_channel_frequency(data, DEVICE_ID): + """Test PATCH to update optical channel frequency.""" + # Use simple path with / and encode manually for component name + encoded_path = f"http://192.168.202.254:80/restconf/data/device={DEVICE_ID}/openconfig-platform:components/component=channel-1/optical-channel/config" + + # Update frequency + patch_data = data + + response = requests.patch(f"{encoded_path}", + json=patch_data, + headers=HEADERS) + assert response.status_code == 200 + + # Validate restoration + return response diff --git a/src/nbi/service/e2e_services/Tools.py b/src/nbi/service/e2e_services/Tools.py new file mode 100644 index 0000000000000000000000000000000000000000..3cc9896ab2ba88e6bcf35206a188b658360e724e --- /dev/null +++ b/src/nbi/service/e2e_services/Tools.py @@ -0,0 +1,200 @@ +# Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import json, logging, re, time +from decimal import ROUND_HALF_EVEN, Decimal +from flask.json import jsonify +from common.proto.context_pb2 import ( + ContextId, Empty, EndPointId, ServiceId, ServiceStatusEnum, ServiceTypeEnum, + Service, Constraint, Constraint_SLA_Capacity, ConfigRule, ConfigRule_Custom, + ConfigActionEnum +) +from common.tools.grpc.ConfigRules import update_config_rule_custom +from common.tools.grpc.Tools import grpc_message_to_json +from common.tools.object_factory.Context import json_context_id +from common.tools.object_factory.Service import json_service_id + +LOGGER = logging.getLogger(__name__) + +ENDPOINT_SETTINGS_KEY = '/device[{:s}]/endpoint[{:s}]/vlan[{:d}]/settings' +DEVICE_SETTINGS_KEY = '/device[{:s}]/settings' +RE_CONFIG_RULE_IF_SUBIF = re.compile(r'^\/interface\[([^\]]+)\]\/subinterface\[([^\]]+)\]$') +MEC_CONSIDERED_FIELDS = ['requestType', 'sessionFilter', 'fixedAllocation', 'allocationDirection', 'fixedBWPriority'] +ALLOCATION_DIRECTION_DESCRIPTIONS = { + '00' : 'Downlink (towards the UE)', + '01' : 'Uplink (towards the application/session)', + '10' : 'Symmetrical'} +VLAN_TAG = 0 +PREFIX_LENGTH = 24 +BGP_AS = 65000 +POLICY_AZ = 'srv_{:d}_a'.format(VLAN_TAG) +POLICY_ZA = 'srv_{:d}_b'.format(VLAN_TAG) +BGP_NEIGHBOR_IP_A = '192.168.150.1' +BGP_NEIGHBOR_IP_Z = '192.168.150.2' +ROUTER_ID_A = '200.1.1.1' +ROUTER_ID_Z = '200.1.1.2' +ROUTE_DISTINGUISHER = '{:5d}:{:03d}'.format(BGP_AS, VLAN_TAG) + +def service_2_bwInfo(service: Service) -> dict: + response = {} + # allocationDirection = '??' # String: 00 = Downlink (towards the UE); 01 = Uplink (towards the application/session); 10 = Symmetrical + response['appInsId'] = service.service_id.service_uuid.uuid # String: Application instance identifier + for constraint in service.service_constraints: + if constraint.WhichOneof('constraint') == 'sla_capacity': + # String: Size of requested fixed BW allocation in [bps] + fixed_allocation = Decimal(constraint.sla_capacity.capacity_gbps * 1.e9) + fixed_allocation = fixed_allocation.quantize(Decimal('0.1'), rounding=ROUND_HALF_EVEN) + response['fixedAllocation'] = str(fixed_allocation) + break + + for config_rule in service.service_config.config_rules: + resource_value_json = json.loads(config_rule.custom.resource_value) + if config_rule.custom.resource_key != '/request': + continue + for key in ['allocationDirection', 'fixedBWPriority', 'requestType', 'sourceIp', 'sourcePort', 'dstPort', 'protocol', 'sessionFilter']: + if key not in resource_value_json: + continue + + if key == 'sessionFilter': + response[key] = [resource_value_json[key]] + elif key == 'requestType': + response[key] = str(resource_value_json[key]) + else: + response[key] = resource_value_json[key] + + unixtime = time.time() + response['timeStamp'] = { # Time stamp to indicate when the corresponding information elements are sent + "seconds": int(unixtime), + "nanoseconds": int(unixtime%1*1e9) + } + + return response + +def bwInfo_2_service(client, bw_info: dict) -> Service: + # add description to allocationDirection code + if 'sessionFilter' in bw_info: + bw_info['sessionFilter'] = bw_info['sessionFilter'][0] # Discard other items in sessionFilter field + + service = Service() + + service_config_rules = service.service_config.config_rules + + + request_cr_key = '/request' + request_cr_value = {k:bw_info[k] for k in MEC_CONSIDERED_FIELDS} + + config_rule = ConfigRule() + config_rule.action = ConfigActionEnum.CONFIGACTION_SET + config_rule_custom = ConfigRule_Custom() + config_rule_custom.resource_key = request_cr_key + config_rule_custom.resource_value = json.dumps(request_cr_value) + config_rule.custom.CopyFrom(config_rule_custom) + service_config_rules.append(config_rule) + + if 'sessionFilter' in bw_info: + a_ip = bw_info['sessionFilter']['sourceIp'] + z_ip = bw_info['sessionFilter']['dstAddress'] + + devices = client.ListDevices(Empty()).devices + ip_interface_name_dict = {} + for device in devices: + device_endpoint_uuids = {ep.name:ep.endpoint_id.endpoint_uuid.uuid for ep in device.device_endpoints} + skip_device = True + for cr in device.device_config.config_rules: + if cr.WhichOneof('config_rule') != 'custom': + continue + match_subif = RE_CONFIG_RULE_IF_SUBIF.match(cr.custom.resource_key) + if not match_subif: + continue + address_ip = json.loads(cr.custom.resource_value).get('address_ip') + short_port_name = match_subif.groups(0)[0] + ip_interface_name_dict[address_ip] = short_port_name + if address_ip not in [a_ip, z_ip]: + continue + port_name = 'PORT-' + short_port_name # `PORT-` added as prefix + ep_id = EndPointId() + ep_id.endpoint_uuid.uuid = device_endpoint_uuids[port_name] + ep_id.device_id.device_uuid.uuid = device.device_id.device_uuid.uuid + service.service_endpoint_ids.append(ep_id) + # add interface config rules + endpoint_settings_key = ENDPOINT_SETTINGS_KEY.format(device.name, port_name, VLAN_TAG) + if address_ip in a_ip: + router_id = ROUTER_ID_A + policy_az = POLICY_AZ + policy_za = POLICY_ZA + neighbor_bgp_interface_address_ip = BGP_NEIGHBOR_IP_Z + self_bgp_interface_address_ip = BGP_NEIGHBOR_IP_A + else: + router_id = ROUTER_ID_Z + policy_az = POLICY_ZA + policy_za = POLICY_AZ + neighbor_bgp_interface_address_ip= BGP_NEIGHBOR_IP_A + self_bgp_interface_address_ip = BGP_NEIGHBOR_IP_Z + endpoint_field_updates = { + 'address_ip': (address_ip, True), + 'address_prefix' : (PREFIX_LENGTH, True), + 'sub_interface_index': (0, True), + } + LOGGER.debug(f'BEFORE UPDATE -> device.device_config.config_rules: {service_config_rules}') + update_config_rule_custom(service_config_rules, endpoint_settings_key, endpoint_field_updates) + LOGGER.debug(f'AFTER UPDATE -> device.device_config.config_rules: {service_config_rules}') + skip_device = False + if skip_device: + continue + device_field_updates = { + 'bgp_as':(BGP_AS, True), + 'route_distinguisher': (ROUTE_DISTINGUISHER, True), + 'router_id': (router_id, True), + 'policy_AZ': (policy_az, True), + 'policy_ZA': (policy_za, True), + 'neighbor_bgp_interface_address_ip': (neighbor_bgp_interface_address_ip, True), + 'self_bgp_interface_name': (ip_interface_name_dict[self_bgp_interface_address_ip], True), + 'self_bgp_interface_address_ip': (self_bgp_interface_address_ip, True), + 'bgp_interface_address_prefix': (PREFIX_LENGTH, True) + } + device_settings_key = DEVICE_SETTINGS_KEY.format(device.name) + LOGGER.debug(f'BEFORE UPDATE -> device.device_config.config_rules: {service_config_rules}') + update_config_rule_custom(service_config_rules, device_settings_key, device_field_updates) + LOGGER.debug(f'AFTER UPDATE -> device.device_config.config_rules: {service_config_rules}') + + settings_cr_key = '/settings' + settings_cr_value = {} + update_config_rule_custom(service_config_rules, settings_cr_key, settings_cr_value) + + service.service_status.service_status = ServiceStatusEnum.SERVICESTATUS_PLANNED + service.service_type = ServiceTypeEnum.SERVICETYPE_L3NM + + if 'appInsId' in bw_info: + service.service_id.service_uuid.uuid = bw_info['appInsId'] + service.service_id.context_id.context_uuid.uuid = 'admin' + service.name = bw_info['appInsId'] + + if 'fixedAllocation' in bw_info: + capacity = Constraint_SLA_Capacity() + capacity.capacity_gbps = float(bw_info['fixedAllocation']) / 1.e9 + constraint = Constraint() + constraint.sla_capacity.CopyFrom(capacity) + service.service_constraints.append(constraint) + + return service + + +def format_grpc_to_json(grpc_reply): + return jsonify(grpc_message_to_json(grpc_reply)) + +def grpc_context_id(context_uuid): + return ContextId(**json_context_id(context_uuid)) + +def grpc_service_id(context_uuid, service_uuid): + return ServiceId(**json_service_id(service_uuid, context_id=json_context_id(context_uuid))) diff --git a/src/nbi/service/e2e_services/__init__.py b/src/nbi/service/e2e_services/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..5adbcd9c98394f107f1b19e45e412cbe88ec65bf --- /dev/null +++ b/src/nbi/service/e2e_services/__init__.py @@ -0,0 +1,26 @@ +# Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from nbi.service.NbiApplication import NbiApplication +from .Resources import E2EInfoDelete + +URL_PREFIX = '/restconf/E2E/v1' + +def register_etsi_api(nbi_app : NbiApplication): + + nbi_app.add_rest_api_resource( + E2EInfoDelete, + URL_PREFIX + '/service/', + endpoint='etsi_E2E.e2e_info_delete' + ) diff --git a/src/nbi/service/ietf_network/Networks.py b/src/nbi/service/ietf_network/Networks.py index ec124632bb0fa542f30fa99c1a0efedf039989de..e8a69c449e23e84be292b2753e0d3077337e338f 100644 --- a/src/nbi/service/ietf_network/Networks.py +++ b/src/nbi/service/ietf_network/Networks.py @@ -74,7 +74,7 @@ class Networks(Resource): # TODO: improve these workarounds to enhance performance json_response = json.loads(pybindJSON.dumps(ietf_nets, mode='ietf')) - + # Workaround; pyangbind does not allow to set otn_topology / eth-tran-topology manual_fixes(json_response) elif USE_RENDERER == Renderer.LIBYANG.value: diff --git a/src/nbi/service/ietf_network/YangHandler.py b/src/nbi/service/ietf_network/YangHandler.py index 3ef718a64aac132bf23843d3df7e0dd2cf0ae77c..ea702934fd4c8f2f97b151b3b5825542d40b2d08 100644 --- a/src/nbi/service/ietf_network/YangHandler.py +++ b/src/nbi/service/ietf_network/YangHandler.py @@ -38,12 +38,12 @@ class YangHandler: network = networks.create_path(f'network[network-id="{te_topology_name}"]') network.create_path('network-id', te_topology_name) - network_types = network.create_path('network-types') - network_types.create_path('ietf-l3-unicast-topology:l3-unicast-topology') + network_types = network.create_path('network-types') + network_types.create_path('ietf-l3-unicast-topology:l3-unicast-topology') name_mappings = NameMappings() - for device in topology_details.devices: + for device in topology_details.devices: self.compose_node(device, name_mappings, network) for link in topology_details.links: @@ -51,7 +51,7 @@ class YangHandler: return json.loads(networks.print_mem('json')) - def compose_node(self, dev: Device, name_mappings: NameMappings, network: Any) -> None: + def compose_node(self, dev: Device, name_mappings: NameMappings, network: Any) -> None: device_name = dev.name name_mappings.store_device_name(dev) diff --git a/src/opticalattackdetector/Dockerfile b/src/opticalattackdetector/Dockerfile index 6af8457d64a0c4a291bc96ac0b2aad6e92dc3567..dbd22ead21d8a4933aa015568396c3f971f57dec 100644 --- a/src/opticalattackdetector/Dockerfile +++ b/src/opticalattackdetector/Dockerfile @@ -42,9 +42,9 @@ RUN python3 -m venv ${VIRTUAL_ENV} ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/opticalattackmanager/Dockerfile b/src/opticalattackmanager/Dockerfile index a9de40c48bb58c707588d1f9722be2c3221864d9..7df1844885f294dff972a494fc8d4334378b129f 100644 --- a/src/opticalattackmanager/Dockerfile +++ b/src/opticalattackmanager/Dockerfile @@ -42,9 +42,9 @@ RUN python3 -m venv ${VIRTUAL_ENV} ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/opticalattackmitigator/Dockerfile b/src/opticalattackmitigator/Dockerfile index 0cb66dfb00d48779076ba36f5456867cdbfd16d9..997a363d56089fa0e03f8315e074e025a56de184 100644 --- a/src/opticalattackmitigator/Dockerfile +++ b/src/opticalattackmitigator/Dockerfile @@ -41,9 +41,9 @@ RUN python3 -m venv ${VIRTUAL_ENV} ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/opticalcontroller/Dockerfile b/src/opticalcontroller/Dockerfile index 7d5d87aa661a671298ddad9f86fe79b66968ceba..3459a9d2d2b0fd6eca983deb5df480d5923277ed 100644 --- a/src/opticalcontroller/Dockerfile +++ b/src/opticalcontroller/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/pathcomp/frontend/Dockerfile b/src/pathcomp/frontend/Dockerfile index 2f6d5a3bd803ee9d0f46a9c413c0d7db1ff2d54d..e7938768bd429f3dcada568fc38c9453a31fc41c 100644 --- a/src/pathcomp/frontend/Dockerfile +++ b/src/pathcomp/frontend/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/pathcomp/frontend/service/algorithms/_Algorithm.py b/src/pathcomp/frontend/service/algorithms/_Algorithm.py index 7f1a28895cd4af1878b8d6879ba86e2ec14e3a3a..121f0842770b5e455ad683c35a4d588ded0b7387 100644 --- a/src/pathcomp/frontend/service/algorithms/_Algorithm.py +++ b/src/pathcomp/frontend/service/algorithms/_Algorithm.py @@ -27,8 +27,8 @@ from context.client.ContextClient import ContextClient from pathcomp.frontend.Config import BACKEND_URL from .tools.EroPathToHops import eropath_to_hops from .tools.ComposeConfigRules import ( - compose_device_config_rules, compose_l2nm_config_rules, compose_l3nm_config_rules, - compose_tapi_config_rules, generate_neighbor_endpoint_config_rules, + compose_device_config_rules, compose_l2nm_config_rules, compose_l3nm_config_rules, compose_tapi_config_rules, + generate_neighbor_endpoint_config_rules, compose_ipowdm_config_rules, compose_tapi_lsp_config_rules, compose_iplink_config_rules ) from .tools.ComposeRequest import compose_device, compose_link, compose_service @@ -207,6 +207,13 @@ class _Algorithm: elif service_type == ServiceTypeEnum.SERVICETYPE_IP_LINK: compose_iplink_config_rules(config_rules, service.service_config.config_rules) self.logger.info("Installing default rules for IP-LINK service") + elif service_type == ServiceTypeEnum.SERVICETYPE_IPOWDM and rules_nb == 0: + compose_ipowdm_config_rules(config_rules, service.service_config.config_rules) + self.logger.info("Installing default rules for IPOWDM service") + elif service_type == ServiceTypeEnum.SERVICETYPE_TAPI_LSP: + compose_tapi_lsp_config_rules(config_rules, service.service_config.config_rules) + self.logger.info("Installing default rules for TAPI LSP service") + else: MSG = 'Unhandled generic Config Rules for service {:s} {:s}' self.logger.warning(MSG.format(str(service_uuid), str(ServiceTypeEnum.Name(service_type)))) diff --git a/src/pathcomp/frontend/service/algorithms/tools/ComposeConfigRules.py b/src/pathcomp/frontend/service/algorithms/tools/ComposeConfigRules.py index 383aa8a8b16b0e72d6ac637f0fda0279b0194355..7553341e8bf2a4feefadcaac1e5ae6788013f8db 100644 --- a/src/pathcomp/frontend/service/algorithms/tools/ComposeConfigRules.py +++ b/src/pathcomp/frontend/service/algorithms/tools/ComposeConfigRules.py @@ -235,6 +235,16 @@ def compose_device_config_rules( LOGGER.debug('[compose_device_config_rules] end') +def compose_ipowdm_config_rules(main_service_config_rules : List, subservice_config_rules : List) -> None: + CONFIG_RULES: List[Tuple[str, dict]] = [(SETTINGS_RULE_NAME, L3NM_SETTINGS_FIELD_DEFAULTS)] + for rule_name, defaults in CONFIG_RULES: + compose_config_rules(main_service_config_rules, subservice_config_rules, rule_name, defaults) + +def compose_tapi_lsp_config_rules(main_service_config_rules : List, subservice_config_rules : List) -> None: + CONFIG_RULES: List[Tuple[str, dict]] = [(SETTINGS_RULE_NAME, TAPI_SETTINGS_FIELD_DEFAULTS)] + for rule_name, defaults in CONFIG_RULES: + compose_config_rules(main_service_config_rules, subservice_config_rules, rule_name, defaults) + def pairwise(iterable : Iterable) -> Tuple[Iterable, Iterable]: # TODO: To be replaced by itertools.pairwise() when we move to Python 3.10 # Python 3.10 introduced method itertools.pairwise() @@ -326,7 +336,7 @@ def generate_neighbor_endpoint_config_rules( for config_rule in config_rules: # Only applicable, by now, to Custom Config Rules for endpoint settings if 'custom' not in config_rule or 'ip_link' not in config_rule: continue - if 'custom' in config_rule: + if 'custom' in config_rule: match = RE_ENDPOINT_SETTINGS.match(config_rule['custom']['resource_key']) if match is None: match = RE_ENDPOINT_VLAN_SETTINGS.match(config_rule['custom']['resource_key']) diff --git a/src/pathcomp/frontend/service/algorithms/tools/ServiceTypes.py b/src/pathcomp/frontend/service/algorithms/tools/ServiceTypes.py index 2738bb0bec871d3d81c4dc6e15108d7adb51b5bf..3983586407a374797254dae0dc23802a05f2864b 100644 --- a/src/pathcomp/frontend/service/algorithms/tools/ServiceTypes.py +++ b/src/pathcomp/frontend/service/algorithms/tools/ServiceTypes.py @@ -43,11 +43,17 @@ OPTICAL_DEVICE_TYPES = { DeviceTypeEnum.OPTICAL_TRANSPONDER, DeviceTypeEnum.EMULATED_OPTICAL_TRANSPONDER, } -SERVICE_TYPE_L2NM = {ServiceTypeEnum.SERVICETYPE_L2NM} -SERVICE_TYPE_L3NM = {ServiceTypeEnum.SERVICETYPE_L3NM} -SERVICE_TYPE_LXNM = {ServiceTypeEnum.SERVICETYPE_L3NM, ServiceTypeEnum.SERVICETYPE_L2NM} -SERVICE_TYPE_TAPI = {ServiceTypeEnum.SERVICETYPE_TAPI_CONNECTIVITY_SERVICE} -SERVICE_TYPE_IP_LINK = {ServiceTypeEnum.SERVICETYPE_IP_LINK} +SERVICE_TYPE_L2NM = {ServiceTypeEnum.SERVICETYPE_L2NM} +SERVICE_TYPE_L3NM = {ServiceTypeEnum.SERVICETYPE_L3NM} +SERVICE_TYPE_LXNM = {ServiceTypeEnum.SERVICETYPE_L3NM, ServiceTypeEnum.SERVICETYPE_L2NM} +SERVICE_TYPE_TAPI = {ServiceTypeEnum.SERVICETYPE_TAPI_CONNECTIVITY_SERVICE} +SERVICE_TYPE_IP_LINK = {ServiceTypeEnum.SERVICETYPE_IP_LINK} +SERVICE_TYPE_IPOWDM = {ServiceTypeEnum.SERVICETYPE_IPOWDM} +SERVICE_TYPE_TAPI_LSP = {ServiceTypeEnum.SERVICETYPE_TAPI_LSP} + +def get_service_type(device_type : DeviceTypeEnum, prv_service_type : ServiceTypeEnum) -> ServiceTypeEnum: + if device_type in PACKET_DEVICE_TYPES and prv_service_type in SERVICE_TYPE_LXNM: return prv_service_type + def get_service_type( device_type : DeviceTypeEnum, prv_service_type : ServiceTypeEnum @@ -65,6 +71,14 @@ def get_service_type( if device_type in L2_DEVICE_TYPES: return ServiceTypeEnum.SERVICETYPE_L2NM if device_type in OPTICAL_DEVICE_TYPES: return ServiceTypeEnum.SERVICETYPE_TAPI_CONNECTIVITY_SERVICE if device_type in NETWORK_DEVICE_TYPES: return prv_service_type + if ( + device_type in PACKET_DEVICE_TYPES and + prv_service_type in SERVICE_TYPE_IPOWDM + ): return ServiceTypeEnum.SERVICETYPE_IPOWDM + if ( + device_type in PACKET_DEVICE_TYPES and + prv_service_type in SERVICE_TYPE_TAPI_LSP + ): return prv_service_type str_fields = ', '.join([ 'device_type={:s}'.format(str(device_type)), diff --git a/src/policy/src/main/java/org/etsi/tfs/policy/Serializer.java b/src/policy/src/main/java/org/etsi/tfs/policy/Serializer.java index e78dce068ac227ee4621faa8f1c0bbad087dfc8a..7fc4c8b8cd1b02050ad655059b5d747538eb3b2b 100644 --- a/src/policy/src/main/java/org/etsi/tfs/policy/Serializer.java +++ b/src/policy/src/main/java/org/etsi/tfs/policy/Serializer.java @@ -1182,6 +1182,10 @@ public class Serializer { return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_ACL; case IP_LINK: return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_IP_LINK; + case IPOWDM: + return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_IPOWDM; + case TAPI_LSP: + return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_TAPI_LSP; case UNKNOWN: return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_UNKNOWN; default: @@ -1213,6 +1217,10 @@ public class Serializer { return ServiceTypeEnum.ACL; case SERVICETYPE_IP_LINK: return ServiceTypeEnum.IP_LINK; + case SERVICETYPE_IPOWDM: + return ServiceTypeEnum.IPOWDM; + case SERVICETYPE_TAPI_LSP: + return ServiceTypeEnum.TAPI_LSP; case SERVICETYPE_UNKNOWN: case UNRECOGNIZED: default: diff --git a/src/policy/src/main/java/org/etsi/tfs/policy/context/model/DeviceDriverEnum.java b/src/policy/src/main/java/org/etsi/tfs/policy/context/model/DeviceDriverEnum.java index 1349229e8febbc361e2938e71de22cd8acdbae27..1f7a4368cb28fca1a7008c519908389f64e7671f 100644 --- a/src/policy/src/main/java/org/etsi/tfs/policy/context/model/DeviceDriverEnum.java +++ b/src/policy/src/main/java/org/etsi/tfs/policy/context/model/DeviceDriverEnum.java @@ -28,5 +28,14 @@ public enum DeviceDriverEnum { GNMI_OPENCONFIG, OPTICAL_TFS, IETF_ACTN, - SMARTNIC + OC, + QKD, + IETF_L3VPN, + IETF_SLICE, + NCE, + SMARTNIC, + MORPHEUS, + RYU, + GNMI_NOKIA_SRLINUX, + OPENROADM } diff --git a/src/policy/src/main/java/org/etsi/tfs/policy/context/model/ServiceTypeEnum.java b/src/policy/src/main/java/org/etsi/tfs/policy/context/model/ServiceTypeEnum.java index bed0c47af36456fba61c0d101c79ab9f46067449..476dedee17abd339b9a4a2059d47d34777e8445f 100644 --- a/src/policy/src/main/java/org/etsi/tfs/policy/context/model/ServiceTypeEnum.java +++ b/src/policy/src/main/java/org/etsi/tfs/policy/context/model/ServiceTypeEnum.java @@ -28,5 +28,7 @@ public enum ServiceTypeEnum { L1NM, INT, ACL, - IP_LINK + IP_LINK, + TAPI_LSP, + IPOWDM } diff --git a/src/policy/src/main/proto/ipowdm.proto b/src/policy/src/main/proto/ipowdm.proto new file mode 120000 index 0000000000000000000000000000000000000000..80f42cbd0c7bd06392f3d0e01209818dff6fe283 --- /dev/null +++ b/src/policy/src/main/proto/ipowdm.proto @@ -0,0 +1 @@ +../../../../../proto/ipowdm.proto \ No newline at end of file diff --git a/src/policy/src/main/proto/tapi_lsp.proto b/src/policy/src/main/proto/tapi_lsp.proto new file mode 120000 index 0000000000000000000000000000000000000000..ff9990db2d8019a366a449eb99137afa263f27c2 --- /dev/null +++ b/src/policy/src/main/proto/tapi_lsp.proto @@ -0,0 +1 @@ +../../../../../proto/tapi_lsp.proto \ No newline at end of file diff --git a/src/policy/target/generated-sources/grpc/context/ContextOuterClass.java b/src/policy/target/generated-sources/grpc/context/ContextOuterClass.java index ceec864c653d88511a8729dd871abdbfb3391dc6..20a9d9e7aa4a71890aaff581310ab7556dc2797b 100644 --- a/src/policy/target/generated-sources/grpc/context/ContextOuterClass.java +++ b/src/policy/target/generated-sources/grpc/context/ContextOuterClass.java @@ -788,6 +788,14 @@ public final class ContextOuterClass { * SERVICETYPE_IP_LINK = 11; */ SERVICETYPE_IP_LINK(11), + /** + * SERVICETYPE_TAPI_LSP = 12; + */ + SERVICETYPE_TAPI_LSP(12), + /** + * SERVICETYPE_IPOWDM = 13; + */ + SERVICETYPE_IPOWDM(13), UNRECOGNIZED(-1); /** @@ -850,6 +858,16 @@ public final class ContextOuterClass { */ public static final int SERVICETYPE_IP_LINK_VALUE = 11; + /** + * SERVICETYPE_TAPI_LSP = 12; + */ + public static final int SERVICETYPE_TAPI_LSP_VALUE = 12; + + /** + * SERVICETYPE_IPOWDM = 13; + */ + public static final int SERVICETYPE_IPOWDM_VALUE = 13; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException("Can't get the number of an unknown enum value."); @@ -897,6 +915,10 @@ public final class ContextOuterClass { return SERVICETYPE_ACL; case 11: return SERVICETYPE_IP_LINK; + case 12: + return SERVICETYPE_TAPI_LSP; + case 13: + return SERVICETYPE_IPOWDM; default: return null; } @@ -60473,6 +60495,1659 @@ public final class ContextOuterClass { } } + public interface ConfigRule_IPOWDMOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ConfigRule_IPOWDM) + com.google.protobuf.MessageOrBuilder { + + /** + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. + */ + boolean hasEndpointId(); + + /** + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. + */ + context.ContextOuterClass.EndPointId getEndpointId(); + + /** + * .context.EndPointId endpoint_id = 1; + */ + context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder(); + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + * @return Whether the ruleSet field is set. + */ + boolean hasRuleSet(); + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + * @return The ruleSet. + */ + ipowdm.Ipowdm.IpowdmRuleSet getRuleSet(); + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + ipowdm.Ipowdm.IpowdmRuleSetOrBuilder getRuleSetOrBuilder(); + } + + /** + * Protobuf type {@code context.ConfigRule_IPOWDM} + */ + public static final class ConfigRule_IPOWDM extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.ConfigRule_IPOWDM) + ConfigRule_IPOWDMOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use ConfigRule_IPOWDM.newBuilder() to construct. + private ConfigRule_IPOWDM(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfigRule_IPOWDM() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfigRule_IPOWDM(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_ConfigRule_IPOWDM_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_ConfigRule_IPOWDM_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule_IPOWDM.class, context.ContextOuterClass.ConfigRule_IPOWDM.Builder.class); + } + + public static final int ENDPOINT_ID_FIELD_NUMBER = 1; + + private context.ContextOuterClass.EndPointId endpointId_; + + /** + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. + */ + @java.lang.Override + public boolean hasEndpointId() { + return endpointId_ != null; + } + + /** + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. + */ + @java.lang.Override + public context.ContextOuterClass.EndPointId getEndpointId() { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + @java.lang.Override + public context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder() { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } + + public static final int RULE_SET_FIELD_NUMBER = 2; + + private ipowdm.Ipowdm.IpowdmRuleSet ruleSet_; + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + * @return Whether the ruleSet field is set. + */ + @java.lang.Override + public boolean hasRuleSet() { + return ruleSet_ != null; + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + * @return The ruleSet. + */ + @java.lang.Override + public ipowdm.Ipowdm.IpowdmRuleSet getRuleSet() { + return ruleSet_ == null ? ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance() : ruleSet_; + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + @java.lang.Override + public ipowdm.Ipowdm.IpowdmRuleSetOrBuilder getRuleSetOrBuilder() { + return ruleSet_ == null ? ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance() : ruleSet_; + } + + 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 (endpointId_ != null) { + output.writeMessage(1, getEndpointId()); + } + if (ruleSet_ != null) { + output.writeMessage(2, getRuleSet()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (endpointId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEndpointId()); + } + if (ruleSet_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuleSet()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof context.ContextOuterClass.ConfigRule_IPOWDM)) { + return super.equals(obj); + } + context.ContextOuterClass.ConfigRule_IPOWDM other = (context.ContextOuterClass.ConfigRule_IPOWDM) obj; + if (hasEndpointId() != other.hasEndpointId()) + return false; + if (hasEndpointId()) { + if (!getEndpointId().equals(other.getEndpointId())) + return false; + } + if (hasRuleSet() != other.hasRuleSet()) + return false; + if (hasRuleSet()) { + if (!getRuleSet().equals(other.getRuleSet())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEndpointId()) { + hash = (37 * hash) + ENDPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEndpointId().hashCode(); + } + if (hasRuleSet()) { + hash = (37 * hash) + RULE_SET_FIELD_NUMBER; + hash = (53 * hash) + getRuleSet().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM 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 context.ContextOuterClass.ConfigRule_IPOWDM parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM 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 context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM 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(context.ContextOuterClass.ConfigRule_IPOWDM 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; + } + + /** + * Protobuf type {@code context.ConfigRule_IPOWDM} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.ConfigRule_IPOWDM) + context.ContextOuterClass.ConfigRule_IPOWDMOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_ConfigRule_IPOWDM_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_ConfigRule_IPOWDM_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule_IPOWDM.class, context.ContextOuterClass.ConfigRule_IPOWDM.Builder.class); + } + + // Construct using context.ContextOuterClass.ConfigRule_IPOWDM.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpointId_ = null; + if (endpointIdBuilder_ != null) { + endpointIdBuilder_.dispose(); + endpointIdBuilder_ = null; + } + ruleSet_ = null; + if (ruleSetBuilder_ != null) { + ruleSetBuilder_.dispose(); + ruleSetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_ConfigRule_IPOWDM_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDM getDefaultInstanceForType() { + return context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDM build() { + context.ContextOuterClass.ConfigRule_IPOWDM result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDM buildPartial() { + context.ContextOuterClass.ConfigRule_IPOWDM result = new context.ContextOuterClass.ConfigRule_IPOWDM(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(context.ContextOuterClass.ConfigRule_IPOWDM result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpointId_ = endpointIdBuilder_ == null ? endpointId_ : endpointIdBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ruleSet_ = ruleSetBuilder_ == null ? ruleSet_ : ruleSetBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.ConfigRule_IPOWDM) { + return mergeFrom((context.ContextOuterClass.ConfigRule_IPOWDM) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.ConfigRule_IPOWDM other) { + if (other == context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance()) + return this; + if (other.hasEndpointId()) { + mergeEndpointId(other.getEndpointId()); + } + if (other.hasRuleSet()) { + mergeRuleSet(other.getRuleSet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getEndpointIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 18: + { + input.readMessage(getRuleSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } + // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private context.ContextOuterClass.EndPointId endpointId_; + + private com.google.protobuf.SingleFieldBuilderV3 endpointIdBuilder_; + + /** + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. + */ + public boolean hasEndpointId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. + */ + public context.ContextOuterClass.EndPointId getEndpointId() { + if (endpointIdBuilder_ == null) { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } else { + return endpointIdBuilder_.getMessage(); + } + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder setEndpointId(context.ContextOuterClass.EndPointId value) { + if (endpointIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endpointId_ = value; + } else { + endpointIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder setEndpointId(context.ContextOuterClass.EndPointId.Builder builderForValue) { + if (endpointIdBuilder_ == null) { + endpointId_ = builderForValue.build(); + } else { + endpointIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder mergeEndpointId(context.ContextOuterClass.EndPointId value) { + if (endpointIdBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && endpointId_ != null && endpointId_ != context.ContextOuterClass.EndPointId.getDefaultInstance()) { + getEndpointIdBuilder().mergeFrom(value); + } else { + endpointId_ = value; + } + } else { + endpointIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder clearEndpointId() { + bitField0_ = (bitField0_ & ~0x00000001); + endpointId_ = null; + if (endpointIdBuilder_ != null) { + endpointIdBuilder_.dispose(); + endpointIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public context.ContextOuterClass.EndPointId.Builder getEndpointIdBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEndpointIdFieldBuilder().getBuilder(); + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder() { + if (endpointIdBuilder_ != null) { + return endpointIdBuilder_.getMessageOrBuilder(); + } else { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getEndpointIdFieldBuilder() { + if (endpointIdBuilder_ == null) { + endpointIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getEndpointId(), getParentForChildren(), isClean()); + endpointId_ = null; + } + return endpointIdBuilder_; + } + + private ipowdm.Ipowdm.IpowdmRuleSet ruleSet_; + + private com.google.protobuf.SingleFieldBuilderV3 ruleSetBuilder_; + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + * @return Whether the ruleSet field is set. + */ + public boolean hasRuleSet() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + * @return The ruleSet. + */ + public ipowdm.Ipowdm.IpowdmRuleSet getRuleSet() { + if (ruleSetBuilder_ == null) { + return ruleSet_ == null ? ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance() : ruleSet_; + } else { + return ruleSetBuilder_.getMessage(); + } + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + public Builder setRuleSet(ipowdm.Ipowdm.IpowdmRuleSet value) { + if (ruleSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleSet_ = value; + } else { + ruleSetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + public Builder setRuleSet(ipowdm.Ipowdm.IpowdmRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ruleSet_ = builderForValue.build(); + } else { + ruleSetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + public Builder mergeRuleSet(ipowdm.Ipowdm.IpowdmRuleSet value) { + if (ruleSetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && ruleSet_ != null && ruleSet_ != ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance()) { + getRuleSetBuilder().mergeFrom(value); + } else { + ruleSet_ = value; + } + } else { + ruleSetBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + public Builder clearRuleSet() { + bitField0_ = (bitField0_ & ~0x00000002); + ruleSet_ = null; + if (ruleSetBuilder_ != null) { + ruleSetBuilder_.dispose(); + ruleSetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + public ipowdm.Ipowdm.IpowdmRuleSet.Builder getRuleSetBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRuleSetFieldBuilder().getBuilder(); + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + public ipowdm.Ipowdm.IpowdmRuleSetOrBuilder getRuleSetOrBuilder() { + if (ruleSetBuilder_ != null) { + return ruleSetBuilder_.getMessageOrBuilder(); + } else { + return ruleSet_ == null ? ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance() : ruleSet_; + } + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getRuleSetFieldBuilder() { + if (ruleSetBuilder_ == null) { + ruleSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getRuleSet(), getParentForChildren(), isClean()); + ruleSet_ = null; + } + return ruleSetBuilder_; + } + + @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:context.ConfigRule_IPOWDM) + } + + // @@protoc_insertion_point(class_scope:context.ConfigRule_IPOWDM) + private static final context.ContextOuterClass.ConfigRule_IPOWDM DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.ConfigRule_IPOWDM(); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public ConfigRule_IPOWDM parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDM getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConfigRule_TAPI_LSPOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ConfigRule_TAPI_LSP) + com.google.protobuf.MessageOrBuilder { + + /** + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. + */ + boolean hasEndpointId(); + + /** + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. + */ + context.ContextOuterClass.EndPointId getEndpointId(); + + /** + * .context.EndPointId endpoint_id = 1; + */ + context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder(); + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + java.util.List getRuleSetList(); + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + tapi_lsp.TapiLsp.TapiLspRuleSet getRuleSet(int index); + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + int getRuleSetCount(); + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + java.util.List getRuleSetOrBuilderList(); + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + tapi_lsp.TapiLsp.TapiLspRuleSetOrBuilder getRuleSetOrBuilder(int index); + } + + /** + * Protobuf type {@code context.ConfigRule_TAPI_LSP} + */ + public static final class ConfigRule_TAPI_LSP extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.ConfigRule_TAPI_LSP) + ConfigRule_TAPI_LSPOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use ConfigRule_TAPI_LSP.newBuilder() to construct. + private ConfigRule_TAPI_LSP(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfigRule_TAPI_LSP() { + ruleSet_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfigRule_TAPI_LSP(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_ConfigRule_TAPI_LSP_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_ConfigRule_TAPI_LSP_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule_TAPI_LSP.class, context.ContextOuterClass.ConfigRule_TAPI_LSP.Builder.class); + } + + public static final int ENDPOINT_ID_FIELD_NUMBER = 1; + + private context.ContextOuterClass.EndPointId endpointId_; + + /** + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. + */ + @java.lang.Override + public boolean hasEndpointId() { + return endpointId_ != null; + } + + /** + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. + */ + @java.lang.Override + public context.ContextOuterClass.EndPointId getEndpointId() { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + @java.lang.Override + public context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder() { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } + + public static final int RULE_SET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List ruleSet_; + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + @java.lang.Override + public java.util.List getRuleSetList() { + return ruleSet_; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + @java.lang.Override + public java.util.List getRuleSetOrBuilderList() { + return ruleSet_; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + @java.lang.Override + public int getRuleSetCount() { + return ruleSet_.size(); + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + @java.lang.Override + public tapi_lsp.TapiLsp.TapiLspRuleSet getRuleSet(int index) { + return ruleSet_.get(index); + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + @java.lang.Override + public tapi_lsp.TapiLsp.TapiLspRuleSetOrBuilder getRuleSetOrBuilder(int index) { + return ruleSet_.get(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 (endpointId_ != null) { + output.writeMessage(1, getEndpointId()); + } + for (int i = 0; i < ruleSet_.size(); i++) { + output.writeMessage(2, ruleSet_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (endpointId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEndpointId()); + } + for (int i = 0; i < ruleSet_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, ruleSet_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof context.ContextOuterClass.ConfigRule_TAPI_LSP)) { + return super.equals(obj); + } + context.ContextOuterClass.ConfigRule_TAPI_LSP other = (context.ContextOuterClass.ConfigRule_TAPI_LSP) obj; + if (hasEndpointId() != other.hasEndpointId()) + return false; + if (hasEndpointId()) { + if (!getEndpointId().equals(other.getEndpointId())) + return false; + } + if (!getRuleSetList().equals(other.getRuleSetList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEndpointId()) { + hash = (37 * hash) + ENDPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEndpointId().hashCode(); + } + if (getRuleSetCount() > 0) { + hash = (37 * hash) + RULE_SET_FIELD_NUMBER; + hash = (53 * hash) + getRuleSetList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP 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 context.ContextOuterClass.ConfigRule_TAPI_LSP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP 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 context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP 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(context.ContextOuterClass.ConfigRule_TAPI_LSP 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; + } + + /** + * Protobuf type {@code context.ConfigRule_TAPI_LSP} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.ConfigRule_TAPI_LSP) + context.ContextOuterClass.ConfigRule_TAPI_LSPOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_ConfigRule_TAPI_LSP_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_ConfigRule_TAPI_LSP_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule_TAPI_LSP.class, context.ContextOuterClass.ConfigRule_TAPI_LSP.Builder.class); + } + + // Construct using context.ContextOuterClass.ConfigRule_TAPI_LSP.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpointId_ = null; + if (endpointIdBuilder_ != null) { + endpointIdBuilder_.dispose(); + endpointIdBuilder_ = null; + } + if (ruleSetBuilder_ == null) { + ruleSet_ = java.util.Collections.emptyList(); + } else { + ruleSet_ = null; + ruleSetBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_ConfigRule_TAPI_LSP_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSP getDefaultInstanceForType() { + return context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSP build() { + context.ContextOuterClass.ConfigRule_TAPI_LSP result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSP buildPartial() { + context.ContextOuterClass.ConfigRule_TAPI_LSP result = new context.ContextOuterClass.ConfigRule_TAPI_LSP(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(context.ContextOuterClass.ConfigRule_TAPI_LSP result) { + if (ruleSetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + ruleSet_ = java.util.Collections.unmodifiableList(ruleSet_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.ruleSet_ = ruleSet_; + } else { + result.ruleSet_ = ruleSetBuilder_.build(); + } + } + + private void buildPartial0(context.ContextOuterClass.ConfigRule_TAPI_LSP result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpointId_ = endpointIdBuilder_ == null ? endpointId_ : endpointIdBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.ConfigRule_TAPI_LSP) { + return mergeFrom((context.ContextOuterClass.ConfigRule_TAPI_LSP) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.ConfigRule_TAPI_LSP other) { + if (other == context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance()) + return this; + if (other.hasEndpointId()) { + mergeEndpointId(other.getEndpointId()); + } + if (ruleSetBuilder_ == null) { + if (!other.ruleSet_.isEmpty()) { + if (ruleSet_.isEmpty()) { + ruleSet_ = other.ruleSet_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRuleSetIsMutable(); + ruleSet_.addAll(other.ruleSet_); + } + onChanged(); + } + } else { + if (!other.ruleSet_.isEmpty()) { + if (ruleSetBuilder_.isEmpty()) { + ruleSetBuilder_.dispose(); + ruleSetBuilder_ = null; + ruleSet_ = other.ruleSet_; + bitField0_ = (bitField0_ & ~0x00000002); + ruleSetBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRuleSetFieldBuilder() : null; + } else { + ruleSetBuilder_.addAllMessages(other.ruleSet_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getEndpointIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 18: + { + tapi_lsp.TapiLsp.TapiLspRuleSet m = input.readMessage(tapi_lsp.TapiLsp.TapiLspRuleSet.parser(), extensionRegistry); + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.add(m); + } else { + ruleSetBuilder_.addMessage(m); + } + break; + } + // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private context.ContextOuterClass.EndPointId endpointId_; + + private com.google.protobuf.SingleFieldBuilderV3 endpointIdBuilder_; + + /** + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. + */ + public boolean hasEndpointId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. + */ + public context.ContextOuterClass.EndPointId getEndpointId() { + if (endpointIdBuilder_ == null) { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } else { + return endpointIdBuilder_.getMessage(); + } + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder setEndpointId(context.ContextOuterClass.EndPointId value) { + if (endpointIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endpointId_ = value; + } else { + endpointIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder setEndpointId(context.ContextOuterClass.EndPointId.Builder builderForValue) { + if (endpointIdBuilder_ == null) { + endpointId_ = builderForValue.build(); + } else { + endpointIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder mergeEndpointId(context.ContextOuterClass.EndPointId value) { + if (endpointIdBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && endpointId_ != null && endpointId_ != context.ContextOuterClass.EndPointId.getDefaultInstance()) { + getEndpointIdBuilder().mergeFrom(value); + } else { + endpointId_ = value; + } + } else { + endpointIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder clearEndpointId() { + bitField0_ = (bitField0_ & ~0x00000001); + endpointId_ = null; + if (endpointIdBuilder_ != null) { + endpointIdBuilder_.dispose(); + endpointIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public context.ContextOuterClass.EndPointId.Builder getEndpointIdBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEndpointIdFieldBuilder().getBuilder(); + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder() { + if (endpointIdBuilder_ != null) { + return endpointIdBuilder_.getMessageOrBuilder(); + } else { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getEndpointIdFieldBuilder() { + if (endpointIdBuilder_ == null) { + endpointIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getEndpointId(), getParentForChildren(), isClean()); + endpointId_ = null; + } + return endpointIdBuilder_; + } + + private java.util.List ruleSet_ = java.util.Collections.emptyList(); + + private void ensureRuleSetIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + ruleSet_ = new java.util.ArrayList(ruleSet_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 ruleSetBuilder_; + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public java.util.List getRuleSetList() { + if (ruleSetBuilder_ == null) { + return java.util.Collections.unmodifiableList(ruleSet_); + } else { + return ruleSetBuilder_.getMessageList(); + } + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public int getRuleSetCount() { + if (ruleSetBuilder_ == null) { + return ruleSet_.size(); + } else { + return ruleSetBuilder_.getCount(); + } + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public tapi_lsp.TapiLsp.TapiLspRuleSet getRuleSet(int index) { + if (ruleSetBuilder_ == null) { + return ruleSet_.get(index); + } else { + return ruleSetBuilder_.getMessage(index); + } + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder setRuleSet(int index, tapi_lsp.TapiLsp.TapiLspRuleSet value) { + if (ruleSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetIsMutable(); + ruleSet_.set(index, value); + onChanged(); + } else { + ruleSetBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder setRuleSet(int index, tapi_lsp.TapiLsp.TapiLspRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.set(index, builderForValue.build()); + onChanged(); + } else { + ruleSetBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder addRuleSet(tapi_lsp.TapiLsp.TapiLspRuleSet value) { + if (ruleSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetIsMutable(); + ruleSet_.add(value); + onChanged(); + } else { + ruleSetBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder addRuleSet(int index, tapi_lsp.TapiLsp.TapiLspRuleSet value) { + if (ruleSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetIsMutable(); + ruleSet_.add(index, value); + onChanged(); + } else { + ruleSetBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder addRuleSet(tapi_lsp.TapiLsp.TapiLspRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.add(builderForValue.build()); + onChanged(); + } else { + ruleSetBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder addRuleSet(int index, tapi_lsp.TapiLsp.TapiLspRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.add(index, builderForValue.build()); + onChanged(); + } else { + ruleSetBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder addAllRuleSet(java.lang.Iterable values) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ruleSet_); + onChanged(); + } else { + ruleSetBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder clearRuleSet() { + if (ruleSetBuilder_ == null) { + ruleSet_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + ruleSetBuilder_.clear(); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder removeRuleSet(int index) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.remove(index); + onChanged(); + } else { + ruleSetBuilder_.remove(index); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public tapi_lsp.TapiLsp.TapiLspRuleSet.Builder getRuleSetBuilder(int index) { + return getRuleSetFieldBuilder().getBuilder(index); + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public tapi_lsp.TapiLsp.TapiLspRuleSetOrBuilder getRuleSetOrBuilder(int index) { + if (ruleSetBuilder_ == null) { + return ruleSet_.get(index); + } else { + return ruleSetBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public java.util.List getRuleSetOrBuilderList() { + if (ruleSetBuilder_ != null) { + return ruleSetBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ruleSet_); + } + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public tapi_lsp.TapiLsp.TapiLspRuleSet.Builder addRuleSetBuilder() { + return getRuleSetFieldBuilder().addBuilder(tapi_lsp.TapiLsp.TapiLspRuleSet.getDefaultInstance()); + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public tapi_lsp.TapiLsp.TapiLspRuleSet.Builder addRuleSetBuilder(int index) { + return getRuleSetFieldBuilder().addBuilder(index, tapi_lsp.TapiLsp.TapiLspRuleSet.getDefaultInstance()); + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public java.util.List getRuleSetBuilderList() { + return getRuleSetFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getRuleSetFieldBuilder() { + if (ruleSetBuilder_ == null) { + ruleSetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(ruleSet_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + ruleSet_ = null; + } + return ruleSetBuilder_; + } + + @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:context.ConfigRule_TAPI_LSP) + } + + // @@protoc_insertion_point(class_scope:context.ConfigRule_TAPI_LSP) + private static final context.ContextOuterClass.ConfigRule_TAPI_LSP DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.ConfigRule_TAPI_LSP(); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public ConfigRule_TAPI_LSP parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSP getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface ConfigRule_IP_LINKOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ConfigRule_IP_LINK) com.google.protobuf.MessageOrBuilder { @@ -61277,6 +62952,40 @@ public final class ContextOuterClass { */ context.ContextOuterClass.ConfigRule_IP_LINKOrBuilder getIpLinkOrBuilder(); + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + * @return Whether the tapiLsp field is set. + */ + boolean hasTapiLsp(); + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + * @return The tapiLsp. + */ + context.ContextOuterClass.ConfigRule_TAPI_LSP getTapiLsp(); + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + context.ContextOuterClass.ConfigRule_TAPI_LSPOrBuilder getTapiLspOrBuilder(); + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + * @return Whether the ipowdm field is set. + */ + boolean hasIpowdm(); + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + * @return The ipowdm. + */ + context.ContextOuterClass.ConfigRule_IPOWDM getIpowdm(); + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + context.ContextOuterClass.ConfigRule_IPOWDMOrBuilder getIpowdmOrBuilder(); + context.ContextOuterClass.ConfigRule.ConfigRuleCase getConfigRuleCase(); } @@ -61319,7 +63028,12 @@ public final class ContextOuterClass { public enum ConfigRuleCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CUSTOM(2), ACL(3), IP_LINK(4), CONFIGRULE_NOT_SET(0); + CUSTOM(2), + ACL(3), + IP_LINK(4), + TAPI_LSP(5), + IPOWDM(6), + CONFIGRULE_NOT_SET(0); private final int value; @@ -61345,6 +63059,10 @@ public final class ContextOuterClass { return ACL; case 4: return IP_LINK; + case 5: + return TAPI_LSP; + case 6: + return IPOWDM; case 0: return CONFIGRULE_NOT_SET; default: @@ -61486,6 +63204,74 @@ public final class ContextOuterClass { return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); } + public static final int TAPI_LSP_FIELD_NUMBER = 5; + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + * @return Whether the tapiLsp field is set. + */ + @java.lang.Override + public boolean hasTapiLsp() { + return configRuleCase_ == 5; + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + * @return The tapiLsp. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSP getTapiLsp() { + if (configRuleCase_ == 5) { + return (context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_; + } + return context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSPOrBuilder getTapiLspOrBuilder() { + if (configRuleCase_ == 5) { + return (context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_; + } + return context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } + + public static final int IPOWDM_FIELD_NUMBER = 6; + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + * @return Whether the ipowdm field is set. + */ + @java.lang.Override + public boolean hasIpowdm() { + return configRuleCase_ == 6; + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + * @return The ipowdm. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDM getIpowdm() { + if (configRuleCase_ == 6) { + return (context.ContextOuterClass.ConfigRule_IPOWDM) configRule_; + } + return context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDMOrBuilder getIpowdmOrBuilder() { + if (configRuleCase_ == 6) { + return (context.ContextOuterClass.ConfigRule_IPOWDM) configRule_; + } + return context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -61513,6 +63299,12 @@ public final class ContextOuterClass { if (configRuleCase_ == 4) { output.writeMessage(4, (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_); } + if (configRuleCase_ == 5) { + output.writeMessage(5, (context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_); + } + if (configRuleCase_ == 6) { + output.writeMessage(6, (context.ContextOuterClass.ConfigRule_IPOWDM) configRule_); + } getUnknownFields().writeTo(output); } @@ -61534,6 +63326,12 @@ public final class ContextOuterClass { if (configRuleCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_); } + if (configRuleCase_ == 5) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, (context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_); + } + if (configRuleCase_ == 6) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, (context.ContextOuterClass.ConfigRule_IPOWDM) configRule_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -61565,6 +63363,14 @@ public final class ContextOuterClass { if (!getIpLink().equals(other.getIpLink())) return false; break; + case 5: + if (!getTapiLsp().equals(other.getTapiLsp())) + return false; + break; + case 6: + if (!getIpowdm().equals(other.getIpowdm())) + return false; + break; case 0: default: } @@ -61595,6 +63401,14 @@ public final class ContextOuterClass { hash = (37 * hash) + IP_LINK_FIELD_NUMBER; hash = (53 * hash) + getIpLink().hashCode(); break; + case 5: + hash = (37 * hash) + TAPI_LSP_FIELD_NUMBER; + hash = (53 * hash) + getTapiLsp().hashCode(); + break; + case 6: + hash = (37 * hash) + IPOWDM_FIELD_NUMBER; + hash = (53 * hash) + getIpowdm().hashCode(); + break; case 0: default: } @@ -61712,6 +63526,12 @@ public final class ContextOuterClass { if (ipLinkBuilder_ != null) { ipLinkBuilder_.clear(); } + if (tapiLspBuilder_ != null) { + tapiLspBuilder_.clear(); + } + if (ipowdmBuilder_ != null) { + ipowdmBuilder_.clear(); + } configRuleCase_ = 0; configRule_ = null; return this; @@ -61766,6 +63586,12 @@ public final class ContextOuterClass { if (configRuleCase_ == 4 && ipLinkBuilder_ != null) { result.configRule_ = ipLinkBuilder_.build(); } + if (configRuleCase_ == 5 && tapiLspBuilder_ != null) { + result.configRule_ = tapiLspBuilder_.build(); + } + if (configRuleCase_ == 6 && ipowdmBuilder_ != null) { + result.configRule_ = ipowdmBuilder_.build(); + } } @java.lang.Override @@ -61800,6 +63626,16 @@ public final class ContextOuterClass { mergeIpLink(other.getIpLink()); break; } + case TAPI_LSP: + { + mergeTapiLsp(other.getTapiLsp()); + break; + } + case IPOWDM: + { + mergeIpowdm(other.getIpowdm()); + break; + } case CONFIGRULE_NOT_SET: { break; @@ -61856,6 +63692,20 @@ public final class ContextOuterClass { break; } // case 34 + case 42: + { + input.readMessage(getTapiLspFieldBuilder().getBuilder(), extensionRegistry); + configRuleCase_ = 5; + break; + } + // case 42 + case 50: + { + input.readMessage(getIpowdmFieldBuilder().getBuilder(), extensionRegistry); + configRuleCase_ = 6; + break; + } + // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -62376,6 +64226,288 @@ public final class ContextOuterClass { return ipLinkBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3 tapiLspBuilder_; + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + * @return Whether the tapiLsp field is set. + */ + @java.lang.Override + public boolean hasTapiLsp() { + return configRuleCase_ == 5; + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + * @return The tapiLsp. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSP getTapiLsp() { + if (tapiLspBuilder_ == null) { + if (configRuleCase_ == 5) { + return (context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_; + } + return context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } else { + if (configRuleCase_ == 5) { + return tapiLspBuilder_.getMessage(); + } + return context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + public Builder setTapiLsp(context.ContextOuterClass.ConfigRule_TAPI_LSP value) { + if (tapiLspBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configRule_ = value; + onChanged(); + } else { + tapiLspBuilder_.setMessage(value); + } + configRuleCase_ = 5; + return this; + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + public Builder setTapiLsp(context.ContextOuterClass.ConfigRule_TAPI_LSP.Builder builderForValue) { + if (tapiLspBuilder_ == null) { + configRule_ = builderForValue.build(); + onChanged(); + } else { + tapiLspBuilder_.setMessage(builderForValue.build()); + } + configRuleCase_ = 5; + return this; + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + public Builder mergeTapiLsp(context.ContextOuterClass.ConfigRule_TAPI_LSP value) { + if (tapiLspBuilder_ == null) { + if (configRuleCase_ == 5 && configRule_ != context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance()) { + configRule_ = context.ContextOuterClass.ConfigRule_TAPI_LSP.newBuilder((context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_).mergeFrom(value).buildPartial(); + } else { + configRule_ = value; + } + onChanged(); + } else { + if (configRuleCase_ == 5) { + tapiLspBuilder_.mergeFrom(value); + } else { + tapiLspBuilder_.setMessage(value); + } + } + configRuleCase_ = 5; + return this; + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + public Builder clearTapiLsp() { + if (tapiLspBuilder_ == null) { + if (configRuleCase_ == 5) { + configRuleCase_ = 0; + configRule_ = null; + onChanged(); + } + } else { + if (configRuleCase_ == 5) { + configRuleCase_ = 0; + configRule_ = null; + } + tapiLspBuilder_.clear(); + } + return this; + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + public context.ContextOuterClass.ConfigRule_TAPI_LSP.Builder getTapiLspBuilder() { + return getTapiLspFieldBuilder().getBuilder(); + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSPOrBuilder getTapiLspOrBuilder() { + if ((configRuleCase_ == 5) && (tapiLspBuilder_ != null)) { + return tapiLspBuilder_.getMessageOrBuilder(); + } else { + if (configRuleCase_ == 5) { + return (context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_; + } + return context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTapiLspFieldBuilder() { + if (tapiLspBuilder_ == null) { + if (!(configRuleCase_ == 5)) { + configRule_ = context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } + tapiLspBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_, getParentForChildren(), isClean()); + configRule_ = null; + } + configRuleCase_ = 5; + onChanged(); + return tapiLspBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 ipowdmBuilder_; + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + * @return Whether the ipowdm field is set. + */ + @java.lang.Override + public boolean hasIpowdm() { + return configRuleCase_ == 6; + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + * @return The ipowdm. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDM getIpowdm() { + if (ipowdmBuilder_ == null) { + if (configRuleCase_ == 6) { + return (context.ContextOuterClass.ConfigRule_IPOWDM) configRule_; + } + return context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } else { + if (configRuleCase_ == 6) { + return ipowdmBuilder_.getMessage(); + } + return context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + public Builder setIpowdm(context.ContextOuterClass.ConfigRule_IPOWDM value) { + if (ipowdmBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configRule_ = value; + onChanged(); + } else { + ipowdmBuilder_.setMessage(value); + } + configRuleCase_ = 6; + return this; + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + public Builder setIpowdm(context.ContextOuterClass.ConfigRule_IPOWDM.Builder builderForValue) { + if (ipowdmBuilder_ == null) { + configRule_ = builderForValue.build(); + onChanged(); + } else { + ipowdmBuilder_.setMessage(builderForValue.build()); + } + configRuleCase_ = 6; + return this; + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + public Builder mergeIpowdm(context.ContextOuterClass.ConfigRule_IPOWDM value) { + if (ipowdmBuilder_ == null) { + if (configRuleCase_ == 6 && configRule_ != context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance()) { + configRule_ = context.ContextOuterClass.ConfigRule_IPOWDM.newBuilder((context.ContextOuterClass.ConfigRule_IPOWDM) configRule_).mergeFrom(value).buildPartial(); + } else { + configRule_ = value; + } + onChanged(); + } else { + if (configRuleCase_ == 6) { + ipowdmBuilder_.mergeFrom(value); + } else { + ipowdmBuilder_.setMessage(value); + } + } + configRuleCase_ = 6; + return this; + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + public Builder clearIpowdm() { + if (ipowdmBuilder_ == null) { + if (configRuleCase_ == 6) { + configRuleCase_ = 0; + configRule_ = null; + onChanged(); + } + } else { + if (configRuleCase_ == 6) { + configRuleCase_ = 0; + configRule_ = null; + } + ipowdmBuilder_.clear(); + } + return this; + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + public context.ContextOuterClass.ConfigRule_IPOWDM.Builder getIpowdmBuilder() { + return getIpowdmFieldBuilder().getBuilder(); + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDMOrBuilder getIpowdmOrBuilder() { + if ((configRuleCase_ == 6) && (ipowdmBuilder_ != null)) { + return ipowdmBuilder_.getMessageOrBuilder(); + } else { + if (configRuleCase_ == 6) { + return (context.ContextOuterClass.ConfigRule_IPOWDM) configRule_; + } + return context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3 getIpowdmFieldBuilder() { + if (ipowdmBuilder_ == null) { + if (!(configRuleCase_ == 6)) { + configRule_ = context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } + ipowdmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_IPOWDM) configRule_, getParentForChildren(), isClean()); + configRule_ = null; + } + configRuleCase_ = 6; + onChanged(); + return ipowdmBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); @@ -87855,6 +89987,14 @@ public final class ContextOuterClass { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_ACL_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ConfigRule_IPOWDM_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_IPOWDM_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ConfigRule_TAPI_LSP_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_TAPI_LSP_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ConfigRule_IP_LINK_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_IP_LINK_fieldAccessorTable; @@ -87998,8 +90138,8 @@ public final class ContextOuterClass { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - java.lang.String[] descriptorData = { "\n\rcontext.proto\022\007context\032\031google/protobu" + "f/any.proto\032\tacl.proto\032\rip_link.proto\032\026k" + "pi_sample_types.proto\"\007\n\005Empty\"\024\n\004Uuid\022\014" + "\n\004uuid\030\001 \001(\t\"\036\n\tTimestamp\022\021\n\ttimestamp\030\001" + " \001(\001\"Z\n\005Event\022%\n\ttimestamp\030\001 \001(\0132\022.conte" + "xt.Timestamp\022*\n\nevent_type\030\002 \001(\0162\026.conte" + "xt.EventTypeEnum\"\265\002\n\010AnyEvent\022(\n\007context" + "\030\001 \001(\0132\025.context.ContextEventH\000\022*\n\010topol" + "ogy\030\002 \001(\0132\026.context.TopologyEventH\000\022&\n\006d" + "evice\030\003 \001(\0132\024.context.DeviceEventH\000\022\"\n\004l" + "ink\030\004 \001(\0132\022.context.LinkEventH\000\022(\n\007servi" + "ce\030\005 \001(\0132\025.context.ServiceEventH\000\022$\n\005sli" + "ce\030\006 \001(\0132\023.context.SliceEventH\000\022.\n\nconne" + "ction\030\007 \001(\0132\030.context.ConnectionEventH\000B" + "\007\n\005event\"0\n\tContextId\022#\n\014context_uuid\030\001 " + "\001(\0132\r.context.Uuid\"\351\001\n\007Context\022&\n\ncontex" + "t_id\030\001 \001(\0132\022.context.ContextId\022\014\n\004name\030\002" + " \001(\t\022)\n\014topology_ids\030\003 \003(\0132\023.context.Top" + "ologyId\022\'\n\013service_ids\030\004 \003(\0132\022.context.S" + "erviceId\022#\n\tslice_ids\030\005 \003(\0132\020.context.Sl" + "iceId\022/\n\ncontroller\030\006 \001(\0132\033.context.Tera" + "FlowController\"8\n\rContextIdList\022\'\n\013conte" + "xt_ids\030\001 \003(\0132\022.context.ContextId\"1\n\013Cont" + "extList\022\"\n\010contexts\030\001 \003(\0132\020.context.Cont" + "ext\"U\n\014ContextEvent\022\035\n\005event\030\001 \001(\0132\016.con" + "text.Event\022&\n\ncontext_id\030\002 \001(\0132\022.context" + ".ContextId\"Z\n\nTopologyId\022&\n\ncontext_id\030\001" + " \001(\0132\022.context.ContextId\022$\n\rtopology_uui" + "d\030\002 \001(\0132\r.context.Uuid\"\267\001\n\010Topology\022(\n\013t" + "opology_id\030\001 \001(\0132\023.context.TopologyId\022\014\n" + "\004name\030\002 \001(\t\022%\n\ndevice_ids\030\003 \003(\0132\021.contex" + "t.DeviceId\022!\n\010link_ids\030\004 \003(\0132\017.context.L" + "inkId\022)\n\020optical_link_ids\030\005 \003(\0132\017.contex" + "t.LinkId\"\266\001\n\017TopologyDetails\022(\n\013topology" + "_id\030\001 \001(\0132\023.context.TopologyId\022\014\n\004name\030\002" + " \001(\t\022 \n\007devices\030\003 \003(\0132\017.context.Device\022\034" + "\n\005links\030\004 \003(\0132\r.context.Link\022+\n\roptical_" + "links\030\005 \003(\0132\024.context.OpticalLink\";\n\016Top" + "ologyIdList\022)\n\014topology_ids\030\001 \003(\0132\023.cont" + "ext.TopologyId\"5\n\014TopologyList\022%\n\ntopolo" + "gies\030\001 \003(\0132\021.context.Topology\"X\n\rTopolog" + "yEvent\022\035\n\005event\030\001 \001(\0132\016.context.Event\022(\n" + "\013topology_id\030\002 \001(\0132\023.context.TopologyId\"" + ".\n\010DeviceId\022\"\n\013device_uuid\030\001 \001(\0132\r.conte" + "xt.Uuid\"\372\002\n\006Device\022$\n\tdevice_id\030\001 \001(\0132\021." + "context.DeviceId\022\014\n\004name\030\002 \001(\t\022\023\n\013device" + "_type\030\003 \001(\t\022,\n\rdevice_config\030\004 \001(\0132\025.con" + "text.DeviceConfig\022G\n\031device_operational_" + "status\030\005 \001(\0162$.context.DeviceOperational" + "StatusEnum\0221\n\016device_drivers\030\006 \003(\0162\031.con" + "text.DeviceDriverEnum\022+\n\020device_endpoint" + "s\030\007 \003(\0132\021.context.EndPoint\022&\n\ncomponents" + "\030\010 \003(\0132\022.context.Component\022(\n\rcontroller" + "_id\030\t \001(\0132\021.context.DeviceId\"\311\001\n\tCompone" + "nt\022%\n\016component_uuid\030\001 \001(\0132\r.context.Uui" + "d\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\0226\n\nattribu" + "tes\030\004 \003(\0132\".context.Component.Attributes" + "Entry\022\016\n\006parent\030\005 \001(\t\0321\n\017AttributesEntry" + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"9\n\014Devi" + "ceConfig\022)\n\014config_rules\030\001 \003(\0132\023.context" + ".ConfigRule\"5\n\014DeviceIdList\022%\n\ndevice_id" + "s\030\001 \003(\0132\021.context.DeviceId\".\n\nDeviceList" + "\022 \n\007devices\030\001 \003(\0132\017.context.Device\"\216\001\n\014D" + "eviceFilter\022)\n\ndevice_ids\030\001 \001(\0132\025.contex" + "t.DeviceIdList\022\031\n\021include_endpoints\030\002 \001(" + "\010\022\034\n\024include_config_rules\030\003 \001(\010\022\032\n\022inclu" + "de_components\030\004 \001(\010\"\200\001\n\013DeviceEvent\022\035\n\005e" + "vent\030\001 \001(\0132\016.context.Event\022$\n\tdevice_id\030" + "\002 \001(\0132\021.context.DeviceId\022,\n\rdevice_confi" + "g\030\003 \001(\0132\025.context.DeviceConfig\"*\n\006LinkId" + "\022 \n\tlink_uuid\030\001 \001(\0132\r.context.Uuid\"c\n\016Li" + "nkAttributes\022\030\n\020is_bidirectional\030\001 \001(\010\022\033" + "\n\023total_capacity_gbps\030\002 \001(\002\022\032\n\022used_capa" + "city_gbps\030\003 \001(\002\"\275\001\n\004Link\022 \n\007link_id\030\001 \001(" + "\0132\017.context.LinkId\022\014\n\004name\030\002 \001(\t\022(\n\tlink" + "_type\030\003 \001(\0162\025.context.LinkTypeEnum\022.\n\021li" + "nk_endpoint_ids\030\004 \003(\0132\023.context.EndPoint" + "Id\022+\n\nattributes\030\005 \001(\0132\027.context.LinkAtt" + "ributes\"/\n\nLinkIdList\022!\n\010link_ids\030\001 \003(\0132" + "\017.context.LinkId\"(\n\010LinkList\022\034\n\005links\030\001 " + "\003(\0132\r.context.Link\"L\n\tLinkEvent\022\035\n\005event" + "\030\001 \001(\0132\016.context.Event\022 \n\007link_id\030\002 \001(\0132" + "\017.context.LinkId\"X\n\tServiceId\022&\n\ncontext" + "_id\030\001 \001(\0132\022.context.ContextId\022#\n\014service" + "_uuid\030\002 \001(\0132\r.context.Uuid\"\333\002\n\007Service\022&" + "\n\nservice_id\030\001 \001(\0132\022.context.ServiceId\022\014" + "\n\004name\030\002 \001(\t\022.\n\014service_type\030\003 \001(\0162\030.con" + "text.ServiceTypeEnum\0221\n\024service_endpoint" + "_ids\030\004 \003(\0132\023.context.EndPointId\0220\n\023servi" + "ce_constraints\030\005 \003(\0132\023.context.Constrain" + "t\022.\n\016service_status\030\006 \001(\0132\026.context.Serv" + "iceStatus\022.\n\016service_config\030\007 \001(\0132\026.cont" + "ext.ServiceConfig\022%\n\ttimestamp\030\010 \001(\0132\022.c" + "ontext.Timestamp\"C\n\rServiceStatus\0222\n\016ser" + "vice_status\030\001 \001(\0162\032.context.ServiceStatu" + "sEnum\":\n\rServiceConfig\022)\n\014config_rules\030\001" + " \003(\0132\023.context.ConfigRule\"8\n\rServiceIdLi" + "st\022\'\n\013service_ids\030\001 \003(\0132\022.context.Servic" + "eId\"1\n\013ServiceList\022\"\n\010services\030\001 \003(\0132\020.c" + "ontext.Service\"\225\001\n\rServiceFilter\022+\n\013serv" + "ice_ids\030\001 \001(\0132\026.context.ServiceIdList\022\034\n" + "\024include_endpoint_ids\030\002 \001(\010\022\033\n\023include_c" + "onstraints\030\003 \001(\010\022\034\n\024include_config_rules" + "\030\004 \001(\010\"U\n\014ServiceEvent\022\035\n\005event\030\001 \001(\0132\016." + "context.Event\022&\n\nservice_id\030\002 \001(\0132\022.cont" + "ext.ServiceId\"T\n\007SliceId\022&\n\ncontext_id\030\001" + " \001(\0132\022.context.ContextId\022!\n\nslice_uuid\030\002" + " \001(\0132\r.context.Uuid\"\240\003\n\005Slice\022\"\n\010slice_i" + "d\030\001 \001(\0132\020.context.SliceId\022\014\n\004name\030\002 \001(\t\022" + "/\n\022slice_endpoint_ids\030\003 \003(\0132\023.context.En" + "dPointId\022.\n\021slice_constraints\030\004 \003(\0132\023.co" + "ntext.Constraint\022-\n\021slice_service_ids\030\005 " + "\003(\0132\022.context.ServiceId\022,\n\022slice_subslic" + "e_ids\030\006 \003(\0132\020.context.SliceId\022*\n\014slice_s" + "tatus\030\007 \001(\0132\024.context.SliceStatus\022*\n\014sli" + "ce_config\030\010 \001(\0132\024.context.SliceConfig\022(\n" + "\013slice_owner\030\t \001(\0132\023.context.SliceOwner\022" + "%\n\ttimestamp\030\n \001(\0132\022.context.Timestamp\"E" + "\n\nSliceOwner\022!\n\nowner_uuid\030\001 \001(\0132\r.conte" + "xt.Uuid\022\024\n\014owner_string\030\002 \001(\t\"=\n\013SliceSt" + "atus\022.\n\014slice_status\030\001 \001(\0162\030.context.Sli" + "ceStatusEnum\"8\n\013SliceConfig\022)\n\014config_ru" + "les\030\001 \003(\0132\023.context.ConfigRule\"2\n\013SliceI" + "dList\022#\n\tslice_ids\030\001 \003(\0132\020.context.Slice" + "Id\"+\n\tSliceList\022\036\n\006slices\030\001 \003(\0132\016.contex" + "t.Slice\"\312\001\n\013SliceFilter\022\'\n\tslice_ids\030\001 \001" + "(\0132\024.context.SliceIdList\022\034\n\024include_endp" + "oint_ids\030\002 \001(\010\022\033\n\023include_constraints\030\003 " + "\001(\010\022\033\n\023include_service_ids\030\004 \001(\010\022\034\n\024incl" + "ude_subslice_ids\030\005 \001(\010\022\034\n\024include_config" + "_rules\030\006 \001(\010\"O\n\nSliceEvent\022\035\n\005event\030\001 \001(" + "\0132\016.context.Event\022\"\n\010slice_id\030\002 \001(\0132\020.co" + "ntext.SliceId\"6\n\014ConnectionId\022&\n\017connect" + "ion_uuid\030\001 \001(\0132\r.context.Uuid\"2\n\025Connect" + "ionSettings_L0\022\031\n\021lsp_symbolic_name\030\001 \001(" + "\t\"\236\001\n\025ConnectionSettings_L2\022\027\n\017src_mac_a" + "ddress\030\001 \001(\t\022\027\n\017dst_mac_address\030\002 \001(\t\022\022\n" + "\nether_type\030\003 \001(\r\022\017\n\007vlan_id\030\004 \001(\r\022\022\n\nmp" + "ls_label\030\005 \001(\r\022\032\n\022mpls_traffic_class\030\006 \001" + "(\r\"t\n\025ConnectionSettings_L3\022\026\n\016src_ip_ad" + "dress\030\001 \001(\t\022\026\n\016dst_ip_address\030\002 \001(\t\022\014\n\004d" + "scp\030\003 \001(\r\022\020\n\010protocol\030\004 \001(\r\022\013\n\003ttl\030\005 \001(\r" + "\"[\n\025ConnectionSettings_L4\022\020\n\010src_port\030\001 " + "\001(\r\022\020\n\010dst_port\030\002 \001(\r\022\021\n\ttcp_flags\030\003 \001(\r" + "\022\013\n\003ttl\030\004 \001(\r\"\304\001\n\022ConnectionSettings\022*\n\002" + "l0\030\001 \001(\0132\036.context.ConnectionSettings_L0" + "\022*\n\002l2\030\002 \001(\0132\036.context.ConnectionSetting" + "s_L2\022*\n\002l3\030\003 \001(\0132\036.context.ConnectionSet" + "tings_L3\022*\n\002l4\030\004 \001(\0132\036.context.Connectio" + "nSettings_L4\"\363\001\n\nConnection\022,\n\rconnectio" + "n_id\030\001 \001(\0132\025.context.ConnectionId\022&\n\nser" + "vice_id\030\002 \001(\0132\022.context.ServiceId\0223\n\026pat" + "h_hops_endpoint_ids\030\003 \003(\0132\023.context.EndP" + "ointId\022+\n\017sub_service_ids\030\004 \003(\0132\022.contex" + "t.ServiceId\022-\n\010settings\030\005 \001(\0132\033.context." + "ConnectionSettings\"A\n\020ConnectionIdList\022-" + "\n\016connection_ids\030\001 \003(\0132\025.context.Connect" + "ionId\":\n\016ConnectionList\022(\n\013connections\030\001" + " \003(\0132\023.context.Connection\"^\n\017ConnectionE" + "vent\022\035\n\005event\030\001 \001(\0132\016.context.Event\022,\n\rc" + "onnection_id\030\002 \001(\0132\025.context.ConnectionI" + "d\"\202\001\n\nEndPointId\022(\n\013topology_id\030\001 \001(\0132\023." + "context.TopologyId\022$\n\tdevice_id\030\002 \001(\0132\021." + "context.DeviceId\022$\n\rendpoint_uuid\030\003 \001(\0132" + "\r.context.Uuid\"\310\002\n\010EndPoint\022(\n\013endpoint_" + "id\030\001 \001(\0132\023.context.EndPointId\022\014\n\004name\030\002 " + "\001(\t\022\025\n\rendpoint_type\030\003 \001(\t\0229\n\020kpi_sample" + "_types\030\004 \003(\0162\037.kpi_sample_types.KpiSampl" + "eType\022,\n\021endpoint_location\030\005 \001(\0132\021.conte" + "xt.Location\0229\n\014capabilities\030\006 \003(\0132#.cont" + "ext.EndPoint.CapabilitiesEntry\032I\n\021Capabi" + "litiesEntry\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132" + "\024.google.protobuf.Any:\0028\001\"{\n\014EndPointNam" + "e\022(\n\013endpoint_id\030\001 \001(\0132\023.context.EndPoin" + "tId\022\023\n\013device_name\030\002 \001(\t\022\025\n\rendpoint_nam" + "e\030\003 \001(\t\022\025\n\rendpoint_type\030\004 \001(\t\";\n\016EndPoi" + "ntIdList\022)\n\014endpoint_ids\030\001 \003(\0132\023.context" + ".EndPointId\"A\n\020EndPointNameList\022-\n\016endpo" + "int_names\030\001 \003(\0132\025.context.EndPointName\"A" + "\n\021ConfigRule_Custom\022\024\n\014resource_key\030\001 \001(" + "\t\022\026\n\016resource_value\030\002 \001(\t\"]\n\016ConfigRule_" + "ACL\022(\n\013endpoint_id\030\001 \001(\0132\023.context.EndPo" + "intId\022!\n\010rule_set\030\002 \001(\0132\017.acl.AclRuleSet" + "\"h\n\022ConfigRule_IP_LINK\022(\n\013endpoint_id\030\001 " + "\001(\0132\023.context.EndPointId\022(\n\010rule_set\030\002 \001" + "(\0132\026.ip_link.IpLinkRuleSet\"\314\001\n\nConfigRul" + "e\022)\n\006action\030\001 \001(\0162\031.context.ConfigAction" + "Enum\022,\n\006custom\030\002 \001(\0132\032.context.ConfigRul" + "e_CustomH\000\022&\n\003acl\030\003 \001(\0132\027.context.Config" + "Rule_ACLH\000\022.\n\007ip_link\030\004 \001(\0132\033.context.Co" + "nfigRule_IP_LINKH\000B\r\n\013config_rule\"F\n\021Con" + "straint_Custom\022\027\n\017constraint_type\030\001 \001(\t\022" + "\030\n\020constraint_value\030\002 \001(\t\"E\n\023Constraint_" + "Schedule\022\027\n\017start_timestamp\030\001 \001(\001\022\025\n\rdur" + "ation_days\030\002 \001(\002\"3\n\014GPS_Position\022\020\n\010lati" + "tude\030\001 \001(\002\022\021\n\tlongitude\030\002 \001(\002\"\204\001\n\010Locati" + "on\022\020\n\006region\030\001 \001(\tH\000\022-\n\014gps_position\030\002 \001" + "(\0132\025.context.GPS_PositionH\000\022\023\n\tinterface" + "\030\003 \001(\tH\000\022\026\n\014circuit_pack\030\004 \001(\tH\000B\n\n\010loca" + "tion\"l\n\033Constraint_EndPointLocation\022(\n\013e" + "ndpoint_id\030\001 \001(\0132\023.context.EndPointId\022#\n" + "\010location\030\002 \001(\0132\021.context.Location\"Y\n\033Co" + "nstraint_EndPointPriority\022(\n\013endpoint_id" + "\030\001 \001(\0132\023.context.EndPointId\022\020\n\010priority\030" + "\002 \001(\r\"0\n\026Constraint_SLA_Latency\022\026\n\016e2e_l" + "atency_ms\030\001 \001(\002\"0\n\027Constraint_SLA_Capaci" + "ty\022\025\n\rcapacity_gbps\030\001 \001(\002\"c\n\033Constraint_" + "SLA_Availability\022\032\n\022num_disjoint_paths\030\001" + " \001(\r\022\022\n\nall_active\030\002 \001(\010\022\024\n\014availability" + "\030\003 \001(\002\"V\n\036Constraint_SLA_Isolation_level" + "\0224\n\017isolation_level\030\001 \003(\0162\033.context.Isol" + "ationLevelEnum\"\242\001\n\025Constraint_Exclusions" + "\022\024\n\014is_permanent\030\001 \001(\010\022%\n\ndevice_ids\030\002 \003" + "(\0132\021.context.DeviceId\022)\n\014endpoint_ids\030\003 " + "\003(\0132\023.context.EndPointId\022!\n\010link_ids\030\004 \003" + "(\0132\017.context.LinkId\"5\n\014QoSProfileId\022%\n\016q" + "os_profile_id\030\001 \001(\0132\r.context.Uuid\"`\n\025Co" + "nstraint_QoSProfile\022-\n\016qos_profile_id\030\001 " + "\001(\0132\025.context.QoSProfileId\022\030\n\020qos_profil" + "e_name\030\002 \001(\t\"\222\005\n\nConstraint\022-\n\006action\030\001 " + "\001(\0162\035.context.ConstraintActionEnum\022,\n\006cu" + "stom\030\002 \001(\0132\032.context.Constraint_CustomH\000" + "\0220\n\010schedule\030\003 \001(\0132\034.context.Constraint_" + "ScheduleH\000\022A\n\021endpoint_location\030\004 \001(\0132$." + "context.Constraint_EndPointLocationH\000\022A\n" + "\021endpoint_priority\030\005 \001(\0132$.context.Const" + "raint_EndPointPriorityH\000\0228\n\014sla_capacity" + "\030\006 \001(\0132 .context.Constraint_SLA_Capacity" + "H\000\0226\n\013sla_latency\030\007 \001(\0132\037.context.Constr" + "aint_SLA_LatencyH\000\022@\n\020sla_availability\030\010" + " \001(\0132$.context.Constraint_SLA_Availabili" + "tyH\000\022@\n\rsla_isolation\030\t \001(\0132\'.context.Co" + "nstraint_SLA_Isolation_levelH\000\0224\n\nexclus" + "ions\030\n \001(\0132\036.context.Constraint_Exclusio" + "nsH\000\0225\n\013qos_profile\030\013 \001(\0132\036.context.Cons" + "traint_QoSProfileH\000B\014\n\nconstraint\"^\n\022Ter" + "aFlowController\022&\n\ncontext_id\030\001 \001(\0132\022.co" + "ntext.ContextId\022\022\n\nip_address\030\002 \001(\t\022\014\n\004p" + "ort\030\003 \001(\r\"U\n\024AuthenticationResult\022&\n\ncon" + "text_id\030\001 \001(\0132\022.context.ContextId\022\025\n\raut" + "henticated\030\002 \001(\010\"-\n\017OpticalConfigId\022\032\n\022o" + "pticalconfig_uuid\030\001 \001(\t\"y\n\rOpticalConfig" + "\0222\n\020opticalconfig_id\030\001 \001(\0132\030.context.Opt" + "icalConfigId\022\016\n\006config\030\002 \001(\t\022$\n\tdevice_i" + "d\030\003 \001(\0132\021.context.DeviceId\"C\n\021OpticalCon" + "figList\022.\n\016opticalconfigs\030\001 \003(\0132\026.contex" + "t.OpticalConfig\"g\n\022OpticalConfigEvent\022\035\n" + "\005event\030\001 \001(\0132\016.context.Event\0222\n\020opticalc" + "onfig_id\030\002 \001(\0132\030.context.OpticalConfigId" + "\"_\n\021OpticalEndPointId\022$\n\tdevice_id\030\002 \001(\013" + "2\021.context.DeviceId\022$\n\rendpoint_uuid\030\003 \001" + "(\0132\r.context.Uuid\">\n\017OpticalLinkList\022+\n\r" + "optical_links\030\001 \003(\0132\024.context.OpticalLin" + "k\"\304\003\n\022OpticalLinkDetails\022\016\n\006length\030\001 \001(\002" + "\022\020\n\010src_port\030\002 \001(\t\022\020\n\010dst_port\030\003 \001(\t\022\027\n\017" + "local_peer_port\030\004 \001(\t\022\030\n\020remote_peer_por" + "t\030\005 \001(\t\022\014\n\004used\030\006 \001(\010\0228\n\007c_slots\030\007 \003(\0132\'" + ".context.OpticalLinkDetails.CSlotsEntry\022" + "8\n\007l_slots\030\010 \003(\0132\'.context.OpticalLinkDe" + "tails.LSlotsEntry\0228\n\007s_slots\030\t \003(\0132\'.con" + "text.OpticalLinkDetails.SSlotsEntry\032-\n\013C" + "SlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\002" + "8\001\032-\n\013LSlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\005:\0028\001\032-\n\013SSlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\005:\0028\001\"\243\001\n\013OpticalLink\022\014\n\004name" + "\030\001 \001(\t\0224\n\017optical_details\030\002 \001(\0132\033.contex" + "t.OpticalLinkDetails\022 \n\007link_id\030\003 \001(\0132\017." + "context.LinkId\022.\n\021link_endpoint_ids\030\004 \003(" + "\0132\023.context.EndPointId\"0\n\tChannelId\022#\n\014c" + "hannel_uuid\030\001 \001(\0132\r.context.Uuid\"8\n\rOpti" + "calBandId\022\'\n\020opticalband_uuid\030\001 \001(\0132\r.co" + "ntext.Uuid\"\247\002\n\013OpticalBand\022.\n\016opticalban" + "d_id\030\001 \001(\0132\026.context.OpticalBandId\022,\n\rco" + "nnection_id\030\002 \001(\0132\025.context.ConnectionId" + "\022&\n\nchannel_id\030\003 \001(\0132\022.context.ChannelId" + "\022&\n\nservice_id\030\004 \001(\0132\022.context.ServiceId" + "\022#\n\007service\030\005 \001(\0132\020.context.ServiceH\000\022)\n" + "\nconnection\030\006 \001(\0132\023.context.ConnectionH\000" + "\022\021\n\007channel\030\007 \001(\tH\000B\007\n\005field\"=\n\017OpticalB" + "andList\022*\n\014opticalbands\030\001 \003(\0132\024.context." + "OpticalBand\"r\n\021ServiceConfigRule\022&\n\nserv" + "ice_id\030\001 \001(\0132\022.context.ServiceId\0225\n\021conf" + "igrule_custom\030\002 \001(\0132\032.context.ConfigRule" + "_Custom*j\n\rEventTypeEnum\022\027\n\023EVENTTYPE_UN" + "DEFINED\020\000\022\024\n\020EVENTTYPE_CREATE\020\001\022\024\n\020EVENT" + "TYPE_UPDATE\020\002\022\024\n\020EVENTTYPE_REMOVE\020\003*\333\004\n\020" + "DeviceDriverEnum\022\032\n\026DEVICEDRIVER_UNDEFIN" + "ED\020\000\022\033\n\027DEVICEDRIVER_OPENCONFIG\020\001\022\036\n\032DEV" + "ICEDRIVER_TRANSPORT_API\020\002\022\023\n\017DEVICEDRIVE" + "R_P4\020\003\022&\n\"DEVICEDRIVER_IETF_NETWORK_TOPO" + "LOGY\020\004\022\033\n\027DEVICEDRIVER_ONF_TR_532\020\005\022\023\n\017D" + "EVICEDRIVER_XR\020\006\022\033\n\027DEVICEDRIVER_IETF_L2" + "VPN\020\007\022 \n\034DEVICEDRIVER_GNMI_OPENCONFIG\020\010\022" + "\034\n\030DEVICEDRIVER_OPTICAL_TFS\020\t\022\032\n\026DEVICED" + "RIVER_IETF_ACTN\020\n\022\023\n\017DEVICEDRIVER_OC\020\013\022\024" + "\n\020DEVICEDRIVER_QKD\020\014\022\033\n\027DEVICEDRIVER_IET" + "F_L3VPN\020\r\022\033\n\027DEVICEDRIVER_IETF_SLICE\020\016\022\024" + "\n\020DEVICEDRIVER_NCE\020\017\022\031\n\025DEVICEDRIVER_SMA" + "RTNIC\020\020\022\031\n\025DEVICEDRIVER_MORPHEUS\020\021\022\024\n\020DE" + "VICEDRIVER_RYU\020\022\022#\n\037DEVICEDRIVER_GNMI_NO" + "KIA_SRLINUX\020\023\022\032\n\026DEVICEDRIVER_OPENROADM\020" + "\024*\217\001\n\033DeviceOperationalStatusEnum\022%\n!DEV" + "ICEOPERATIONALSTATUS_UNDEFINED\020\000\022$\n DEVI" + "CEOPERATIONALSTATUS_DISABLED\020\001\022#\n\037DEVICE" + "OPERATIONALSTATUS_ENABLED\020\002*\245\001\n\014LinkType" + "Enum\022\024\n\020LINKTYPE_UNKNOWN\020\000\022\023\n\017LINKTYPE_C" + "OPPER\020\001\022\022\n\016LINKTYPE_FIBER\020\002\022\022\n\016LINKTYPE_" + "RADIO\020\003\022\024\n\020LINKTYPE_VIRTUAL\020\004\022\027\n\023LINKTYP" + "E_MANAGEMENT\020\005\022\023\n\017LINKTYPE_REMOTE\020\006*\276\002\n\017" + "ServiceTypeEnum\022\027\n\023SERVICETYPE_UNKNOWN\020\000" + "\022\024\n\020SERVICETYPE_L3NM\020\001\022\024\n\020SERVICETYPE_L2" + "NM\020\002\022)\n%SERVICETYPE_TAPI_CONNECTIVITY_SE" + "RVICE\020\003\022\022\n\016SERVICETYPE_TE\020\004\022\023\n\017SERVICETY" + "PE_E2E\020\005\022$\n SERVICETYPE_OPTICAL_CONNECTI" + "VITY\020\006\022\023\n\017SERVICETYPE_QKD\020\007\022\024\n\020SERVICETY" + "PE_L1NM\020\010\022\023\n\017SERVICETYPE_INT\020\t\022\023\n\017SERVIC" + "ETYPE_ACL\020\n\022\027\n\023SERVICETYPE_IP_LINK\020\013*\304\001\n" + "\021ServiceStatusEnum\022\033\n\027SERVICESTATUS_UNDE" + "FINED\020\000\022\031\n\025SERVICESTATUS_PLANNED\020\001\022\030\n\024SE" + "RVICESTATUS_ACTIVE\020\002\022\032\n\026SERVICESTATUS_UP" + "DATING\020\003\022!\n\035SERVICESTATUS_PENDING_REMOVA" + "L\020\004\022\036\n\032SERVICESTATUS_SLA_VIOLATED\020\005*\251\001\n\017" + "SliceStatusEnum\022\031\n\025SLICESTATUS_UNDEFINED" + "\020\000\022\027\n\023SLICESTATUS_PLANNED\020\001\022\024\n\020SLICESTAT" + "US_INIT\020\002\022\026\n\022SLICESTATUS_ACTIVE\020\003\022\026\n\022SLI" + "CESTATUS_DEINIT\020\004\022\034\n\030SLICESTATUS_SLA_VIO" + "LATED\020\005*]\n\020ConfigActionEnum\022\032\n\026CONFIGACT" + "ION_UNDEFINED\020\000\022\024\n\020CONFIGACTION_SET\020\001\022\027\n" + "\023CONFIGACTION_DELETE\020\002*m\n\024ConstraintActi" + "onEnum\022\036\n\032CONSTRAINTACTION_UNDEFINED\020\000\022\030" + "\n\024CONSTRAINTACTION_SET\020\001\022\033\n\027CONSTRAINTAC" + "TION_DELETE\020\002*\203\002\n\022IsolationLevelEnum\022\020\n\014" + "NO_ISOLATION\020\000\022\026\n\022PHYSICAL_ISOLATION\020\001\022\025" + "\n\021LOGICAL_ISOLATION\020\002\022\025\n\021PROCESS_ISOLATI" + "ON\020\003\022\035\n\031PHYSICAL_MEMORY_ISOLATION\020\004\022\036\n\032P" + "HYSICAL_NETWORK_ISOLATION\020\005\022\036\n\032VIRTUAL_R" + "ESOURCE_ISOLATION\020\006\022\037\n\033NETWORK_FUNCTIONS" + "_ISOLATION\020\007\022\025\n\021SERVICE_ISOLATION\020\0102\274\035\n\016" + "ContextService\022:\n\016ListContextIds\022\016.conte" + "xt.Empty\032\026.context.ContextIdList\"\000\0226\n\014Li" + "stContexts\022\016.context.Empty\032\024.context.Con" + "textList\"\000\0224\n\nGetContext\022\022.context.Conte" + "xtId\032\020.context.Context\"\000\0224\n\nSetContext\022\020" + ".context.Context\032\022.context.ContextId\"\000\0225" + "\n\rRemoveContext\022\022.context.ContextId\032\016.co" + "ntext.Empty\"\000\022=\n\020GetContextEvents\022\016.cont" + "ext.Empty\032\025.context.ContextEvent\"\0000\001\022@\n\017" + "ListTopologyIds\022\022.context.ContextId\032\027.co" + "ntext.TopologyIdList\"\000\022=\n\016ListTopologies" + "\022\022.context.ContextId\032\025.context.TopologyL" + "ist\"\000\0227\n\013GetTopology\022\023.context.TopologyI" + "d\032\021.context.Topology\"\000\022E\n\022GetTopologyDet" + "ails\022\023.context.TopologyId\032\030.context.Topo" + "logyDetails\"\000\0227\n\013SetTopology\022\021.context.T" + "opology\032\023.context.TopologyId\"\000\0227\n\016Remove" + "Topology\022\023.context.TopologyId\032\016.context." + "Empty\"\000\022?\n\021GetTopologyEvents\022\016.context.E" + "mpty\032\026.context.TopologyEvent\"\0000\001\0228\n\rList" + "DeviceIds\022\016.context.Empty\032\025.context.Devi" + "ceIdList\"\000\0224\n\013ListDevices\022\016.context.Empt" + "y\032\023.context.DeviceList\"\000\0221\n\tGetDevice\022\021." + "context.DeviceId\032\017.context.Device\"\000\0221\n\tS" + "etDevice\022\017.context.Device\032\021.context.Devi" + "ceId\"\000\0223\n\014RemoveDevice\022\021.context.DeviceI" + "d\032\016.context.Empty\"\000\022;\n\017GetDeviceEvents\022\016" + ".context.Empty\032\024.context.DeviceEvent\"\0000\001" + "\022<\n\014SelectDevice\022\025.context.DeviceFilter\032" + "\023.context.DeviceList\"\000\022I\n\021ListEndPointNa" + "mes\022\027.context.EndPointIdList\032\031.context.E" + "ndPointNameList\"\000\0224\n\013ListLinkIds\022\016.conte" + "xt.Empty\032\023.context.LinkIdList\"\000\0220\n\tListL" + "inks\022\016.context.Empty\032\021.context.LinkList\"" + "\000\022+\n\007GetLink\022\017.context.LinkId\032\r.context." + "Link\"\000\022+\n\007SetLink\022\r.context.Link\032\017.conte" + "xt.LinkId\"\000\022/\n\nRemoveLink\022\017.context.Link" + "Id\032\016.context.Empty\"\000\0227\n\rGetLinkEvents\022\016." + "context.Empty\032\022.context.LinkEvent\"\0000\001\022>\n" + "\016ListServiceIds\022\022.context.ContextId\032\026.co" + "ntext.ServiceIdList\"\000\022:\n\014ListServices\022\022." + "context.ContextId\032\024.context.ServiceList\"" + "\000\0224\n\nGetService\022\022.context.ServiceId\032\020.co" + "ntext.Service\"\000\0224\n\nSetService\022\020.context." + "Service\032\022.context.ServiceId\"\000\0226\n\014UnsetSe" + "rvice\022\020.context.Service\032\022.context.Servic" + "eId\"\000\0225\n\rRemoveService\022\022.context.Service" + "Id\032\016.context.Empty\"\000\022=\n\020GetServiceEvents" + "\022\016.context.Empty\032\025.context.ServiceEvent\"" + "\0000\001\022?\n\rSelectService\022\026.context.ServiceFi" + "lter\032\024.context.ServiceList\"\000\022:\n\014ListSlic" + "eIds\022\022.context.ContextId\032\024.context.Slice" + "IdList\"\000\0226\n\nListSlices\022\022.context.Context" + "Id\032\022.context.SliceList\"\000\022.\n\010GetSlice\022\020.c" + "ontext.SliceId\032\016.context.Slice\"\000\022.\n\010SetS" + "lice\022\016.context.Slice\032\020.context.SliceId\"\000" + "\0220\n\nUnsetSlice\022\016.context.Slice\032\020.context" + ".SliceId\"\000\0221\n\013RemoveSlice\022\020.context.Slic" + "eId\032\016.context.Empty\"\000\0229\n\016GetSliceEvents\022" + "\016.context.Empty\032\023.context.SliceEvent\"\0000\001" + "\0229\n\013SelectSlice\022\024.context.SliceFilter\032\022." + "context.SliceList\"\000\022D\n\021ListConnectionIds", "\022\022.context.ServiceId\032\031.context.Connectio" + "nIdList\"\000\022@\n\017ListConnections\022\022.context.S" + "erviceId\032\027.context.ConnectionList\"\000\022=\n\rG" + "etConnection\022\025.context.ConnectionId\032\023.co" + "ntext.Connection\"\000\022=\n\rSetConnection\022\023.co" + "ntext.Connection\032\025.context.ConnectionId\"" + "\000\022;\n\020RemoveConnection\022\025.context.Connecti" + "onId\032\016.context.Empty\"\000\022C\n\023GetConnectionE" + "vents\022\016.context.Empty\032\030.context.Connecti" + "onEvent\"\0000\001\0225\n\014GetAllEvents\022\016.context.Em" + "pty\032\021.context.AnyEvent\"\0000\001\022@\n\020GetOptical" + "Config\022\016.context.Empty\032\032.context.Optical" + "ConfigList\"\000\022F\n\020SetOpticalConfig\022\026.conte" + "xt.OpticalConfig\032\030.context.OpticalConfig" + "Id\"\000\022I\n\023UpdateOpticalConfig\022\026.context.Op" + "ticalConfig\032\030.context.OpticalConfigId\"\000\022" + "I\n\023SelectOpticalConfig\022\030.context.Optical" + "ConfigId\032\026.context.OpticalConfig\"\000\022A\n\023De" + "leteOpticalConfig\022\030.context.OpticalConfi" + "gId\032\016.context.Empty\"\000\022@\n\024DeleteOpticalCh" + "annel\022\026.context.OpticalConfig\032\016.context." + "Empty\"\000\0228\n\016SetOpticalLink\022\024.context.Opti" + "calLink\032\016.context.Empty\"\000\0229\n\016GetOpticalL" + "ink\022\017.context.LinkId\032\024.context.OpticalLi" + "nk\"\000\0226\n\021DeleteOpticalLink\022\017.context.Link" + "Id\032\016.context.Empty\"\000\022@\n\022GetOpticalLinkLi" + "st\022\016.context.Empty\032\030.context.OpticalLink" + "List\"\000\022<\n\016GetOpticalBand\022\016.context.Empty" + "\032\030.context.OpticalBandList\"\000\022C\n\021SelectOp" + "ticalBand\022\026.context.OpticalBandId\032\024.cont" + "ext.OpticalBand\"\000\022G\n\027DeleteServiceConfig" + "Rule\022\032.context.ServiceConfigRule\032\016.conte" + "xt.Empty\"\000b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), acl.Acl.getDescriptor(), ip_link.IpLink.getDescriptor(), kpi_sample_types.KpiSampleTypes.getDescriptor() }); + java.lang.String[] descriptorData = { "\n\rcontext.proto\022\007context\032\031google/protobu" + "f/any.proto\032\tacl.proto\032\014ipowdm.proto\032\rip" + "_link.proto\032\026kpi_sample_types.proto\032\016tap" + "i_lsp.proto\"\007\n\005Empty\"\024\n\004Uuid\022\014\n\004uuid\030\001 \001" + "(\t\"\036\n\tTimestamp\022\021\n\ttimestamp\030\001 \001(\001\"Z\n\005Ev" + "ent\022%\n\ttimestamp\030\001 \001(\0132\022.context.Timesta" + "mp\022*\n\nevent_type\030\002 \001(\0162\026.context.EventTy" + "peEnum\"\265\002\n\010AnyEvent\022(\n\007context\030\001 \001(\0132\025.c" + "ontext.ContextEventH\000\022*\n\010topology\030\002 \001(\0132" + "\026.context.TopologyEventH\000\022&\n\006device\030\003 \001(" + "\0132\024.context.DeviceEventH\000\022\"\n\004link\030\004 \001(\0132" + "\022.context.LinkEventH\000\022(\n\007service\030\005 \001(\0132\025" + ".context.ServiceEventH\000\022$\n\005slice\030\006 \001(\0132\023" + ".context.SliceEventH\000\022.\n\nconnection\030\007 \001(" + "\0132\030.context.ConnectionEventH\000B\007\n\005event\"0" + "\n\tContextId\022#\n\014context_uuid\030\001 \001(\0132\r.cont" + "ext.Uuid\"\351\001\n\007Context\022&\n\ncontext_id\030\001 \001(\013" + "2\022.context.ContextId\022\014\n\004name\030\002 \001(\t\022)\n\014to" + "pology_ids\030\003 \003(\0132\023.context.TopologyId\022\'\n" + "\013service_ids\030\004 \003(\0132\022.context.ServiceId\022#" + "\n\tslice_ids\030\005 \003(\0132\020.context.SliceId\022/\n\nc" + "ontroller\030\006 \001(\0132\033.context.TeraFlowContro" + "ller\"8\n\rContextIdList\022\'\n\013context_ids\030\001 \003" + "(\0132\022.context.ContextId\"1\n\013ContextList\022\"\n" + "\010contexts\030\001 \003(\0132\020.context.Context\"U\n\014Con" + "textEvent\022\035\n\005event\030\001 \001(\0132\016.context.Event" + "\022&\n\ncontext_id\030\002 \001(\0132\022.context.ContextId" + "\"Z\n\nTopologyId\022&\n\ncontext_id\030\001 \001(\0132\022.con" + "text.ContextId\022$\n\rtopology_uuid\030\002 \001(\0132\r." + "context.Uuid\"\267\001\n\010Topology\022(\n\013topology_id" + "\030\001 \001(\0132\023.context.TopologyId\022\014\n\004name\030\002 \001(" + "\t\022%\n\ndevice_ids\030\003 \003(\0132\021.context.DeviceId" + "\022!\n\010link_ids\030\004 \003(\0132\017.context.LinkId\022)\n\020o" + "ptical_link_ids\030\005 \003(\0132\017.context.LinkId\"\266" + "\001\n\017TopologyDetails\022(\n\013topology_id\030\001 \001(\0132" + "\023.context.TopologyId\022\014\n\004name\030\002 \001(\t\022 \n\007de" + "vices\030\003 \003(\0132\017.context.Device\022\034\n\005links\030\004 " + "\003(\0132\r.context.Link\022+\n\roptical_links\030\005 \003(" + "\0132\024.context.OpticalLink\";\n\016TopologyIdLis" + "t\022)\n\014topology_ids\030\001 \003(\0132\023.context.Topolo" + "gyId\"5\n\014TopologyList\022%\n\ntopologies\030\001 \003(\013" + "2\021.context.Topology\"X\n\rTopologyEvent\022\035\n\005" + "event\030\001 \001(\0132\016.context.Event\022(\n\013topology_" + "id\030\002 \001(\0132\023.context.TopologyId\".\n\010DeviceI" + "d\022\"\n\013device_uuid\030\001 \001(\0132\r.context.Uuid\"\372\002" + "\n\006Device\022$\n\tdevice_id\030\001 \001(\0132\021.context.De" + "viceId\022\014\n\004name\030\002 \001(\t\022\023\n\013device_type\030\003 \001(" + "\t\022,\n\rdevice_config\030\004 \001(\0132\025.context.Devic" + "eConfig\022G\n\031device_operational_status\030\005 \001" + "(\0162$.context.DeviceOperationalStatusEnum" + "\0221\n\016device_drivers\030\006 \003(\0162\031.context.Devic" + "eDriverEnum\022+\n\020device_endpoints\030\007 \003(\0132\021." + "context.EndPoint\022&\n\ncomponents\030\010 \003(\0132\022.c" + "ontext.Component\022(\n\rcontroller_id\030\t \001(\0132" + "\021.context.DeviceId\"\311\001\n\tComponent\022%\n\016comp" + "onent_uuid\030\001 \001(\0132\r.context.Uuid\022\014\n\004name\030" + "\002 \001(\t\022\014\n\004type\030\003 \001(\t\0226\n\nattributes\030\004 \003(\0132" + "\".context.Component.AttributesEntry\022\016\n\006p" + "arent\030\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"9\n\014DeviceConfig\022)" + "\n\014config_rules\030\001 \003(\0132\023.context.ConfigRul" + "e\"5\n\014DeviceIdList\022%\n\ndevice_ids\030\001 \003(\0132\021." + "context.DeviceId\".\n\nDeviceList\022 \n\007device" + "s\030\001 \003(\0132\017.context.Device\"\216\001\n\014DeviceFilte" + "r\022)\n\ndevice_ids\030\001 \001(\0132\025.context.DeviceId" + "List\022\031\n\021include_endpoints\030\002 \001(\010\022\034\n\024inclu" + "de_config_rules\030\003 \001(\010\022\032\n\022include_compone" + "nts\030\004 \001(\010\"\200\001\n\013DeviceEvent\022\035\n\005event\030\001 \001(\013" + "2\016.context.Event\022$\n\tdevice_id\030\002 \001(\0132\021.co" + "ntext.DeviceId\022,\n\rdevice_config\030\003 \001(\0132\025." + "context.DeviceConfig\"*\n\006LinkId\022 \n\tlink_u" + "uid\030\001 \001(\0132\r.context.Uuid\"c\n\016LinkAttribut" + "es\022\030\n\020is_bidirectional\030\001 \001(\010\022\033\n\023total_ca" + "pacity_gbps\030\002 \001(\002\022\032\n\022used_capacity_gbps\030" + "\003 \001(\002\"\275\001\n\004Link\022 \n\007link_id\030\001 \001(\0132\017.contex" + "t.LinkId\022\014\n\004name\030\002 \001(\t\022(\n\tlink_type\030\003 \001(" + "\0162\025.context.LinkTypeEnum\022.\n\021link_endpoin" + "t_ids\030\004 \003(\0132\023.context.EndPointId\022+\n\nattr" + "ibutes\030\005 \001(\0132\027.context.LinkAttributes\"/\n" + "\nLinkIdList\022!\n\010link_ids\030\001 \003(\0132\017.context." + "LinkId\"(\n\010LinkList\022\034\n\005links\030\001 \003(\0132\r.cont" + "ext.Link\"L\n\tLinkEvent\022\035\n\005event\030\001 \001(\0132\016.c" + "ontext.Event\022 \n\007link_id\030\002 \001(\0132\017.context." + "LinkId\"X\n\tServiceId\022&\n\ncontext_id\030\001 \001(\0132" + "\022.context.ContextId\022#\n\014service_uuid\030\002 \001(" + "\0132\r.context.Uuid\"\333\002\n\007Service\022&\n\nservice_" + "id\030\001 \001(\0132\022.context.ServiceId\022\014\n\004name\030\002 \001" + "(\t\022.\n\014service_type\030\003 \001(\0162\030.context.Servi" + "ceTypeEnum\0221\n\024service_endpoint_ids\030\004 \003(\013" + "2\023.context.EndPointId\0220\n\023service_constra" + "ints\030\005 \003(\0132\023.context.Constraint\022.\n\016servi" + "ce_status\030\006 \001(\0132\026.context.ServiceStatus\022" + ".\n\016service_config\030\007 \001(\0132\026.context.Servic" + "eConfig\022%\n\ttimestamp\030\010 \001(\0132\022.context.Tim" + "estamp\"C\n\rServiceStatus\0222\n\016service_statu" + "s\030\001 \001(\0162\032.context.ServiceStatusEnum\":\n\rS" + "erviceConfig\022)\n\014config_rules\030\001 \003(\0132\023.con" + "text.ConfigRule\"8\n\rServiceIdList\022\'\n\013serv" + "ice_ids\030\001 \003(\0132\022.context.ServiceId\"1\n\013Ser" + "viceList\022\"\n\010services\030\001 \003(\0132\020.context.Ser" + "vice\"\225\001\n\rServiceFilter\022+\n\013service_ids\030\001 " + "\001(\0132\026.context.ServiceIdList\022\034\n\024include_e" + "ndpoint_ids\030\002 \001(\010\022\033\n\023include_constraints" + "\030\003 \001(\010\022\034\n\024include_config_rules\030\004 \001(\010\"U\n\014" + "ServiceEvent\022\035\n\005event\030\001 \001(\0132\016.context.Ev" + "ent\022&\n\nservice_id\030\002 \001(\0132\022.context.Servic" + "eId\"T\n\007SliceId\022&\n\ncontext_id\030\001 \001(\0132\022.con" + "text.ContextId\022!\n\nslice_uuid\030\002 \001(\0132\r.con" + "text.Uuid\"\240\003\n\005Slice\022\"\n\010slice_id\030\001 \001(\0132\020." + "context.SliceId\022\014\n\004name\030\002 \001(\t\022/\n\022slice_e" + "ndpoint_ids\030\003 \003(\0132\023.context.EndPointId\022." + "\n\021slice_constraints\030\004 \003(\0132\023.context.Cons" + "traint\022-\n\021slice_service_ids\030\005 \003(\0132\022.cont" + "ext.ServiceId\022,\n\022slice_subslice_ids\030\006 \003(" + "\0132\020.context.SliceId\022*\n\014slice_status\030\007 \001(" + "\0132\024.context.SliceStatus\022*\n\014slice_config\030" + "\010 \001(\0132\024.context.SliceConfig\022(\n\013slice_own" + "er\030\t \001(\0132\023.context.SliceOwner\022%\n\ttimesta" + "mp\030\n \001(\0132\022.context.Timestamp\"E\n\nSliceOwn" + "er\022!\n\nowner_uuid\030\001 \001(\0132\r.context.Uuid\022\024\n" + "\014owner_string\030\002 \001(\t\"=\n\013SliceStatus\022.\n\014sl" + "ice_status\030\001 \001(\0162\030.context.SliceStatusEn" + "um\"8\n\013SliceConfig\022)\n\014config_rules\030\001 \003(\0132" + "\023.context.ConfigRule\"2\n\013SliceIdList\022#\n\ts" + "lice_ids\030\001 \003(\0132\020.context.SliceId\"+\n\tSlic" + "eList\022\036\n\006slices\030\001 \003(\0132\016.context.Slice\"\312\001" + "\n\013SliceFilter\022\'\n\tslice_ids\030\001 \001(\0132\024.conte" + "xt.SliceIdList\022\034\n\024include_endpoint_ids\030\002" + " \001(\010\022\033\n\023include_constraints\030\003 \001(\010\022\033\n\023inc" + "lude_service_ids\030\004 \001(\010\022\034\n\024include_subsli" + "ce_ids\030\005 \001(\010\022\034\n\024include_config_rules\030\006 \001" + "(\010\"O\n\nSliceEvent\022\035\n\005event\030\001 \001(\0132\016.contex" + "t.Event\022\"\n\010slice_id\030\002 \001(\0132\020.context.Slic" + "eId\"6\n\014ConnectionId\022&\n\017connection_uuid\030\001" + " \001(\0132\r.context.Uuid\"2\n\025ConnectionSetting" + "s_L0\022\031\n\021lsp_symbolic_name\030\001 \001(\t\"\236\001\n\025Conn" + "ectionSettings_L2\022\027\n\017src_mac_address\030\001 \001" + "(\t\022\027\n\017dst_mac_address\030\002 \001(\t\022\022\n\nether_typ" + "e\030\003 \001(\r\022\017\n\007vlan_id\030\004 \001(\r\022\022\n\nmpls_label\030\005" + " \001(\r\022\032\n\022mpls_traffic_class\030\006 \001(\r\"t\n\025Conn" + "ectionSettings_L3\022\026\n\016src_ip_address\030\001 \001(" + "\t\022\026\n\016dst_ip_address\030\002 \001(\t\022\014\n\004dscp\030\003 \001(\r\022" + "\020\n\010protocol\030\004 \001(\r\022\013\n\003ttl\030\005 \001(\r\"[\n\025Connec" + "tionSettings_L4\022\020\n\010src_port\030\001 \001(\r\022\020\n\010dst" + "_port\030\002 \001(\r\022\021\n\ttcp_flags\030\003 \001(\r\022\013\n\003ttl\030\004 " + "\001(\r\"\304\001\n\022ConnectionSettings\022*\n\002l0\030\001 \001(\0132\036" + ".context.ConnectionSettings_L0\022*\n\002l2\030\002 \001" + "(\0132\036.context.ConnectionSettings_L2\022*\n\002l3" + "\030\003 \001(\0132\036.context.ConnectionSettings_L3\022*" + "\n\002l4\030\004 \001(\0132\036.context.ConnectionSettings_" + "L4\"\363\001\n\nConnection\022,\n\rconnection_id\030\001 \001(\013" + "2\025.context.ConnectionId\022&\n\nservice_id\030\002 " + "\001(\0132\022.context.ServiceId\0223\n\026path_hops_end" + "point_ids\030\003 \003(\0132\023.context.EndPointId\022+\n\017" + "sub_service_ids\030\004 \003(\0132\022.context.ServiceI" + "d\022-\n\010settings\030\005 \001(\0132\033.context.Connection" + "Settings\"A\n\020ConnectionIdList\022-\n\016connecti" + "on_ids\030\001 \003(\0132\025.context.ConnectionId\":\n\016C" + "onnectionList\022(\n\013connections\030\001 \003(\0132\023.con" + "text.Connection\"^\n\017ConnectionEvent\022\035\n\005ev" + "ent\030\001 \001(\0132\016.context.Event\022,\n\rconnection_" + "id\030\002 \001(\0132\025.context.ConnectionId\"\202\001\n\nEndP" + "ointId\022(\n\013topology_id\030\001 \001(\0132\023.context.To" + "pologyId\022$\n\tdevice_id\030\002 \001(\0132\021.context.De" + "viceId\022$\n\rendpoint_uuid\030\003 \001(\0132\r.context." + "Uuid\"\310\002\n\010EndPoint\022(\n\013endpoint_id\030\001 \001(\0132\023" + ".context.EndPointId\022\014\n\004name\030\002 \001(\t\022\025\n\rend" + "point_type\030\003 \001(\t\0229\n\020kpi_sample_types\030\004 \003" + "(\0162\037.kpi_sample_types.KpiSampleType\022,\n\021e" + "ndpoint_location\030\005 \001(\0132\021.context.Locatio" + "n\0229\n\014capabilities\030\006 \003(\0132#.context.EndPoi" + "nt.CapabilitiesEntry\032I\n\021CapabilitiesEntr" + "y\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.google.p" + "rotobuf.Any:\0028\001\"{\n\014EndPointName\022(\n\013endpo" + "int_id\030\001 \001(\0132\023.context.EndPointId\022\023\n\013dev" + "ice_name\030\002 \001(\t\022\025\n\rendpoint_name\030\003 \001(\t\022\025\n" + "\rendpoint_type\030\004 \001(\t\";\n\016EndPointIdList\022)" + "\n\014endpoint_ids\030\001 \003(\0132\023.context.EndPointI" + "d\"A\n\020EndPointNameList\022-\n\016endpoint_names\030" + "\001 \003(\0132\025.context.EndPointName\"A\n\021ConfigRu" + "le_Custom\022\024\n\014resource_key\030\001 \001(\t\022\026\n\016resou" + "rce_value\030\002 \001(\t\"]\n\016ConfigRule_ACL\022(\n\013end" + "point_id\030\001 \001(\0132\023.context.EndPointId\022!\n\010r" + "ule_set\030\002 \001(\0132\017.acl.AclRuleSet\"f\n\021Config" + "Rule_IPOWDM\022(\n\013endpoint_id\030\001 \001(\0132\023.conte" + "xt.EndPointId\022\'\n\010rule_set\030\002 \001(\0132\025.ipowdm" + ".IpowdmRuleSet\"k\n\023ConfigRule_TAPI_LSP\022(\n" + "\013endpoint_id\030\001 \001(\0132\023.context.EndPointId\022" + "*\n\010rule_set\030\002 \003(\0132\030.tapi_lsp.TapiLspRule" + "Set\"h\n\022ConfigRule_IP_LINK\022(\n\013endpoint_id" + "\030\001 \001(\0132\023.context.EndPointId\022(\n\010rule_set\030" + "\002 \001(\0132\026.ip_link.IpLinkRuleSet\"\254\002\n\nConfig" + "Rule\022)\n\006action\030\001 \001(\0162\031.context.ConfigAct" + "ionEnum\022,\n\006custom\030\002 \001(\0132\032.context.Config" + "Rule_CustomH\000\022&\n\003acl\030\003 \001(\0132\027.context.Con" + "figRule_ACLH\000\022.\n\007ip_link\030\004 \001(\0132\033.context" + ".ConfigRule_IP_LINKH\000\0220\n\010tapi_lsp\030\005 \001(\0132" + "\034.context.ConfigRule_TAPI_LSPH\000\022,\n\006ipowd" + "m\030\006 \001(\0132\032.context.ConfigRule_IPOWDMH\000B\r\n" + "\013config_rule\"F\n\021Constraint_Custom\022\027\n\017con" + "straint_type\030\001 \001(\t\022\030\n\020constraint_value\030\002" + " \001(\t\"E\n\023Constraint_Schedule\022\027\n\017start_tim" + "estamp\030\001 \001(\001\022\025\n\rduration_days\030\002 \001(\002\"3\n\014G" + "PS_Position\022\020\n\010latitude\030\001 \001(\002\022\021\n\tlongitu" + "de\030\002 \001(\002\"\204\001\n\010Location\022\020\n\006region\030\001 \001(\tH\000\022" + "-\n\014gps_position\030\002 \001(\0132\025.context.GPS_Posi" + "tionH\000\022\023\n\tinterface\030\003 \001(\tH\000\022\026\n\014circuit_p" + "ack\030\004 \001(\tH\000B\n\n\010location\"l\n\033Constraint_En" + "dPointLocation\022(\n\013endpoint_id\030\001 \001(\0132\023.co" + "ntext.EndPointId\022#\n\010location\030\002 \001(\0132\021.con" + "text.Location\"Y\n\033Constraint_EndPointPrio" + "rity\022(\n\013endpoint_id\030\001 \001(\0132\023.context.EndP" + "ointId\022\020\n\010priority\030\002 \001(\r\"0\n\026Constraint_S" + "LA_Latency\022\026\n\016e2e_latency_ms\030\001 \001(\002\"0\n\027Co" + "nstraint_SLA_Capacity\022\025\n\rcapacity_gbps\030\001" + " \001(\002\"c\n\033Constraint_SLA_Availability\022\032\n\022n" + "um_disjoint_paths\030\001 \001(\r\022\022\n\nall_active\030\002 " + "\001(\010\022\024\n\014availability\030\003 \001(\002\"V\n\036Constraint_" + "SLA_Isolation_level\0224\n\017isolation_level\030\001" + " \003(\0162\033.context.IsolationLevelEnum\"\242\001\n\025Co" + "nstraint_Exclusions\022\024\n\014is_permanent\030\001 \001(" + "\010\022%\n\ndevice_ids\030\002 \003(\0132\021.context.DeviceId" + "\022)\n\014endpoint_ids\030\003 \003(\0132\023.context.EndPoin" + "tId\022!\n\010link_ids\030\004 \003(\0132\017.context.LinkId\"5" + "\n\014QoSProfileId\022%\n\016qos_profile_id\030\001 \001(\0132\r" + ".context.Uuid\"`\n\025Constraint_QoSProfile\022-" + "\n\016qos_profile_id\030\001 \001(\0132\025.context.QoSProf" + "ileId\022\030\n\020qos_profile_name\030\002 \001(\t\"\222\005\n\nCons" + "traint\022-\n\006action\030\001 \001(\0162\035.context.Constra" + "intActionEnum\022,\n\006custom\030\002 \001(\0132\032.context." + "Constraint_CustomH\000\0220\n\010schedule\030\003 \001(\0132\034." + "context.Constraint_ScheduleH\000\022A\n\021endpoin" + "t_location\030\004 \001(\0132$.context.Constraint_En" + "dPointLocationH\000\022A\n\021endpoint_priority\030\005 " + "\001(\0132$.context.Constraint_EndPointPriorit" + "yH\000\0228\n\014sla_capacity\030\006 \001(\0132 .context.Cons" + "traint_SLA_CapacityH\000\0226\n\013sla_latency\030\007 \001" + "(\0132\037.context.Constraint_SLA_LatencyH\000\022@\n" + "\020sla_availability\030\010 \001(\0132$.context.Constr" + "aint_SLA_AvailabilityH\000\022@\n\rsla_isolation" + "\030\t \001(\0132\'.context.Constraint_SLA_Isolatio" + "n_levelH\000\0224\n\nexclusions\030\n \001(\0132\036.context." + "Constraint_ExclusionsH\000\0225\n\013qos_profile\030\013" + " \001(\0132\036.context.Constraint_QoSProfileH\000B\014" + "\n\nconstraint\"^\n\022TeraFlowController\022&\n\nco" + "ntext_id\030\001 \001(\0132\022.context.ContextId\022\022\n\nip" + "_address\030\002 \001(\t\022\014\n\004port\030\003 \001(\r\"U\n\024Authenti" + "cationResult\022&\n\ncontext_id\030\001 \001(\0132\022.conte" + "xt.ContextId\022\025\n\rauthenticated\030\002 \001(\010\"-\n\017O" + "pticalConfigId\022\032\n\022opticalconfig_uuid\030\001 \001" + "(\t\"y\n\rOpticalConfig\0222\n\020opticalconfig_id\030" + "\001 \001(\0132\030.context.OpticalConfigId\022\016\n\006confi" + "g\030\002 \001(\t\022$\n\tdevice_id\030\003 \001(\0132\021.context.Dev" + "iceId\"C\n\021OpticalConfigList\022.\n\016opticalcon" + "figs\030\001 \003(\0132\026.context.OpticalConfig\"g\n\022Op" + "ticalConfigEvent\022\035\n\005event\030\001 \001(\0132\016.contex" + "t.Event\0222\n\020opticalconfig_id\030\002 \001(\0132\030.cont" + "ext.OpticalConfigId\"_\n\021OpticalEndPointId" + "\022$\n\tdevice_id\030\002 \001(\0132\021.context.DeviceId\022$" + "\n\rendpoint_uuid\030\003 \001(\0132\r.context.Uuid\">\n\017" + "OpticalLinkList\022+\n\roptical_links\030\001 \003(\0132\024" + ".context.OpticalLink\"\304\003\n\022OpticalLinkDeta" + "ils\022\016\n\006length\030\001 \001(\002\022\020\n\010src_port\030\002 \001(\t\022\020\n" + "\010dst_port\030\003 \001(\t\022\027\n\017local_peer_port\030\004 \001(\t" + "\022\030\n\020remote_peer_port\030\005 \001(\t\022\014\n\004used\030\006 \001(\010" + "\0228\n\007c_slots\030\007 \003(\0132\'.context.OpticalLinkD" + "etails.CSlotsEntry\0228\n\007l_slots\030\010 \003(\0132\'.co" + "ntext.OpticalLinkDetails.LSlotsEntry\0228\n\007" + "s_slots\030\t \003(\0132\'.context.OpticalLinkDetai" + "ls.SSlotsEntry\032-\n\013CSlotsEntry\022\013\n\003key\030\001 \001" + "(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013LSlotsEntry\022\013\n\003" + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013SSlotsEn" + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\"\243\001\n\013" + "OpticalLink\022\014\n\004name\030\001 \001(\t\0224\n\017optical_det" + "ails\030\002 \001(\0132\033.context.OpticalLinkDetails\022" + " \n\007link_id\030\003 \001(\0132\017.context.LinkId\022.\n\021lin" + "k_endpoint_ids\030\004 \003(\0132\023.context.EndPointI" + "d\"0\n\tChannelId\022#\n\014channel_uuid\030\001 \001(\0132\r.c" + "ontext.Uuid\"8\n\rOpticalBandId\022\'\n\020opticalb" + "and_uuid\030\001 \001(\0132\r.context.Uuid\"\247\002\n\013Optica" + "lBand\022.\n\016opticalband_id\030\001 \001(\0132\026.context." + "OpticalBandId\022,\n\rconnection_id\030\002 \001(\0132\025.c" + "ontext.ConnectionId\022&\n\nchannel_id\030\003 \001(\0132" + "\022.context.ChannelId\022&\n\nservice_id\030\004 \001(\0132" + "\022.context.ServiceId\022#\n\007service\030\005 \001(\0132\020.c" + "ontext.ServiceH\000\022)\n\nconnection\030\006 \001(\0132\023.c" + "ontext.ConnectionH\000\022\021\n\007channel\030\007 \001(\tH\000B\007" + "\n\005field\"=\n\017OpticalBandList\022*\n\014opticalban" + "ds\030\001 \003(\0132\024.context.OpticalBand\"r\n\021Servic" + "eConfigRule\022&\n\nservice_id\030\001 \001(\0132\022.contex" + "t.ServiceId\0225\n\021configrule_custom\030\002 \001(\0132\032" + ".context.ConfigRule_Custom*j\n\rEventTypeE" + "num\022\027\n\023EVENTTYPE_UNDEFINED\020\000\022\024\n\020EVENTTYP" + "E_CREATE\020\001\022\024\n\020EVENTTYPE_UPDATE\020\002\022\024\n\020EVEN" + "TTYPE_REMOVE\020\003*\333\004\n\020DeviceDriverEnum\022\032\n\026D" + "EVICEDRIVER_UNDEFINED\020\000\022\033\n\027DEVICEDRIVER_" + "OPENCONFIG\020\001\022\036\n\032DEVICEDRIVER_TRANSPORT_A" + "PI\020\002\022\023\n\017DEVICEDRIVER_P4\020\003\022&\n\"DEVICEDRIVE" + "R_IETF_NETWORK_TOPOLOGY\020\004\022\033\n\027DEVICEDRIVE" + "R_ONF_TR_532\020\005\022\023\n\017DEVICEDRIVER_XR\020\006\022\033\n\027D" + "EVICEDRIVER_IETF_L2VPN\020\007\022 \n\034DEVICEDRIVER" + "_GNMI_OPENCONFIG\020\010\022\034\n\030DEVICEDRIVER_OPTIC" + "AL_TFS\020\t\022\032\n\026DEVICEDRIVER_IETF_ACTN\020\n\022\023\n\017" + "DEVICEDRIVER_OC\020\013\022\024\n\020DEVICEDRIVER_QKD\020\014\022" + "\033\n\027DEVICEDRIVER_IETF_L3VPN\020\r\022\033\n\027DEVICEDR" + "IVER_IETF_SLICE\020\016\022\024\n\020DEVICEDRIVER_NCE\020\017\022" + "\031\n\025DEVICEDRIVER_SMARTNIC\020\020\022\031\n\025DEVICEDRIV" + "ER_MORPHEUS\020\021\022\024\n\020DEVICEDRIVER_RYU\020\022\022#\n\037D" + "EVICEDRIVER_GNMI_NOKIA_SRLINUX\020\023\022\032\n\026DEVI" + "CEDRIVER_OPENROADM\020\024*\217\001\n\033DeviceOperation" + "alStatusEnum\022%\n!DEVICEOPERATIONALSTATUS_" + "UNDEFINED\020\000\022$\n DEVICEOPERATIONALSTATUS_D" + "ISABLED\020\001\022#\n\037DEVICEOPERATIONALSTATUS_ENA" + "BLED\020\002*\245\001\n\014LinkTypeEnum\022\024\n\020LINKTYPE_UNKN" + "OWN\020\000\022\023\n\017LINKTYPE_COPPER\020\001\022\022\n\016LINKTYPE_F" + "IBER\020\002\022\022\n\016LINKTYPE_RADIO\020\003\022\024\n\020LINKTYPE_V" + "IRTUAL\020\004\022\027\n\023LINKTYPE_MANAGEMENT\020\005\022\023\n\017LIN" + "KTYPE_REMOTE\020\006*\360\002\n\017ServiceTypeEnum\022\027\n\023SE" + "RVICETYPE_UNKNOWN\020\000\022\024\n\020SERVICETYPE_L3NM\020" + "\001\022\024\n\020SERVICETYPE_L2NM\020\002\022)\n%SERVICETYPE_T" + "API_CONNECTIVITY_SERVICE\020\003\022\022\n\016SERVICETYP" + "E_TE\020\004\022\023\n\017SERVICETYPE_E2E\020\005\022$\n SERVICETY" + "PE_OPTICAL_CONNECTIVITY\020\006\022\023\n\017SERVICETYPE" + "_QKD\020\007\022\024\n\020SERVICETYPE_L1NM\020\010\022\023\n\017SERVICET" + "YPE_INT\020\t\022\023\n\017SERVICETYPE_ACL\020\n\022\027\n\023SERVIC" + "ETYPE_IP_LINK\020\013\022\030\n\024SERVICETYPE_TAPI_LSP\020" + "\014\022\026\n\022SERVICETYPE_IPOWDM\020\r*\304\001\n\021ServiceSta" + "tusEnum\022\033\n\027SERVICESTATUS_UNDEFINED\020\000\022\031\n\025" + "SERVICESTATUS_PLANNED\020\001\022\030\n\024SERVICESTATUS" + "_ACTIVE\020\002\022\032\n\026SERVICESTATUS_UPDATING\020\003\022!\n" + "\035SERVICESTATUS_PENDING_REMOVAL\020\004\022\036\n\032SERV" + "ICESTATUS_SLA_VIOLATED\020\005*\251\001\n\017SliceStatus" + "Enum\022\031\n\025SLICESTATUS_UNDEFINED\020\000\022\027\n\023SLICE" + "STATUS_PLANNED\020\001\022\024\n\020SLICESTATUS_INIT\020\002\022\026" + "\n\022SLICESTATUS_ACTIVE\020\003\022\026\n\022SLICESTATUS_DE" + "INIT\020\004\022\034\n\030SLICESTATUS_SLA_VIOLATED\020\005*]\n\020" + "ConfigActionEnum\022\032\n\026CONFIGACTION_UNDEFIN" + "ED\020\000\022\024\n\020CONFIGACTION_SET\020\001\022\027\n\023CONFIGACTI" + "ON_DELETE\020\002*m\n\024ConstraintActionEnum\022\036\n\032C" + "ONSTRAINTACTION_UNDEFINED\020\000\022\030\n\024CONSTRAIN" + "TACTION_SET\020\001\022\033\n\027CONSTRAINTACTION_DELETE" + "\020\002*\203\002\n\022IsolationLevelEnum\022\020\n\014NO_ISOLATIO" + "N\020\000\022\026\n\022PHYSICAL_ISOLATION\020\001\022\025\n\021LOGICAL_I" + "SOLATION\020\002\022\025\n\021PROCESS_ISOLATION\020\003\022\035\n\031PHY" + "SICAL_MEMORY_ISOLATION\020\004\022\036\n\032PHYSICAL_NET" + "WORK_ISOLATION\020\005\022\036\n\032VIRTUAL_RESOURCE_ISO" + "LATION\020\006\022\037\n\033NETWORK_FUNCTIONS_ISOLATION\020" + "\007\022\025\n\021SERVICE_ISOLATION\020\0102\274\035\n\016ContextServ" + "ice\022:\n\016ListContextIds\022\016.context.Empty\032\026." + "context.ContextIdList\"\000\0226\n\014ListContexts\022" + "\016.context.Empty\032\024.context.ContextList\"\000\022" + "4\n\nGetContext\022\022.context.ContextId\032\020.cont" + "ext.Context\"\000\0224\n\nSetContext\022\020.context.Co" + "ntext\032\022.context.ContextId\"\000\0225\n\rRemoveCon" + "text\022\022.context.ContextId\032\016.context.Empty" + "\"\000\022=\n\020GetContextEvents\022\016.context.Empty\032\025" + ".context.ContextEvent\"\0000\001\022@\n\017ListTopolog" + "yIds\022\022.context.ContextId\032\027.context.Topol" + "ogyIdList\"\000\022=\n\016ListTopologies\022\022.context." + "ContextId\032\025.context.TopologyList\"\000\0227\n\013Ge" + "tTopology\022\023.context.TopologyId\032\021.context" + ".Topology\"\000\022E\n\022GetTopologyDetails\022\023.cont" + "ext.TopologyId\032\030.context.TopologyDetails" + "\"\000\0227\n\013SetTopology\022\021.context.Topology\032\023.c" + "ontext.TopologyId\"\000\0227\n\016RemoveTopology\022\023." + "context.TopologyId\032\016.context.Empty\"\000\022?\n\021" + "GetTopologyEvents\022\016.context.Empty\032\026.cont" + "ext.TopologyEvent\"\0000\001\0228\n\rListDeviceIds\022\016" + ".context.Empty\032\025.context.DeviceIdList\"\000\022" + "4\n\013ListDevices\022\016.context.Empty\032\023.context" + ".DeviceList\"\000\0221\n\tGetDevice\022\021.context.Dev" + "iceId\032\017.context.Device\"\000\0221\n\tSetDevice\022\017." + "context.Device\032\021.context.DeviceId\"\000\0223\n\014R" + "emoveDevice\022\021.context.DeviceId\032\016.context" + ".Empty\"\000\022;\n\017GetDeviceEvents\022\016.context.Em" + "pty\032\024.context.DeviceEvent\"\0000\001\022<\n\014SelectD" + "evice\022\025.context.DeviceFilter\032\023.context.D" + "eviceList\"\000\022I\n\021ListEndPointNames\022\027.conte" + "xt.EndPointIdList\032\031.context.EndPointName" + "List\"\000\0224\n\013ListLinkIds\022\016.context.Empty\032\023." + "context.LinkIdList\"\000\0220\n\tListLinks\022\016.cont" + "ext.Empty\032\021.context.LinkList\"\000\022+\n\007GetLin" + "k\022\017.context.LinkId\032\r.context.Link\"\000\022+\n\007S" + "etLink\022\r.context.Link\032\017.context.LinkId\"\000" + "\022/\n\nRemoveLink\022\017.context.LinkId\032\016.contex" + "t.Empty\"\000\0227\n\rGetLinkEvents\022\016.context.Emp" + "ty\032\022.context.LinkEvent\"\0000\001\022>\n\016ListServic" + "eIds\022\022.context.ContextId\032\026.context.Servi" + "ceIdList\"\000\022:\n\014ListServices\022\022.context.Con" + "textId\032\024.context.ServiceList\"\000\0224\n\nGetSer" + "vice\022\022.context.ServiceId\032\020.context.Servi" + "ce\"\000\0224\n\nSetService\022\020.context.Service\032\022.c" + "ontext.ServiceId\"\000\0226\n\014UnsetService\022\020.con" + "text.Service\032\022.context.ServiceId\"\000\0225\n\rRe" + "moveService\022\022.context.ServiceId\032\016.contex" + "t.Empty\"\000\022=\n\020GetServiceEvents\022\016.context." + "Empty\032\025.context.ServiceEvent\"\0000\001\022?\n\rSele" + "ctService\022\026.context.ServiceFilter\032\024.cont" + "ext.ServiceList\"\000\022:\n\014ListSliceIds\022\022.cont" + "ext.ContextId\032\024.context.SliceIdList\"\000\0226\n", "\nListSlices\022\022.context.ContextId\032\022.contex" + "t.SliceList\"\000\022.\n\010GetSlice\022\020.context.Slic" + "eId\032\016.context.Slice\"\000\022.\n\010SetSlice\022\016.cont" + "ext.Slice\032\020.context.SliceId\"\000\0220\n\nUnsetSl" + "ice\022\016.context.Slice\032\020.context.SliceId\"\000\022" + "1\n\013RemoveSlice\022\020.context.SliceId\032\016.conte" + "xt.Empty\"\000\0229\n\016GetSliceEvents\022\016.context.E" + "mpty\032\023.context.SliceEvent\"\0000\001\0229\n\013SelectS" + "lice\022\024.context.SliceFilter\032\022.context.Sli" + "ceList\"\000\022D\n\021ListConnectionIds\022\022.context." + "ServiceId\032\031.context.ConnectionIdList\"\000\022@" + "\n\017ListConnections\022\022.context.ServiceId\032\027." + "context.ConnectionList\"\000\022=\n\rGetConnectio" + "n\022\025.context.ConnectionId\032\023.context.Conne" + "ction\"\000\022=\n\rSetConnection\022\023.context.Conne" + "ction\032\025.context.ConnectionId\"\000\022;\n\020Remove" + "Connection\022\025.context.ConnectionId\032\016.cont" + "ext.Empty\"\000\022C\n\023GetConnectionEvents\022\016.con" + "text.Empty\032\030.context.ConnectionEvent\"\0000\001" + "\0225\n\014GetAllEvents\022\016.context.Empty\032\021.conte" + "xt.AnyEvent\"\0000\001\022@\n\020GetOpticalConfig\022\016.co" + "ntext.Empty\032\032.context.OpticalConfigList\"" + "\000\022F\n\020SetOpticalConfig\022\026.context.OpticalC" + "onfig\032\030.context.OpticalConfigId\"\000\022I\n\023Upd" + "ateOpticalConfig\022\026.context.OpticalConfig" + "\032\030.context.OpticalConfigId\"\000\022I\n\023SelectOp" + "ticalConfig\022\030.context.OpticalConfigId\032\026." + "context.OpticalConfig\"\000\022A\n\023DeleteOptical" + "Config\022\030.context.OpticalConfigId\032\016.conte" + "xt.Empty\"\000\022@\n\024DeleteOpticalChannel\022\026.con" + "text.OpticalConfig\032\016.context.Empty\"\000\0228\n\016" + "SetOpticalLink\022\024.context.OpticalLink\032\016.c" + "ontext.Empty\"\000\0229\n\016GetOpticalLink\022\017.conte" + "xt.LinkId\032\024.context.OpticalLink\"\000\0226\n\021Del" + "eteOpticalLink\022\017.context.LinkId\032\016.contex" + "t.Empty\"\000\022@\n\022GetOpticalLinkList\022\016.contex" + "t.Empty\032\030.context.OpticalLinkList\"\000\022<\n\016G" + "etOpticalBand\022\016.context.Empty\032\030.context." + "OpticalBandList\"\000\022C\n\021SelectOpticalBand\022\026" + ".context.OpticalBandId\032\024.context.Optical" + "Band\"\000\022G\n\027DeleteServiceConfigRule\022\032.cont" + "ext.ServiceConfigRule\032\016.context.Empty\"\000b" + "\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), acl.Acl.getDescriptor(), ipowdm.Ipowdm.getDescriptor(), ip_link.IpLink.getDescriptor(), kpi_sample_types.KpiSampleTypes.getDescriptor(), tapi_lsp.TapiLsp.getDescriptor() }); internal_static_context_Empty_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_context_Empty_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Empty_descriptor, new java.lang.String[] {}); internal_static_context_Uuid_descriptor = getDescriptor().getMessageTypes().get(1); @@ -88132,55 +90272,59 @@ public final class ContextOuterClass { internal_static_context_ConfigRule_Custom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_Custom_descriptor, new java.lang.String[] { "ResourceKey", "ResourceValue" }); internal_static_context_ConfigRule_ACL_descriptor = getDescriptor().getMessageTypes().get(63); internal_static_context_ConfigRule_ACL_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_ACL_descriptor, new java.lang.String[] { "EndpointId", "RuleSet" }); - internal_static_context_ConfigRule_IP_LINK_descriptor = getDescriptor().getMessageTypes().get(64); + internal_static_context_ConfigRule_IPOWDM_descriptor = getDescriptor().getMessageTypes().get(64); + internal_static_context_ConfigRule_IPOWDM_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_IPOWDM_descriptor, new java.lang.String[] { "EndpointId", "RuleSet" }); + internal_static_context_ConfigRule_TAPI_LSP_descriptor = getDescriptor().getMessageTypes().get(65); + internal_static_context_ConfigRule_TAPI_LSP_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_TAPI_LSP_descriptor, new java.lang.String[] { "EndpointId", "RuleSet" }); + internal_static_context_ConfigRule_IP_LINK_descriptor = getDescriptor().getMessageTypes().get(66); internal_static_context_ConfigRule_IP_LINK_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_IP_LINK_descriptor, new java.lang.String[] { "EndpointId", "RuleSet" }); - internal_static_context_ConfigRule_descriptor = getDescriptor().getMessageTypes().get(65); - internal_static_context_ConfigRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_descriptor, new java.lang.String[] { "Action", "Custom", "Acl", "IpLink", "ConfigRule" }); - internal_static_context_Constraint_Custom_descriptor = getDescriptor().getMessageTypes().get(66); + internal_static_context_ConfigRule_descriptor = getDescriptor().getMessageTypes().get(67); + internal_static_context_ConfigRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_descriptor, new java.lang.String[] { "Action", "Custom", "Acl", "IpLink", "TapiLsp", "Ipowdm", "ConfigRule" }); + internal_static_context_Constraint_Custom_descriptor = getDescriptor().getMessageTypes().get(68); internal_static_context_Constraint_Custom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_Custom_descriptor, new java.lang.String[] { "ConstraintType", "ConstraintValue" }); - internal_static_context_Constraint_Schedule_descriptor = getDescriptor().getMessageTypes().get(67); + internal_static_context_Constraint_Schedule_descriptor = getDescriptor().getMessageTypes().get(69); internal_static_context_Constraint_Schedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_Schedule_descriptor, new java.lang.String[] { "StartTimestamp", "DurationDays" }); - internal_static_context_GPS_Position_descriptor = getDescriptor().getMessageTypes().get(68); + internal_static_context_GPS_Position_descriptor = getDescriptor().getMessageTypes().get(70); internal_static_context_GPS_Position_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_GPS_Position_descriptor, new java.lang.String[] { "Latitude", "Longitude" }); - internal_static_context_Location_descriptor = getDescriptor().getMessageTypes().get(69); + internal_static_context_Location_descriptor = getDescriptor().getMessageTypes().get(71); internal_static_context_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Location_descriptor, new java.lang.String[] { "Region", "GpsPosition", "Interface", "CircuitPack", "Location" }); - internal_static_context_Constraint_EndPointLocation_descriptor = getDescriptor().getMessageTypes().get(70); + internal_static_context_Constraint_EndPointLocation_descriptor = getDescriptor().getMessageTypes().get(72); internal_static_context_Constraint_EndPointLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_EndPointLocation_descriptor, new java.lang.String[] { "EndpointId", "Location" }); - internal_static_context_Constraint_EndPointPriority_descriptor = getDescriptor().getMessageTypes().get(71); + internal_static_context_Constraint_EndPointPriority_descriptor = getDescriptor().getMessageTypes().get(73); internal_static_context_Constraint_EndPointPriority_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_EndPointPriority_descriptor, new java.lang.String[] { "EndpointId", "Priority" }); - internal_static_context_Constraint_SLA_Latency_descriptor = getDescriptor().getMessageTypes().get(72); + internal_static_context_Constraint_SLA_Latency_descriptor = getDescriptor().getMessageTypes().get(74); internal_static_context_Constraint_SLA_Latency_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Latency_descriptor, new java.lang.String[] { "E2ELatencyMs" }); - internal_static_context_Constraint_SLA_Capacity_descriptor = getDescriptor().getMessageTypes().get(73); + internal_static_context_Constraint_SLA_Capacity_descriptor = getDescriptor().getMessageTypes().get(75); internal_static_context_Constraint_SLA_Capacity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Capacity_descriptor, new java.lang.String[] { "CapacityGbps" }); - internal_static_context_Constraint_SLA_Availability_descriptor = getDescriptor().getMessageTypes().get(74); + internal_static_context_Constraint_SLA_Availability_descriptor = getDescriptor().getMessageTypes().get(76); internal_static_context_Constraint_SLA_Availability_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Availability_descriptor, new java.lang.String[] { "NumDisjointPaths", "AllActive", "Availability" }); - internal_static_context_Constraint_SLA_Isolation_level_descriptor = getDescriptor().getMessageTypes().get(75); + internal_static_context_Constraint_SLA_Isolation_level_descriptor = getDescriptor().getMessageTypes().get(77); internal_static_context_Constraint_SLA_Isolation_level_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Isolation_level_descriptor, new java.lang.String[] { "IsolationLevel" }); - internal_static_context_Constraint_Exclusions_descriptor = getDescriptor().getMessageTypes().get(76); + internal_static_context_Constraint_Exclusions_descriptor = getDescriptor().getMessageTypes().get(78); internal_static_context_Constraint_Exclusions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_Exclusions_descriptor, new java.lang.String[] { "IsPermanent", "DeviceIds", "EndpointIds", "LinkIds" }); - internal_static_context_QoSProfileId_descriptor = getDescriptor().getMessageTypes().get(77); + internal_static_context_QoSProfileId_descriptor = getDescriptor().getMessageTypes().get(79); internal_static_context_QoSProfileId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_QoSProfileId_descriptor, new java.lang.String[] { "QosProfileId" }); - internal_static_context_Constraint_QoSProfile_descriptor = getDescriptor().getMessageTypes().get(78); + internal_static_context_Constraint_QoSProfile_descriptor = getDescriptor().getMessageTypes().get(80); internal_static_context_Constraint_QoSProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_QoSProfile_descriptor, new java.lang.String[] { "QosProfileId", "QosProfileName" }); - internal_static_context_Constraint_descriptor = getDescriptor().getMessageTypes().get(79); + internal_static_context_Constraint_descriptor = getDescriptor().getMessageTypes().get(81); internal_static_context_Constraint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_descriptor, new java.lang.String[] { "Action", "Custom", "Schedule", "EndpointLocation", "EndpointPriority", "SlaCapacity", "SlaLatency", "SlaAvailability", "SlaIsolation", "Exclusions", "QosProfile", "Constraint" }); - internal_static_context_TeraFlowController_descriptor = getDescriptor().getMessageTypes().get(80); + internal_static_context_TeraFlowController_descriptor = getDescriptor().getMessageTypes().get(82); internal_static_context_TeraFlowController_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_TeraFlowController_descriptor, new java.lang.String[] { "ContextId", "IpAddress", "Port" }); - internal_static_context_AuthenticationResult_descriptor = getDescriptor().getMessageTypes().get(81); + internal_static_context_AuthenticationResult_descriptor = getDescriptor().getMessageTypes().get(83); internal_static_context_AuthenticationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_AuthenticationResult_descriptor, new java.lang.String[] { "ContextId", "Authenticated" }); - internal_static_context_OpticalConfigId_descriptor = getDescriptor().getMessageTypes().get(82); + internal_static_context_OpticalConfigId_descriptor = getDescriptor().getMessageTypes().get(84); internal_static_context_OpticalConfigId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfigId_descriptor, new java.lang.String[] { "OpticalconfigUuid" }); - internal_static_context_OpticalConfig_descriptor = getDescriptor().getMessageTypes().get(83); + internal_static_context_OpticalConfig_descriptor = getDescriptor().getMessageTypes().get(85); internal_static_context_OpticalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfig_descriptor, new java.lang.String[] { "OpticalconfigId", "Config", "DeviceId" }); - internal_static_context_OpticalConfigList_descriptor = getDescriptor().getMessageTypes().get(84); + internal_static_context_OpticalConfigList_descriptor = getDescriptor().getMessageTypes().get(86); internal_static_context_OpticalConfigList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfigList_descriptor, new java.lang.String[] { "Opticalconfigs" }); - internal_static_context_OpticalConfigEvent_descriptor = getDescriptor().getMessageTypes().get(85); + internal_static_context_OpticalConfigEvent_descriptor = getDescriptor().getMessageTypes().get(87); internal_static_context_OpticalConfigEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfigEvent_descriptor, new java.lang.String[] { "Event", "OpticalconfigId" }); - internal_static_context_OpticalEndPointId_descriptor = getDescriptor().getMessageTypes().get(86); + internal_static_context_OpticalEndPointId_descriptor = getDescriptor().getMessageTypes().get(88); internal_static_context_OpticalEndPointId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalEndPointId_descriptor, new java.lang.String[] { "DeviceId", "EndpointUuid" }); - internal_static_context_OpticalLinkList_descriptor = getDescriptor().getMessageTypes().get(87); + internal_static_context_OpticalLinkList_descriptor = getDescriptor().getMessageTypes().get(89); internal_static_context_OpticalLinkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkList_descriptor, new java.lang.String[] { "OpticalLinks" }); - internal_static_context_OpticalLinkDetails_descriptor = getDescriptor().getMessageTypes().get(88); + internal_static_context_OpticalLinkDetails_descriptor = getDescriptor().getMessageTypes().get(90); internal_static_context_OpticalLinkDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_descriptor, new java.lang.String[] { "Length", "SrcPort", "DstPort", "LocalPeerPort", "RemotePeerPort", "Used", "CSlots", "LSlots", "SSlots" }); internal_static_context_OpticalLinkDetails_CSlotsEntry_descriptor = internal_static_context_OpticalLinkDetails_descriptor.getNestedTypes().get(0); internal_static_context_OpticalLinkDetails_CSlotsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_CSlotsEntry_descriptor, new java.lang.String[] { "Key", "Value" }); @@ -88188,22 +90332,24 @@ public final class ContextOuterClass { internal_static_context_OpticalLinkDetails_LSlotsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_LSlotsEntry_descriptor, new java.lang.String[] { "Key", "Value" }); internal_static_context_OpticalLinkDetails_SSlotsEntry_descriptor = internal_static_context_OpticalLinkDetails_descriptor.getNestedTypes().get(2); internal_static_context_OpticalLinkDetails_SSlotsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_SSlotsEntry_descriptor, new java.lang.String[] { "Key", "Value" }); - internal_static_context_OpticalLink_descriptor = getDescriptor().getMessageTypes().get(89); + internal_static_context_OpticalLink_descriptor = getDescriptor().getMessageTypes().get(91); internal_static_context_OpticalLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLink_descriptor, new java.lang.String[] { "Name", "OpticalDetails", "LinkId", "LinkEndpointIds" }); - internal_static_context_ChannelId_descriptor = getDescriptor().getMessageTypes().get(90); + internal_static_context_ChannelId_descriptor = getDescriptor().getMessageTypes().get(92); internal_static_context_ChannelId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ChannelId_descriptor, new java.lang.String[] { "ChannelUuid" }); - internal_static_context_OpticalBandId_descriptor = getDescriptor().getMessageTypes().get(91); + internal_static_context_OpticalBandId_descriptor = getDescriptor().getMessageTypes().get(93); internal_static_context_OpticalBandId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalBandId_descriptor, new java.lang.String[] { "OpticalbandUuid" }); - internal_static_context_OpticalBand_descriptor = getDescriptor().getMessageTypes().get(92); + internal_static_context_OpticalBand_descriptor = getDescriptor().getMessageTypes().get(94); internal_static_context_OpticalBand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalBand_descriptor, new java.lang.String[] { "OpticalbandId", "ConnectionId", "ChannelId", "ServiceId", "Service", "Connection", "Channel", "Field" }); - internal_static_context_OpticalBandList_descriptor = getDescriptor().getMessageTypes().get(93); + internal_static_context_OpticalBandList_descriptor = getDescriptor().getMessageTypes().get(95); internal_static_context_OpticalBandList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalBandList_descriptor, new java.lang.String[] { "Opticalbands" }); - internal_static_context_ServiceConfigRule_descriptor = getDescriptor().getMessageTypes().get(94); + internal_static_context_ServiceConfigRule_descriptor = getDescriptor().getMessageTypes().get(96); internal_static_context_ServiceConfigRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ServiceConfigRule_descriptor, new java.lang.String[] { "ServiceId", "ConfigruleCustom" }); com.google.protobuf.AnyProto.getDescriptor(); acl.Acl.getDescriptor(); + ipowdm.Ipowdm.getDescriptor(); ip_link.IpLink.getDescriptor(); kpi_sample_types.KpiSampleTypes.getDescriptor(); + tapi_lsp.TapiLsp.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/policy/target/generated-sources/grpc/ipowdm/Ipowdm.java b/src/policy/target/generated-sources/grpc/ipowdm/Ipowdm.java new file mode 100644 index 0000000000000000000000000000000000000000..2008e5d4fecf20f60486efdf655b512080bfa413 --- /dev/null +++ b/src/policy/target/generated-sources/grpc/ipowdm/Ipowdm.java @@ -0,0 +1,5782 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ipowdm.proto +package ipowdm; + +public final class Ipowdm { + + private Ipowdm() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface RuleEndpointOrBuilder extends // @@protoc_insertion_point(interface_extends:ipowdm.RuleEndpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * string uuid = 1; + * @return The uuid. + */ + java.lang.String getUuid(); + + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString getUuidBytes(); + + /** + * string ip_address = 2; + * @return The ipAddress. + */ + java.lang.String getIpAddress(); + + /** + * string ip_address = 2; + * @return The bytes for ipAddress. + */ + com.google.protobuf.ByteString getIpAddressBytes(); + + /** + * string ip_mask = 3; + * @return The ipMask. + */ + java.lang.String getIpMask(); + + /** + * string ip_mask = 3; + * @return The bytes for ipMask. + */ + com.google.protobuf.ByteString getIpMaskBytes(); + + /** + * int32 vlan_id = 4; + * @return The vlanId. + */ + int getVlanId(); + } + + /** + * Protobuf type {@code ipowdm.RuleEndpoint} + */ + public static final class RuleEndpoint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipowdm.RuleEndpoint) + RuleEndpointOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use RuleEndpoint.newBuilder() to construct. + private RuleEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RuleEndpoint() { + uuid_ = ""; + ipAddress_ = ""; + ipMask_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RuleEndpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_RuleEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_RuleEndpoint_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.RuleEndpoint.class, ipowdm.Ipowdm.RuleEndpoint.Builder.class); + } + + public static final int UUID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * string uuid = 1; + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + 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(); + uuid_ = s; + return s; + } + } + + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_ADDRESS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipAddress_ = ""; + + /** + * string ip_address = 2; + * @return The ipAddress. + */ + @java.lang.Override + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + 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(); + ipAddress_ = s; + return s; + } + } + + /** + * string ip_address = 2; + * @return The bytes for ipAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_MASK_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipMask_ = ""; + + /** + * string ip_mask = 3; + * @return The ipMask. + */ + @java.lang.Override + public java.lang.String getIpMask() { + java.lang.Object ref = ipMask_; + 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(); + ipMask_ = s; + return s; + } + } + + /** + * string ip_mask = 3; + * @return The bytes for ipMask. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpMaskBytes() { + java.lang.Object ref = ipMask_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipMask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VLAN_ID_FIELD_NUMBER = 4; + + private int vlanId_ = 0; + + /** + * int32 vlan_id = 4; + * @return The vlanId. + */ + @java.lang.Override + public int getVlanId() { + return vlanId_; + } + + 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(uuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipMask_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipMask_); + } + if (vlanId_ != 0) { + output.writeInt32(4, vlanId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipMask_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipMask_); + } + if (vlanId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, vlanId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ipowdm.Ipowdm.RuleEndpoint)) { + return super.equals(obj); + } + ipowdm.Ipowdm.RuleEndpoint other = (ipowdm.Ipowdm.RuleEndpoint) obj; + if (!getUuid().equals(other.getUuid())) + return false; + if (!getIpAddress().equals(other.getIpAddress())) + return false; + if (!getIpMask().equals(other.getIpMask())) + return false; + if (getVlanId() != other.getVlanId()) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + hash = (37 * hash) + IP_MASK_FIELD_NUMBER; + hash = (53 * hash) + getIpMask().hashCode(); + hash = (37 * hash) + VLAN_ID_FIELD_NUMBER; + hash = (53 * hash) + getVlanId(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.RuleEndpoint 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 ipowdm.Ipowdm.RuleEndpoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.RuleEndpoint 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 ipowdm.Ipowdm.RuleEndpoint parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.RuleEndpoint 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(ipowdm.Ipowdm.RuleEndpoint 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; + } + + /** + * Protobuf type {@code ipowdm.RuleEndpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipowdm.RuleEndpoint) + ipowdm.Ipowdm.RuleEndpointOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_RuleEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_RuleEndpoint_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.RuleEndpoint.class, ipowdm.Ipowdm.RuleEndpoint.Builder.class); + } + + // Construct using ipowdm.Ipowdm.RuleEndpoint.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uuid_ = ""; + ipAddress_ = ""; + ipMask_ = ""; + vlanId_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ipowdm.Ipowdm.internal_static_ipowdm_RuleEndpoint_descriptor; + } + + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpoint getDefaultInstanceForType() { + return ipowdm.Ipowdm.RuleEndpoint.getDefaultInstance(); + } + + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpoint build() { + ipowdm.Ipowdm.RuleEndpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpoint buildPartial() { + ipowdm.Ipowdm.RuleEndpoint result = new ipowdm.Ipowdm.RuleEndpoint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(ipowdm.Ipowdm.RuleEndpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uuid_ = uuid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ipAddress_ = ipAddress_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ipMask_ = ipMask_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vlanId_ = vlanId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ipowdm.Ipowdm.RuleEndpoint) { + return mergeFrom((ipowdm.Ipowdm.RuleEndpoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ipowdm.Ipowdm.RuleEndpoint other) { + if (other == ipowdm.Ipowdm.RuleEndpoint.getDefaultInstance()) + return this; + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getIpAddress().isEmpty()) { + ipAddress_ = other.ipAddress_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getIpMask().isEmpty()) { + ipMask_ = other.ipMask_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getVlanId() != 0) { + setVlanId(other.getVlanId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + uuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 18: + { + ipAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } + // case 18 + case 26: + { + ipMask_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } + // case 26 + case 32: + { + vlanId_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } + // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uuid_ = ""; + + /** + * string uuid = 1; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string uuid = 1; + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string uuid = 1; + * @return This builder for chaining. + */ + public Builder clearUuid() { + uuid_ = getDefaultInstance().getUuid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string uuid = 1; + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object ipAddress_ = ""; + + /** + * string ip_address = 2; + * @return The ipAddress. + */ + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string ip_address = 2; + * @return The bytes for ipAddress. + */ + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string ip_address = 2; + * @param value The ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipAddress_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string ip_address = 2; + * @return This builder for chaining. + */ + public Builder clearIpAddress() { + ipAddress_ = getDefaultInstance().getIpAddress(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string ip_address = 2; + * @param value The bytes for ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object ipMask_ = ""; + + /** + * string ip_mask = 3; + * @return The ipMask. + */ + public java.lang.String getIpMask() { + java.lang.Object ref = ipMask_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipMask_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string ip_mask = 3; + * @return The bytes for ipMask. + */ + public com.google.protobuf.ByteString getIpMaskBytes() { + java.lang.Object ref = ipMask_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipMask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string ip_mask = 3; + * @param value The ipMask to set. + * @return This builder for chaining. + */ + public Builder setIpMask(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipMask_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * string ip_mask = 3; + * @return This builder for chaining. + */ + public Builder clearIpMask() { + ipMask_ = getDefaultInstance().getIpMask(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * string ip_mask = 3; + * @param value The bytes for ipMask to set. + * @return This builder for chaining. + */ + public Builder setIpMaskBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipMask_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int vlanId_; + + /** + * int32 vlan_id = 4; + * @return The vlanId. + */ + @java.lang.Override + public int getVlanId() { + return vlanId_; + } + + /** + * int32 vlan_id = 4; + * @param value The vlanId to set. + * @return This builder for chaining. + */ + public Builder setVlanId(int value) { + vlanId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * int32 vlan_id = 4; + * @return This builder for chaining. + */ + public Builder clearVlanId() { + bitField0_ = (bitField0_ & ~0x00000008); + vlanId_ = 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:ipowdm.RuleEndpoint) + } + + // @@protoc_insertion_point(class_scope:ipowdm.RuleEndpoint) + private static final ipowdm.Ipowdm.RuleEndpoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ipowdm.Ipowdm.RuleEndpoint(); + } + + public static ipowdm.Ipowdm.RuleEndpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public RuleEndpoint parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DigitalSubCarrierIdOrBuilder extends // @@protoc_insertion_point(interface_extends:ipowdm.DigitalSubCarrierId) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 sub_carrier_id = 1; + * @return The subCarrierId. + */ + int getSubCarrierId(); + + /** + * string active = 2; + * @return The active. + */ + java.lang.String getActive(); + + /** + * string active = 2; + * @return The bytes for active. + */ + com.google.protobuf.ByteString getActiveBytes(); + } + + /** + * Protobuf type {@code ipowdm.DigitalSubCarrierId} + */ + public static final class DigitalSubCarrierId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipowdm.DigitalSubCarrierId) + DigitalSubCarrierIdOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use DigitalSubCarrierId.newBuilder() to construct. + private DigitalSubCarrierId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DigitalSubCarrierId() { + active_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DigitalSubCarrierId(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarrierId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarrierId_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.DigitalSubCarrierId.class, ipowdm.Ipowdm.DigitalSubCarrierId.Builder.class); + } + + public static final int SUB_CARRIER_ID_FIELD_NUMBER = 1; + + private int subCarrierId_ = 0; + + /** + * int32 sub_carrier_id = 1; + * @return The subCarrierId. + */ + @java.lang.Override + public int getSubCarrierId() { + return subCarrierId_; + } + + public static final int ACTIVE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object active_ = ""; + + /** + * string active = 2; + * @return The active. + */ + @java.lang.Override + public java.lang.String getActive() { + java.lang.Object ref = active_; + 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(); + active_ = s; + return s; + } + } + + /** + * string active = 2; + * @return The bytes for active. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActiveBytes() { + java.lang.Object ref = active_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + active_ = 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 (subCarrierId_ != 0) { + output.writeInt32(1, subCarrierId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(active_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, active_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (subCarrierId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, subCarrierId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(active_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, active_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ipowdm.Ipowdm.DigitalSubCarrierId)) { + return super.equals(obj); + } + ipowdm.Ipowdm.DigitalSubCarrierId other = (ipowdm.Ipowdm.DigitalSubCarrierId) obj; + if (getSubCarrierId() != other.getSubCarrierId()) + return false; + if (!getActive().equals(other.getActive())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + SUB_CARRIER_ID_FIELD_NUMBER; + hash = (53 * hash) + getSubCarrierId(); + hash = (37 * hash) + ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + getActive().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId 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 ipowdm.Ipowdm.DigitalSubCarrierId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId 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 ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId 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(ipowdm.Ipowdm.DigitalSubCarrierId 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; + } + + /** + * Protobuf type {@code ipowdm.DigitalSubCarrierId} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipowdm.DigitalSubCarrierId) + ipowdm.Ipowdm.DigitalSubCarrierIdOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarrierId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarrierId_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.DigitalSubCarrierId.class, ipowdm.Ipowdm.DigitalSubCarrierId.Builder.class); + } + + // Construct using ipowdm.Ipowdm.DigitalSubCarrierId.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subCarrierId_ = 0; + active_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarrierId_descriptor; + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarrierId getDefaultInstanceForType() { + return ipowdm.Ipowdm.DigitalSubCarrierId.getDefaultInstance(); + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarrierId build() { + ipowdm.Ipowdm.DigitalSubCarrierId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarrierId buildPartial() { + ipowdm.Ipowdm.DigitalSubCarrierId result = new ipowdm.Ipowdm.DigitalSubCarrierId(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(ipowdm.Ipowdm.DigitalSubCarrierId result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subCarrierId_ = subCarrierId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.active_ = active_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ipowdm.Ipowdm.DigitalSubCarrierId) { + return mergeFrom((ipowdm.Ipowdm.DigitalSubCarrierId) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ipowdm.Ipowdm.DigitalSubCarrierId other) { + if (other == ipowdm.Ipowdm.DigitalSubCarrierId.getDefaultInstance()) + return this; + if (other.getSubCarrierId() != 0) { + setSubCarrierId(other.getSubCarrierId()); + } + if (!other.getActive().isEmpty()) { + active_ = other.active_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 8: + { + subCarrierId_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } + // case 8 + case 18: + { + active_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } + // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private int subCarrierId_; + + /** + * int32 sub_carrier_id = 1; + * @return The subCarrierId. + */ + @java.lang.Override + public int getSubCarrierId() { + return subCarrierId_; + } + + /** + * int32 sub_carrier_id = 1; + * @param value The subCarrierId to set. + * @return This builder for chaining. + */ + public Builder setSubCarrierId(int value) { + subCarrierId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * int32 sub_carrier_id = 1; + * @return This builder for chaining. + */ + public Builder clearSubCarrierId() { + bitField0_ = (bitField0_ & ~0x00000001); + subCarrierId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object active_ = ""; + + /** + * string active = 2; + * @return The active. + */ + public java.lang.String getActive() { + java.lang.Object ref = active_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + active_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string active = 2; + * @return The bytes for active. + */ + public com.google.protobuf.ByteString getActiveBytes() { + java.lang.Object ref = active_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + active_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string active = 2; + * @param value The active to set. + * @return This builder for chaining. + */ + public Builder setActive(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + active_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string active = 2; + * @return This builder for chaining. + */ + public Builder clearActive() { + active_ = getDefaultInstance().getActive(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string active = 2; + * @param value The bytes for active to set. + * @return This builder for chaining. + */ + public Builder setActiveBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + active_ = value; + bitField0_ |= 0x00000002; + 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:ipowdm.DigitalSubCarrierId) + } + + // @@protoc_insertion_point(class_scope:ipowdm.DigitalSubCarrierId) + private static final ipowdm.Ipowdm.DigitalSubCarrierId DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ipowdm.Ipowdm.DigitalSubCarrierId(); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public DigitalSubCarrierId parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarrierId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DigitalSubCarriersGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:ipowdm.DigitalSubCarriersGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 digital_sub_carriers_group_id = 1; + * @return The digitalSubCarriersGroupId. + */ + int getDigitalSubCarriersGroupId(); + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + java.util.List getDigitalSubCarrierIdList(); + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + ipowdm.Ipowdm.DigitalSubCarrierId getDigitalSubCarrierId(int index); + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + int getDigitalSubCarrierIdCount(); + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + java.util.List getDigitalSubCarrierIdOrBuilderList(); + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + ipowdm.Ipowdm.DigitalSubCarrierIdOrBuilder getDigitalSubCarrierIdOrBuilder(int index); + } + + /** + * Protobuf type {@code ipowdm.DigitalSubCarriersGroup} + */ + public static final class DigitalSubCarriersGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipowdm.DigitalSubCarriersGroup) + DigitalSubCarriersGroupOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use DigitalSubCarriersGroup.newBuilder() to construct. + private DigitalSubCarriersGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DigitalSubCarriersGroup() { + digitalSubCarrierId_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DigitalSubCarriersGroup(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarriersGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarriersGroup_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.DigitalSubCarriersGroup.class, ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder.class); + } + + public static final int DIGITAL_SUB_CARRIERS_GROUP_ID_FIELD_NUMBER = 1; + + private int digitalSubCarriersGroupId_ = 0; + + /** + * int32 digital_sub_carriers_group_id = 1; + * @return The digitalSubCarriersGroupId. + */ + @java.lang.Override + public int getDigitalSubCarriersGroupId() { + return digitalSubCarriersGroupId_; + } + + public static final int DIGITAL_SUB_CARRIER_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List digitalSubCarrierId_; + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + @java.lang.Override + public java.util.List getDigitalSubCarrierIdList() { + return digitalSubCarrierId_; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + @java.lang.Override + public java.util.List getDigitalSubCarrierIdOrBuilderList() { + return digitalSubCarrierId_; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + @java.lang.Override + public int getDigitalSubCarrierIdCount() { + return digitalSubCarrierId_.size(); + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarrierId getDigitalSubCarrierId(int index) { + return digitalSubCarrierId_.get(index); + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarrierIdOrBuilder getDigitalSubCarrierIdOrBuilder(int index) { + return digitalSubCarrierId_.get(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 (digitalSubCarriersGroupId_ != 0) { + output.writeInt32(1, digitalSubCarriersGroupId_); + } + for (int i = 0; i < digitalSubCarrierId_.size(); i++) { + output.writeMessage(4, digitalSubCarrierId_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (digitalSubCarriersGroupId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, digitalSubCarriersGroupId_); + } + for (int i = 0; i < digitalSubCarrierId_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, digitalSubCarrierId_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ipowdm.Ipowdm.DigitalSubCarriersGroup)) { + return super.equals(obj); + } + ipowdm.Ipowdm.DigitalSubCarriersGroup other = (ipowdm.Ipowdm.DigitalSubCarriersGroup) obj; + if (getDigitalSubCarriersGroupId() != other.getDigitalSubCarriersGroupId()) + return false; + if (!getDigitalSubCarrierIdList().equals(other.getDigitalSubCarrierIdList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + DIGITAL_SUB_CARRIERS_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getDigitalSubCarriersGroupId(); + if (getDigitalSubCarrierIdCount() > 0) { + hash = (37 * hash) + DIGITAL_SUB_CARRIER_ID_FIELD_NUMBER; + hash = (53 * hash) + getDigitalSubCarrierIdList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup 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 ipowdm.Ipowdm.DigitalSubCarriersGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup 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 ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup 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(ipowdm.Ipowdm.DigitalSubCarriersGroup 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; + } + + /** + * Protobuf type {@code ipowdm.DigitalSubCarriersGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipowdm.DigitalSubCarriersGroup) + ipowdm.Ipowdm.DigitalSubCarriersGroupOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarriersGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarriersGroup_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.DigitalSubCarriersGroup.class, ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder.class); + } + + // Construct using ipowdm.Ipowdm.DigitalSubCarriersGroup.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + digitalSubCarriersGroupId_ = 0; + if (digitalSubCarrierIdBuilder_ == null) { + digitalSubCarrierId_ = java.util.Collections.emptyList(); + } else { + digitalSubCarrierId_ = null; + digitalSubCarrierIdBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarriersGroup_descriptor; + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarriersGroup getDefaultInstanceForType() { + return ipowdm.Ipowdm.DigitalSubCarriersGroup.getDefaultInstance(); + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarriersGroup build() { + ipowdm.Ipowdm.DigitalSubCarriersGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarriersGroup buildPartial() { + ipowdm.Ipowdm.DigitalSubCarriersGroup result = new ipowdm.Ipowdm.DigitalSubCarriersGroup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(ipowdm.Ipowdm.DigitalSubCarriersGroup result) { + if (digitalSubCarrierIdBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + digitalSubCarrierId_ = java.util.Collections.unmodifiableList(digitalSubCarrierId_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.digitalSubCarrierId_ = digitalSubCarrierId_; + } else { + result.digitalSubCarrierId_ = digitalSubCarrierIdBuilder_.build(); + } + } + + private void buildPartial0(ipowdm.Ipowdm.DigitalSubCarriersGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.digitalSubCarriersGroupId_ = digitalSubCarriersGroupId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ipowdm.Ipowdm.DigitalSubCarriersGroup) { + return mergeFrom((ipowdm.Ipowdm.DigitalSubCarriersGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ipowdm.Ipowdm.DigitalSubCarriersGroup other) { + if (other == ipowdm.Ipowdm.DigitalSubCarriersGroup.getDefaultInstance()) + return this; + if (other.getDigitalSubCarriersGroupId() != 0) { + setDigitalSubCarriersGroupId(other.getDigitalSubCarriersGroupId()); + } + if (digitalSubCarrierIdBuilder_ == null) { + if (!other.digitalSubCarrierId_.isEmpty()) { + if (digitalSubCarrierId_.isEmpty()) { + digitalSubCarrierId_ = other.digitalSubCarrierId_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.addAll(other.digitalSubCarrierId_); + } + onChanged(); + } + } else { + if (!other.digitalSubCarrierId_.isEmpty()) { + if (digitalSubCarrierIdBuilder_.isEmpty()) { + digitalSubCarrierIdBuilder_.dispose(); + digitalSubCarrierIdBuilder_ = null; + digitalSubCarrierId_ = other.digitalSubCarrierId_; + bitField0_ = (bitField0_ & ~0x00000002); + digitalSubCarrierIdBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDigitalSubCarrierIdFieldBuilder() : null; + } else { + digitalSubCarrierIdBuilder_.addAllMessages(other.digitalSubCarrierId_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 8: + { + digitalSubCarriersGroupId_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } + // case 8 + case 34: + { + ipowdm.Ipowdm.DigitalSubCarrierId m = input.readMessage(ipowdm.Ipowdm.DigitalSubCarrierId.parser(), extensionRegistry); + if (digitalSubCarrierIdBuilder_ == null) { + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.add(m); + } else { + digitalSubCarrierIdBuilder_.addMessage(m); + } + break; + } + // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private int digitalSubCarriersGroupId_; + + /** + * int32 digital_sub_carriers_group_id = 1; + * @return The digitalSubCarriersGroupId. + */ + @java.lang.Override + public int getDigitalSubCarriersGroupId() { + return digitalSubCarriersGroupId_; + } + + /** + * int32 digital_sub_carriers_group_id = 1; + * @param value The digitalSubCarriersGroupId to set. + * @return This builder for chaining. + */ + public Builder setDigitalSubCarriersGroupId(int value) { + digitalSubCarriersGroupId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * int32 digital_sub_carriers_group_id = 1; + * @return This builder for chaining. + */ + public Builder clearDigitalSubCarriersGroupId() { + bitField0_ = (bitField0_ & ~0x00000001); + digitalSubCarriersGroupId_ = 0; + onChanged(); + return this; + } + + private java.util.List digitalSubCarrierId_ = java.util.Collections.emptyList(); + + private void ensureDigitalSubCarrierIdIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + digitalSubCarrierId_ = new java.util.ArrayList(digitalSubCarrierId_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 digitalSubCarrierIdBuilder_; + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public java.util.List getDigitalSubCarrierIdList() { + if (digitalSubCarrierIdBuilder_ == null) { + return java.util.Collections.unmodifiableList(digitalSubCarrierId_); + } else { + return digitalSubCarrierIdBuilder_.getMessageList(); + } + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public int getDigitalSubCarrierIdCount() { + if (digitalSubCarrierIdBuilder_ == null) { + return digitalSubCarrierId_.size(); + } else { + return digitalSubCarrierIdBuilder_.getCount(); + } + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public ipowdm.Ipowdm.DigitalSubCarrierId getDigitalSubCarrierId(int index) { + if (digitalSubCarrierIdBuilder_ == null) { + return digitalSubCarrierId_.get(index); + } else { + return digitalSubCarrierIdBuilder_.getMessage(index); + } + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder setDigitalSubCarrierId(int index, ipowdm.Ipowdm.DigitalSubCarrierId value) { + if (digitalSubCarrierIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.set(index, value); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder setDigitalSubCarrierId(int index, ipowdm.Ipowdm.DigitalSubCarrierId.Builder builderForValue) { + if (digitalSubCarrierIdBuilder_ == null) { + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.set(index, builderForValue.build()); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder addDigitalSubCarrierId(ipowdm.Ipowdm.DigitalSubCarrierId value) { + if (digitalSubCarrierIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.add(value); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder addDigitalSubCarrierId(int index, ipowdm.Ipowdm.DigitalSubCarrierId value) { + if (digitalSubCarrierIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.add(index, value); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder addDigitalSubCarrierId(ipowdm.Ipowdm.DigitalSubCarrierId.Builder builderForValue) { + if (digitalSubCarrierIdBuilder_ == null) { + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.add(builderForValue.build()); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder addDigitalSubCarrierId(int index, ipowdm.Ipowdm.DigitalSubCarrierId.Builder builderForValue) { + if (digitalSubCarrierIdBuilder_ == null) { + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.add(index, builderForValue.build()); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder addAllDigitalSubCarrierId(java.lang.Iterable values) { + if (digitalSubCarrierIdBuilder_ == null) { + ensureDigitalSubCarrierIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, digitalSubCarrierId_); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder clearDigitalSubCarrierId() { + if (digitalSubCarrierIdBuilder_ == null) { + digitalSubCarrierId_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.clear(); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder removeDigitalSubCarrierId(int index) { + if (digitalSubCarrierIdBuilder_ == null) { + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.remove(index); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public ipowdm.Ipowdm.DigitalSubCarrierId.Builder getDigitalSubCarrierIdBuilder(int index) { + return getDigitalSubCarrierIdFieldBuilder().getBuilder(index); + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public ipowdm.Ipowdm.DigitalSubCarrierIdOrBuilder getDigitalSubCarrierIdOrBuilder(int index) { + if (digitalSubCarrierIdBuilder_ == null) { + return digitalSubCarrierId_.get(index); + } else { + return digitalSubCarrierIdBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public java.util.List getDigitalSubCarrierIdOrBuilderList() { + if (digitalSubCarrierIdBuilder_ != null) { + return digitalSubCarrierIdBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(digitalSubCarrierId_); + } + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public ipowdm.Ipowdm.DigitalSubCarrierId.Builder addDigitalSubCarrierIdBuilder() { + return getDigitalSubCarrierIdFieldBuilder().addBuilder(ipowdm.Ipowdm.DigitalSubCarrierId.getDefaultInstance()); + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public ipowdm.Ipowdm.DigitalSubCarrierId.Builder addDigitalSubCarrierIdBuilder(int index) { + return getDigitalSubCarrierIdFieldBuilder().addBuilder(index, ipowdm.Ipowdm.DigitalSubCarrierId.getDefaultInstance()); + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public java.util.List getDigitalSubCarrierIdBuilderList() { + return getDigitalSubCarrierIdFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getDigitalSubCarrierIdFieldBuilder() { + if (digitalSubCarrierIdBuilder_ == null) { + digitalSubCarrierIdBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(digitalSubCarrierId_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + digitalSubCarrierId_ = null; + } + return digitalSubCarrierIdBuilder_; + } + + @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:ipowdm.DigitalSubCarriersGroup) + } + + // @@protoc_insertion_point(class_scope:ipowdm.DigitalSubCarriersGroup) + private static final ipowdm.Ipowdm.DigitalSubCarriersGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ipowdm.Ipowdm.DigitalSubCarriersGroup(); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public DigitalSubCarriersGroup parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarriersGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ComponentOrBuilder extends // @@protoc_insertion_point(interface_extends:ipowdm.Component) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * float frequency = 2; + * @return The frequency. + */ + float getFrequency(); + + /** + * float target_output_power = 3; + * @return The targetOutputPower. + */ + float getTargetOutputPower(); + + /** + * int32 operational_mode = 4; + * @return The operationalMode. + */ + int getOperationalMode(); + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + java.util.List getDigitalSubCarriersGroupList(); + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + ipowdm.Ipowdm.DigitalSubCarriersGroup getDigitalSubCarriersGroup(int index); + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + int getDigitalSubCarriersGroupCount(); + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + java.util.List getDigitalSubCarriersGroupOrBuilderList(); + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + ipowdm.Ipowdm.DigitalSubCarriersGroupOrBuilder getDigitalSubCarriersGroupOrBuilder(int index); + + /** + * string operation = 6; + * @return The operation. + */ + java.lang.String getOperation(); + + /** + * string operation = 6; + * @return The bytes for operation. + */ + com.google.protobuf.ByteString getOperationBytes(); + } + + /** + * Protobuf type {@code ipowdm.Component} + */ + public static final class Component extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipowdm.Component) + ComponentOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use Component.newBuilder() to construct. + private Component(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Component() { + name_ = ""; + digitalSubCarriersGroup_ = java.util.Collections.emptyList(); + operation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Component(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_Component_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_Component_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.Component.class, ipowdm.Ipowdm.Component.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FREQUENCY_FIELD_NUMBER = 2; + + private float frequency_ = 0F; + + /** + * float frequency = 2; + * @return The frequency. + */ + @java.lang.Override + public float getFrequency() { + return frequency_; + } + + public static final int TARGET_OUTPUT_POWER_FIELD_NUMBER = 3; + + private float targetOutputPower_ = 0F; + + /** + * float target_output_power = 3; + * @return The targetOutputPower. + */ + @java.lang.Override + public float getTargetOutputPower() { + return targetOutputPower_; + } + + public static final int OPERATIONAL_MODE_FIELD_NUMBER = 4; + + private int operationalMode_ = 0; + + /** + * int32 operational_mode = 4; + * @return The operationalMode. + */ + @java.lang.Override + public int getOperationalMode() { + return operationalMode_; + } + + public static final int DIGITAL_SUB_CARRIERS_GROUP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List digitalSubCarriersGroup_; + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + @java.lang.Override + public java.util.List getDigitalSubCarriersGroupList() { + return digitalSubCarriersGroup_; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + @java.lang.Override + public java.util.List getDigitalSubCarriersGroupOrBuilderList() { + return digitalSubCarriersGroup_; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + @java.lang.Override + public int getDigitalSubCarriersGroupCount() { + return digitalSubCarriersGroup_.size(); + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarriersGroup getDigitalSubCarriersGroup(int index) { + return digitalSubCarriersGroup_.get(index); + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarriersGroupOrBuilder getDigitalSubCarriersGroupOrBuilder(int index) { + return digitalSubCarriersGroup_.get(index); + } + + public static final int OPERATION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object operation_ = ""; + + /** + * string operation = 6; + * @return The operation. + */ + @java.lang.Override + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + 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(); + operation_ = s; + return s; + } + } + + /** + * string operation = 6; + * @return The bytes for operation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = 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_); + } + if (java.lang.Float.floatToRawIntBits(frequency_) != 0) { + output.writeFloat(2, frequency_); + } + if (java.lang.Float.floatToRawIntBits(targetOutputPower_) != 0) { + output.writeFloat(3, targetOutputPower_); + } + if (operationalMode_ != 0) { + output.writeInt32(4, operationalMode_); + } + for (int i = 0; i < digitalSubCarriersGroup_.size(); i++) { + output.writeMessage(5, digitalSubCarriersGroup_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, operation_); + } + getUnknownFields().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 (java.lang.Float.floatToRawIntBits(frequency_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, frequency_); + } + if (java.lang.Float.floatToRawIntBits(targetOutputPower_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, targetOutputPower_); + } + if (operationalMode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, operationalMode_); + } + for (int i = 0; i < digitalSubCarriersGroup_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, digitalSubCarriersGroup_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, operation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ipowdm.Ipowdm.Component)) { + return super.equals(obj); + } + ipowdm.Ipowdm.Component other = (ipowdm.Ipowdm.Component) obj; + if (!getName().equals(other.getName())) + return false; + if (java.lang.Float.floatToIntBits(getFrequency()) != java.lang.Float.floatToIntBits(other.getFrequency())) + return false; + if (java.lang.Float.floatToIntBits(getTargetOutputPower()) != java.lang.Float.floatToIntBits(other.getTargetOutputPower())) + return false; + if (getOperationalMode() != other.getOperationalMode()) + return false; + if (!getDigitalSubCarriersGroupList().equals(other.getDigitalSubCarriersGroupList())) + return false; + if (!getOperation().equals(other.getOperation())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + FREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFrequency()); + hash = (37 * hash) + TARGET_OUTPUT_POWER_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTargetOutputPower()); + hash = (37 * hash) + OPERATIONAL_MODE_FIELD_NUMBER; + hash = (53 * hash) + getOperationalMode(); + if (getDigitalSubCarriersGroupCount() > 0) { + hash = (37 * hash) + DIGITAL_SUB_CARRIERS_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getDigitalSubCarriersGroupList().hashCode(); + } + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getOperation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ipowdm.Ipowdm.Component parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.Component parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.Component parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.Component parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.Component parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.Component parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.Component parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.Component 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 ipowdm.Ipowdm.Component parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.Component 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 ipowdm.Ipowdm.Component parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.Component 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(ipowdm.Ipowdm.Component 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; + } + + /** + * Protobuf type {@code ipowdm.Component} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipowdm.Component) + ipowdm.Ipowdm.ComponentOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_Component_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_Component_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.Component.class, ipowdm.Ipowdm.Component.Builder.class); + } + + // Construct using ipowdm.Ipowdm.Component.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + frequency_ = 0F; + targetOutputPower_ = 0F; + operationalMode_ = 0; + if (digitalSubCarriersGroupBuilder_ == null) { + digitalSubCarriersGroup_ = java.util.Collections.emptyList(); + } else { + digitalSubCarriersGroup_ = null; + digitalSubCarriersGroupBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + operation_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ipowdm.Ipowdm.internal_static_ipowdm_Component_descriptor; + } + + @java.lang.Override + public ipowdm.Ipowdm.Component getDefaultInstanceForType() { + return ipowdm.Ipowdm.Component.getDefaultInstance(); + } + + @java.lang.Override + public ipowdm.Ipowdm.Component build() { + ipowdm.Ipowdm.Component result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ipowdm.Ipowdm.Component buildPartial() { + ipowdm.Ipowdm.Component result = new ipowdm.Ipowdm.Component(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(ipowdm.Ipowdm.Component result) { + if (digitalSubCarriersGroupBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + digitalSubCarriersGroup_ = java.util.Collections.unmodifiableList(digitalSubCarriersGroup_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.digitalSubCarriersGroup_ = digitalSubCarriersGroup_; + } else { + result.digitalSubCarriersGroup_ = digitalSubCarriersGroupBuilder_.build(); + } + } + + private void buildPartial0(ipowdm.Ipowdm.Component result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.frequency_ = frequency_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.targetOutputPower_ = targetOutputPower_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.operationalMode_ = operationalMode_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.operation_ = operation_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ipowdm.Ipowdm.Component) { + return mergeFrom((ipowdm.Ipowdm.Component) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ipowdm.Ipowdm.Component other) { + if (other == ipowdm.Ipowdm.Component.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getFrequency() != 0F) { + setFrequency(other.getFrequency()); + } + if (other.getTargetOutputPower() != 0F) { + setTargetOutputPower(other.getTargetOutputPower()); + } + if (other.getOperationalMode() != 0) { + setOperationalMode(other.getOperationalMode()); + } + if (digitalSubCarriersGroupBuilder_ == null) { + if (!other.digitalSubCarriersGroup_.isEmpty()) { + if (digitalSubCarriersGroup_.isEmpty()) { + digitalSubCarriersGroup_ = other.digitalSubCarriersGroup_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.addAll(other.digitalSubCarriersGroup_); + } + onChanged(); + } + } else { + if (!other.digitalSubCarriersGroup_.isEmpty()) { + if (digitalSubCarriersGroupBuilder_.isEmpty()) { + digitalSubCarriersGroupBuilder_.dispose(); + digitalSubCarriersGroupBuilder_ = null; + digitalSubCarriersGroup_ = other.digitalSubCarriersGroup_; + bitField0_ = (bitField0_ & ~0x00000010); + digitalSubCarriersGroupBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDigitalSubCarriersGroupFieldBuilder() : null; + } else { + digitalSubCarriersGroupBuilder_.addAllMessages(other.digitalSubCarriersGroup_); + } + } + } + if (!other.getOperation().isEmpty()) { + operation_ = other.operation_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 21: + { + frequency_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } + // case 21 + case 29: + { + targetOutputPower_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } + // case 29 + case 32: + { + operationalMode_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } + // case 32 + case 42: + { + ipowdm.Ipowdm.DigitalSubCarriersGroup m = input.readMessage(ipowdm.Ipowdm.DigitalSubCarriersGroup.parser(), extensionRegistry); + if (digitalSubCarriersGroupBuilder_ == null) { + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.add(m); + } else { + digitalSubCarriersGroupBuilder_.addMessage(m); + } + break; + } + // case 42 + case 50: + { + operation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } + // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float frequency_; + + /** + * float frequency = 2; + * @return The frequency. + */ + @java.lang.Override + public float getFrequency() { + return frequency_; + } + + /** + * float frequency = 2; + * @param value The frequency to set. + * @return This builder for chaining. + */ + public Builder setFrequency(float value) { + frequency_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * float frequency = 2; + * @return This builder for chaining. + */ + public Builder clearFrequency() { + bitField0_ = (bitField0_ & ~0x00000002); + frequency_ = 0F; + onChanged(); + return this; + } + + private float targetOutputPower_; + + /** + * float target_output_power = 3; + * @return The targetOutputPower. + */ + @java.lang.Override + public float getTargetOutputPower() { + return targetOutputPower_; + } + + /** + * float target_output_power = 3; + * @param value The targetOutputPower to set. + * @return This builder for chaining. + */ + public Builder setTargetOutputPower(float value) { + targetOutputPower_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * float target_output_power = 3; + * @return This builder for chaining. + */ + public Builder clearTargetOutputPower() { + bitField0_ = (bitField0_ & ~0x00000004); + targetOutputPower_ = 0F; + onChanged(); + return this; + } + + private int operationalMode_; + + /** + * int32 operational_mode = 4; + * @return The operationalMode. + */ + @java.lang.Override + public int getOperationalMode() { + return operationalMode_; + } + + /** + * int32 operational_mode = 4; + * @param value The operationalMode to set. + * @return This builder for chaining. + */ + public Builder setOperationalMode(int value) { + operationalMode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * int32 operational_mode = 4; + * @return This builder for chaining. + */ + public Builder clearOperationalMode() { + bitField0_ = (bitField0_ & ~0x00000008); + operationalMode_ = 0; + onChanged(); + return this; + } + + private java.util.List digitalSubCarriersGroup_ = java.util.Collections.emptyList(); + + private void ensureDigitalSubCarriersGroupIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + digitalSubCarriersGroup_ = new java.util.ArrayList(digitalSubCarriersGroup_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 digitalSubCarriersGroupBuilder_; + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public java.util.List getDigitalSubCarriersGroupList() { + if (digitalSubCarriersGroupBuilder_ == null) { + return java.util.Collections.unmodifiableList(digitalSubCarriersGroup_); + } else { + return digitalSubCarriersGroupBuilder_.getMessageList(); + } + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public int getDigitalSubCarriersGroupCount() { + if (digitalSubCarriersGroupBuilder_ == null) { + return digitalSubCarriersGroup_.size(); + } else { + return digitalSubCarriersGroupBuilder_.getCount(); + } + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public ipowdm.Ipowdm.DigitalSubCarriersGroup getDigitalSubCarriersGroup(int index) { + if (digitalSubCarriersGroupBuilder_ == null) { + return digitalSubCarriersGroup_.get(index); + } else { + return digitalSubCarriersGroupBuilder_.getMessage(index); + } + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder setDigitalSubCarriersGroup(int index, ipowdm.Ipowdm.DigitalSubCarriersGroup value) { + if (digitalSubCarriersGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.set(index, value); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder setDigitalSubCarriersGroup(int index, ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder builderForValue) { + if (digitalSubCarriersGroupBuilder_ == null) { + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.set(index, builderForValue.build()); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder addDigitalSubCarriersGroup(ipowdm.Ipowdm.DigitalSubCarriersGroup value) { + if (digitalSubCarriersGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.add(value); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder addDigitalSubCarriersGroup(int index, ipowdm.Ipowdm.DigitalSubCarriersGroup value) { + if (digitalSubCarriersGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.add(index, value); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder addDigitalSubCarriersGroup(ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder builderForValue) { + if (digitalSubCarriersGroupBuilder_ == null) { + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.add(builderForValue.build()); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder addDigitalSubCarriersGroup(int index, ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder builderForValue) { + if (digitalSubCarriersGroupBuilder_ == null) { + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.add(index, builderForValue.build()); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder addAllDigitalSubCarriersGroup(java.lang.Iterable values) { + if (digitalSubCarriersGroupBuilder_ == null) { + ensureDigitalSubCarriersGroupIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, digitalSubCarriersGroup_); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder clearDigitalSubCarriersGroup() { + if (digitalSubCarriersGroupBuilder_ == null) { + digitalSubCarriersGroup_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.clear(); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder removeDigitalSubCarriersGroup(int index) { + if (digitalSubCarriersGroupBuilder_ == null) { + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.remove(index); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder getDigitalSubCarriersGroupBuilder(int index) { + return getDigitalSubCarriersGroupFieldBuilder().getBuilder(index); + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public ipowdm.Ipowdm.DigitalSubCarriersGroupOrBuilder getDigitalSubCarriersGroupOrBuilder(int index) { + if (digitalSubCarriersGroupBuilder_ == null) { + return digitalSubCarriersGroup_.get(index); + } else { + return digitalSubCarriersGroupBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public java.util.List getDigitalSubCarriersGroupOrBuilderList() { + if (digitalSubCarriersGroupBuilder_ != null) { + return digitalSubCarriersGroupBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(digitalSubCarriersGroup_); + } + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder addDigitalSubCarriersGroupBuilder() { + return getDigitalSubCarriersGroupFieldBuilder().addBuilder(ipowdm.Ipowdm.DigitalSubCarriersGroup.getDefaultInstance()); + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder addDigitalSubCarriersGroupBuilder(int index) { + return getDigitalSubCarriersGroupFieldBuilder().addBuilder(index, ipowdm.Ipowdm.DigitalSubCarriersGroup.getDefaultInstance()); + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public java.util.List getDigitalSubCarriersGroupBuilderList() { + return getDigitalSubCarriersGroupFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getDigitalSubCarriersGroupFieldBuilder() { + if (digitalSubCarriersGroupBuilder_ == null) { + digitalSubCarriersGroupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(digitalSubCarriersGroup_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + digitalSubCarriersGroup_ = null; + } + return digitalSubCarriersGroupBuilder_; + } + + private java.lang.Object operation_ = ""; + + /** + * string operation = 6; + * @return The operation. + */ + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string operation = 6; + * @return The bytes for operation. + */ + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string operation = 6; + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * string operation = 6; + * @return This builder for chaining. + */ + public Builder clearOperation() { + operation_ = getDefaultInstance().getOperation(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * string operation = 6; + * @param value The bytes for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operation_ = value; + bitField0_ |= 0x00000020; + 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:ipowdm.Component) + } + + // @@protoc_insertion_point(class_scope:ipowdm.Component) + private static final ipowdm.Ipowdm.Component DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ipowdm.Ipowdm.Component(); + } + + public static ipowdm.Ipowdm.Component getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public Component parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ipowdm.Ipowdm.Component getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TransceiverOrBuilder extends // @@protoc_insertion_point(interface_extends:ipowdm.Transceiver) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .ipowdm.Component components = 1; + */ + java.util.List getComponentsList(); + + /** + * repeated .ipowdm.Component components = 1; + */ + ipowdm.Ipowdm.Component getComponents(int index); + + /** + * repeated .ipowdm.Component components = 1; + */ + int getComponentsCount(); + + /** + * repeated .ipowdm.Component components = 1; + */ + java.util.List getComponentsOrBuilderList(); + + /** + * repeated .ipowdm.Component components = 1; + */ + ipowdm.Ipowdm.ComponentOrBuilder getComponentsOrBuilder(int index); + } + + /** + * Protobuf type {@code ipowdm.Transceiver} + */ + public static final class Transceiver extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipowdm.Transceiver) + TransceiverOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use Transceiver.newBuilder() to construct. + private Transceiver(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Transceiver() { + components_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Transceiver(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_Transceiver_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_Transceiver_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.Transceiver.class, ipowdm.Ipowdm.Transceiver.Builder.class); + } + + public static final int COMPONENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List components_; + + /** + * repeated .ipowdm.Component components = 1; + */ + @java.lang.Override + public java.util.List getComponentsList() { + return components_; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + @java.lang.Override + public java.util.List getComponentsOrBuilderList() { + return components_; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + @java.lang.Override + public int getComponentsCount() { + return components_.size(); + } + + /** + * repeated .ipowdm.Component components = 1; + */ + @java.lang.Override + public ipowdm.Ipowdm.Component getComponents(int index) { + return components_.get(index); + } + + /** + * repeated .ipowdm.Component components = 1; + */ + @java.lang.Override + public ipowdm.Ipowdm.ComponentOrBuilder getComponentsOrBuilder(int index) { + return components_.get(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 { + for (int i = 0; i < components_.size(); i++) { + output.writeMessage(1, components_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + for (int i = 0; i < components_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, components_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ipowdm.Ipowdm.Transceiver)) { + return super.equals(obj); + } + ipowdm.Ipowdm.Transceiver other = (ipowdm.Ipowdm.Transceiver) obj; + if (!getComponentsList().equals(other.getComponentsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getComponentsCount() > 0) { + hash = (37 * hash) + COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getComponentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.Transceiver 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 ipowdm.Ipowdm.Transceiver parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.Transceiver 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 ipowdm.Ipowdm.Transceiver parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.Transceiver 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(ipowdm.Ipowdm.Transceiver 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; + } + + /** + * Protobuf type {@code ipowdm.Transceiver} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipowdm.Transceiver) + ipowdm.Ipowdm.TransceiverOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_Transceiver_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_Transceiver_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.Transceiver.class, ipowdm.Ipowdm.Transceiver.Builder.class); + } + + // Construct using ipowdm.Ipowdm.Transceiver.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + } else { + components_ = null; + componentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ipowdm.Ipowdm.internal_static_ipowdm_Transceiver_descriptor; + } + + @java.lang.Override + public ipowdm.Ipowdm.Transceiver getDefaultInstanceForType() { + return ipowdm.Ipowdm.Transceiver.getDefaultInstance(); + } + + @java.lang.Override + public ipowdm.Ipowdm.Transceiver build() { + ipowdm.Ipowdm.Transceiver result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ipowdm.Ipowdm.Transceiver buildPartial() { + ipowdm.Ipowdm.Transceiver result = new ipowdm.Ipowdm.Transceiver(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(ipowdm.Ipowdm.Transceiver result) { + if (componentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + components_ = java.util.Collections.unmodifiableList(components_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.components_ = components_; + } else { + result.components_ = componentsBuilder_.build(); + } + } + + private void buildPartial0(ipowdm.Ipowdm.Transceiver result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ipowdm.Ipowdm.Transceiver) { + return mergeFrom((ipowdm.Ipowdm.Transceiver) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ipowdm.Ipowdm.Transceiver other) { + if (other == ipowdm.Ipowdm.Transceiver.getDefaultInstance()) + return this; + if (componentsBuilder_ == null) { + if (!other.components_.isEmpty()) { + if (components_.isEmpty()) { + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureComponentsIsMutable(); + components_.addAll(other.components_); + } + onChanged(); + } + } else { + if (!other.components_.isEmpty()) { + if (componentsBuilder_.isEmpty()) { + componentsBuilder_.dispose(); + componentsBuilder_ = null; + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000001); + componentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getComponentsFieldBuilder() : null; + } else { + componentsBuilder_.addAllMessages(other.components_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + ipowdm.Ipowdm.Component m = input.readMessage(ipowdm.Ipowdm.Component.parser(), extensionRegistry); + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(m); + } else { + componentsBuilder_.addMessage(m); + } + break; + } + // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.util.List components_ = java.util.Collections.emptyList(); + + private void ensureComponentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + components_ = new java.util.ArrayList(components_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 componentsBuilder_; + + /** + * repeated .ipowdm.Component components = 1; + */ + public java.util.List getComponentsList() { + if (componentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(components_); + } else { + return componentsBuilder_.getMessageList(); + } + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public int getComponentsCount() { + if (componentsBuilder_ == null) { + return components_.size(); + } else { + return componentsBuilder_.getCount(); + } + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public ipowdm.Ipowdm.Component getComponents(int index) { + if (componentsBuilder_ == null) { + return components_.get(index); + } else { + return componentsBuilder_.getMessage(index); + } + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder setComponents(int index, ipowdm.Ipowdm.Component value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.set(index, value); + onChanged(); + } else { + componentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder setComponents(int index, ipowdm.Ipowdm.Component.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.set(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder addComponents(ipowdm.Ipowdm.Component value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(value); + onChanged(); + } else { + componentsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder addComponents(int index, ipowdm.Ipowdm.Component value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(index, value); + onChanged(); + } else { + componentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder addComponents(ipowdm.Ipowdm.Component.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder addComponents(int index, ipowdm.Ipowdm.Component.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder addAllComponents(java.lang.Iterable values) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, components_); + onChanged(); + } else { + componentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder clearComponents() { + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + componentsBuilder_.clear(); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder removeComponents(int index) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.remove(index); + onChanged(); + } else { + componentsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public ipowdm.Ipowdm.Component.Builder getComponentsBuilder(int index) { + return getComponentsFieldBuilder().getBuilder(index); + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public ipowdm.Ipowdm.ComponentOrBuilder getComponentsOrBuilder(int index) { + if (componentsBuilder_ == null) { + return components_.get(index); + } else { + return componentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public java.util.List getComponentsOrBuilderList() { + if (componentsBuilder_ != null) { + return componentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(components_); + } + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public ipowdm.Ipowdm.Component.Builder addComponentsBuilder() { + return getComponentsFieldBuilder().addBuilder(ipowdm.Ipowdm.Component.getDefaultInstance()); + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public ipowdm.Ipowdm.Component.Builder addComponentsBuilder(int index) { + return getComponentsFieldBuilder().addBuilder(index, ipowdm.Ipowdm.Component.getDefaultInstance()); + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public java.util.List getComponentsBuilderList() { + return getComponentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getComponentsFieldBuilder() { + if (componentsBuilder_ == null) { + componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(components_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + components_ = null; + } + return componentsBuilder_; + } + + @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:ipowdm.Transceiver) + } + + // @@protoc_insertion_point(class_scope:ipowdm.Transceiver) + private static final ipowdm.Ipowdm.Transceiver DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ipowdm.Ipowdm.Transceiver(); + } + + public static ipowdm.Ipowdm.Transceiver getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public Transceiver parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ipowdm.Ipowdm.Transceiver getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IpowdmRuleSetOrBuilder extends // @@protoc_insertion_point(interface_extends:ipowdm.IpowdmRuleSet) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + java.util.List getSrcList(); + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + ipowdm.Ipowdm.RuleEndpoint getSrc(int index); + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + int getSrcCount(); + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + java.util.List getSrcOrBuilderList(); + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + ipowdm.Ipowdm.RuleEndpointOrBuilder getSrcOrBuilder(int index); + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + java.util.List getDstList(); + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + ipowdm.Ipowdm.RuleEndpoint getDst(int index); + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + int getDstCount(); + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + java.util.List getDstOrBuilderList(); + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + ipowdm.Ipowdm.RuleEndpointOrBuilder getDstOrBuilder(int index); + + /** + * int32 bw = 3; + * @return The bw. + */ + int getBw(); + + /** + * string uuid = 4; + * @return The uuid. + */ + java.lang.String getUuid(); + + /** + * string uuid = 4; + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString getUuidBytes(); + + /** + * .ipowdm.Transceiver transceiver = 5; + * @return Whether the transceiver field is set. + */ + boolean hasTransceiver(); + + /** + * .ipowdm.Transceiver transceiver = 5; + * @return The transceiver. + */ + ipowdm.Ipowdm.Transceiver getTransceiver(); + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + ipowdm.Ipowdm.TransceiverOrBuilder getTransceiverOrBuilder(); + } + + /** + * Protobuf type {@code ipowdm.IpowdmRuleSet} + */ + public static final class IpowdmRuleSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipowdm.IpowdmRuleSet) + IpowdmRuleSetOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use IpowdmRuleSet.newBuilder() to construct. + private IpowdmRuleSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IpowdmRuleSet() { + src_ = java.util.Collections.emptyList(); + dst_ = java.util.Collections.emptyList(); + uuid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IpowdmRuleSet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_IpowdmRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_IpowdmRuleSet_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.IpowdmRuleSet.class, ipowdm.Ipowdm.IpowdmRuleSet.Builder.class); + } + + public static final int SRC_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List src_; + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + @java.lang.Override + public java.util.List getSrcList() { + return src_; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + @java.lang.Override + public java.util.List getSrcOrBuilderList() { + return src_; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + @java.lang.Override + public int getSrcCount() { + return src_.size(); + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpoint getSrc(int index) { + return src_.get(index); + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpointOrBuilder getSrcOrBuilder(int index) { + return src_.get(index); + } + + public static final int DST_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List dst_; + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + @java.lang.Override + public java.util.List getDstList() { + return dst_; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + @java.lang.Override + public java.util.List getDstOrBuilderList() { + return dst_; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + @java.lang.Override + public int getDstCount() { + return dst_.size(); + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpoint getDst(int index) { + return dst_.get(index); + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpointOrBuilder getDstOrBuilder(int index) { + return dst_.get(index); + } + + public static final int BW_FIELD_NUMBER = 3; + + private int bw_ = 0; + + /** + * int32 bw = 3; + * @return The bw. + */ + @java.lang.Override + public int getBw() { + return bw_; + } + + public static final int UUID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * string uuid = 4; + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + 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(); + uuid_ = s; + return s; + } + } + + /** + * string uuid = 4; + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRANSCEIVER_FIELD_NUMBER = 5; + + private ipowdm.Ipowdm.Transceiver transceiver_; + + /** + * .ipowdm.Transceiver transceiver = 5; + * @return Whether the transceiver field is set. + */ + @java.lang.Override + public boolean hasTransceiver() { + return transceiver_ != null; + } + + /** + * .ipowdm.Transceiver transceiver = 5; + * @return The transceiver. + */ + @java.lang.Override + public ipowdm.Ipowdm.Transceiver getTransceiver() { + return transceiver_ == null ? ipowdm.Ipowdm.Transceiver.getDefaultInstance() : transceiver_; + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + @java.lang.Override + public ipowdm.Ipowdm.TransceiverOrBuilder getTransceiverOrBuilder() { + return transceiver_ == null ? ipowdm.Ipowdm.Transceiver.getDefaultInstance() : transceiver_; + } + + 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 < src_.size(); i++) { + output.writeMessage(1, src_.get(i)); + } + for (int i = 0; i < dst_.size(); i++) { + output.writeMessage(2, dst_.get(i)); + } + if (bw_ != 0) { + output.writeInt32(3, bw_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uuid_); + } + if (transceiver_ != null) { + output.writeMessage(5, getTransceiver()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + for (int i = 0; i < src_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, src_.get(i)); + } + for (int i = 0; i < dst_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dst_.get(i)); + } + if (bw_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, bw_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uuid_); + } + if (transceiver_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTransceiver()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ipowdm.Ipowdm.IpowdmRuleSet)) { + return super.equals(obj); + } + ipowdm.Ipowdm.IpowdmRuleSet other = (ipowdm.Ipowdm.IpowdmRuleSet) obj; + if (!getSrcList().equals(other.getSrcList())) + return false; + if (!getDstList().equals(other.getDstList())) + return false; + if (getBw() != other.getBw()) + return false; + if (!getUuid().equals(other.getUuid())) + return false; + if (hasTransceiver() != other.hasTransceiver()) + return false; + if (hasTransceiver()) { + if (!getTransceiver().equals(other.getTransceiver())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSrcCount() > 0) { + hash = (37 * hash) + SRC_FIELD_NUMBER; + hash = (53 * hash) + getSrcList().hashCode(); + } + if (getDstCount() > 0) { + hash = (37 * hash) + DST_FIELD_NUMBER; + hash = (53 * hash) + getDstList().hashCode(); + } + hash = (37 * hash) + BW_FIELD_NUMBER; + hash = (53 * hash) + getBw(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + if (hasTransceiver()) { + hash = (37 * hash) + TRANSCEIVER_FIELD_NUMBER; + hash = (53 * hash) + getTransceiver().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet 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 ipowdm.Ipowdm.IpowdmRuleSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet 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 ipowdm.Ipowdm.IpowdmRuleSet parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet 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(ipowdm.Ipowdm.IpowdmRuleSet 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; + } + + /** + * Protobuf type {@code ipowdm.IpowdmRuleSet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipowdm.IpowdmRuleSet) + ipowdm.Ipowdm.IpowdmRuleSetOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_IpowdmRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_IpowdmRuleSet_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.IpowdmRuleSet.class, ipowdm.Ipowdm.IpowdmRuleSet.Builder.class); + } + + // Construct using ipowdm.Ipowdm.IpowdmRuleSet.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (srcBuilder_ == null) { + src_ = java.util.Collections.emptyList(); + } else { + src_ = null; + srcBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (dstBuilder_ == null) { + dst_ = java.util.Collections.emptyList(); + } else { + dst_ = null; + dstBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + bw_ = 0; + uuid_ = ""; + transceiver_ = null; + if (transceiverBuilder_ != null) { + transceiverBuilder_.dispose(); + transceiverBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ipowdm.Ipowdm.internal_static_ipowdm_IpowdmRuleSet_descriptor; + } + + @java.lang.Override + public ipowdm.Ipowdm.IpowdmRuleSet getDefaultInstanceForType() { + return ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance(); + } + + @java.lang.Override + public ipowdm.Ipowdm.IpowdmRuleSet build() { + ipowdm.Ipowdm.IpowdmRuleSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ipowdm.Ipowdm.IpowdmRuleSet buildPartial() { + ipowdm.Ipowdm.IpowdmRuleSet result = new ipowdm.Ipowdm.IpowdmRuleSet(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(ipowdm.Ipowdm.IpowdmRuleSet result) { + if (srcBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + src_ = java.util.Collections.unmodifiableList(src_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.src_ = src_; + } else { + result.src_ = srcBuilder_.build(); + } + if (dstBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + dst_ = java.util.Collections.unmodifiableList(dst_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dst_ = dst_; + } else { + result.dst_ = dstBuilder_.build(); + } + } + + private void buildPartial0(ipowdm.Ipowdm.IpowdmRuleSet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bw_ = bw_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.uuid_ = uuid_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.transceiver_ = transceiverBuilder_ == null ? transceiver_ : transceiverBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ipowdm.Ipowdm.IpowdmRuleSet) { + return mergeFrom((ipowdm.Ipowdm.IpowdmRuleSet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ipowdm.Ipowdm.IpowdmRuleSet other) { + if (other == ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance()) + return this; + if (srcBuilder_ == null) { + if (!other.src_.isEmpty()) { + if (src_.isEmpty()) { + src_ = other.src_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSrcIsMutable(); + src_.addAll(other.src_); + } + onChanged(); + } + } else { + if (!other.src_.isEmpty()) { + if (srcBuilder_.isEmpty()) { + srcBuilder_.dispose(); + srcBuilder_ = null; + src_ = other.src_; + bitField0_ = (bitField0_ & ~0x00000001); + srcBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSrcFieldBuilder() : null; + } else { + srcBuilder_.addAllMessages(other.src_); + } + } + } + if (dstBuilder_ == null) { + if (!other.dst_.isEmpty()) { + if (dst_.isEmpty()) { + dst_ = other.dst_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDstIsMutable(); + dst_.addAll(other.dst_); + } + onChanged(); + } + } else { + if (!other.dst_.isEmpty()) { + if (dstBuilder_.isEmpty()) { + dstBuilder_.dispose(); + dstBuilder_ = null; + dst_ = other.dst_; + bitField0_ = (bitField0_ & ~0x00000002); + dstBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDstFieldBuilder() : null; + } else { + dstBuilder_.addAllMessages(other.dst_); + } + } + } + if (other.getBw() != 0) { + setBw(other.getBw()); + } + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasTransceiver()) { + mergeTransceiver(other.getTransceiver()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + ipowdm.Ipowdm.RuleEndpoint m = input.readMessage(ipowdm.Ipowdm.RuleEndpoint.parser(), extensionRegistry); + if (srcBuilder_ == null) { + ensureSrcIsMutable(); + src_.add(m); + } else { + srcBuilder_.addMessage(m); + } + break; + } + // case 10 + case 18: + { + ipowdm.Ipowdm.RuleEndpoint m = input.readMessage(ipowdm.Ipowdm.RuleEndpoint.parser(), extensionRegistry); + if (dstBuilder_ == null) { + ensureDstIsMutable(); + dst_.add(m); + } else { + dstBuilder_.addMessage(m); + } + break; + } + // case 18 + case 24: + { + bw_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } + // case 24 + case 34: + { + uuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } + // case 34 + case 42: + { + input.readMessage(getTransceiverFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } + // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.util.List src_ = java.util.Collections.emptyList(); + + private void ensureSrcIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + src_ = new java.util.ArrayList(src_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 srcBuilder_; + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public java.util.List getSrcList() { + if (srcBuilder_ == null) { + return java.util.Collections.unmodifiableList(src_); + } else { + return srcBuilder_.getMessageList(); + } + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public int getSrcCount() { + if (srcBuilder_ == null) { + return src_.size(); + } else { + return srcBuilder_.getCount(); + } + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public ipowdm.Ipowdm.RuleEndpoint getSrc(int index) { + if (srcBuilder_ == null) { + return src_.get(index); + } else { + return srcBuilder_.getMessage(index); + } + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder setSrc(int index, ipowdm.Ipowdm.RuleEndpoint value) { + if (srcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSrcIsMutable(); + src_.set(index, value); + onChanged(); + } else { + srcBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder setSrc(int index, ipowdm.Ipowdm.RuleEndpoint.Builder builderForValue) { + if (srcBuilder_ == null) { + ensureSrcIsMutable(); + src_.set(index, builderForValue.build()); + onChanged(); + } else { + srcBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder addSrc(ipowdm.Ipowdm.RuleEndpoint value) { + if (srcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSrcIsMutable(); + src_.add(value); + onChanged(); + } else { + srcBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder addSrc(int index, ipowdm.Ipowdm.RuleEndpoint value) { + if (srcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSrcIsMutable(); + src_.add(index, value); + onChanged(); + } else { + srcBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder addSrc(ipowdm.Ipowdm.RuleEndpoint.Builder builderForValue) { + if (srcBuilder_ == null) { + ensureSrcIsMutable(); + src_.add(builderForValue.build()); + onChanged(); + } else { + srcBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder addSrc(int index, ipowdm.Ipowdm.RuleEndpoint.Builder builderForValue) { + if (srcBuilder_ == null) { + ensureSrcIsMutable(); + src_.add(index, builderForValue.build()); + onChanged(); + } else { + srcBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder addAllSrc(java.lang.Iterable values) { + if (srcBuilder_ == null) { + ensureSrcIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, src_); + onChanged(); + } else { + srcBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder clearSrc() { + if (srcBuilder_ == null) { + src_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + srcBuilder_.clear(); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder removeSrc(int index) { + if (srcBuilder_ == null) { + ensureSrcIsMutable(); + src_.remove(index); + onChanged(); + } else { + srcBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public ipowdm.Ipowdm.RuleEndpoint.Builder getSrcBuilder(int index) { + return getSrcFieldBuilder().getBuilder(index); + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public ipowdm.Ipowdm.RuleEndpointOrBuilder getSrcOrBuilder(int index) { + if (srcBuilder_ == null) { + return src_.get(index); + } else { + return srcBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public java.util.List getSrcOrBuilderList() { + if (srcBuilder_ != null) { + return srcBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(src_); + } + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public ipowdm.Ipowdm.RuleEndpoint.Builder addSrcBuilder() { + return getSrcFieldBuilder().addBuilder(ipowdm.Ipowdm.RuleEndpoint.getDefaultInstance()); + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public ipowdm.Ipowdm.RuleEndpoint.Builder addSrcBuilder(int index) { + return getSrcFieldBuilder().addBuilder(index, ipowdm.Ipowdm.RuleEndpoint.getDefaultInstance()); + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public java.util.List getSrcBuilderList() { + return getSrcFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getSrcFieldBuilder() { + if (srcBuilder_ == null) { + srcBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(src_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + src_ = null; + } + return srcBuilder_; + } + + private java.util.List dst_ = java.util.Collections.emptyList(); + + private void ensureDstIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + dst_ = new java.util.ArrayList(dst_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 dstBuilder_; + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public java.util.List getDstList() { + if (dstBuilder_ == null) { + return java.util.Collections.unmodifiableList(dst_); + } else { + return dstBuilder_.getMessageList(); + } + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public int getDstCount() { + if (dstBuilder_ == null) { + return dst_.size(); + } else { + return dstBuilder_.getCount(); + } + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public ipowdm.Ipowdm.RuleEndpoint getDst(int index) { + if (dstBuilder_ == null) { + return dst_.get(index); + } else { + return dstBuilder_.getMessage(index); + } + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder setDst(int index, ipowdm.Ipowdm.RuleEndpoint value) { + if (dstBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDstIsMutable(); + dst_.set(index, value); + onChanged(); + } else { + dstBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder setDst(int index, ipowdm.Ipowdm.RuleEndpoint.Builder builderForValue) { + if (dstBuilder_ == null) { + ensureDstIsMutable(); + dst_.set(index, builderForValue.build()); + onChanged(); + } else { + dstBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder addDst(ipowdm.Ipowdm.RuleEndpoint value) { + if (dstBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDstIsMutable(); + dst_.add(value); + onChanged(); + } else { + dstBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder addDst(int index, ipowdm.Ipowdm.RuleEndpoint value) { + if (dstBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDstIsMutable(); + dst_.add(index, value); + onChanged(); + } else { + dstBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder addDst(ipowdm.Ipowdm.RuleEndpoint.Builder builderForValue) { + if (dstBuilder_ == null) { + ensureDstIsMutable(); + dst_.add(builderForValue.build()); + onChanged(); + } else { + dstBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder addDst(int index, ipowdm.Ipowdm.RuleEndpoint.Builder builderForValue) { + if (dstBuilder_ == null) { + ensureDstIsMutable(); + dst_.add(index, builderForValue.build()); + onChanged(); + } else { + dstBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder addAllDst(java.lang.Iterable values) { + if (dstBuilder_ == null) { + ensureDstIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dst_); + onChanged(); + } else { + dstBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder clearDst() { + if (dstBuilder_ == null) { + dst_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dstBuilder_.clear(); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder removeDst(int index) { + if (dstBuilder_ == null) { + ensureDstIsMutable(); + dst_.remove(index); + onChanged(); + } else { + dstBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public ipowdm.Ipowdm.RuleEndpoint.Builder getDstBuilder(int index) { + return getDstFieldBuilder().getBuilder(index); + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public ipowdm.Ipowdm.RuleEndpointOrBuilder getDstOrBuilder(int index) { + if (dstBuilder_ == null) { + return dst_.get(index); + } else { + return dstBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public java.util.List getDstOrBuilderList() { + if (dstBuilder_ != null) { + return dstBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dst_); + } + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public ipowdm.Ipowdm.RuleEndpoint.Builder addDstBuilder() { + return getDstFieldBuilder().addBuilder(ipowdm.Ipowdm.RuleEndpoint.getDefaultInstance()); + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public ipowdm.Ipowdm.RuleEndpoint.Builder addDstBuilder(int index) { + return getDstFieldBuilder().addBuilder(index, ipowdm.Ipowdm.RuleEndpoint.getDefaultInstance()); + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public java.util.List getDstBuilderList() { + return getDstFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getDstFieldBuilder() { + if (dstBuilder_ == null) { + dstBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(dst_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + dst_ = null; + } + return dstBuilder_; + } + + private int bw_; + + /** + * int32 bw = 3; + * @return The bw. + */ + @java.lang.Override + public int getBw() { + return bw_; + } + + /** + * int32 bw = 3; + * @param value The bw to set. + * @return This builder for chaining. + */ + public Builder setBw(int value) { + bw_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * int32 bw = 3; + * @return This builder for chaining. + */ + public Builder clearBw() { + bitField0_ = (bitField0_ & ~0x00000004); + bw_ = 0; + onChanged(); + return this; + } + + private java.lang.Object uuid_ = ""; + + /** + * string uuid = 4; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string uuid = 4; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string uuid = 4; + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uuid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * string uuid = 4; + * @return This builder for chaining. + */ + public Builder clearUuid() { + uuid_ = getDefaultInstance().getUuid(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * string uuid = 4; + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private ipowdm.Ipowdm.Transceiver transceiver_; + + private com.google.protobuf.SingleFieldBuilderV3 transceiverBuilder_; + + /** + * .ipowdm.Transceiver transceiver = 5; + * @return Whether the transceiver field is set. + */ + public boolean hasTransceiver() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * .ipowdm.Transceiver transceiver = 5; + * @return The transceiver. + */ + public ipowdm.Ipowdm.Transceiver getTransceiver() { + if (transceiverBuilder_ == null) { + return transceiver_ == null ? ipowdm.Ipowdm.Transceiver.getDefaultInstance() : transceiver_; + } else { + return transceiverBuilder_.getMessage(); + } + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + public Builder setTransceiver(ipowdm.Ipowdm.Transceiver value) { + if (transceiverBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transceiver_ = value; + } else { + transceiverBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + public Builder setTransceiver(ipowdm.Ipowdm.Transceiver.Builder builderForValue) { + if (transceiverBuilder_ == null) { + transceiver_ = builderForValue.build(); + } else { + transceiverBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + public Builder mergeTransceiver(ipowdm.Ipowdm.Transceiver value) { + if (transceiverBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && transceiver_ != null && transceiver_ != ipowdm.Ipowdm.Transceiver.getDefaultInstance()) { + getTransceiverBuilder().mergeFrom(value); + } else { + transceiver_ = value; + } + } else { + transceiverBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + public Builder clearTransceiver() { + bitField0_ = (bitField0_ & ~0x00000010); + transceiver_ = null; + if (transceiverBuilder_ != null) { + transceiverBuilder_.dispose(); + transceiverBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + public ipowdm.Ipowdm.Transceiver.Builder getTransceiverBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getTransceiverFieldBuilder().getBuilder(); + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + public ipowdm.Ipowdm.TransceiverOrBuilder getTransceiverOrBuilder() { + if (transceiverBuilder_ != null) { + return transceiverBuilder_.getMessageOrBuilder(); + } else { + return transceiver_ == null ? ipowdm.Ipowdm.Transceiver.getDefaultInstance() : transceiver_; + } + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTransceiverFieldBuilder() { + if (transceiverBuilder_ == null) { + transceiverBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getTransceiver(), getParentForChildren(), isClean()); + transceiver_ = null; + } + return transceiverBuilder_; + } + + @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:ipowdm.IpowdmRuleSet) + } + + // @@protoc_insertion_point(class_scope:ipowdm.IpowdmRuleSet) + private static final ipowdm.Ipowdm.IpowdmRuleSet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ipowdm.Ipowdm.IpowdmRuleSet(); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public IpowdmRuleSet parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ipowdm.Ipowdm.IpowdmRuleSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipowdm_RuleEndpoint_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipowdm_RuleEndpoint_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipowdm_DigitalSubCarrierId_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipowdm_DigitalSubCarrierId_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipowdm_DigitalSubCarriersGroup_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipowdm_DigitalSubCarriersGroup_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipowdm_Component_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipowdm_Component_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipowdm_Transceiver_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipowdm_Transceiver_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipowdm_IpowdmRuleSet_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipowdm_IpowdmRuleSet_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\014ipowdm.proto\022\006ipowdm\"R\n\014RuleEndpoint\022\014" + "\n\004uuid\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\017\n\007ip_m" + "ask\030\003 \001(\t\022\017\n\007vlan_id\030\004 \001(\005\"=\n\023DigitalSub" + "CarrierId\022\026\n\016sub_carrier_id\030\001 \001(\005\022\016\n\006act" + "ive\030\002 \001(\t\"}\n\027DigitalSubCarriersGroup\022%\n\035" + "digital_sub_carriers_group_id\030\001 \001(\005\022;\n\026d" + "igital_sub_carrier_id\030\004 \003(\0132\033.ipowdm.Dig" + "italSubCarrierId\"\273\001\n\tComponent\022\014\n\004name\030\001" + " \001(\t\022\021\n\tfrequency\030\002 \001(\002\022\033\n\023target_output" + "_power\030\003 \001(\002\022\030\n\020operational_mode\030\004 \001(\005\022C" + "\n\032digital_sub_carriers_group\030\005 \003(\0132\037.ipo" + "wdm.DigitalSubCarriersGroup\022\021\n\toperation" + "\030\006 \001(\t\"4\n\013Transceiver\022%\n\ncomponents\030\001 \003(" + "\0132\021.ipowdm.Component\"\231\001\n\rIpowdmRuleSet\022!" + "\n\003src\030\001 \003(\0132\024.ipowdm.RuleEndpoint\022!\n\003dst" + "\030\002 \003(\0132\024.ipowdm.RuleEndpoint\022\n\n\002bw\030\003 \001(\005" + "\022\014\n\004uuid\030\004 \001(\t\022(\n\013transceiver\030\005 \001(\0132\023.ip" + "owdm.Transceiverb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_ipowdm_RuleEndpoint_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_ipowdm_RuleEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ipowdm_RuleEndpoint_descriptor, new java.lang.String[] { "Uuid", "IpAddress", "IpMask", "VlanId" }); + internal_static_ipowdm_DigitalSubCarrierId_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_ipowdm_DigitalSubCarrierId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ipowdm_DigitalSubCarrierId_descriptor, new java.lang.String[] { "SubCarrierId", "Active" }); + internal_static_ipowdm_DigitalSubCarriersGroup_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_ipowdm_DigitalSubCarriersGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ipowdm_DigitalSubCarriersGroup_descriptor, new java.lang.String[] { "DigitalSubCarriersGroupId", "DigitalSubCarrierId" }); + internal_static_ipowdm_Component_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_ipowdm_Component_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ipowdm_Component_descriptor, new java.lang.String[] { "Name", "Frequency", "TargetOutputPower", "OperationalMode", "DigitalSubCarriersGroup", "Operation" }); + internal_static_ipowdm_Transceiver_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_ipowdm_Transceiver_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ipowdm_Transceiver_descriptor, new java.lang.String[] { "Components" }); + internal_static_ipowdm_IpowdmRuleSet_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_ipowdm_IpowdmRuleSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ipowdm_IpowdmRuleSet_descriptor, new java.lang.String[] { "Src", "Dst", "Bw", "Uuid", "Transceiver" }); + } + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/policy/target/generated-sources/grpc/tapi_lsp/TapiLsp.java b/src/policy/target/generated-sources/grpc/tapi_lsp/TapiLsp.java new file mode 100644 index 0000000000000000000000000000000000000000..e8f5145bd42a8f2e62e949d0f9762b91b59da360 --- /dev/null +++ b/src/policy/target/generated-sources/grpc/tapi_lsp/TapiLsp.java @@ -0,0 +1,3031 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tapi_lsp.proto +package tapi_lsp; + +public final class TapiLsp { + + private TapiLsp() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface TapiLspRuleSetOrBuilder extends // @@protoc_insertion_point(interface_extends:tapi_lsp.TapiLspRuleSet) + com.google.protobuf.MessageOrBuilder { + + /** + * string input_sip = 1; + * @return The inputSip. + */ + java.lang.String getInputSip(); + + /** + * string input_sip = 1; + * @return The bytes for inputSip. + */ + com.google.protobuf.ByteString getInputSipBytes(); + + /** + * string output_sip = 2; + * @return The outputSip. + */ + java.lang.String getOutputSip(); + + /** + * string output_sip = 2; + * @return The bytes for outputSip. + */ + com.google.protobuf.ByteString getOutputSipBytes(); + + /** + * string uuid = 3; + * @return The uuid. + */ + java.lang.String getUuid(); + + /** + * string uuid = 3; + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString getUuidBytes(); + + /** + * string bw = 4; + * @return The bw. + */ + java.lang.String getBw(); + + /** + * string bw = 4; + * @return The bytes for bw. + */ + com.google.protobuf.ByteString getBwBytes(); + + /** + * string tenant_uuid = 5; + * @return The tenantUuid. + */ + java.lang.String getTenantUuid(); + + /** + * string tenant_uuid = 5; + * @return The bytes for tenantUuid. + */ + com.google.protobuf.ByteString getTenantUuidBytes(); + + /** + * string layer_protocol_name = 6; + * @return The layerProtocolName. + */ + java.lang.String getLayerProtocolName(); + + /** + * string layer_protocol_name = 6; + * @return The bytes for layerProtocolName. + */ + com.google.protobuf.ByteString getLayerProtocolNameBytes(); + + /** + * string layer_protocol_qualifier = 7; + * @return The layerProtocolQualifier. + */ + java.lang.String getLayerProtocolQualifier(); + + /** + * string layer_protocol_qualifier = 7; + * @return The bytes for layerProtocolQualifier. + */ + com.google.protobuf.ByteString getLayerProtocolQualifierBytes(); + + /** + * string lower_frequency_mhz = 8; + * @return The lowerFrequencyMhz. + */ + java.lang.String getLowerFrequencyMhz(); + + /** + * string lower_frequency_mhz = 8; + * @return The bytes for lowerFrequencyMhz. + */ + com.google.protobuf.ByteString getLowerFrequencyMhzBytes(); + + /** + * string upper_frequency_mhz = 9; + * @return The upperFrequencyMhz. + */ + java.lang.String getUpperFrequencyMhz(); + + /** + * string upper_frequency_mhz = 9; + * @return The bytes for upperFrequencyMhz. + */ + com.google.protobuf.ByteString getUpperFrequencyMhzBytes(); + + /** + * repeated string link_uuid_path = 10; + * @return A list containing the linkUuidPath. + */ + java.util.List getLinkUuidPathList(); + + /** + * repeated string link_uuid_path = 10; + * @return The count of linkUuidPath. + */ + int getLinkUuidPathCount(); + + /** + * repeated string link_uuid_path = 10; + * @param index The index of the element to return. + * @return The linkUuidPath at the given index. + */ + java.lang.String getLinkUuidPath(int index); + + /** + * repeated string link_uuid_path = 10; + * @param index The index of the value to return. + * @return The bytes of the linkUuidPath at the given index. + */ + com.google.protobuf.ByteString getLinkUuidPathBytes(int index); + + /** + * string granularity = 11; + * @return The granularity. + */ + java.lang.String getGranularity(); + + /** + * string granularity = 11; + * @return The bytes for granularity. + */ + com.google.protobuf.ByteString getGranularityBytes(); + + /** + * string grid_type = 12; + * @return The gridType. + */ + java.lang.String getGridType(); + + /** + * string grid_type = 12; + * @return The bytes for gridType. + */ + com.google.protobuf.ByteString getGridTypeBytes(); + + /** + * string direction = 13; + * @return The direction. + */ + java.lang.String getDirection(); + + /** + * string direction = 13; + * @return The bytes for direction. + */ + com.google.protobuf.ByteString getDirectionBytes(); + + /** + * string capacity_unit = 14; + * @return The capacityUnit. + */ + java.lang.String getCapacityUnit(); + + /** + * string capacity_unit = 14; + * @return The bytes for capacityUnit. + */ + com.google.protobuf.ByteString getCapacityUnitBytes(); + + /** + * string capacity_value = 15; + * @return The capacityValue. + */ + java.lang.String getCapacityValue(); + + /** + * string capacity_value = 15; + * @return The bytes for capacityValue. + */ + com.google.protobuf.ByteString getCapacityValueBytes(); + + /** + * string route_objective_function = 16; + * @return The routeObjectiveFunction. + */ + java.lang.String getRouteObjectiveFunction(); + + /** + * string route_objective_function = 16; + * @return The bytes for routeObjectiveFunction. + */ + com.google.protobuf.ByteString getRouteObjectiveFunctionBytes(); + + /** + * string url = 17; + * @return The url. + */ + java.lang.String getUrl(); + + /** + * string url = 17; + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); + } + + /** + * Protobuf type {@code tapi_lsp.TapiLspRuleSet} + */ + public static final class TapiLspRuleSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tapi_lsp.TapiLspRuleSet) + TapiLspRuleSetOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use TapiLspRuleSet.newBuilder() to construct. + private TapiLspRuleSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TapiLspRuleSet() { + inputSip_ = ""; + outputSip_ = ""; + uuid_ = ""; + bw_ = ""; + tenantUuid_ = ""; + layerProtocolName_ = ""; + layerProtocolQualifier_ = ""; + lowerFrequencyMhz_ = ""; + upperFrequencyMhz_ = ""; + linkUuidPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + granularity_ = ""; + gridType_ = ""; + direction_ = ""; + capacityUnit_ = ""; + capacityValue_ = ""; + routeObjectiveFunction_ = ""; + url_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TapiLspRuleSet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return tapi_lsp.TapiLsp.internal_static_tapi_lsp_TapiLspRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return tapi_lsp.TapiLsp.internal_static_tapi_lsp_TapiLspRuleSet_fieldAccessorTable.ensureFieldAccessorsInitialized(tapi_lsp.TapiLsp.TapiLspRuleSet.class, tapi_lsp.TapiLsp.TapiLspRuleSet.Builder.class); + } + + public static final int INPUT_SIP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputSip_ = ""; + + /** + * string input_sip = 1; + * @return The inputSip. + */ + @java.lang.Override + public java.lang.String getInputSip() { + java.lang.Object ref = inputSip_; + 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(); + inputSip_ = s; + return s; + } + } + + /** + * string input_sip = 1; + * @return The bytes for inputSip. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInputSipBytes() { + java.lang.Object ref = inputSip_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputSip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_SIP_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputSip_ = ""; + + /** + * string output_sip = 2; + * @return The outputSip. + */ + @java.lang.Override + public java.lang.String getOutputSip() { + java.lang.Object ref = outputSip_; + 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(); + outputSip_ = s; + return s; + } + } + + /** + * string output_sip = 2; + * @return The bytes for outputSip. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputSipBytes() { + java.lang.Object ref = outputSip_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputSip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UUID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * string uuid = 3; + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + 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(); + uuid_ = s; + return s; + } + } + + /** + * string uuid = 3; + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BW_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object bw_ = ""; + + /** + * string bw = 4; + * @return The bw. + */ + @java.lang.Override + public java.lang.String getBw() { + java.lang.Object ref = bw_; + 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(); + bw_ = s; + return s; + } + } + + /** + * string bw = 4; + * @return The bytes for bw. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBwBytes() { + java.lang.Object ref = bw_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bw_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_UUID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object tenantUuid_ = ""; + + /** + * string tenant_uuid = 5; + * @return The tenantUuid. + */ + @java.lang.Override + public java.lang.String getTenantUuid() { + java.lang.Object ref = tenantUuid_; + 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(); + tenantUuid_ = s; + return s; + } + } + + /** + * string tenant_uuid = 5; + * @return The bytes for tenantUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTenantUuidBytes() { + java.lang.Object ref = tenantUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAYER_PROTOCOL_NAME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object layerProtocolName_ = ""; + + /** + * string layer_protocol_name = 6; + * @return The layerProtocolName. + */ + @java.lang.Override + public java.lang.String getLayerProtocolName() { + java.lang.Object ref = layerProtocolName_; + 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(); + layerProtocolName_ = s; + return s; + } + } + + /** + * string layer_protocol_name = 6; + * @return The bytes for layerProtocolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLayerProtocolNameBytes() { + java.lang.Object ref = layerProtocolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + layerProtocolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAYER_PROTOCOL_QUALIFIER_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object layerProtocolQualifier_ = ""; + + /** + * string layer_protocol_qualifier = 7; + * @return The layerProtocolQualifier. + */ + @java.lang.Override + public java.lang.String getLayerProtocolQualifier() { + java.lang.Object ref = layerProtocolQualifier_; + 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(); + layerProtocolQualifier_ = s; + return s; + } + } + + /** + * string layer_protocol_qualifier = 7; + * @return The bytes for layerProtocolQualifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLayerProtocolQualifierBytes() { + java.lang.Object ref = layerProtocolQualifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + layerProtocolQualifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOWER_FREQUENCY_MHZ_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object lowerFrequencyMhz_ = ""; + + /** + * string lower_frequency_mhz = 8; + * @return The lowerFrequencyMhz. + */ + @java.lang.Override + public java.lang.String getLowerFrequencyMhz() { + java.lang.Object ref = lowerFrequencyMhz_; + 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(); + lowerFrequencyMhz_ = s; + return s; + } + } + + /** + * string lower_frequency_mhz = 8; + * @return The bytes for lowerFrequencyMhz. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLowerFrequencyMhzBytes() { + java.lang.Object ref = lowerFrequencyMhz_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lowerFrequencyMhz_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPPER_FREQUENCY_MHZ_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object upperFrequencyMhz_ = ""; + + /** + * string upper_frequency_mhz = 9; + * @return The upperFrequencyMhz. + */ + @java.lang.Override + public java.lang.String getUpperFrequencyMhz() { + java.lang.Object ref = upperFrequencyMhz_; + 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(); + upperFrequencyMhz_ = s; + return s; + } + } + + /** + * string upper_frequency_mhz = 9; + * @return The bytes for upperFrequencyMhz. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUpperFrequencyMhzBytes() { + java.lang.Object ref = upperFrequencyMhz_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + upperFrequencyMhz_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINK_UUID_PATH_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList linkUuidPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * repeated string link_uuid_path = 10; + * @return A list containing the linkUuidPath. + */ + public com.google.protobuf.ProtocolStringList getLinkUuidPathList() { + return linkUuidPath_; + } + + /** + * repeated string link_uuid_path = 10; + * @return The count of linkUuidPath. + */ + public int getLinkUuidPathCount() { + return linkUuidPath_.size(); + } + + /** + * repeated string link_uuid_path = 10; + * @param index The index of the element to return. + * @return The linkUuidPath at the given index. + */ + public java.lang.String getLinkUuidPath(int index) { + return linkUuidPath_.get(index); + } + + /** + * repeated string link_uuid_path = 10; + * @param index The index of the value to return. + * @return The bytes of the linkUuidPath at the given index. + */ + public com.google.protobuf.ByteString getLinkUuidPathBytes(int index) { + return linkUuidPath_.getByteString(index); + } + + public static final int GRANULARITY_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object granularity_ = ""; + + /** + * string granularity = 11; + * @return The granularity. + */ + @java.lang.Override + public java.lang.String getGranularity() { + java.lang.Object ref = granularity_; + 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(); + granularity_ = s; + return s; + } + } + + /** + * string granularity = 11; + * @return The bytes for granularity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGranularityBytes() { + java.lang.Object ref = granularity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + granularity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GRID_TYPE_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object gridType_ = ""; + + /** + * string grid_type = 12; + * @return The gridType. + */ + @java.lang.Override + public java.lang.String getGridType() { + java.lang.Object ref = gridType_; + 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(); + gridType_ = s; + return s; + } + } + + /** + * string grid_type = 12; + * @return The bytes for gridType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGridTypeBytes() { + java.lang.Object ref = gridType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gridType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIRECTION_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object direction_ = ""; + + /** + * string direction = 13; + * @return The direction. + */ + @java.lang.Override + public java.lang.String getDirection() { + java.lang.Object ref = direction_; + 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(); + direction_ = s; + return s; + } + } + + /** + * string direction = 13; + * @return The bytes for direction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDirectionBytes() { + java.lang.Object ref = direction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + direction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAPACITY_UNIT_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object capacityUnit_ = ""; + + /** + * string capacity_unit = 14; + * @return The capacityUnit. + */ + @java.lang.Override + public java.lang.String getCapacityUnit() { + java.lang.Object ref = capacityUnit_; + 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(); + capacityUnit_ = s; + return s; + } + } + + /** + * string capacity_unit = 14; + * @return The bytes for capacityUnit. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCapacityUnitBytes() { + java.lang.Object ref = capacityUnit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + capacityUnit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAPACITY_VALUE_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object capacityValue_ = ""; + + /** + * string capacity_value = 15; + * @return The capacityValue. + */ + @java.lang.Override + public java.lang.String getCapacityValue() { + java.lang.Object ref = capacityValue_; + 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(); + capacityValue_ = s; + return s; + } + } + + /** + * string capacity_value = 15; + * @return The bytes for capacityValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCapacityValueBytes() { + java.lang.Object ref = capacityValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + capacityValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROUTE_OBJECTIVE_FUNCTION_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object routeObjectiveFunction_ = ""; + + /** + * string route_objective_function = 16; + * @return The routeObjectiveFunction. + */ + @java.lang.Override + public java.lang.String getRouteObjectiveFunction() { + java.lang.Object ref = routeObjectiveFunction_; + 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(); + routeObjectiveFunction_ = s; + return s; + } + } + + /** + * string route_objective_function = 16; + * @return The bytes for routeObjectiveFunction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouteObjectiveFunctionBytes() { + java.lang.Object ref = routeObjectiveFunction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeObjectiveFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + + /** + * string url = 17; + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + 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(); + url_ = s; + return s; + } + } + + /** + * string url = 17; + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = 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(inputSip_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputSip_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputSip_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputSip_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bw_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bw_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantUuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tenantUuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(layerProtocolName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, layerProtocolName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(layerProtocolQualifier_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, layerProtocolQualifier_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lowerFrequencyMhz_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, lowerFrequencyMhz_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upperFrequencyMhz_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, upperFrequencyMhz_); + } + for (int i = 0; i < linkUuidPath_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, linkUuidPath_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granularity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, granularity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gridType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, gridType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(direction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, direction_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(capacityUnit_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, capacityUnit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(capacityValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, capacityValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeObjectiveFunction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, routeObjectiveFunction_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, url_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputSip_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputSip_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputSip_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputSip_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bw_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, bw_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantUuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tenantUuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(layerProtocolName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, layerProtocolName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(layerProtocolQualifier_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, layerProtocolQualifier_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lowerFrequencyMhz_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, lowerFrequencyMhz_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upperFrequencyMhz_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, upperFrequencyMhz_); + } + { + int dataSize = 0; + for (int i = 0; i < linkUuidPath_.size(); i++) { + dataSize += computeStringSizeNoTag(linkUuidPath_.getRaw(i)); + } + size += dataSize; + size += 1 * getLinkUuidPathList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granularity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, granularity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gridType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, gridType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(direction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, direction_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(capacityUnit_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, capacityUnit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(capacityValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, capacityValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeObjectiveFunction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, routeObjectiveFunction_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, url_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof tapi_lsp.TapiLsp.TapiLspRuleSet)) { + return super.equals(obj); + } + tapi_lsp.TapiLsp.TapiLspRuleSet other = (tapi_lsp.TapiLsp.TapiLspRuleSet) obj; + if (!getInputSip().equals(other.getInputSip())) + return false; + if (!getOutputSip().equals(other.getOutputSip())) + return false; + if (!getUuid().equals(other.getUuid())) + return false; + if (!getBw().equals(other.getBw())) + return false; + if (!getTenantUuid().equals(other.getTenantUuid())) + return false; + if (!getLayerProtocolName().equals(other.getLayerProtocolName())) + return false; + if (!getLayerProtocolQualifier().equals(other.getLayerProtocolQualifier())) + return false; + if (!getLowerFrequencyMhz().equals(other.getLowerFrequencyMhz())) + return false; + if (!getUpperFrequencyMhz().equals(other.getUpperFrequencyMhz())) + return false; + if (!getLinkUuidPathList().equals(other.getLinkUuidPathList())) + return false; + if (!getGranularity().equals(other.getGranularity())) + return false; + if (!getGridType().equals(other.getGridType())) + return false; + if (!getDirection().equals(other.getDirection())) + return false; + if (!getCapacityUnit().equals(other.getCapacityUnit())) + return false; + if (!getCapacityValue().equals(other.getCapacityValue())) + return false; + if (!getRouteObjectiveFunction().equals(other.getRouteObjectiveFunction())) + return false; + if (!getUrl().equals(other.getUrl())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + INPUT_SIP_FIELD_NUMBER; + hash = (53 * hash) + getInputSip().hashCode(); + hash = (37 * hash) + OUTPUT_SIP_FIELD_NUMBER; + hash = (53 * hash) + getOutputSip().hashCode(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + hash = (37 * hash) + BW_FIELD_NUMBER; + hash = (53 * hash) + getBw().hashCode(); + hash = (37 * hash) + TENANT_UUID_FIELD_NUMBER; + hash = (53 * hash) + getTenantUuid().hashCode(); + hash = (37 * hash) + LAYER_PROTOCOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLayerProtocolName().hashCode(); + hash = (37 * hash) + LAYER_PROTOCOL_QUALIFIER_FIELD_NUMBER; + hash = (53 * hash) + getLayerProtocolQualifier().hashCode(); + hash = (37 * hash) + LOWER_FREQUENCY_MHZ_FIELD_NUMBER; + hash = (53 * hash) + getLowerFrequencyMhz().hashCode(); + hash = (37 * hash) + UPPER_FREQUENCY_MHZ_FIELD_NUMBER; + hash = (53 * hash) + getUpperFrequencyMhz().hashCode(); + if (getLinkUuidPathCount() > 0) { + hash = (37 * hash) + LINK_UUID_PATH_FIELD_NUMBER; + hash = (53 * hash) + getLinkUuidPathList().hashCode(); + } + hash = (37 * hash) + GRANULARITY_FIELD_NUMBER; + hash = (53 * hash) + getGranularity().hashCode(); + hash = (37 * hash) + GRID_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getGridType().hashCode(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + getDirection().hashCode(); + hash = (37 * hash) + CAPACITY_UNIT_FIELD_NUMBER; + hash = (53 * hash) + getCapacityUnit().hashCode(); + hash = (37 * hash) + CAPACITY_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getCapacityValue().hashCode(); + hash = (37 * hash) + ROUTE_OBJECTIVE_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getRouteObjectiveFunction().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet 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 tapi_lsp.TapiLsp.TapiLspRuleSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet 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 tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet 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(tapi_lsp.TapiLsp.TapiLspRuleSet 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; + } + + /** + * Protobuf type {@code tapi_lsp.TapiLspRuleSet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tapi_lsp.TapiLspRuleSet) + tapi_lsp.TapiLsp.TapiLspRuleSetOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return tapi_lsp.TapiLsp.internal_static_tapi_lsp_TapiLspRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return tapi_lsp.TapiLsp.internal_static_tapi_lsp_TapiLspRuleSet_fieldAccessorTable.ensureFieldAccessorsInitialized(tapi_lsp.TapiLsp.TapiLspRuleSet.class, tapi_lsp.TapiLsp.TapiLspRuleSet.Builder.class); + } + + // Construct using tapi_lsp.TapiLsp.TapiLspRuleSet.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputSip_ = ""; + outputSip_ = ""; + uuid_ = ""; + bw_ = ""; + tenantUuid_ = ""; + layerProtocolName_ = ""; + layerProtocolQualifier_ = ""; + lowerFrequencyMhz_ = ""; + upperFrequencyMhz_ = ""; + linkUuidPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + granularity_ = ""; + gridType_ = ""; + direction_ = ""; + capacityUnit_ = ""; + capacityValue_ = ""; + routeObjectiveFunction_ = ""; + url_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return tapi_lsp.TapiLsp.internal_static_tapi_lsp_TapiLspRuleSet_descriptor; + } + + @java.lang.Override + public tapi_lsp.TapiLsp.TapiLspRuleSet getDefaultInstanceForType() { + return tapi_lsp.TapiLsp.TapiLspRuleSet.getDefaultInstance(); + } + + @java.lang.Override + public tapi_lsp.TapiLsp.TapiLspRuleSet build() { + tapi_lsp.TapiLsp.TapiLspRuleSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public tapi_lsp.TapiLsp.TapiLspRuleSet buildPartial() { + tapi_lsp.TapiLsp.TapiLspRuleSet result = new tapi_lsp.TapiLsp.TapiLspRuleSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(tapi_lsp.TapiLsp.TapiLspRuleSet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputSip_ = inputSip_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputSip_ = outputSip_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uuid_ = uuid_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.bw_ = bw_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tenantUuid_ = tenantUuid_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.layerProtocolName_ = layerProtocolName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.layerProtocolQualifier_ = layerProtocolQualifier_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.lowerFrequencyMhz_ = lowerFrequencyMhz_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.upperFrequencyMhz_ = upperFrequencyMhz_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + linkUuidPath_.makeImmutable(); + result.linkUuidPath_ = linkUuidPath_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.granularity_ = granularity_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.gridType_ = gridType_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.direction_ = direction_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.capacityUnit_ = capacityUnit_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.capacityValue_ = capacityValue_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.routeObjectiveFunction_ = routeObjectiveFunction_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.url_ = url_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof tapi_lsp.TapiLsp.TapiLspRuleSet) { + return mergeFrom((tapi_lsp.TapiLsp.TapiLspRuleSet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(tapi_lsp.TapiLsp.TapiLspRuleSet other) { + if (other == tapi_lsp.TapiLsp.TapiLspRuleSet.getDefaultInstance()) + return this; + if (!other.getInputSip().isEmpty()) { + inputSip_ = other.inputSip_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOutputSip().isEmpty()) { + outputSip_ = other.outputSip_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getBw().isEmpty()) { + bw_ = other.bw_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTenantUuid().isEmpty()) { + tenantUuid_ = other.tenantUuid_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getLayerProtocolName().isEmpty()) { + layerProtocolName_ = other.layerProtocolName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getLayerProtocolQualifier().isEmpty()) { + layerProtocolQualifier_ = other.layerProtocolQualifier_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getLowerFrequencyMhz().isEmpty()) { + lowerFrequencyMhz_ = other.lowerFrequencyMhz_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getUpperFrequencyMhz().isEmpty()) { + upperFrequencyMhz_ = other.upperFrequencyMhz_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.linkUuidPath_.isEmpty()) { + if (linkUuidPath_.isEmpty()) { + linkUuidPath_ = other.linkUuidPath_; + bitField0_ |= 0x00000200; + } else { + ensureLinkUuidPathIsMutable(); + linkUuidPath_.addAll(other.linkUuidPath_); + } + onChanged(); + } + if (!other.getGranularity().isEmpty()) { + granularity_ = other.granularity_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getGridType().isEmpty()) { + gridType_ = other.gridType_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getDirection().isEmpty()) { + direction_ = other.direction_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (!other.getCapacityUnit().isEmpty()) { + capacityUnit_ = other.capacityUnit_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (!other.getCapacityValue().isEmpty()) { + capacityValue_ = other.capacityValue_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (!other.getRouteObjectiveFunction().isEmpty()) { + routeObjectiveFunction_ = other.routeObjectiveFunction_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00010000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + inputSip_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 18: + { + outputSip_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } + // case 18 + case 26: + { + uuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } + // case 26 + case 34: + { + bw_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } + // case 34 + case 42: + { + tenantUuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } + // case 42 + case 50: + { + layerProtocolName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } + // case 50 + case 58: + { + layerProtocolQualifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } + // case 58 + case 66: + { + lowerFrequencyMhz_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } + // case 66 + case 74: + { + upperFrequencyMhz_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } + // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLinkUuidPathIsMutable(); + linkUuidPath_.add(s); + break; + } + // case 82 + case 90: + { + granularity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } + // case 90 + case 98: + { + gridType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } + // case 98 + case 106: + { + direction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } + // case 106 + case 114: + { + capacityUnit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } + // case 114 + case 122: + { + capacityValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } + // case 122 + case 130: + { + routeObjectiveFunction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } + // case 130 + case 138: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } + // case 138 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.lang.Object inputSip_ = ""; + + /** + * string input_sip = 1; + * @return The inputSip. + */ + public java.lang.String getInputSip() { + java.lang.Object ref = inputSip_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputSip_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string input_sip = 1; + * @return The bytes for inputSip. + */ + public com.google.protobuf.ByteString getInputSipBytes() { + java.lang.Object ref = inputSip_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputSip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string input_sip = 1; + * @param value The inputSip to set. + * @return This builder for chaining. + */ + public Builder setInputSip(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputSip_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string input_sip = 1; + * @return This builder for chaining. + */ + public Builder clearInputSip() { + inputSip_ = getDefaultInstance().getInputSip(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string input_sip = 1; + * @param value The bytes for inputSip to set. + * @return This builder for chaining. + */ + public Builder setInputSipBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputSip_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object outputSip_ = ""; + + /** + * string output_sip = 2; + * @return The outputSip. + */ + public java.lang.String getOutputSip() { + java.lang.Object ref = outputSip_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputSip_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string output_sip = 2; + * @return The bytes for outputSip. + */ + public com.google.protobuf.ByteString getOutputSipBytes() { + java.lang.Object ref = outputSip_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputSip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string output_sip = 2; + * @param value The outputSip to set. + * @return This builder for chaining. + */ + public Builder setOutputSip(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputSip_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string output_sip = 2; + * @return This builder for chaining. + */ + public Builder clearOutputSip() { + outputSip_ = getDefaultInstance().getOutputSip(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string output_sip = 2; + * @param value The bytes for outputSip to set. + * @return This builder for chaining. + */ + public Builder setOutputSipBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputSip_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object uuid_ = ""; + + /** + * string uuid = 3; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string uuid = 3; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string uuid = 3; + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uuid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * string uuid = 3; + * @return This builder for chaining. + */ + public Builder clearUuid() { + uuid_ = getDefaultInstance().getUuid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * string uuid = 3; + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object bw_ = ""; + + /** + * string bw = 4; + * @return The bw. + */ + public java.lang.String getBw() { + java.lang.Object ref = bw_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bw_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string bw = 4; + * @return The bytes for bw. + */ + public com.google.protobuf.ByteString getBwBytes() { + java.lang.Object ref = bw_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bw_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string bw = 4; + * @param value The bw to set. + * @return This builder for chaining. + */ + public Builder setBw(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bw_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * string bw = 4; + * @return This builder for chaining. + */ + public Builder clearBw() { + bw_ = getDefaultInstance().getBw(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * string bw = 4; + * @param value The bytes for bw to set. + * @return This builder for chaining. + */ + public Builder setBwBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bw_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object tenantUuid_ = ""; + + /** + * string tenant_uuid = 5; + * @return The tenantUuid. + */ + public java.lang.String getTenantUuid() { + java.lang.Object ref = tenantUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenantUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string tenant_uuid = 5; + * @return The bytes for tenantUuid. + */ + public com.google.protobuf.ByteString getTenantUuidBytes() { + java.lang.Object ref = tenantUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string tenant_uuid = 5; + * @param value The tenantUuid to set. + * @return This builder for chaining. + */ + public Builder setTenantUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tenantUuid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * string tenant_uuid = 5; + * @return This builder for chaining. + */ + public Builder clearTenantUuid() { + tenantUuid_ = getDefaultInstance().getTenantUuid(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * string tenant_uuid = 5; + * @param value The bytes for tenantUuid to set. + * @return This builder for chaining. + */ + public Builder setTenantUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tenantUuid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object layerProtocolName_ = ""; + + /** + * string layer_protocol_name = 6; + * @return The layerProtocolName. + */ + public java.lang.String getLayerProtocolName() { + java.lang.Object ref = layerProtocolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + layerProtocolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string layer_protocol_name = 6; + * @return The bytes for layerProtocolName. + */ + public com.google.protobuf.ByteString getLayerProtocolNameBytes() { + java.lang.Object ref = layerProtocolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + layerProtocolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string layer_protocol_name = 6; + * @param value The layerProtocolName to set. + * @return This builder for chaining. + */ + public Builder setLayerProtocolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + layerProtocolName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * string layer_protocol_name = 6; + * @return This builder for chaining. + */ + public Builder clearLayerProtocolName() { + layerProtocolName_ = getDefaultInstance().getLayerProtocolName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * string layer_protocol_name = 6; + * @param value The bytes for layerProtocolName to set. + * @return This builder for chaining. + */ + public Builder setLayerProtocolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + layerProtocolName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object layerProtocolQualifier_ = ""; + + /** + * string layer_protocol_qualifier = 7; + * @return The layerProtocolQualifier. + */ + public java.lang.String getLayerProtocolQualifier() { + java.lang.Object ref = layerProtocolQualifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + layerProtocolQualifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string layer_protocol_qualifier = 7; + * @return The bytes for layerProtocolQualifier. + */ + public com.google.protobuf.ByteString getLayerProtocolQualifierBytes() { + java.lang.Object ref = layerProtocolQualifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + layerProtocolQualifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string layer_protocol_qualifier = 7; + * @param value The layerProtocolQualifier to set. + * @return This builder for chaining. + */ + public Builder setLayerProtocolQualifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + layerProtocolQualifier_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * string layer_protocol_qualifier = 7; + * @return This builder for chaining. + */ + public Builder clearLayerProtocolQualifier() { + layerProtocolQualifier_ = getDefaultInstance().getLayerProtocolQualifier(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * string layer_protocol_qualifier = 7; + * @param value The bytes for layerProtocolQualifier to set. + * @return This builder for chaining. + */ + public Builder setLayerProtocolQualifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + layerProtocolQualifier_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object lowerFrequencyMhz_ = ""; + + /** + * string lower_frequency_mhz = 8; + * @return The lowerFrequencyMhz. + */ + public java.lang.String getLowerFrequencyMhz() { + java.lang.Object ref = lowerFrequencyMhz_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lowerFrequencyMhz_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string lower_frequency_mhz = 8; + * @return The bytes for lowerFrequencyMhz. + */ + public com.google.protobuf.ByteString getLowerFrequencyMhzBytes() { + java.lang.Object ref = lowerFrequencyMhz_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lowerFrequencyMhz_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string lower_frequency_mhz = 8; + * @param value The lowerFrequencyMhz to set. + * @return This builder for chaining. + */ + public Builder setLowerFrequencyMhz(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + lowerFrequencyMhz_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * string lower_frequency_mhz = 8; + * @return This builder for chaining. + */ + public Builder clearLowerFrequencyMhz() { + lowerFrequencyMhz_ = getDefaultInstance().getLowerFrequencyMhz(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * string lower_frequency_mhz = 8; + * @param value The bytes for lowerFrequencyMhz to set. + * @return This builder for chaining. + */ + public Builder setLowerFrequencyMhzBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lowerFrequencyMhz_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object upperFrequencyMhz_ = ""; + + /** + * string upper_frequency_mhz = 9; + * @return The upperFrequencyMhz. + */ + public java.lang.String getUpperFrequencyMhz() { + java.lang.Object ref = upperFrequencyMhz_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + upperFrequencyMhz_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string upper_frequency_mhz = 9; + * @return The bytes for upperFrequencyMhz. + */ + public com.google.protobuf.ByteString getUpperFrequencyMhzBytes() { + java.lang.Object ref = upperFrequencyMhz_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + upperFrequencyMhz_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string upper_frequency_mhz = 9; + * @param value The upperFrequencyMhz to set. + * @return This builder for chaining. + */ + public Builder setUpperFrequencyMhz(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + upperFrequencyMhz_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * string upper_frequency_mhz = 9; + * @return This builder for chaining. + */ + public Builder clearUpperFrequencyMhz() { + upperFrequencyMhz_ = getDefaultInstance().getUpperFrequencyMhz(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * string upper_frequency_mhz = 9; + * @param value The bytes for upperFrequencyMhz to set. + * @return This builder for chaining. + */ + public Builder setUpperFrequencyMhzBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + upperFrequencyMhz_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList linkUuidPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureLinkUuidPathIsMutable() { + if (!linkUuidPath_.isModifiable()) { + linkUuidPath_ = new com.google.protobuf.LazyStringArrayList(linkUuidPath_); + } + bitField0_ |= 0x00000200; + } + + /** + * repeated string link_uuid_path = 10; + * @return A list containing the linkUuidPath. + */ + public com.google.protobuf.ProtocolStringList getLinkUuidPathList() { + linkUuidPath_.makeImmutable(); + return linkUuidPath_; + } + + /** + * repeated string link_uuid_path = 10; + * @return The count of linkUuidPath. + */ + public int getLinkUuidPathCount() { + return linkUuidPath_.size(); + } + + /** + * repeated string link_uuid_path = 10; + * @param index The index of the element to return. + * @return The linkUuidPath at the given index. + */ + public java.lang.String getLinkUuidPath(int index) { + return linkUuidPath_.get(index); + } + + /** + * repeated string link_uuid_path = 10; + * @param index The index of the value to return. + * @return The bytes of the linkUuidPath at the given index. + */ + public com.google.protobuf.ByteString getLinkUuidPathBytes(int index) { + return linkUuidPath_.getByteString(index); + } + + /** + * repeated string link_uuid_path = 10; + * @param index The index to set the value at. + * @param value The linkUuidPath to set. + * @return This builder for chaining. + */ + public Builder setLinkUuidPath(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkUuidPathIsMutable(); + linkUuidPath_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * repeated string link_uuid_path = 10; + * @param value The linkUuidPath to add. + * @return This builder for chaining. + */ + public Builder addLinkUuidPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkUuidPathIsMutable(); + linkUuidPath_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * repeated string link_uuid_path = 10; + * @param values The linkUuidPath to add. + * @return This builder for chaining. + */ + public Builder addAllLinkUuidPath(java.lang.Iterable values) { + ensureLinkUuidPathIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkUuidPath_); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * repeated string link_uuid_path = 10; + * @return This builder for chaining. + */ + public Builder clearLinkUuidPath() { + linkUuidPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; + onChanged(); + return this; + } + + /** + * repeated string link_uuid_path = 10; + * @param value The bytes of the linkUuidPath to add. + * @return This builder for chaining. + */ + public Builder addLinkUuidPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLinkUuidPathIsMutable(); + linkUuidPath_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object granularity_ = ""; + + /** + * string granularity = 11; + * @return The granularity. + */ + public java.lang.String getGranularity() { + java.lang.Object ref = granularity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + granularity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string granularity = 11; + * @return The bytes for granularity. + */ + public com.google.protobuf.ByteString getGranularityBytes() { + java.lang.Object ref = granularity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + granularity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string granularity = 11; + * @param value The granularity to set. + * @return This builder for chaining. + */ + public Builder setGranularity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + granularity_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * string granularity = 11; + * @return This builder for chaining. + */ + public Builder clearGranularity() { + granularity_ = getDefaultInstance().getGranularity(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * string granularity = 11; + * @param value The bytes for granularity to set. + * @return This builder for chaining. + */ + public Builder setGranularityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + granularity_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object gridType_ = ""; + + /** + * string grid_type = 12; + * @return The gridType. + */ + public java.lang.String getGridType() { + java.lang.Object ref = gridType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gridType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string grid_type = 12; + * @return The bytes for gridType. + */ + public com.google.protobuf.ByteString getGridTypeBytes() { + java.lang.Object ref = gridType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gridType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string grid_type = 12; + * @param value The gridType to set. + * @return This builder for chaining. + */ + public Builder setGridType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gridType_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * string grid_type = 12; + * @return This builder for chaining. + */ + public Builder clearGridType() { + gridType_ = getDefaultInstance().getGridType(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * string grid_type = 12; + * @param value The bytes for gridType to set. + * @return This builder for chaining. + */ + public Builder setGridTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gridType_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object direction_ = ""; + + /** + * string direction = 13; + * @return The direction. + */ + public java.lang.String getDirection() { + java.lang.Object ref = direction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + direction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string direction = 13; + * @return The bytes for direction. + */ + public com.google.protobuf.ByteString getDirectionBytes() { + java.lang.Object ref = direction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + direction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string direction = 13; + * @param value The direction to set. + * @return This builder for chaining. + */ + public Builder setDirection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + direction_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * string direction = 13; + * @return This builder for chaining. + */ + public Builder clearDirection() { + direction_ = getDefaultInstance().getDirection(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * string direction = 13; + * @param value The bytes for direction to set. + * @return This builder for chaining. + */ + public Builder setDirectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + direction_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object capacityUnit_ = ""; + + /** + * string capacity_unit = 14; + * @return The capacityUnit. + */ + public java.lang.String getCapacityUnit() { + java.lang.Object ref = capacityUnit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + capacityUnit_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string capacity_unit = 14; + * @return The bytes for capacityUnit. + */ + public com.google.protobuf.ByteString getCapacityUnitBytes() { + java.lang.Object ref = capacityUnit_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + capacityUnit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string capacity_unit = 14; + * @param value The capacityUnit to set. + * @return This builder for chaining. + */ + public Builder setCapacityUnit(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + capacityUnit_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * string capacity_unit = 14; + * @return This builder for chaining. + */ + public Builder clearCapacityUnit() { + capacityUnit_ = getDefaultInstance().getCapacityUnit(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * string capacity_unit = 14; + * @param value The bytes for capacityUnit to set. + * @return This builder for chaining. + */ + public Builder setCapacityUnitBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + capacityUnit_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object capacityValue_ = ""; + + /** + * string capacity_value = 15; + * @return The capacityValue. + */ + public java.lang.String getCapacityValue() { + java.lang.Object ref = capacityValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + capacityValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string capacity_value = 15; + * @return The bytes for capacityValue. + */ + public com.google.protobuf.ByteString getCapacityValueBytes() { + java.lang.Object ref = capacityValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + capacityValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string capacity_value = 15; + * @param value The capacityValue to set. + * @return This builder for chaining. + */ + public Builder setCapacityValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + capacityValue_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * string capacity_value = 15; + * @return This builder for chaining. + */ + public Builder clearCapacityValue() { + capacityValue_ = getDefaultInstance().getCapacityValue(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * string capacity_value = 15; + * @param value The bytes for capacityValue to set. + * @return This builder for chaining. + */ + public Builder setCapacityValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + capacityValue_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private java.lang.Object routeObjectiveFunction_ = ""; + + /** + * string route_objective_function = 16; + * @return The routeObjectiveFunction. + */ + public java.lang.String getRouteObjectiveFunction() { + java.lang.Object ref = routeObjectiveFunction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + routeObjectiveFunction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string route_objective_function = 16; + * @return The bytes for routeObjectiveFunction. + */ + public com.google.protobuf.ByteString getRouteObjectiveFunctionBytes() { + java.lang.Object ref = routeObjectiveFunction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeObjectiveFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string route_objective_function = 16; + * @param value The routeObjectiveFunction to set. + * @return This builder for chaining. + */ + public Builder setRouteObjectiveFunction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + routeObjectiveFunction_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * string route_objective_function = 16; + * @return This builder for chaining. + */ + public Builder clearRouteObjectiveFunction() { + routeObjectiveFunction_ = getDefaultInstance().getRouteObjectiveFunction(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + + /** + * string route_objective_function = 16; + * @param value The bytes for routeObjectiveFunction to set. + * @return This builder for chaining. + */ + public Builder setRouteObjectiveFunctionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routeObjectiveFunction_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + + /** + * string url = 17; + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string url = 17; + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string url = 17; + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * string url = 17; + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** + * string url = 17; + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00010000; + 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:tapi_lsp.TapiLspRuleSet) + } + + // @@protoc_insertion_point(class_scope:tapi_lsp.TapiLspRuleSet) + private static final tapi_lsp.TapiLsp.TapiLspRuleSet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new tapi_lsp.TapiLsp.TapiLspRuleSet(); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public TapiLspRuleSet parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public tapi_lsp.TapiLsp.TapiLspRuleSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_tapi_lsp_TapiLspRuleSet_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tapi_lsp_TapiLspRuleSet_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\016tapi_lsp.proto\022\010tapi_lsp\"\220\003\n\016TapiLspRu" + "leSet\022\021\n\tinput_sip\030\001 \001(\t\022\022\n\noutput_sip\030\002" + " \001(\t\022\014\n\004uuid\030\003 \001(\t\022\n\n\002bw\030\004 \001(\t\022\023\n\013tenant" + "_uuid\030\005 \001(\t\022\033\n\023layer_protocol_name\030\006 \001(\t" + "\022 \n\030layer_protocol_qualifier\030\007 \001(\t\022\033\n\023lo" + "wer_frequency_mhz\030\010 \001(\t\022\033\n\023upper_frequen" + "cy_mhz\030\t \001(\t\022\026\n\016link_uuid_path\030\n \003(\t\022\023\n\013" + "granularity\030\013 \001(\t\022\021\n\tgrid_type\030\014 \001(\t\022\021\n\t" + "direction\030\r \001(\t\022\025\n\rcapacity_unit\030\016 \001(\t\022\026" + "\n\016capacity_value\030\017 \001(\t\022 \n\030route_objectiv" + "e_function\030\020 \001(\t\022\013\n\003url\030\021 \001(\tb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_tapi_lsp_TapiLspRuleSet_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_tapi_lsp_TapiLspRuleSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_tapi_lsp_TapiLspRuleSet_descriptor, new java.lang.String[] { "InputSip", "OutputSip", "Uuid", "Bw", "TenantUuid", "LayerProtocolName", "LayerProtocolQualifier", "LowerFrequencyMhz", "UpperFrequencyMhz", "LinkUuidPath", "Granularity", "GridType", "Direction", "CapacityUnit", "CapacityValue", "RouteObjectiveFunction", "Url" }); + } + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/policy/target/kubernetes/kubernetes.yml b/src/policy/target/kubernetes/kubernetes.yml index 8a7aeca638f2f405c37f1581dc6f769eaa940aab..4b675c7747a4dbdf4e948734b8097c673cb783a4 100644 --- a/src/policy/target/kubernetes/kubernetes.yml +++ b/src/policy/target/kubernetes/kubernetes.yml @@ -3,8 +3,8 @@ apiVersion: v1 kind: Service metadata: annotations: - app.quarkus.io/commit-id: 905a409221c21205aba667ad34f7610681bd09c1 - app.quarkus.io/build-timestamp: 2025-10-22 - 13:43:53 +0000 + app.quarkus.io/commit-id: f6ca78538c88e1affff6dd8908e6f14379f5d9ac + app.quarkus.io/build-timestamp: 2025-10-27 - 16:25:07 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -17,18 +17,18 @@ metadata: name: policyservice spec: ports: - - name: https - port: 443 + - name: grpc + port: 6060 protocol: TCP - targetPort: 8443 + targetPort: 6060 - name: http port: 9192 protocol: TCP targetPort: 8080 - - name: grpc - port: 6060 + - name: https + port: 443 protocol: TCP - targetPort: 6060 + targetPort: 8443 selector: app.kubernetes.io/name: policyservice type: ClusterIP @@ -37,8 +37,8 @@ apiVersion: apps/v1 kind: Deployment metadata: annotations: - app.quarkus.io/commit-id: 905a409221c21205aba667ad34f7610681bd09c1 - app.quarkus.io/build-timestamp: 2025-10-22 - 13:43:53 +0000 + app.quarkus.io/commit-id: f6ca78538c88e1affff6dd8908e6f14379f5d9ac + app.quarkus.io/build-timestamp: 2025-10-27 - 16:25:07 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -57,8 +57,8 @@ spec: template: metadata: annotations: - app.quarkus.io/commit-id: 905a409221c21205aba667ad34f7610681bd09c1 - app.quarkus.io/build-timestamp: 2025-10-22 - 13:43:53 +0000 + app.quarkus.io/commit-id: f6ca78538c88e1affff6dd8908e6f14379f5d9ac + app.quarkus.io/build-timestamp: 2025-10-27 - 16:25:07 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -75,14 +75,14 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + - name: MONITORING_SERVICE_HOST + value: monitoringservice - name: SERVICE_SERVICE_HOST value: serviceservice - - name: CONTEXT_SERVICE_HOST - value: contextservice - name: KAFKA_BROKER_HOST value: kafka-service.kafka.svc.cluster.local - - name: MONITORING_SERVICE_HOST - value: monitoringservice + - name: CONTEXT_SERVICE_HOST + value: contextservice image: labs.etsi.org:5050/tfs/controller/policy:0.1.0 imagePullPolicy: Always livenessProbe: @@ -97,14 +97,14 @@ spec: timeoutSeconds: 10 name: policyservice ports: - - containerPort: 8443 - name: https + - containerPort: 6060 + name: grpc protocol: TCP - containerPort: 8080 name: http protocol: TCP - - containerPort: 6060 - name: grpc + - containerPort: 8443 + name: https protocol: TCP readinessProbe: failureThreshold: 3 diff --git a/src/qkd_app/Dockerfile b/src/qkd_app/Dockerfile index e175fce7e5c8af7dc4d9f7565c0a71e58bb88089..b66fe482d234ae210c113fc67ea5bb2edae2d485 100644 --- a/src/qkd_app/Dockerfile +++ b/src/qkd_app/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/qos_profile/Dockerfile b/src/qos_profile/Dockerfile index 3f51eaa8df29df334bb4f0f6b4f1828141a4936c..eceaaa848ed69591a29ad1824cf0891635c30ab7 100644 --- a/src/qos_profile/Dockerfile +++ b/src/qos_profile/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/service/service/ServiceServiceServicerImpl.py b/src/service/service/ServiceServiceServicerImpl.py index bfa8f27b75b1779f152b846bc2875578895c00e1..52f2fd45b139ee4e6a6640152ff8ec58f8a90145 100644 --- a/src/service/service/ServiceServiceServicerImpl.py +++ b/src/service/service/ServiceServiceServicerImpl.py @@ -45,7 +45,7 @@ from .tools.GeodesicDistance import gps_distance from .tools.OpticalTools import ( add_flex_lightpath, add_lightpath, delete_lightpath, adapt_reply, get_device_name_from_uuid, get_optical_band, refresh_opticalcontroller, DelFlexLightpath , extend_optical_band - + ) @@ -115,7 +115,7 @@ class ServiceServiceServicerImpl(ServiceServiceServicer): context_client, request.service_id, rw_copy=False, include_config_rules=True, include_constraints=True, include_endpoint_ids=True) - # Identify service constraints + # Identify service constraints num_disjoint_paths = None is_diverse = False gps_location_aware = False @@ -331,11 +331,11 @@ class ServiceServiceServicerImpl(ServiceServiceServicer): LOGGER.debug('Parent optical-band={}'.format(parent_ob)) optical_band_txt = get_optical_band(parent_ob) - + service_expansion= extend_optical_band(reply_json,optical_band_txt) tasks_scheduler.compose_from_service_expansion(service_expansion) - - + + else: LOGGER.debug('Using existing optical band') else: @@ -448,20 +448,20 @@ class ServiceServiceServicerImpl(ServiceServiceServicer): params['ob_id' ] = ob_id params['flow_id'] = flow_id params['bidir' ] = bidir - - + + tasks_scheduler = TasksScheduler(self.service_handler_factory) tasks_scheduler.compose_from_optical_service(service, params=params, is_delete=True) tasks_scheduler.execute_all() return Empty() - elif oc_type ==2 : - + elif oc_type ==2 : + if len(service.service_config.config_rules) > 0: c_rules_dict = json.loads( service.service_config.config_rules[0].custom.resource_value) ob_id=None flow_id=None - + if ("flow_id" in c_rules_dict): flow_id = c_rules_dict["flow_id"] #if ("ob_id" in c_rules_dict): @@ -472,8 +472,8 @@ class ServiceServiceServicerImpl(ServiceServiceServicer): params['ob_id']=ob_id params['flow_id']=flow_id params['bidir'] = bidir - - + + tasks_scheduler = TasksScheduler(self.service_handler_factory) tasks_scheduler.compose_from_optical_service(service, params=params, is_delete=True) tasks_scheduler.execute_all() @@ -618,7 +618,7 @@ class ServiceServiceServicerImpl(ServiceServiceServicer): str_old_connection = grpc_message_to_json_string(old_connection) extra_details = MSG.format(str_pathcomp_request, str_pathcomp_reply, str_old_connection) raise OperationFailedException('no-new-path-found', extra_details=extra_details) - + str_candidate_new_connections = [ grpc_message_to_json_string(candidate_new_connection) for candidate_new_connection in candidate_new_connections diff --git a/src/service/service/service_handler_api/FilterFields.py b/src/service/service/service_handler_api/FilterFields.py index 61b1cbe04fa3ae5acfe9010ce687729b15c2db0c..6da1d6f55c587322d71f4a3a2f28055d260ee5ed 100644 --- a/src/service/service/service_handler_api/FilterFields.py +++ b/src/service/service/service_handler_api/FilterFields.py @@ -32,6 +32,8 @@ SERVICE_TYPE_VALUES = { ServiceTypeEnum.SERVICETYPE_INT, ServiceTypeEnum.SERVICETYPE_ACL, ServiceTypeEnum.SERVICETYPE_IP_LINK, + ServiceTypeEnum.SERVICETYPE_IPOWDM, + ServiceTypeEnum.SERVICETYPE_TAPI_LSP, } DEVICE_DRIVER_VALUES = { diff --git a/src/service/service/service_handler_api/ServiceHandlerFactory.py b/src/service/service/service_handler_api/ServiceHandlerFactory.py index 96ab0ae06aac20bd9f866bd3203948baa40625f1..f998fe07246be834ac154105e836713fb4ef29ae 100644 --- a/src/service/service/service_handler_api/ServiceHandlerFactory.py +++ b/src/service/service/service_handler_api/ServiceHandlerFactory.py @@ -15,7 +15,7 @@ import logging, operator from enum import Enum from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Set, Tuple -from common.proto.context_pb2 import Device, Service +from common.proto.context_pb2 import Device, DeviceDriverEnum, Service from common.tools.grpc.Tools import grpc_message_to_json_string from .Exceptions import ( UnsatisfiedFilterException, UnsupportedServiceHandlerClassException, UnsupportedFilterFieldException, @@ -114,14 +114,19 @@ def get_service_handler_class( service_handler_factory : ServiceHandlerFactory, service : Service, device_and_drivers: Dict[str, Tuple[Device, Set[int]]] ) -> Optional['_ServiceHandler']: - str_service_key = grpc_message_to_json_string(service.service_id) - - # Assume all devices involved in the service's connection must support at least one driver in common - common_device_drivers = get_common_device_drivers([ - device_drivers - for _,device_drivers in device_and_drivers.values() - ]) + # Checks if the service is of type ipowdm + if 'ipowdm' in str(service.service_config.config_rules): + common_device_drivers = [DeviceDriverEnum.DEVICEDRIVER_IETF_L3VPN] + # Checks if the service is of type tapi_lsp + elif 'tapi_lsp' in str(service.service_config.config_rules): + common_device_drivers = [DeviceDriverEnum.DEVICEDRIVER_TRANSPORT_API] + else: + common_device_drivers = get_common_device_drivers([ + device_drivers + for _,device_drivers in device_and_drivers.values() + ]) + LOGGER.debug('common_device_drivers={:s}'.format(str(common_device_drivers))) filter_fields = { FilterFieldEnum.SERVICE_TYPE.value : service.service_type, # must be supported diff --git a/src/service/service/service_handler_api/SettingsHandler.py b/src/service/service/service_handler_api/SettingsHandler.py index 762339065c201b126aa52a7664cac5d8685669f4..cbcf13f5fdb1473f7cfe6c1c9ae43e92f8aecb2b 100644 --- a/src/service/service/service_handler_api/SettingsHandler.py +++ b/src/service/service/service_handler_api/SettingsHandler.py @@ -54,6 +54,21 @@ class SettingsHandler: IP_LINK_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/subindex[{:d}]/ip_link' key_or_path = IP_LINK_KEY_TEMPLATE.format(device_uuid, endpoint_name, endpoint_index) value = config_rule.ip_link + elif kind == 'ipowdm': + device_uuid = config_rule.ipowdm.endpoint_id.device_id.device_uuid.uuid + endpoint_uuid = config_rule.ipowdm.endpoint_id.endpoint_uuid.uuid + endpoint_name, endpoint_index = extract_endpoint_index(endpoint_uuid) + ipowdm_key_template = '/device[{:s}]/endpoint[{:s}]/index[{:d}]/ipowdm' + key_or_path = ipowdm_key_template.format(device_uuid, endpoint_name, endpoint_index) + value = grpc_message_to_json(config_rule.ipowdm) + elif kind == 'tapi_lsp': + device_uuid = config_rule.tapi_lsp.endpoint_id.device_id.device_uuid.uuid + endpoint_uuid = config_rule.tapi_lsp.endpoint_id.endpoint_uuid.uuid + endpoint_name, endpoint_index = extract_endpoint_index(endpoint_uuid) + TAPI_LSP_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/subindex[{:d}]/tapi_lsp' + key_or_path = TAPI_LSP_KEY_TEMPLATE.format(device_uuid, endpoint_name, endpoint_index) + value = grpc_message_to_json(config_rule.tapi_lsp) + else: MSG = 'Unsupported Kind({:s}) in ConfigRule({:s})' LOGGER.warning(MSG.format(str(kind), grpc_message_to_json_string(config_rule))) @@ -106,19 +121,19 @@ class SettingsHandler: for endpoint_key in endpoint_keys: endpoint_settings_uri = '/device[{:s}]/endpoint[{:s}]'.format(device_key, endpoint_key) endpoint_settings = self.get(endpoint_settings_uri) - if endpoint_settings is None: continue + if endpoint_settings is None: continue endpoint_name, endpoint_index = extract_endpoint_index(endpoint_name) ACL_RULE_PREFIX = '/device[{:s}]/endpoint[{:s}]/'.format(device_key, endpoint_name) results = dump_subtree(endpoint_settings) - for res_key, res_value in results: + for res_key, res_value in results: if not res_key.startswith(ACL_RULE_PREFIX): continue if not "acl_ruleset" in res_key: continue acl_index = extract_index(res_value) if not 'index[{:d}]'.format(acl_index) in res_key: continue acl_rules.append((res_key, res_value)) return acl_rules - + def get_endpoint_ip_link(self, device : Device, endpoint : EndPoint) -> List [Tuple]: endpoint_name = endpoint.name device_keys = device.device_id.device_uuid.uuid, device.name @@ -128,11 +143,11 @@ class SettingsHandler: for endpoint_key in endpoint_keys: endpoint_settings_uri = '/device[{:s}]/endpoint[{:s}]'.format(device_key, endpoint_key) endpoint_settings = self.get(endpoint_settings_uri) - if endpoint_settings is None: continue + if endpoint_settings is None: continue IP_LINK_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/'.format(device_key, endpoint_name) - + results = dump_subtree(endpoint_settings) - for res_key, res_value in results: + for res_key, res_value in results: if not res_key.startswith(IP_LINK_KEY_TEMPLATE): continue if not "ip_link" in res_key: continue ip_links.append((res_key, res_value)) @@ -141,6 +156,65 @@ class SettingsHandler: ip_links.append((res_key, res_value)) return ip_links + def get_endpoint_ipowdm(self, device : Device, endpoint : EndPoint) -> List [Tuple]: + endpoint_name = endpoint.name + device_keys = device.device_id.device_uuid.uuid, device.name + endpoint_keys = endpoint.endpoint_id.endpoint_uuid.uuid, endpoint.name + ipowdms = [] + LOGGER.debug('Getting IPOWDM for device(%s) ', device_keys) + + for device_key in device_keys: + LOGGER.debug('device_key = %s', device_key) + for endpoint_key in endpoint_keys: + endpoint_settings_uri = '/device[{:s}]/endpoint[{:s}]'.format(device_key, endpoint_key) + endpoint_settings = self.get(endpoint_settings_uri) + if endpoint_settings is None: continue + IPOWDM_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/'.format(device_key, endpoint_name) + + results = dump_subtree(endpoint_settings) + for res_key, res_value in results: + if not res_key.startswith(IPOWDM_KEY_TEMPLATE): continue + if not "ipowdm" in res_key: continue + ipowdms.append((res_key, res_value)) + setinterface_index = extract_index(res_value) + if not 'subindex[{:d}]'.format(setinterface_index) in res_key: continue + ipowdms.append((res_key, res_value)) + return ipowdms + + def get_endpoint_tapi_lsp(self, device : Device, endpoint : EndPoint) -> List [Tuple]: + device_keys = device.device_id.device_uuid.uuid, device.name + endpoint_keys = endpoint.endpoint_id.endpoint_uuid.uuid, endpoint.name + tapi_lsps = [] + LOGGER.debug('Getting TAPI LSPs for device(%s) ', device_keys) + for device_key in device_keys: + for endpoint_key in endpoint_keys: + endpoint_settings_uri = '/device[{:s}]/endpoint[{:s}]'.format(device_key, endpoint_key) + endpoint_settings = self.get(endpoint_settings_uri) + if endpoint_settings is None: continue + TAPI_LSP_KEY_TEMPLATE = '/device[{:s}]/endpoint[{:s}]/'.format(device_key, endpoint_key) + + results = dump_subtree(endpoint_settings) + LOGGER.debug('Dumped subtree results: %s', results) + for res_key, res_value in results: + LOGGER.debug('Checking res_key %s', res_key) + LOGGER.debug('Checking res_value %s', res_value) + + if not res_key.startswith(TAPI_LSP_KEY_TEMPLATE): + LOGGER.debug('Skipping res_key %s not starting with %s', res_key, TAPI_LSP_KEY_TEMPLATE) + continue + if not "tapi_lsp" in res_key: + LOGGER.debug('Skipping res_key %s not containing tapi_lsp', res_key) + continue + setinterface_index = extract_index(res_value) + LOGGER.debug('setinterface_index = %d', setinterface_index) + if not 'subindex[{:d}]'.format(setinterface_index) in res_key: + LOGGER.debug('Skipping res_key %s not containing subindex[%d]', res_key, setinterface_index) + continue + tapi_lsps.append((res_key, res_value)) + LOGGER.debug('TAPI LSPs for device(%s) = %s', device_keys, tapi_lsps) + return tapi_lsps + + def set(self, key_or_path : Union[str, List[str]], value : Any) -> None: set_subnode_value(self.__resolver, self.__config, key_or_path, value) diff --git a/src/service/service/service_handler_api/Tools.py b/src/service/service/service_handler_api/Tools.py index 20a2fa3016b1accbb6a61c1593e845e091166c32..c86fbd842c03f0d6876a031df7fcbcb56ee03893 100644 --- a/src/service/service/service_handler_api/Tools.py +++ b/src/service/service/service_handler_api/Tools.py @@ -69,7 +69,6 @@ def extract_endpoint_index(endpoint_name : str, default_index=0) -> Tuple[str, i return endpoint_name, index def extract_index(res_value : Any) -> int: - res_value = grpc_message_to_json(res_value,use_integers_for_enums=True) endpoint = res_value['endpoint_id']['endpoint_uuid']['uuid'] endpoint = endpoint[1].split("'}") _ , index = extract_endpoint_index(endpoint[0]) diff --git a/src/service/service/service_handlers/__init__.py b/src/service/service/service_handlers/__init__.py index 224ebabb303d185655a97fbddc189237e3861876..1d274490fd54403587f9a83c00d0688eca1b1744 100644 --- a/src/service/service/service_handlers/__init__.py +++ b/src/service/service/service_handlers/__init__.py @@ -14,6 +14,7 @@ from common.proto.context_pb2 import DeviceDriverEnum, ServiceTypeEnum from ..service_handler_api.FilterFields import FilterFieldEnum +from .ipowdm.IpowdmServiceHandler import IpowdmServiceHandler from .l2nm_emulated.L2NMEmulatedServiceHandler import L2NMEmulatedServiceHandler from .l2nm_ietfl2vpn.L2NM_IETFL2VPN_ServiceHandler import L2NM_IETFL2VPN_ServiceHandler from .l2nm_openconfig.L2NMOpenConfigServiceHandler import L2NMOpenConfigServiceHandler @@ -30,6 +31,7 @@ from .p4_fabric_tna_int.p4_fabric_tna_int_service_handler import P4FabricINTServ from .p4_fabric_tna_l2_simple.p4_fabric_tna_l2_simple_service_handler import P4FabricL2SimpleServiceHandler from .p4_fabric_tna_l3.p4_fabric_tna_l3_service_handler import P4FabricL3ServiceHandler from .p4_fabric_tna_acl.p4_fabric_tna_acl_service_handler import P4FabricACLServiceHandler +from .tapi_lsp.Tapi_LSPServiceHandler import Tapi_LSPServiceHandler from .tapi_tapi.TapiServiceHandler import TapiServiceHandler from .tapi_xr.TapiXrServiceHandler import TapiXrServiceHandler from .optical_tfs.OpticalTfsServiceHandler import OpticalTfsServiceHandler @@ -191,5 +193,17 @@ SERVICE_HANDLERS = [ FilterFieldEnum.SERVICE_TYPE : ServiceTypeEnum.SERVICETYPE_L3NM, FilterFieldEnum.DEVICE_DRIVER : [DeviceDriverEnum.DEVICEDRIVER_RYU], } + ]), + (IpowdmServiceHandler, [ + { + FilterFieldEnum.SERVICE_TYPE : ServiceTypeEnum.SERVICETYPE_IPOWDM, + FilterFieldEnum.DEVICE_DRIVER : [DeviceDriverEnum.DEVICEDRIVER_IETF_L3VPN], + } + ]), + (Tapi_LSPServiceHandler, [ + { + FilterFieldEnum.SERVICE_TYPE : ServiceTypeEnum.SERVICETYPE_TAPI_LSP, + FilterFieldEnum.DEVICE_DRIVER : [DeviceDriverEnum.DEVICEDRIVER_TRANSPORT_API], + } ]) ] diff --git a/src/service/service/service_handlers/ipowdm/ConfigRules.py b/src/service/service/service_handlers/ipowdm/ConfigRules.py new file mode 100644 index 0000000000000000000000000000000000000000..e36dd7babaae96b0b0fd8060a08e504fc8195e55 --- /dev/null +++ b/src/service/service/service_handlers/ipowdm/ConfigRules.py @@ -0,0 +1,58 @@ +# Copyright 2022-2025 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import logging +from typing import Any, Dict, List, Optional, Tuple +from common.tools.object_factory.ConfigRule import json_config_rule_delete, json_config_rule_set +from service.service.service_handler_api.AnyTreeTools import TreeNode +LOGGER = logging.getLogger(__name__) + +def get_value(field_name : str, *containers, default=None) -> Optional[Any]: + if len(containers) == 0: raise Exception('No containers specified') + for container in containers: + if field_name not in container: continue + return container[field_name] + return default + +def setup_config_rules( + endpoint_name : str, endpoint_ipowdm : List [Tuple] +) -> List[Dict]: + + json_config_rules = [ + ] + + for res_key, res_value in endpoint_ipowdm: + json_config_rules.append( + {'action': 1, 'ipowdm': res_value} + ) + + return json_config_rules + +def teardown_config_rules( + service_uuid : str, connection_uuid : str, device_uuid : str, endpoint_uuid : str, endpoint_name : str, + service_settings : TreeNode, device_settings : TreeNode, endpoint_settings : TreeNode +) -> List[Dict]: + + if service_settings is None: return [] + if device_settings is None: return [] + if endpoint_settings is None: return [] + + json_settings : Dict = service_settings.value + json_device_settings : Dict = device_settings.value + json_endpoint_settings : Dict = endpoint_settings.value + + settings = (json_settings, json_endpoint_settings, json_device_settings) + + json_config_rules = [] + return json_config_rules diff --git a/src/service/service/service_handlers/ipowdm/IpowdmServiceHandler.py b/src/service/service/service_handlers/ipowdm/IpowdmServiceHandler.py new file mode 100644 index 0000000000000000000000000000000000000000..e22c5d28f519734daf79077b231556faa7272509 --- /dev/null +++ b/src/service/service/service_handlers/ipowdm/IpowdmServiceHandler.py @@ -0,0 +1,184 @@ +# Copyright 2022-2025 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import json, logging +from typing import Any, List, Optional, Tuple, Union +from common.method_wrappers.Decorator import MetricsPool, metered_subclass_method +from common.proto.context_pb2 import ConfigRule, DeviceId, Service +from common.tools.object_factory.Device import json_device_id +from common.type_checkers.Checkers import chk_type +from service.service.service_handler_api.Tools import get_device_endpoint_uuids, get_endpoint_matching +from service.service.service_handler_api._ServiceHandler import _ServiceHandler +from service.service.service_handler_api.SettingsHandler import SettingsHandler +from service.service.task_scheduler.TaskExecutor import TaskExecutor +from .ConfigRules import setup_config_rules, teardown_config_rules + +LOGGER = logging.getLogger(__name__) + +METRICS_POOL = MetricsPool('Service', 'Handler', labels={'handler': 'l3nm_openconfig'}) + +class IpowdmServiceHandler(_ServiceHandler): + def __init__( # pylint: disable=super-init-not-called + self, service : Service, task_executor : TaskExecutor, **settings + ) -> None: + self.__service = service + self.__task_executor = task_executor + self.__settings_handler = SettingsHandler(service.service_config, **settings) + + @metered_subclass_method(METRICS_POOL) + def SetEndpoint( + self, endpoints: List[Tuple[str, str, Optional[str]]], connection_uuid: Optional[str] = None + ) -> List[Union[bool, Exception]]: + chk_type('endpoints', endpoints, list) + endpoints = set(endpoints) # Remove duplicates + LOGGER.debug("[SetEndpoint] Called with endpoints: %s", endpoints) + LOGGER.debug("[SetEndpoint] Connection UUID: %s", connection_uuid) + + if len(endpoints) == 0: + LOGGER.warning("[SetEndpoint] No endpoints to process.") + return [] + + results = [] + for endpoint in endpoints: + + LOGGER.debug("[SetEndpoint] Processing endpoint tuple: %s", endpoint) + try: + device_uuid, endpoint_uuid = get_device_endpoint_uuids(endpoint) + LOGGER.debug("[SetEndpoint] Device UUID: %s | Endpoint UUID: %s", device_uuid, endpoint_uuid) + + device_obj = self.__task_executor.get_device(DeviceId(**json_device_id(device_uuid))) + + endpoint_obj = get_endpoint_matching(device_obj, endpoint_uuid) + + endpoint_ipowdm = self.__settings_handler.get_endpoint_ipowdm(device_obj, endpoint_obj) + for _, endpoint in endpoint_ipowdm: + LOGGER.debug("[SetEndpoint] Found endpoint: %s", endpoint) + if endpoint["endpoint_id"]["device_id"]["device_uuid"]["uuid"] != "TFS-PACKET": continue + LOGGER.debug("[SetEndpoint] endpoint_ipowdm: %s", endpoint_ipowdm) + + endpoint_name = endpoint_obj.name + LOGGER.debug("[SetEndpoint] Endpoint name: %s", endpoint_name) + + json_config_rules = setup_config_rules(endpoint_name, endpoint_ipowdm) + LOGGER.debug("[SetEndpoint] Generated json_config_rules: %s", json_config_rules) + + if len(json_config_rules) > 0: + LOGGER.info("[SetEndpoint] Applying %d config rules to device %s", len(json_config_rules), device_uuid) + del device_obj.device_config.config_rules[:] + json_config_rule = json_config_rules[0] + LOGGER.debug("[SetEndpoint] Adding config rule: %s", json_config_rule) + device_obj.device_config.config_rules.append(ConfigRule(**json_config_rule)) + + self.__task_executor.configure_device(device_obj) + LOGGER.info("[SetEndpoint] Configuration sent for device %s", device_uuid) + else: + LOGGER.warning("[SetEndpoint] No config rules generated for endpoint %s", endpoint_uuid) + + results.append(True) + + except Exception as e: # pylint: disable=broad-except + LOGGER.exception('[SetEndpoint] Unable to SetEndpoint(%s)', str(endpoint)) + results.append(e) + + LOGGER.debug("[SetEndpoint] Final results: %s", results) + return results + + + @metered_subclass_method(METRICS_POOL) + def DeleteEndpoint( + self, endpoints : List[Tuple[str, str, Optional[str]]], connection_uuid : Optional[str] = None + ) -> List[Union[bool, Exception]]: + chk_type('endpoints', endpoints, list) + if len(endpoints) == 0: return [] + + service_uuid = self.__service.service_id.service_uuid.uuid + settings = self.__settings_handler.get('/settings') + + results = [] + for endpoint in endpoints: + try: + device_uuid, endpoint_uuid = get_device_endpoint_uuids(endpoint) + + device_obj = self.__task_executor.get_device(DeviceId(**json_device_id(device_uuid))) + device_settings = self.__settings_handler.get_device_settings(device_obj) + endpoint_obj = get_endpoint_matching(device_obj, endpoint_uuid) + endpoint_settings = self.__settings_handler.get_endpoint_settings(device_obj, endpoint_obj) + endpoint_name = endpoint_obj.name + + json_config_rules = teardown_config_rules( + service_uuid, connection_uuid, device_uuid, endpoint_uuid, endpoint_name, + settings, device_settings, endpoint_settings) + + if len(json_config_rules) > 0: + del device_obj.device_config.config_rules[:] + for json_config_rule in json_config_rules: + device_obj.device_config.config_rules.append(ConfigRule(**json_config_rule)) + self.__task_executor.configure_device(device_obj) + + results.append(True) + except Exception as e: # pylint: disable=broad-except + LOGGER.exception('Unable to DeleteEndpoint({:s})'.format(str(endpoint))) + results.append(e) + + return results + + @metered_subclass_method(METRICS_POOL) + def SetConstraint(self, constraints : List[Tuple[str, Any]]) -> List[Union[bool, Exception]]: + chk_type('constraints', constraints, list) + if len(constraints) == 0: return [] + + msg = '[SetConstraint] Method not implemented. Constraints({:s}) are being ignored.' + LOGGER.warning(msg.format(str(constraints))) + return [True for _ in range(len(constraints))] + + @metered_subclass_method(METRICS_POOL) + def DeleteConstraint(self, constraints : List[Tuple[str, Any]]) -> List[Union[bool, Exception]]: + chk_type('constraints', constraints, list) + if len(constraints) == 0: return [] + + msg = '[DeleteConstraint] Method not implemented. Constraints({:s}) are being ignored.' + LOGGER.warning(msg.format(str(constraints))) + return [True for _ in range(len(constraints))] + + @metered_subclass_method(METRICS_POOL) + def SetConfig(self, resources : List[Tuple[str, Any]]) -> List[Union[bool, Exception]]: + chk_type('resources', resources, list) + if len(resources) == 0: return [] + + results = [] + for resource in resources: + try: + resource_value = json.loads(resource[1]) + self.__settings_handler.set(resource[0], resource_value) + results.append(True) + except Exception as e: # pylint: disable=broad-except + LOGGER.exception('Unable to SetConfig({:s})'.format(str(resource))) + results.append(e) + + return results + + @metered_subclass_method(METRICS_POOL) + def DeleteConfig(self, resources : List[Tuple[str, Any]]) -> List[Union[bool, Exception]]: + chk_type('resources', resources, list) + if len(resources) == 0: return [] + + results = [] + for resource in resources: + try: + self.__settings_handler.delete(resource[0]) + except Exception as e: # pylint: disable=broad-except + LOGGER.exception('Unable to DeleteConfig({:s})'.format(str(resource))) + results.append(e) + + return results diff --git a/src/service/service/service_handlers/ipowdm/__init__.py b/src/service/service/service_handlers/ipowdm/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6242c89c7fa17bc5b6cc44328d8ce58438721d45 --- /dev/null +++ b/src/service/service/service_handlers/ipowdm/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022-2025 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/service/service/service_handlers/tapi_lsp/ConfigRules.py b/src/service/service/service_handlers/tapi_lsp/ConfigRules.py new file mode 100644 index 0000000000000000000000000000000000000000..e78379834672456c4fc9c992f4b41c793a3ca05e --- /dev/null +++ b/src/service/service/service_handlers/tapi_lsp/ConfigRules.py @@ -0,0 +1,58 @@ +# Copyright 2022-2025 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import logging +from typing import Any, Dict, List, Optional, Tuple +from common.tools.object_factory.ConfigRule import json_config_rule_delete, json_config_rule_set +from service.service.service_handler_api.AnyTreeTools import TreeNode +LOGGER = logging.getLogger(__name__) + +def get_value(field_name : str, *containers, default=None) -> Optional[Any]: + if len(containers) == 0: raise Exception('No containers specified') + for container in containers: + if field_name not in container: continue + return container[field_name] + return default + +def setup_config_rules( + endpoint_name : str, endpoint_tapi_lsp : List [Tuple] +) -> List[Dict]: + + json_config_rules = [ + ] + + for res_key, res_value in endpoint_tapi_lsp: + json_config_rules.append( + {'action': 1, 'tapi_lsp': res_value} + ) + + return json_config_rules + +def teardown_config_rules( + service_uuid : str, connection_uuid : str, device_uuid : str, endpoint_uuid : str, endpoint_name : str, + service_settings : TreeNode, device_settings : TreeNode, endpoint_settings : TreeNode +) -> List[Dict]: + + if service_settings is None: return [] + if device_settings is None: return [] + if endpoint_settings is None: return [] + + json_settings : Dict = service_settings.value + json_device_settings : Dict = device_settings.value + json_endpoint_settings : Dict = endpoint_settings.value + + settings = (json_settings, json_endpoint_settings, json_device_settings) + + json_config_rules = [] + return json_config_rules diff --git a/src/service/service/service_handlers/tapi_lsp/Tapi_LSPServiceHandler.py b/src/service/service/service_handlers/tapi_lsp/Tapi_LSPServiceHandler.py new file mode 100644 index 0000000000000000000000000000000000000000..f2e1b1de1b690fc4a80f835e4ab79a3cbbc2a3e5 --- /dev/null +++ b/src/service/service/service_handlers/tapi_lsp/Tapi_LSPServiceHandler.py @@ -0,0 +1,191 @@ +# Copyright 2022-2025 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import json, logging +from typing import Any, List, Optional, Tuple, Union +from common.method_wrappers.Decorator import MetricsPool, metered_subclass_method +from common.proto.context_pb2 import ConfigRule, DeviceId, Service +from common.tools.object_factory.Device import json_device_id +from common.type_checkers.Checkers import chk_type +from service.service.service_handler_api.Tools import get_device_endpoint_uuids, get_endpoint_matching +from service.service.service_handler_api._ServiceHandler import _ServiceHandler +from service.service.service_handler_api.SettingsHandler import SettingsHandler +from service.service.task_scheduler.TaskExecutor import TaskExecutor +from .ConfigRules import setup_config_rules, teardown_config_rules +from context.client.ContextClient import ContextClient + + +LOGGER = logging.getLogger(__name__) + +METRICS_POOL = MetricsPool('Service', 'Handler', labels={'handler': 'l3nm_openconfig'}) + +ContextClient = ContextClient() + +class Tapi_LSPServiceHandler(_ServiceHandler): + def __init__( # pylint: disable=super-init-not-called + self, service : Service, task_executor : TaskExecutor, **settings + ) -> None: + self.__service = service + self.__task_executor = task_executor + self.__settings_handler = SettingsHandler(service.service_config, **settings) + + @metered_subclass_method(METRICS_POOL) + def SetEndpoint( + self, endpoints: List[Tuple[str, str, Optional[str]]], connection_uuid: Optional[str] = None + ) -> List[Union[bool, Exception]]: + chk_type('endpoints', endpoints, list) + endpoints = set(endpoints) # Remove duplicates + LOGGER.debug("[SetEndpoint] Called with endpoints: %s", endpoints) + LOGGER.debug("[SetEndpoint] Connection UUID: %s", connection_uuid) + + if len(endpoints) == 0: + LOGGER.warning("[SetEndpoint] No endpoints to process.") + return [] + + results = [] + for endpoint in endpoints: + LOGGER.debug("[SetEndpoint] Processing endpoint tuple: %s", endpoint) + try: + device_uuid, endpoint_uuid = get_device_endpoint_uuids(endpoint) + LOGGER.debug("[SetEndpoint] Device UUID: %s | Endpoint UUID: %s", device_uuid, endpoint_uuid) + + device_obj = self.__task_executor.get_device(DeviceId(**json_device_id(device_uuid))) + device_name = str(device_obj.name).upper().strip() + LOGGER.debug("[SetEndpoint] Device name: %s", device_name) + + if "OPTICAL" not in device_name: + LOGGER.debug("[SetEndpoint] Skipping non-optical device: %s", device_name) + continue + + endpoint_obj = get_endpoint_matching(device_obj, endpoint_uuid) + endpoint_tapi_lsp = self.__settings_handler.get_endpoint_tapi_lsp(device_obj, endpoint_obj) + LOGGER.debug("[SetEndpoint] Endpoint TAPI LSP data: %s", endpoint_tapi_lsp) + + endpoint_name = endpoint_obj.name + LOGGER.debug("[SetEndpoint] Endpoint name: %s", endpoint_name) + + json_config_rules = setup_config_rules(endpoint_name, endpoint_tapi_lsp) + LOGGER.debug("[SetEndpoint] Generated json_config_rules: %s", json_config_rules) + if 'DELETE' in str(json_config_rules): + LOGGER.debug("[SetEndpoint] Config rules contain DELETE operation.") + # ContextClient.RemoveService() + + if len(json_config_rules) > 0: + LOGGER.info("[SetEndpoint] Applying %d config rules to device %s", len(json_config_rules), device_uuid) + del device_obj.device_config.config_rules[:] + json_config_rule = json_config_rules[0] + LOGGER.debug("[SetEndpoint] Adding config rule: %s", json_config_rule) + device_obj.device_config.config_rules.append(ConfigRule(**json_config_rule)) + + self.__task_executor.configure_device(device_obj) + LOGGER.info("[SetEndpoint] Configuration sent for Optical Controller %s", device_uuid) + else: + LOGGER.warning("[SetEndpoint] No config rules generated for endpoint %s", endpoint_uuid) + + results.append(True) + + except Exception as e: # pylint: disable=broad-except + LOGGER.exception('[SetEndpoint] Unable to SetEndpoint(%s)', str(endpoint)) + results.append(e) + + LOGGER.debug("[SetEndpoint] Final results: %s", results) + return results + + @metered_subclass_method(METRICS_POOL) + def DeleteEndpoint( + self, endpoints : List[Tuple[str, str, Optional[str]]], connection_uuid : Optional[str] = None + ) -> List[Union[bool, Exception]]: + chk_type('endpoints', endpoints, list) + if len(endpoints) == 0: return [] + + service_uuid = self.__service.service_id.service_uuid.uuid + settings = self.__settings_handler.get('/settings') + + results = [] + for endpoint in endpoints: + try: + device_uuid, endpoint_uuid = get_device_endpoint_uuids(endpoint) + + device_obj = self.__task_executor.get_device(DeviceId(**json_device_id(device_uuid))) + device_settings = self.__settings_handler.get_device_settings(device_obj) + endpoint_obj = get_endpoint_matching(device_obj, endpoint_uuid) + endpoint_settings = self.__settings_handler.get_endpoint_settings(device_obj, endpoint_obj) + endpoint_name = endpoint_obj.name + + json_config_rules = teardown_config_rules( + service_uuid, connection_uuid, device_uuid, endpoint_uuid, endpoint_name, + settings, device_settings, endpoint_settings) + + if len(json_config_rules) > 0: + del device_obj.device_config.config_rules[:] + for json_config_rule in json_config_rules: + device_obj.device_config.config_rules.append(ConfigRule(**json_config_rule)) + self.__task_executor.configure_device(device_obj) + + results.append(True) + except Exception as e: # pylint: disable=broad-except + LOGGER.exception('Unable to DeleteEndpoint({:s})'.format(str(endpoint))) + results.append(e) + + return results + + @metered_subclass_method(METRICS_POOL) + def SetConstraint(self, constraints : List[Tuple[str, Any]]) -> List[Union[bool, Exception]]: + chk_type('constraints', constraints, list) + if len(constraints) == 0: return [] + + msg = '[SetConstraint] Method not implemented. Constraints({:s}) are being ignored.' + LOGGER.warning(msg.format(str(constraints))) + return [True for _ in range(len(constraints))] + + @metered_subclass_method(METRICS_POOL) + def DeleteConstraint(self, constraints : List[Tuple[str, Any]]) -> List[Union[bool, Exception]]: + chk_type('constraints', constraints, list) + if len(constraints) == 0: return [] + + msg = '[DeleteConstraint] Method not implemented. Constraints({:s}) are being ignored.' + LOGGER.warning(msg.format(str(constraints))) + return [True for _ in range(len(constraints))] + + @metered_subclass_method(METRICS_POOL) + def SetConfig(self, resources : List[Tuple[str, Any]]) -> List[Union[bool, Exception]]: + chk_type('resources', resources, list) + if len(resources) == 0: return [] + + results = [] + for resource in resources: + try: + resource_value = json.loads(resource[1]) + self.__settings_handler.set(resource[0], resource_value) + results.append(True) + except Exception as e: # pylint: disable=broad-except + LOGGER.exception('Unable to SetConfig({:s})'.format(str(resource))) + results.append(e) + + return results + + @metered_subclass_method(METRICS_POOL) + def DeleteConfig(self, resources : List[Tuple[str, Any]]) -> List[Union[bool, Exception]]: + chk_type('resources', resources, list) + if len(resources) == 0: return [] + + results = [] + for resource in resources: + try: + self.__settings_handler.delete(resource[0]) + except Exception as e: # pylint: disable=broad-except + LOGGER.exception('Unable to DeleteConfig({:s})'.format(str(resource))) + results.append(e) + + return results diff --git a/src/service/service/service_handlers/tapi_lsp/__init__.py b/src/service/service/service_handlers/tapi_lsp/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6242c89c7fa17bc5b6cc44328d8ce58438721d45 --- /dev/null +++ b/src/service/service/service_handlers/tapi_lsp/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022-2025 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/simap_connector/Dockerfile b/src/simap_connector/Dockerfile index 35dd3abfb9235df271fc74207e8076d68d80d36a..f9f1da6604f8a18b8405a4778befa23d0c9fa930 100644 --- a/src/simap_connector/Dockerfile +++ b/src/simap_connector/Dockerfile @@ -18,9 +18,9 @@ FROM python:3.9-slim ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/slice/Dockerfile b/src/slice/Dockerfile index 2d41444687578c5781e749cc584b13e027259481..54fcc06e28318689039af182d34d7b2e166831d1 100644 --- a/src/slice/Dockerfile +++ b/src/slice/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/telemetry/backend/Dockerfile b/src/telemetry/backend/Dockerfile index ac7f6ccd1336b5ea1c3f0932b8a1c29d4c66d08d..d595eed942a45337d2fa1fedf599e322d4f4b028 100644 --- a/src/telemetry/backend/Dockerfile +++ b/src/telemetry/backend/Dockerfile @@ -43,9 +43,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' RUN python3 -m pip install --upgrade scapy # Get common Python packages diff --git a/src/telemetry/frontend/Dockerfile b/src/telemetry/frontend/Dockerfile index dc90b7d164dbaaf8249d36628fc60eee88bb8034..b758a3f6c1d68f20ce72fd4820d227276ed5a404 100644 --- a/src/telemetry/frontend/Dockerfile +++ b/src/telemetry/frontend/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/tests/ecoc22/Dockerfile b/src/tests/ecoc22/Dockerfile index 3a7f9155bf2620fb4f9026cf621640ef5346f8c3..57a39950c4059c07efb8d333bc33690aa71c002a 100644 --- a/src/tests/ecoc22/Dockerfile +++ b/src/tests/ecoc22/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/tests/eucnc24/Dockerfile b/src/tests/eucnc24/Dockerfile index 9e1ab4d0ae265dc2179c574b7f7e45cba100fe82..cde6358c755f605764ded46268557a9482996c4b 100644 --- a/src/tests/eucnc24/Dockerfile +++ b/src/tests/eucnc24/Dockerfile @@ -23,9 +23,9 @@ RUN apt-get --yes --quiet --quiet update && \ ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/tests/ofc22/Dockerfile b/src/tests/ofc22/Dockerfile index 07b18df0fff67adae4f8cfcf089fb9349fa00f9f..5fbf129223688e02933575c9fe65891e2c586bb7 100644 --- a/src/tests/ofc22/Dockerfile +++ b/src/tests/ofc22/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/tests/ofc24/Dockerfile b/src/tests/ofc24/Dockerfile index 67dbf52ca70c7fb95602768cebf4236fca402f97..ceb872e2a5f788d7e246ef1d61b1fb54ca6f92d6 100644 --- a/src/tests/ofc24/Dockerfile +++ b/src/tests/ofc24/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/tests/ofc25-camara-agg-net-controller/Dockerfile b/src/tests/ofc25-camara-agg-net-controller/Dockerfile index d6aedac80a3b9da9a8c39278ec35bcec3dc5c198..ccab9299e4c52ff606882e6a2475679c37f5d0e7 100644 --- a/src/tests/ofc25-camara-agg-net-controller/Dockerfile +++ b/src/tests/ofc25-camara-agg-net-controller/Dockerfile @@ -23,9 +23,9 @@ RUN apt-get --yes --quiet --quiet update && \ ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/tests/ofc25-camara-e2e-controller/Dockerfile b/src/tests/ofc25-camara-e2e-controller/Dockerfile index cdd1b16d1f845a9294df01ea32517f64507108c3..bfb557dcc4faa63f97989f4b2b2ab5e3c26d283a 100644 --- a/src/tests/ofc25-camara-e2e-controller/Dockerfile +++ b/src/tests/ofc25-camara-e2e-controller/Dockerfile @@ -23,9 +23,9 @@ RUN apt-get --yes --quiet --quiet update && \ ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/tests/ofc25/Dockerfile b/src/tests/ofc25/Dockerfile index a887e7e27f6cea484cfe9943f7c0fda72205dcef..a93d1d2d84d79620914229f4ac33932d9ec3433e 100644 --- a/src/tests/ofc25/Dockerfile +++ b/src/tests/ofc25/Dockerfile @@ -23,9 +23,9 @@ RUN apt-get --yes --quiet --quiet update && \ ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0's==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/tests/qkd_end2end/Dockerfile b/src/tests/qkd_end2end/Dockerfile index 4486522b6d335d8ce0ef4cb84bb0a1e070636d3c..89b0a2fd106b622569d85f7a47d883f7be217875 100644 --- a/src/tests/qkd_end2end/Dockerfile +++ b/src/tests/qkd_end2end/Dockerfile @@ -23,9 +23,9 @@ RUN apt-get --yes --quiet --quiet update && \ ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/tests/ryu-openflow/Test.Dockerfile b/src/tests/ryu-openflow/Test.Dockerfile index 3564e3f2d64c22ecd6dca3bec4d3660f60abaa7d..ea3d4bec3ea99f5f3d007095171da895ef9ceb1c 100644 --- a/src/tests/ryu-openflow/Test.Dockerfile +++ b/src/tests/ryu-openflow/Test.Dockerfile @@ -23,9 +23,9 @@ RUN apt-get --yes --quiet --quiet update && \ ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/tests/tools/mock_ietf_actn_sdn_ctrl/Dockerfile b/src/tests/tools/mock_ietf_actn_sdn_ctrl/Dockerfile index d16762b1690347f45c13078afa23d77b392f34e4..1d4c3db08f45943181b6a4597a44e75afcc31e26 100644 --- a/src/tests/tools/mock_ietf_actn_sdn_ctrl/Dockerfile +++ b/src/tests/tools/mock_ietf_actn_sdn_ctrl/Dockerfile @@ -18,9 +18,9 @@ FROM python:3.9-slim ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Create component sub-folders, and copy content RUN mkdir -p /var/teraflow/mock_ietf_actn_sdn_ctrl diff --git a/src/tests/tools/mock_ietf_l3vpn_sdn_ctrl/Dockerfile b/src/tests/tools/mock_ietf_l3vpn_sdn_ctrl/Dockerfile index b2ac55af45ba673cd7c119f19a5245d065d02ea3..e80d8714576cf6a7f7d95fb84972dde5ed37716d 100644 --- a/src/tests/tools/mock_ietf_l3vpn_sdn_ctrl/Dockerfile +++ b/src/tests/tools/mock_ietf_l3vpn_sdn_ctrl/Dockerfile @@ -18,9 +18,9 @@ FROM python:3.9-slim ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Create component sub-folders, and copy content RUN mkdir -p /var/teraflow/mock_ietf_l3vpn_sdn_ctrl diff --git a/src/tests/tools/mock_ietf_network_slice_sdn_ctrl/Dockerfile b/src/tests/tools/mock_ietf_network_slice_sdn_ctrl/Dockerfile index a624152de7d9188067a5828b4a8958b8d3418694..44f2488f175609cb1572ab89575ec0a8fb92715b 100644 --- a/src/tests/tools/mock_ietf_network_slice_sdn_ctrl/Dockerfile +++ b/src/tests/tools/mock_ietf_network_slice_sdn_ctrl/Dockerfile @@ -18,9 +18,9 @@ FROM python:3.9-slim ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Create component sub-folders, and copy content RUN mkdir -p /var/teraflow/mock_ietf_network_slice_sdn_ctrl diff --git a/src/tests/tools/mock_mw_sdn_ctrl/ssl_not_working/Dockerfile b/src/tests/tools/mock_mw_sdn_ctrl/ssl_not_working/Dockerfile index d428a28c4ae67fd0bb247e325a07c176a48545ad..dd45a16d985b2b44017e6e6129ab364ec81b5fe5 100644 --- a/src/tests/tools/mock_mw_sdn_ctrl/ssl_not_working/Dockerfile +++ b/src/tests/tools/mock_mw_sdn_ctrl/ssl_not_working/Dockerfile @@ -18,9 +18,9 @@ FROM python:3.9-slim ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Create component sub-folders, and copy content RUN mkdir -p /var/teraflow/mock_mw_sdn_ctrl diff --git a/src/tests/tools/mock_nce_ctrl/Dockerfile b/src/tests/tools/mock_nce_ctrl/Dockerfile index 579bab5367e2d9320f45eb473e7d82f59b24a181..8fe63387fd5c08035f3abcf789691f9bf4595324 100644 --- a/src/tests/tools/mock_nce_ctrl/Dockerfile +++ b/src/tests/tools/mock_nce_ctrl/Dockerfile @@ -18,9 +18,9 @@ FROM python:3.9-slim ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Create component sub-folders, and copy content RUN mkdir -p /var/teraflow/mock_nce_ctrl diff --git a/src/tests/tools/mock_nce_fan_ctrl/Dockerfile b/src/tests/tools/mock_nce_fan_ctrl/Dockerfile index cf4dfd9ad4cbea8fde40f147f4291b584505cbc3..c16e884f55e1f7da318ffc474b9c76cd4c7af7a6 100644 --- a/src/tests/tools/mock_nce_fan_ctrl/Dockerfile +++ b/src/tests/tools/mock_nce_fan_ctrl/Dockerfile @@ -39,9 +39,9 @@ RUN ldconfig ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get specific Python packages RUN mkdir -p /var/teraflow/ diff --git a/src/tests/tools/mock_nce_t_ctrl/Dockerfile b/src/tests/tools/mock_nce_t_ctrl/Dockerfile index 60f7a7b06fddbc4db31180481a69b55d30b2fdc0..84af03eefb6efaf62d498edd5ed9f37763baa371 100644 --- a/src/tests/tools/mock_nce_t_ctrl/Dockerfile +++ b/src/tests/tools/mock_nce_t_ctrl/Dockerfile @@ -38,9 +38,9 @@ RUN ldconfig ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get specific Python packages RUN mkdir -p /var/teraflow/ diff --git a/src/tests/tools/mock_tfs_nbi_dependencies/Dockerfile b/src/tests/tools/mock_tfs_nbi_dependencies/Dockerfile index c041b880689b6c92ed1ce60d9d9570a7d4238c83..5fdfd99a6e886b8290f0d2344170de3f7f052362 100644 --- a/src/tests/tools/mock_tfs_nbi_dependencies/Dockerfile +++ b/src/tests/tools/mock_tfs_nbi_dependencies/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/tests/tools/simap_server/Dockerfile b/src/tests/tools/simap_server/Dockerfile index f47de61a8ce25c6f0b530da9e73df661a70bcb68..c6bb56f431f40feefd4e49f0865fa0f92d38c2be 100644 --- a/src/tests/tools/simap_server/Dockerfile +++ b/src/tests/tools/simap_server/Dockerfile @@ -38,9 +38,9 @@ RUN ldconfig ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Create component sub-folders, get specific Python packages RUN mkdir -p /var/teraflow/simap_server/ diff --git a/src/tests/tools/traffic_changer/Dockerfile b/src/tests/tools/traffic_changer/Dockerfile index 9b590eb5e654e286cd37a9b98af0b45b2a4b5b38..268a06684be392f9ff3653fab6fc62ebd434aff9 100644 --- a/src/tests/tools/traffic_changer/Dockerfile +++ b/src/tests/tools/traffic_changer/Dockerfile @@ -24,9 +24,9 @@ FROM python:3.9-slim ENV PYTHONUNBUFFERED=0 # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get specific Python packages RUN mkdir -p /var/teraflow/ diff --git a/src/vnt_manager/Dockerfile b/src/vnt_manager/Dockerfile index 13368dc9f62c0b7b8bafb0af7f171830da348681..4d85495b7332bbb73c99d83b6a871b1bc160ff4b 100644 --- a/src/vnt_manager/Dockerfile +++ b/src/vnt_manager/Dockerfile @@ -42,9 +42,9 @@ RUN python3 -m venv ${VIRTUAL_ENV} ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/webui/Dockerfile b/src/webui/Dockerfile index 167280d6890613bd623053e9699ec7ea4a225554..a386c46a162807f41f495181189aee201afcf971 100644 --- a/src/webui/Dockerfile +++ b/src/webui/Dockerfile @@ -44,9 +44,9 @@ RUN python3 -m venv ${VIRTUAL_ENV} ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components diff --git a/src/ztp/src/main/java/org/etsi/tfs/ztp/context/model/DeviceDriverEnum.java b/src/ztp/src/main/java/org/etsi/tfs/ztp/context/model/DeviceDriverEnum.java index f2f5a614b229d2172c0cfac58c7231d9cc936210..27187f25469b5294e5eca3b43e657e6e52784952 100644 --- a/src/ztp/src/main/java/org/etsi/tfs/ztp/context/model/DeviceDriverEnum.java +++ b/src/ztp/src/main/java/org/etsi/tfs/ztp/context/model/DeviceDriverEnum.java @@ -27,5 +27,15 @@ public enum DeviceDriverEnum { IETF_L2VPN, GNMI_OPENCONFIG, OPTICAL_TFS, - IETF_ACTN + IETF_ACTN, + OC, + QKD, + IETF_L3VPN, + IETF_SLICE, + NCE, + SMARTNIC, + MORPHEUS, + RYU, + GNMI_NOKIA_SRLINUX, + OPENROADM } diff --git a/src/ztp/src/main/proto/ipowdm.proto b/src/ztp/src/main/proto/ipowdm.proto new file mode 120000 index 0000000000000000000000000000000000000000..80f42cbd0c7bd06392f3d0e01209818dff6fe283 --- /dev/null +++ b/src/ztp/src/main/proto/ipowdm.proto @@ -0,0 +1 @@ +../../../../../proto/ipowdm.proto \ No newline at end of file diff --git a/src/ztp/src/main/proto/tapi_lsp.proto b/src/ztp/src/main/proto/tapi_lsp.proto new file mode 120000 index 0000000000000000000000000000000000000000..ff9990db2d8019a366a449eb99137afa263f27c2 --- /dev/null +++ b/src/ztp/src/main/proto/tapi_lsp.proto @@ -0,0 +1 @@ +../../../../../proto/tapi_lsp.proto \ No newline at end of file diff --git a/src/ztp/target/generated-sources/grpc/context/ContextOuterClass.java b/src/ztp/target/generated-sources/grpc/context/ContextOuterClass.java index ceec864c653d88511a8729dd871abdbfb3391dc6..20a9d9e7aa4a71890aaff581310ab7556dc2797b 100644 --- a/src/ztp/target/generated-sources/grpc/context/ContextOuterClass.java +++ b/src/ztp/target/generated-sources/grpc/context/ContextOuterClass.java @@ -788,6 +788,14 @@ public final class ContextOuterClass { * SERVICETYPE_IP_LINK = 11; */ SERVICETYPE_IP_LINK(11), + /** + * SERVICETYPE_TAPI_LSP = 12; + */ + SERVICETYPE_TAPI_LSP(12), + /** + * SERVICETYPE_IPOWDM = 13; + */ + SERVICETYPE_IPOWDM(13), UNRECOGNIZED(-1); /** @@ -850,6 +858,16 @@ public final class ContextOuterClass { */ public static final int SERVICETYPE_IP_LINK_VALUE = 11; + /** + * SERVICETYPE_TAPI_LSP = 12; + */ + public static final int SERVICETYPE_TAPI_LSP_VALUE = 12; + + /** + * SERVICETYPE_IPOWDM = 13; + */ + public static final int SERVICETYPE_IPOWDM_VALUE = 13; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException("Can't get the number of an unknown enum value."); @@ -897,6 +915,10 @@ public final class ContextOuterClass { return SERVICETYPE_ACL; case 11: return SERVICETYPE_IP_LINK; + case 12: + return SERVICETYPE_TAPI_LSP; + case 13: + return SERVICETYPE_IPOWDM; default: return null; } @@ -60473,6 +60495,1659 @@ public final class ContextOuterClass { } } + public interface ConfigRule_IPOWDMOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ConfigRule_IPOWDM) + com.google.protobuf.MessageOrBuilder { + + /** + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. + */ + boolean hasEndpointId(); + + /** + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. + */ + context.ContextOuterClass.EndPointId getEndpointId(); + + /** + * .context.EndPointId endpoint_id = 1; + */ + context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder(); + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + * @return Whether the ruleSet field is set. + */ + boolean hasRuleSet(); + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + * @return The ruleSet. + */ + ipowdm.Ipowdm.IpowdmRuleSet getRuleSet(); + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + ipowdm.Ipowdm.IpowdmRuleSetOrBuilder getRuleSetOrBuilder(); + } + + /** + * Protobuf type {@code context.ConfigRule_IPOWDM} + */ + public static final class ConfigRule_IPOWDM extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.ConfigRule_IPOWDM) + ConfigRule_IPOWDMOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use ConfigRule_IPOWDM.newBuilder() to construct. + private ConfigRule_IPOWDM(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfigRule_IPOWDM() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfigRule_IPOWDM(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_ConfigRule_IPOWDM_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_ConfigRule_IPOWDM_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule_IPOWDM.class, context.ContextOuterClass.ConfigRule_IPOWDM.Builder.class); + } + + public static final int ENDPOINT_ID_FIELD_NUMBER = 1; + + private context.ContextOuterClass.EndPointId endpointId_; + + /** + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. + */ + @java.lang.Override + public boolean hasEndpointId() { + return endpointId_ != null; + } + + /** + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. + */ + @java.lang.Override + public context.ContextOuterClass.EndPointId getEndpointId() { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + @java.lang.Override + public context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder() { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } + + public static final int RULE_SET_FIELD_NUMBER = 2; + + private ipowdm.Ipowdm.IpowdmRuleSet ruleSet_; + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + * @return Whether the ruleSet field is set. + */ + @java.lang.Override + public boolean hasRuleSet() { + return ruleSet_ != null; + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + * @return The ruleSet. + */ + @java.lang.Override + public ipowdm.Ipowdm.IpowdmRuleSet getRuleSet() { + return ruleSet_ == null ? ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance() : ruleSet_; + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + @java.lang.Override + public ipowdm.Ipowdm.IpowdmRuleSetOrBuilder getRuleSetOrBuilder() { + return ruleSet_ == null ? ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance() : ruleSet_; + } + + 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 (endpointId_ != null) { + output.writeMessage(1, getEndpointId()); + } + if (ruleSet_ != null) { + output.writeMessage(2, getRuleSet()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (endpointId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEndpointId()); + } + if (ruleSet_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuleSet()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof context.ContextOuterClass.ConfigRule_IPOWDM)) { + return super.equals(obj); + } + context.ContextOuterClass.ConfigRule_IPOWDM other = (context.ContextOuterClass.ConfigRule_IPOWDM) obj; + if (hasEndpointId() != other.hasEndpointId()) + return false; + if (hasEndpointId()) { + if (!getEndpointId().equals(other.getEndpointId())) + return false; + } + if (hasRuleSet() != other.hasRuleSet()) + return false; + if (hasRuleSet()) { + if (!getRuleSet().equals(other.getRuleSet())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEndpointId()) { + hash = (37 * hash) + ENDPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEndpointId().hashCode(); + } + if (hasRuleSet()) { + hash = (37 * hash) + RULE_SET_FIELD_NUMBER; + hash = (53 * hash) + getRuleSet().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM 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 context.ContextOuterClass.ConfigRule_IPOWDM parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM 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 context.ContextOuterClass.ConfigRule_IPOWDM parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM 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(context.ContextOuterClass.ConfigRule_IPOWDM 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; + } + + /** + * Protobuf type {@code context.ConfigRule_IPOWDM} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.ConfigRule_IPOWDM) + context.ContextOuterClass.ConfigRule_IPOWDMOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_ConfigRule_IPOWDM_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_ConfigRule_IPOWDM_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule_IPOWDM.class, context.ContextOuterClass.ConfigRule_IPOWDM.Builder.class); + } + + // Construct using context.ContextOuterClass.ConfigRule_IPOWDM.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpointId_ = null; + if (endpointIdBuilder_ != null) { + endpointIdBuilder_.dispose(); + endpointIdBuilder_ = null; + } + ruleSet_ = null; + if (ruleSetBuilder_ != null) { + ruleSetBuilder_.dispose(); + ruleSetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_ConfigRule_IPOWDM_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDM getDefaultInstanceForType() { + return context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDM build() { + context.ContextOuterClass.ConfigRule_IPOWDM result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDM buildPartial() { + context.ContextOuterClass.ConfigRule_IPOWDM result = new context.ContextOuterClass.ConfigRule_IPOWDM(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(context.ContextOuterClass.ConfigRule_IPOWDM result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpointId_ = endpointIdBuilder_ == null ? endpointId_ : endpointIdBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ruleSet_ = ruleSetBuilder_ == null ? ruleSet_ : ruleSetBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.ConfigRule_IPOWDM) { + return mergeFrom((context.ContextOuterClass.ConfigRule_IPOWDM) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.ConfigRule_IPOWDM other) { + if (other == context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance()) + return this; + if (other.hasEndpointId()) { + mergeEndpointId(other.getEndpointId()); + } + if (other.hasRuleSet()) { + mergeRuleSet(other.getRuleSet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getEndpointIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 18: + { + input.readMessage(getRuleSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } + // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private context.ContextOuterClass.EndPointId endpointId_; + + private com.google.protobuf.SingleFieldBuilderV3 endpointIdBuilder_; + + /** + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. + */ + public boolean hasEndpointId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. + */ + public context.ContextOuterClass.EndPointId getEndpointId() { + if (endpointIdBuilder_ == null) { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } else { + return endpointIdBuilder_.getMessage(); + } + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder setEndpointId(context.ContextOuterClass.EndPointId value) { + if (endpointIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endpointId_ = value; + } else { + endpointIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder setEndpointId(context.ContextOuterClass.EndPointId.Builder builderForValue) { + if (endpointIdBuilder_ == null) { + endpointId_ = builderForValue.build(); + } else { + endpointIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder mergeEndpointId(context.ContextOuterClass.EndPointId value) { + if (endpointIdBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && endpointId_ != null && endpointId_ != context.ContextOuterClass.EndPointId.getDefaultInstance()) { + getEndpointIdBuilder().mergeFrom(value); + } else { + endpointId_ = value; + } + } else { + endpointIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder clearEndpointId() { + bitField0_ = (bitField0_ & ~0x00000001); + endpointId_ = null; + if (endpointIdBuilder_ != null) { + endpointIdBuilder_.dispose(); + endpointIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public context.ContextOuterClass.EndPointId.Builder getEndpointIdBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEndpointIdFieldBuilder().getBuilder(); + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder() { + if (endpointIdBuilder_ != null) { + return endpointIdBuilder_.getMessageOrBuilder(); + } else { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getEndpointIdFieldBuilder() { + if (endpointIdBuilder_ == null) { + endpointIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getEndpointId(), getParentForChildren(), isClean()); + endpointId_ = null; + } + return endpointIdBuilder_; + } + + private ipowdm.Ipowdm.IpowdmRuleSet ruleSet_; + + private com.google.protobuf.SingleFieldBuilderV3 ruleSetBuilder_; + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + * @return Whether the ruleSet field is set. + */ + public boolean hasRuleSet() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + * @return The ruleSet. + */ + public ipowdm.Ipowdm.IpowdmRuleSet getRuleSet() { + if (ruleSetBuilder_ == null) { + return ruleSet_ == null ? ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance() : ruleSet_; + } else { + return ruleSetBuilder_.getMessage(); + } + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + public Builder setRuleSet(ipowdm.Ipowdm.IpowdmRuleSet value) { + if (ruleSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleSet_ = value; + } else { + ruleSetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + public Builder setRuleSet(ipowdm.Ipowdm.IpowdmRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ruleSet_ = builderForValue.build(); + } else { + ruleSetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + public Builder mergeRuleSet(ipowdm.Ipowdm.IpowdmRuleSet value) { + if (ruleSetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && ruleSet_ != null && ruleSet_ != ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance()) { + getRuleSetBuilder().mergeFrom(value); + } else { + ruleSet_ = value; + } + } else { + ruleSetBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + public Builder clearRuleSet() { + bitField0_ = (bitField0_ & ~0x00000002); + ruleSet_ = null; + if (ruleSetBuilder_ != null) { + ruleSetBuilder_.dispose(); + ruleSetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + public ipowdm.Ipowdm.IpowdmRuleSet.Builder getRuleSetBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRuleSetFieldBuilder().getBuilder(); + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + public ipowdm.Ipowdm.IpowdmRuleSetOrBuilder getRuleSetOrBuilder() { + if (ruleSetBuilder_ != null) { + return ruleSetBuilder_.getMessageOrBuilder(); + } else { + return ruleSet_ == null ? ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance() : ruleSet_; + } + } + + /** + * .ipowdm.IpowdmRuleSet rule_set = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getRuleSetFieldBuilder() { + if (ruleSetBuilder_ == null) { + ruleSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getRuleSet(), getParentForChildren(), isClean()); + ruleSet_ = null; + } + return ruleSetBuilder_; + } + + @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:context.ConfigRule_IPOWDM) + } + + // @@protoc_insertion_point(class_scope:context.ConfigRule_IPOWDM) + private static final context.ContextOuterClass.ConfigRule_IPOWDM DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.ConfigRule_IPOWDM(); + } + + public static context.ContextOuterClass.ConfigRule_IPOWDM getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public ConfigRule_IPOWDM parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDM getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConfigRule_TAPI_LSPOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ConfigRule_TAPI_LSP) + com.google.protobuf.MessageOrBuilder { + + /** + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. + */ + boolean hasEndpointId(); + + /** + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. + */ + context.ContextOuterClass.EndPointId getEndpointId(); + + /** + * .context.EndPointId endpoint_id = 1; + */ + context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder(); + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + java.util.List getRuleSetList(); + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + tapi_lsp.TapiLsp.TapiLspRuleSet getRuleSet(int index); + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + int getRuleSetCount(); + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + java.util.List getRuleSetOrBuilderList(); + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + tapi_lsp.TapiLsp.TapiLspRuleSetOrBuilder getRuleSetOrBuilder(int index); + } + + /** + * Protobuf type {@code context.ConfigRule_TAPI_LSP} + */ + public static final class ConfigRule_TAPI_LSP extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.ConfigRule_TAPI_LSP) + ConfigRule_TAPI_LSPOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use ConfigRule_TAPI_LSP.newBuilder() to construct. + private ConfigRule_TAPI_LSP(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfigRule_TAPI_LSP() { + ruleSet_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfigRule_TAPI_LSP(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_ConfigRule_TAPI_LSP_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_ConfigRule_TAPI_LSP_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule_TAPI_LSP.class, context.ContextOuterClass.ConfigRule_TAPI_LSP.Builder.class); + } + + public static final int ENDPOINT_ID_FIELD_NUMBER = 1; + + private context.ContextOuterClass.EndPointId endpointId_; + + /** + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. + */ + @java.lang.Override + public boolean hasEndpointId() { + return endpointId_ != null; + } + + /** + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. + */ + @java.lang.Override + public context.ContextOuterClass.EndPointId getEndpointId() { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + @java.lang.Override + public context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder() { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } + + public static final int RULE_SET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List ruleSet_; + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + @java.lang.Override + public java.util.List getRuleSetList() { + return ruleSet_; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + @java.lang.Override + public java.util.List getRuleSetOrBuilderList() { + return ruleSet_; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + @java.lang.Override + public int getRuleSetCount() { + return ruleSet_.size(); + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + @java.lang.Override + public tapi_lsp.TapiLsp.TapiLspRuleSet getRuleSet(int index) { + return ruleSet_.get(index); + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + @java.lang.Override + public tapi_lsp.TapiLsp.TapiLspRuleSetOrBuilder getRuleSetOrBuilder(int index) { + return ruleSet_.get(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 (endpointId_ != null) { + output.writeMessage(1, getEndpointId()); + } + for (int i = 0; i < ruleSet_.size(); i++) { + output.writeMessage(2, ruleSet_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (endpointId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEndpointId()); + } + for (int i = 0; i < ruleSet_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, ruleSet_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof context.ContextOuterClass.ConfigRule_TAPI_LSP)) { + return super.equals(obj); + } + context.ContextOuterClass.ConfigRule_TAPI_LSP other = (context.ContextOuterClass.ConfigRule_TAPI_LSP) obj; + if (hasEndpointId() != other.hasEndpointId()) + return false; + if (hasEndpointId()) { + if (!getEndpointId().equals(other.getEndpointId())) + return false; + } + if (!getRuleSetList().equals(other.getRuleSetList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEndpointId()) { + hash = (37 * hash) + ENDPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEndpointId().hashCode(); + } + if (getRuleSetCount() > 0) { + hash = (37 * hash) + RULE_SET_FIELD_NUMBER; + hash = (53 * hash) + getRuleSetList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP 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 context.ContextOuterClass.ConfigRule_TAPI_LSP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP 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 context.ContextOuterClass.ConfigRule_TAPI_LSP parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP 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(context.ContextOuterClass.ConfigRule_TAPI_LSP 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; + } + + /** + * Protobuf type {@code context.ConfigRule_TAPI_LSP} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.ConfigRule_TAPI_LSP) + context.ContextOuterClass.ConfigRule_TAPI_LSPOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_ConfigRule_TAPI_LSP_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_ConfigRule_TAPI_LSP_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule_TAPI_LSP.class, context.ContextOuterClass.ConfigRule_TAPI_LSP.Builder.class); + } + + // Construct using context.ContextOuterClass.ConfigRule_TAPI_LSP.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpointId_ = null; + if (endpointIdBuilder_ != null) { + endpointIdBuilder_.dispose(); + endpointIdBuilder_ = null; + } + if (ruleSetBuilder_ == null) { + ruleSet_ = java.util.Collections.emptyList(); + } else { + ruleSet_ = null; + ruleSetBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_ConfigRule_TAPI_LSP_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSP getDefaultInstanceForType() { + return context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSP build() { + context.ContextOuterClass.ConfigRule_TAPI_LSP result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSP buildPartial() { + context.ContextOuterClass.ConfigRule_TAPI_LSP result = new context.ContextOuterClass.ConfigRule_TAPI_LSP(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(context.ContextOuterClass.ConfigRule_TAPI_LSP result) { + if (ruleSetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + ruleSet_ = java.util.Collections.unmodifiableList(ruleSet_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.ruleSet_ = ruleSet_; + } else { + result.ruleSet_ = ruleSetBuilder_.build(); + } + } + + private void buildPartial0(context.ContextOuterClass.ConfigRule_TAPI_LSP result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpointId_ = endpointIdBuilder_ == null ? endpointId_ : endpointIdBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.ConfigRule_TAPI_LSP) { + return mergeFrom((context.ContextOuterClass.ConfigRule_TAPI_LSP) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.ConfigRule_TAPI_LSP other) { + if (other == context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance()) + return this; + if (other.hasEndpointId()) { + mergeEndpointId(other.getEndpointId()); + } + if (ruleSetBuilder_ == null) { + if (!other.ruleSet_.isEmpty()) { + if (ruleSet_.isEmpty()) { + ruleSet_ = other.ruleSet_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRuleSetIsMutable(); + ruleSet_.addAll(other.ruleSet_); + } + onChanged(); + } + } else { + if (!other.ruleSet_.isEmpty()) { + if (ruleSetBuilder_.isEmpty()) { + ruleSetBuilder_.dispose(); + ruleSetBuilder_ = null; + ruleSet_ = other.ruleSet_; + bitField0_ = (bitField0_ & ~0x00000002); + ruleSetBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRuleSetFieldBuilder() : null; + } else { + ruleSetBuilder_.addAllMessages(other.ruleSet_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getEndpointIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 18: + { + tapi_lsp.TapiLsp.TapiLspRuleSet m = input.readMessage(tapi_lsp.TapiLsp.TapiLspRuleSet.parser(), extensionRegistry); + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.add(m); + } else { + ruleSetBuilder_.addMessage(m); + } + break; + } + // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private context.ContextOuterClass.EndPointId endpointId_; + + private com.google.protobuf.SingleFieldBuilderV3 endpointIdBuilder_; + + /** + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. + */ + public boolean hasEndpointId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. + */ + public context.ContextOuterClass.EndPointId getEndpointId() { + if (endpointIdBuilder_ == null) { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } else { + return endpointIdBuilder_.getMessage(); + } + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder setEndpointId(context.ContextOuterClass.EndPointId value) { + if (endpointIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endpointId_ = value; + } else { + endpointIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder setEndpointId(context.ContextOuterClass.EndPointId.Builder builderForValue) { + if (endpointIdBuilder_ == null) { + endpointId_ = builderForValue.build(); + } else { + endpointIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder mergeEndpointId(context.ContextOuterClass.EndPointId value) { + if (endpointIdBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && endpointId_ != null && endpointId_ != context.ContextOuterClass.EndPointId.getDefaultInstance()) { + getEndpointIdBuilder().mergeFrom(value); + } else { + endpointId_ = value; + } + } else { + endpointIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public Builder clearEndpointId() { + bitField0_ = (bitField0_ & ~0x00000001); + endpointId_ = null; + if (endpointIdBuilder_ != null) { + endpointIdBuilder_.dispose(); + endpointIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public context.ContextOuterClass.EndPointId.Builder getEndpointIdBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEndpointIdFieldBuilder().getBuilder(); + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + public context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder() { + if (endpointIdBuilder_ != null) { + return endpointIdBuilder_.getMessageOrBuilder(); + } else { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; + } + } + + /** + * .context.EndPointId endpoint_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getEndpointIdFieldBuilder() { + if (endpointIdBuilder_ == null) { + endpointIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getEndpointId(), getParentForChildren(), isClean()); + endpointId_ = null; + } + return endpointIdBuilder_; + } + + private java.util.List ruleSet_ = java.util.Collections.emptyList(); + + private void ensureRuleSetIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + ruleSet_ = new java.util.ArrayList(ruleSet_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 ruleSetBuilder_; + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public java.util.List getRuleSetList() { + if (ruleSetBuilder_ == null) { + return java.util.Collections.unmodifiableList(ruleSet_); + } else { + return ruleSetBuilder_.getMessageList(); + } + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public int getRuleSetCount() { + if (ruleSetBuilder_ == null) { + return ruleSet_.size(); + } else { + return ruleSetBuilder_.getCount(); + } + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public tapi_lsp.TapiLsp.TapiLspRuleSet getRuleSet(int index) { + if (ruleSetBuilder_ == null) { + return ruleSet_.get(index); + } else { + return ruleSetBuilder_.getMessage(index); + } + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder setRuleSet(int index, tapi_lsp.TapiLsp.TapiLspRuleSet value) { + if (ruleSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetIsMutable(); + ruleSet_.set(index, value); + onChanged(); + } else { + ruleSetBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder setRuleSet(int index, tapi_lsp.TapiLsp.TapiLspRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.set(index, builderForValue.build()); + onChanged(); + } else { + ruleSetBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder addRuleSet(tapi_lsp.TapiLsp.TapiLspRuleSet value) { + if (ruleSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetIsMutable(); + ruleSet_.add(value); + onChanged(); + } else { + ruleSetBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder addRuleSet(int index, tapi_lsp.TapiLsp.TapiLspRuleSet value) { + if (ruleSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetIsMutable(); + ruleSet_.add(index, value); + onChanged(); + } else { + ruleSetBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder addRuleSet(tapi_lsp.TapiLsp.TapiLspRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.add(builderForValue.build()); + onChanged(); + } else { + ruleSetBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder addRuleSet(int index, tapi_lsp.TapiLsp.TapiLspRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.add(index, builderForValue.build()); + onChanged(); + } else { + ruleSetBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder addAllRuleSet(java.lang.Iterable values) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ruleSet_); + onChanged(); + } else { + ruleSetBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder clearRuleSet() { + if (ruleSetBuilder_ == null) { + ruleSet_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + ruleSetBuilder_.clear(); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public Builder removeRuleSet(int index) { + if (ruleSetBuilder_ == null) { + ensureRuleSetIsMutable(); + ruleSet_.remove(index); + onChanged(); + } else { + ruleSetBuilder_.remove(index); + } + return this; + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public tapi_lsp.TapiLsp.TapiLspRuleSet.Builder getRuleSetBuilder(int index) { + return getRuleSetFieldBuilder().getBuilder(index); + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public tapi_lsp.TapiLsp.TapiLspRuleSetOrBuilder getRuleSetOrBuilder(int index) { + if (ruleSetBuilder_ == null) { + return ruleSet_.get(index); + } else { + return ruleSetBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public java.util.List getRuleSetOrBuilderList() { + if (ruleSetBuilder_ != null) { + return ruleSetBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ruleSet_); + } + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public tapi_lsp.TapiLsp.TapiLspRuleSet.Builder addRuleSetBuilder() { + return getRuleSetFieldBuilder().addBuilder(tapi_lsp.TapiLsp.TapiLspRuleSet.getDefaultInstance()); + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public tapi_lsp.TapiLsp.TapiLspRuleSet.Builder addRuleSetBuilder(int index) { + return getRuleSetFieldBuilder().addBuilder(index, tapi_lsp.TapiLsp.TapiLspRuleSet.getDefaultInstance()); + } + + /** + * repeated .tapi_lsp.TapiLspRuleSet rule_set = 2; + */ + public java.util.List getRuleSetBuilderList() { + return getRuleSetFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getRuleSetFieldBuilder() { + if (ruleSetBuilder_ == null) { + ruleSetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(ruleSet_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + ruleSet_ = null; + } + return ruleSetBuilder_; + } + + @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:context.ConfigRule_TAPI_LSP) + } + + // @@protoc_insertion_point(class_scope:context.ConfigRule_TAPI_LSP) + private static final context.ContextOuterClass.ConfigRule_TAPI_LSP DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.ConfigRule_TAPI_LSP(); + } + + public static context.ContextOuterClass.ConfigRule_TAPI_LSP getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public ConfigRule_TAPI_LSP parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSP getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface ConfigRule_IP_LINKOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ConfigRule_IP_LINK) com.google.protobuf.MessageOrBuilder { @@ -61277,6 +62952,40 @@ public final class ContextOuterClass { */ context.ContextOuterClass.ConfigRule_IP_LINKOrBuilder getIpLinkOrBuilder(); + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + * @return Whether the tapiLsp field is set. + */ + boolean hasTapiLsp(); + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + * @return The tapiLsp. + */ + context.ContextOuterClass.ConfigRule_TAPI_LSP getTapiLsp(); + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + context.ContextOuterClass.ConfigRule_TAPI_LSPOrBuilder getTapiLspOrBuilder(); + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + * @return Whether the ipowdm field is set. + */ + boolean hasIpowdm(); + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + * @return The ipowdm. + */ + context.ContextOuterClass.ConfigRule_IPOWDM getIpowdm(); + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + context.ContextOuterClass.ConfigRule_IPOWDMOrBuilder getIpowdmOrBuilder(); + context.ContextOuterClass.ConfigRule.ConfigRuleCase getConfigRuleCase(); } @@ -61319,7 +63028,12 @@ public final class ContextOuterClass { public enum ConfigRuleCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CUSTOM(2), ACL(3), IP_LINK(4), CONFIGRULE_NOT_SET(0); + CUSTOM(2), + ACL(3), + IP_LINK(4), + TAPI_LSP(5), + IPOWDM(6), + CONFIGRULE_NOT_SET(0); private final int value; @@ -61345,6 +63059,10 @@ public final class ContextOuterClass { return ACL; case 4: return IP_LINK; + case 5: + return TAPI_LSP; + case 6: + return IPOWDM; case 0: return CONFIGRULE_NOT_SET; default: @@ -61486,6 +63204,74 @@ public final class ContextOuterClass { return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); } + public static final int TAPI_LSP_FIELD_NUMBER = 5; + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + * @return Whether the tapiLsp field is set. + */ + @java.lang.Override + public boolean hasTapiLsp() { + return configRuleCase_ == 5; + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + * @return The tapiLsp. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSP getTapiLsp() { + if (configRuleCase_ == 5) { + return (context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_; + } + return context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSPOrBuilder getTapiLspOrBuilder() { + if (configRuleCase_ == 5) { + return (context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_; + } + return context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } + + public static final int IPOWDM_FIELD_NUMBER = 6; + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + * @return Whether the ipowdm field is set. + */ + @java.lang.Override + public boolean hasIpowdm() { + return configRuleCase_ == 6; + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + * @return The ipowdm. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDM getIpowdm() { + if (configRuleCase_ == 6) { + return (context.ContextOuterClass.ConfigRule_IPOWDM) configRule_; + } + return context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDMOrBuilder getIpowdmOrBuilder() { + if (configRuleCase_ == 6) { + return (context.ContextOuterClass.ConfigRule_IPOWDM) configRule_; + } + return context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -61513,6 +63299,12 @@ public final class ContextOuterClass { if (configRuleCase_ == 4) { output.writeMessage(4, (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_); } + if (configRuleCase_ == 5) { + output.writeMessage(5, (context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_); + } + if (configRuleCase_ == 6) { + output.writeMessage(6, (context.ContextOuterClass.ConfigRule_IPOWDM) configRule_); + } getUnknownFields().writeTo(output); } @@ -61534,6 +63326,12 @@ public final class ContextOuterClass { if (configRuleCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_); } + if (configRuleCase_ == 5) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, (context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_); + } + if (configRuleCase_ == 6) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, (context.ContextOuterClass.ConfigRule_IPOWDM) configRule_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -61565,6 +63363,14 @@ public final class ContextOuterClass { if (!getIpLink().equals(other.getIpLink())) return false; break; + case 5: + if (!getTapiLsp().equals(other.getTapiLsp())) + return false; + break; + case 6: + if (!getIpowdm().equals(other.getIpowdm())) + return false; + break; case 0: default: } @@ -61595,6 +63401,14 @@ public final class ContextOuterClass { hash = (37 * hash) + IP_LINK_FIELD_NUMBER; hash = (53 * hash) + getIpLink().hashCode(); break; + case 5: + hash = (37 * hash) + TAPI_LSP_FIELD_NUMBER; + hash = (53 * hash) + getTapiLsp().hashCode(); + break; + case 6: + hash = (37 * hash) + IPOWDM_FIELD_NUMBER; + hash = (53 * hash) + getIpowdm().hashCode(); + break; case 0: default: } @@ -61712,6 +63526,12 @@ public final class ContextOuterClass { if (ipLinkBuilder_ != null) { ipLinkBuilder_.clear(); } + if (tapiLspBuilder_ != null) { + tapiLspBuilder_.clear(); + } + if (ipowdmBuilder_ != null) { + ipowdmBuilder_.clear(); + } configRuleCase_ = 0; configRule_ = null; return this; @@ -61766,6 +63586,12 @@ public final class ContextOuterClass { if (configRuleCase_ == 4 && ipLinkBuilder_ != null) { result.configRule_ = ipLinkBuilder_.build(); } + if (configRuleCase_ == 5 && tapiLspBuilder_ != null) { + result.configRule_ = tapiLspBuilder_.build(); + } + if (configRuleCase_ == 6 && ipowdmBuilder_ != null) { + result.configRule_ = ipowdmBuilder_.build(); + } } @java.lang.Override @@ -61800,6 +63626,16 @@ public final class ContextOuterClass { mergeIpLink(other.getIpLink()); break; } + case TAPI_LSP: + { + mergeTapiLsp(other.getTapiLsp()); + break; + } + case IPOWDM: + { + mergeIpowdm(other.getIpowdm()); + break; + } case CONFIGRULE_NOT_SET: { break; @@ -61856,6 +63692,20 @@ public final class ContextOuterClass { break; } // case 34 + case 42: + { + input.readMessage(getTapiLspFieldBuilder().getBuilder(), extensionRegistry); + configRuleCase_ = 5; + break; + } + // case 42 + case 50: + { + input.readMessage(getIpowdmFieldBuilder().getBuilder(), extensionRegistry); + configRuleCase_ = 6; + break; + } + // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -62376,6 +64226,288 @@ public final class ContextOuterClass { return ipLinkBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3 tapiLspBuilder_; + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + * @return Whether the tapiLsp field is set. + */ + @java.lang.Override + public boolean hasTapiLsp() { + return configRuleCase_ == 5; + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + * @return The tapiLsp. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSP getTapiLsp() { + if (tapiLspBuilder_ == null) { + if (configRuleCase_ == 5) { + return (context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_; + } + return context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } else { + if (configRuleCase_ == 5) { + return tapiLspBuilder_.getMessage(); + } + return context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + public Builder setTapiLsp(context.ContextOuterClass.ConfigRule_TAPI_LSP value) { + if (tapiLspBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configRule_ = value; + onChanged(); + } else { + tapiLspBuilder_.setMessage(value); + } + configRuleCase_ = 5; + return this; + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + public Builder setTapiLsp(context.ContextOuterClass.ConfigRule_TAPI_LSP.Builder builderForValue) { + if (tapiLspBuilder_ == null) { + configRule_ = builderForValue.build(); + onChanged(); + } else { + tapiLspBuilder_.setMessage(builderForValue.build()); + } + configRuleCase_ = 5; + return this; + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + public Builder mergeTapiLsp(context.ContextOuterClass.ConfigRule_TAPI_LSP value) { + if (tapiLspBuilder_ == null) { + if (configRuleCase_ == 5 && configRule_ != context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance()) { + configRule_ = context.ContextOuterClass.ConfigRule_TAPI_LSP.newBuilder((context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_).mergeFrom(value).buildPartial(); + } else { + configRule_ = value; + } + onChanged(); + } else { + if (configRuleCase_ == 5) { + tapiLspBuilder_.mergeFrom(value); + } else { + tapiLspBuilder_.setMessage(value); + } + } + configRuleCase_ = 5; + return this; + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + public Builder clearTapiLsp() { + if (tapiLspBuilder_ == null) { + if (configRuleCase_ == 5) { + configRuleCase_ = 0; + configRule_ = null; + onChanged(); + } + } else { + if (configRuleCase_ == 5) { + configRuleCase_ = 0; + configRule_ = null; + } + tapiLspBuilder_.clear(); + } + return this; + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + public context.ContextOuterClass.ConfigRule_TAPI_LSP.Builder getTapiLspBuilder() { + return getTapiLspFieldBuilder().getBuilder(); + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_TAPI_LSPOrBuilder getTapiLspOrBuilder() { + if ((configRuleCase_ == 5) && (tapiLspBuilder_ != null)) { + return tapiLspBuilder_.getMessageOrBuilder(); + } else { + if (configRuleCase_ == 5) { + return (context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_; + } + return context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_TAPI_LSP tapi_lsp = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTapiLspFieldBuilder() { + if (tapiLspBuilder_ == null) { + if (!(configRuleCase_ == 5)) { + configRule_ = context.ContextOuterClass.ConfigRule_TAPI_LSP.getDefaultInstance(); + } + tapiLspBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_TAPI_LSP) configRule_, getParentForChildren(), isClean()); + configRule_ = null; + } + configRuleCase_ = 5; + onChanged(); + return tapiLspBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 ipowdmBuilder_; + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + * @return Whether the ipowdm field is set. + */ + @java.lang.Override + public boolean hasIpowdm() { + return configRuleCase_ == 6; + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + * @return The ipowdm. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDM getIpowdm() { + if (ipowdmBuilder_ == null) { + if (configRuleCase_ == 6) { + return (context.ContextOuterClass.ConfigRule_IPOWDM) configRule_; + } + return context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } else { + if (configRuleCase_ == 6) { + return ipowdmBuilder_.getMessage(); + } + return context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + public Builder setIpowdm(context.ContextOuterClass.ConfigRule_IPOWDM value) { + if (ipowdmBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configRule_ = value; + onChanged(); + } else { + ipowdmBuilder_.setMessage(value); + } + configRuleCase_ = 6; + return this; + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + public Builder setIpowdm(context.ContextOuterClass.ConfigRule_IPOWDM.Builder builderForValue) { + if (ipowdmBuilder_ == null) { + configRule_ = builderForValue.build(); + onChanged(); + } else { + ipowdmBuilder_.setMessage(builderForValue.build()); + } + configRuleCase_ = 6; + return this; + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + public Builder mergeIpowdm(context.ContextOuterClass.ConfigRule_IPOWDM value) { + if (ipowdmBuilder_ == null) { + if (configRuleCase_ == 6 && configRule_ != context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance()) { + configRule_ = context.ContextOuterClass.ConfigRule_IPOWDM.newBuilder((context.ContextOuterClass.ConfigRule_IPOWDM) configRule_).mergeFrom(value).buildPartial(); + } else { + configRule_ = value; + } + onChanged(); + } else { + if (configRuleCase_ == 6) { + ipowdmBuilder_.mergeFrom(value); + } else { + ipowdmBuilder_.setMessage(value); + } + } + configRuleCase_ = 6; + return this; + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + public Builder clearIpowdm() { + if (ipowdmBuilder_ == null) { + if (configRuleCase_ == 6) { + configRuleCase_ = 0; + configRule_ = null; + onChanged(); + } + } else { + if (configRuleCase_ == 6) { + configRuleCase_ = 0; + configRule_ = null; + } + ipowdmBuilder_.clear(); + } + return this; + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + public context.ContextOuterClass.ConfigRule_IPOWDM.Builder getIpowdmBuilder() { + return getIpowdmFieldBuilder().getBuilder(); + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IPOWDMOrBuilder getIpowdmOrBuilder() { + if ((configRuleCase_ == 6) && (ipowdmBuilder_ != null)) { + return ipowdmBuilder_.getMessageOrBuilder(); + } else { + if (configRuleCase_ == 6) { + return (context.ContextOuterClass.ConfigRule_IPOWDM) configRule_; + } + return context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_IPOWDM ipowdm = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3 getIpowdmFieldBuilder() { + if (ipowdmBuilder_ == null) { + if (!(configRuleCase_ == 6)) { + configRule_ = context.ContextOuterClass.ConfigRule_IPOWDM.getDefaultInstance(); + } + ipowdmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_IPOWDM) configRule_, getParentForChildren(), isClean()); + configRule_ = null; + } + configRuleCase_ = 6; + onChanged(); + return ipowdmBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); @@ -87855,6 +89987,14 @@ public final class ContextOuterClass { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_ACL_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ConfigRule_IPOWDM_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_IPOWDM_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ConfigRule_TAPI_LSP_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_TAPI_LSP_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ConfigRule_IP_LINK_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_IP_LINK_fieldAccessorTable; @@ -87998,8 +90138,8 @@ public final class ContextOuterClass { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - java.lang.String[] descriptorData = { "\n\rcontext.proto\022\007context\032\031google/protobu" + "f/any.proto\032\tacl.proto\032\rip_link.proto\032\026k" + "pi_sample_types.proto\"\007\n\005Empty\"\024\n\004Uuid\022\014" + "\n\004uuid\030\001 \001(\t\"\036\n\tTimestamp\022\021\n\ttimestamp\030\001" + " \001(\001\"Z\n\005Event\022%\n\ttimestamp\030\001 \001(\0132\022.conte" + "xt.Timestamp\022*\n\nevent_type\030\002 \001(\0162\026.conte" + "xt.EventTypeEnum\"\265\002\n\010AnyEvent\022(\n\007context" + "\030\001 \001(\0132\025.context.ContextEventH\000\022*\n\010topol" + "ogy\030\002 \001(\0132\026.context.TopologyEventH\000\022&\n\006d" + "evice\030\003 \001(\0132\024.context.DeviceEventH\000\022\"\n\004l" + "ink\030\004 \001(\0132\022.context.LinkEventH\000\022(\n\007servi" + "ce\030\005 \001(\0132\025.context.ServiceEventH\000\022$\n\005sli" + "ce\030\006 \001(\0132\023.context.SliceEventH\000\022.\n\nconne" + "ction\030\007 \001(\0132\030.context.ConnectionEventH\000B" + "\007\n\005event\"0\n\tContextId\022#\n\014context_uuid\030\001 " + "\001(\0132\r.context.Uuid\"\351\001\n\007Context\022&\n\ncontex" + "t_id\030\001 \001(\0132\022.context.ContextId\022\014\n\004name\030\002" + " \001(\t\022)\n\014topology_ids\030\003 \003(\0132\023.context.Top" + "ologyId\022\'\n\013service_ids\030\004 \003(\0132\022.context.S" + "erviceId\022#\n\tslice_ids\030\005 \003(\0132\020.context.Sl" + "iceId\022/\n\ncontroller\030\006 \001(\0132\033.context.Tera" + "FlowController\"8\n\rContextIdList\022\'\n\013conte" + "xt_ids\030\001 \003(\0132\022.context.ContextId\"1\n\013Cont" + "extList\022\"\n\010contexts\030\001 \003(\0132\020.context.Cont" + "ext\"U\n\014ContextEvent\022\035\n\005event\030\001 \001(\0132\016.con" + "text.Event\022&\n\ncontext_id\030\002 \001(\0132\022.context" + ".ContextId\"Z\n\nTopologyId\022&\n\ncontext_id\030\001" + " \001(\0132\022.context.ContextId\022$\n\rtopology_uui" + "d\030\002 \001(\0132\r.context.Uuid\"\267\001\n\010Topology\022(\n\013t" + "opology_id\030\001 \001(\0132\023.context.TopologyId\022\014\n" + "\004name\030\002 \001(\t\022%\n\ndevice_ids\030\003 \003(\0132\021.contex" + "t.DeviceId\022!\n\010link_ids\030\004 \003(\0132\017.context.L" + "inkId\022)\n\020optical_link_ids\030\005 \003(\0132\017.contex" + "t.LinkId\"\266\001\n\017TopologyDetails\022(\n\013topology" + "_id\030\001 \001(\0132\023.context.TopologyId\022\014\n\004name\030\002" + " \001(\t\022 \n\007devices\030\003 \003(\0132\017.context.Device\022\034" + "\n\005links\030\004 \003(\0132\r.context.Link\022+\n\roptical_" + "links\030\005 \003(\0132\024.context.OpticalLink\";\n\016Top" + "ologyIdList\022)\n\014topology_ids\030\001 \003(\0132\023.cont" + "ext.TopologyId\"5\n\014TopologyList\022%\n\ntopolo" + "gies\030\001 \003(\0132\021.context.Topology\"X\n\rTopolog" + "yEvent\022\035\n\005event\030\001 \001(\0132\016.context.Event\022(\n" + "\013topology_id\030\002 \001(\0132\023.context.TopologyId\"" + ".\n\010DeviceId\022\"\n\013device_uuid\030\001 \001(\0132\r.conte" + "xt.Uuid\"\372\002\n\006Device\022$\n\tdevice_id\030\001 \001(\0132\021." + "context.DeviceId\022\014\n\004name\030\002 \001(\t\022\023\n\013device" + "_type\030\003 \001(\t\022,\n\rdevice_config\030\004 \001(\0132\025.con" + "text.DeviceConfig\022G\n\031device_operational_" + "status\030\005 \001(\0162$.context.DeviceOperational" + "StatusEnum\0221\n\016device_drivers\030\006 \003(\0162\031.con" + "text.DeviceDriverEnum\022+\n\020device_endpoint" + "s\030\007 \003(\0132\021.context.EndPoint\022&\n\ncomponents" + "\030\010 \003(\0132\022.context.Component\022(\n\rcontroller" + "_id\030\t \001(\0132\021.context.DeviceId\"\311\001\n\tCompone" + "nt\022%\n\016component_uuid\030\001 \001(\0132\r.context.Uui" + "d\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\0226\n\nattribu" + "tes\030\004 \003(\0132\".context.Component.Attributes" + "Entry\022\016\n\006parent\030\005 \001(\t\0321\n\017AttributesEntry" + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"9\n\014Devi" + "ceConfig\022)\n\014config_rules\030\001 \003(\0132\023.context" + ".ConfigRule\"5\n\014DeviceIdList\022%\n\ndevice_id" + "s\030\001 \003(\0132\021.context.DeviceId\".\n\nDeviceList" + "\022 \n\007devices\030\001 \003(\0132\017.context.Device\"\216\001\n\014D" + "eviceFilter\022)\n\ndevice_ids\030\001 \001(\0132\025.contex" + "t.DeviceIdList\022\031\n\021include_endpoints\030\002 \001(" + "\010\022\034\n\024include_config_rules\030\003 \001(\010\022\032\n\022inclu" + "de_components\030\004 \001(\010\"\200\001\n\013DeviceEvent\022\035\n\005e" + "vent\030\001 \001(\0132\016.context.Event\022$\n\tdevice_id\030" + "\002 \001(\0132\021.context.DeviceId\022,\n\rdevice_confi" + "g\030\003 \001(\0132\025.context.DeviceConfig\"*\n\006LinkId" + "\022 \n\tlink_uuid\030\001 \001(\0132\r.context.Uuid\"c\n\016Li" + "nkAttributes\022\030\n\020is_bidirectional\030\001 \001(\010\022\033" + "\n\023total_capacity_gbps\030\002 \001(\002\022\032\n\022used_capa" + "city_gbps\030\003 \001(\002\"\275\001\n\004Link\022 \n\007link_id\030\001 \001(" + "\0132\017.context.LinkId\022\014\n\004name\030\002 \001(\t\022(\n\tlink" + "_type\030\003 \001(\0162\025.context.LinkTypeEnum\022.\n\021li" + "nk_endpoint_ids\030\004 \003(\0132\023.context.EndPoint" + "Id\022+\n\nattributes\030\005 \001(\0132\027.context.LinkAtt" + "ributes\"/\n\nLinkIdList\022!\n\010link_ids\030\001 \003(\0132" + "\017.context.LinkId\"(\n\010LinkList\022\034\n\005links\030\001 " + "\003(\0132\r.context.Link\"L\n\tLinkEvent\022\035\n\005event" + "\030\001 \001(\0132\016.context.Event\022 \n\007link_id\030\002 \001(\0132" + "\017.context.LinkId\"X\n\tServiceId\022&\n\ncontext" + "_id\030\001 \001(\0132\022.context.ContextId\022#\n\014service" + "_uuid\030\002 \001(\0132\r.context.Uuid\"\333\002\n\007Service\022&" + "\n\nservice_id\030\001 \001(\0132\022.context.ServiceId\022\014" + "\n\004name\030\002 \001(\t\022.\n\014service_type\030\003 \001(\0162\030.con" + "text.ServiceTypeEnum\0221\n\024service_endpoint" + "_ids\030\004 \003(\0132\023.context.EndPointId\0220\n\023servi" + "ce_constraints\030\005 \003(\0132\023.context.Constrain" + "t\022.\n\016service_status\030\006 \001(\0132\026.context.Serv" + "iceStatus\022.\n\016service_config\030\007 \001(\0132\026.cont" + "ext.ServiceConfig\022%\n\ttimestamp\030\010 \001(\0132\022.c" + "ontext.Timestamp\"C\n\rServiceStatus\0222\n\016ser" + "vice_status\030\001 \001(\0162\032.context.ServiceStatu" + "sEnum\":\n\rServiceConfig\022)\n\014config_rules\030\001" + " \003(\0132\023.context.ConfigRule\"8\n\rServiceIdLi" + "st\022\'\n\013service_ids\030\001 \003(\0132\022.context.Servic" + "eId\"1\n\013ServiceList\022\"\n\010services\030\001 \003(\0132\020.c" + "ontext.Service\"\225\001\n\rServiceFilter\022+\n\013serv" + "ice_ids\030\001 \001(\0132\026.context.ServiceIdList\022\034\n" + "\024include_endpoint_ids\030\002 \001(\010\022\033\n\023include_c" + "onstraints\030\003 \001(\010\022\034\n\024include_config_rules" + "\030\004 \001(\010\"U\n\014ServiceEvent\022\035\n\005event\030\001 \001(\0132\016." + "context.Event\022&\n\nservice_id\030\002 \001(\0132\022.cont" + "ext.ServiceId\"T\n\007SliceId\022&\n\ncontext_id\030\001" + " \001(\0132\022.context.ContextId\022!\n\nslice_uuid\030\002" + " \001(\0132\r.context.Uuid\"\240\003\n\005Slice\022\"\n\010slice_i" + "d\030\001 \001(\0132\020.context.SliceId\022\014\n\004name\030\002 \001(\t\022" + "/\n\022slice_endpoint_ids\030\003 \003(\0132\023.context.En" + "dPointId\022.\n\021slice_constraints\030\004 \003(\0132\023.co" + "ntext.Constraint\022-\n\021slice_service_ids\030\005 " + "\003(\0132\022.context.ServiceId\022,\n\022slice_subslic" + "e_ids\030\006 \003(\0132\020.context.SliceId\022*\n\014slice_s" + "tatus\030\007 \001(\0132\024.context.SliceStatus\022*\n\014sli" + "ce_config\030\010 \001(\0132\024.context.SliceConfig\022(\n" + "\013slice_owner\030\t \001(\0132\023.context.SliceOwner\022" + "%\n\ttimestamp\030\n \001(\0132\022.context.Timestamp\"E" + "\n\nSliceOwner\022!\n\nowner_uuid\030\001 \001(\0132\r.conte" + "xt.Uuid\022\024\n\014owner_string\030\002 \001(\t\"=\n\013SliceSt" + "atus\022.\n\014slice_status\030\001 \001(\0162\030.context.Sli" + "ceStatusEnum\"8\n\013SliceConfig\022)\n\014config_ru" + "les\030\001 \003(\0132\023.context.ConfigRule\"2\n\013SliceI" + "dList\022#\n\tslice_ids\030\001 \003(\0132\020.context.Slice" + "Id\"+\n\tSliceList\022\036\n\006slices\030\001 \003(\0132\016.contex" + "t.Slice\"\312\001\n\013SliceFilter\022\'\n\tslice_ids\030\001 \001" + "(\0132\024.context.SliceIdList\022\034\n\024include_endp" + "oint_ids\030\002 \001(\010\022\033\n\023include_constraints\030\003 " + "\001(\010\022\033\n\023include_service_ids\030\004 \001(\010\022\034\n\024incl" + "ude_subslice_ids\030\005 \001(\010\022\034\n\024include_config" + "_rules\030\006 \001(\010\"O\n\nSliceEvent\022\035\n\005event\030\001 \001(" + "\0132\016.context.Event\022\"\n\010slice_id\030\002 \001(\0132\020.co" + "ntext.SliceId\"6\n\014ConnectionId\022&\n\017connect" + "ion_uuid\030\001 \001(\0132\r.context.Uuid\"2\n\025Connect" + "ionSettings_L0\022\031\n\021lsp_symbolic_name\030\001 \001(" + "\t\"\236\001\n\025ConnectionSettings_L2\022\027\n\017src_mac_a" + "ddress\030\001 \001(\t\022\027\n\017dst_mac_address\030\002 \001(\t\022\022\n" + "\nether_type\030\003 \001(\r\022\017\n\007vlan_id\030\004 \001(\r\022\022\n\nmp" + "ls_label\030\005 \001(\r\022\032\n\022mpls_traffic_class\030\006 \001" + "(\r\"t\n\025ConnectionSettings_L3\022\026\n\016src_ip_ad" + "dress\030\001 \001(\t\022\026\n\016dst_ip_address\030\002 \001(\t\022\014\n\004d" + "scp\030\003 \001(\r\022\020\n\010protocol\030\004 \001(\r\022\013\n\003ttl\030\005 \001(\r" + "\"[\n\025ConnectionSettings_L4\022\020\n\010src_port\030\001 " + "\001(\r\022\020\n\010dst_port\030\002 \001(\r\022\021\n\ttcp_flags\030\003 \001(\r" + "\022\013\n\003ttl\030\004 \001(\r\"\304\001\n\022ConnectionSettings\022*\n\002" + "l0\030\001 \001(\0132\036.context.ConnectionSettings_L0" + "\022*\n\002l2\030\002 \001(\0132\036.context.ConnectionSetting" + "s_L2\022*\n\002l3\030\003 \001(\0132\036.context.ConnectionSet" + "tings_L3\022*\n\002l4\030\004 \001(\0132\036.context.Connectio" + "nSettings_L4\"\363\001\n\nConnection\022,\n\rconnectio" + "n_id\030\001 \001(\0132\025.context.ConnectionId\022&\n\nser" + "vice_id\030\002 \001(\0132\022.context.ServiceId\0223\n\026pat" + "h_hops_endpoint_ids\030\003 \003(\0132\023.context.EndP" + "ointId\022+\n\017sub_service_ids\030\004 \003(\0132\022.contex" + "t.ServiceId\022-\n\010settings\030\005 \001(\0132\033.context." + "ConnectionSettings\"A\n\020ConnectionIdList\022-" + "\n\016connection_ids\030\001 \003(\0132\025.context.Connect" + "ionId\":\n\016ConnectionList\022(\n\013connections\030\001" + " \003(\0132\023.context.Connection\"^\n\017ConnectionE" + "vent\022\035\n\005event\030\001 \001(\0132\016.context.Event\022,\n\rc" + "onnection_id\030\002 \001(\0132\025.context.ConnectionI" + "d\"\202\001\n\nEndPointId\022(\n\013topology_id\030\001 \001(\0132\023." + "context.TopologyId\022$\n\tdevice_id\030\002 \001(\0132\021." + "context.DeviceId\022$\n\rendpoint_uuid\030\003 \001(\0132" + "\r.context.Uuid\"\310\002\n\010EndPoint\022(\n\013endpoint_" + "id\030\001 \001(\0132\023.context.EndPointId\022\014\n\004name\030\002 " + "\001(\t\022\025\n\rendpoint_type\030\003 \001(\t\0229\n\020kpi_sample" + "_types\030\004 \003(\0162\037.kpi_sample_types.KpiSampl" + "eType\022,\n\021endpoint_location\030\005 \001(\0132\021.conte" + "xt.Location\0229\n\014capabilities\030\006 \003(\0132#.cont" + "ext.EndPoint.CapabilitiesEntry\032I\n\021Capabi" + "litiesEntry\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132" + "\024.google.protobuf.Any:\0028\001\"{\n\014EndPointNam" + "e\022(\n\013endpoint_id\030\001 \001(\0132\023.context.EndPoin" + "tId\022\023\n\013device_name\030\002 \001(\t\022\025\n\rendpoint_nam" + "e\030\003 \001(\t\022\025\n\rendpoint_type\030\004 \001(\t\";\n\016EndPoi" + "ntIdList\022)\n\014endpoint_ids\030\001 \003(\0132\023.context" + ".EndPointId\"A\n\020EndPointNameList\022-\n\016endpo" + "int_names\030\001 \003(\0132\025.context.EndPointName\"A" + "\n\021ConfigRule_Custom\022\024\n\014resource_key\030\001 \001(" + "\t\022\026\n\016resource_value\030\002 \001(\t\"]\n\016ConfigRule_" + "ACL\022(\n\013endpoint_id\030\001 \001(\0132\023.context.EndPo" + "intId\022!\n\010rule_set\030\002 \001(\0132\017.acl.AclRuleSet" + "\"h\n\022ConfigRule_IP_LINK\022(\n\013endpoint_id\030\001 " + "\001(\0132\023.context.EndPointId\022(\n\010rule_set\030\002 \001" + "(\0132\026.ip_link.IpLinkRuleSet\"\314\001\n\nConfigRul" + "e\022)\n\006action\030\001 \001(\0162\031.context.ConfigAction" + "Enum\022,\n\006custom\030\002 \001(\0132\032.context.ConfigRul" + "e_CustomH\000\022&\n\003acl\030\003 \001(\0132\027.context.Config" + "Rule_ACLH\000\022.\n\007ip_link\030\004 \001(\0132\033.context.Co" + "nfigRule_IP_LINKH\000B\r\n\013config_rule\"F\n\021Con" + "straint_Custom\022\027\n\017constraint_type\030\001 \001(\t\022" + "\030\n\020constraint_value\030\002 \001(\t\"E\n\023Constraint_" + "Schedule\022\027\n\017start_timestamp\030\001 \001(\001\022\025\n\rdur" + "ation_days\030\002 \001(\002\"3\n\014GPS_Position\022\020\n\010lati" + "tude\030\001 \001(\002\022\021\n\tlongitude\030\002 \001(\002\"\204\001\n\010Locati" + "on\022\020\n\006region\030\001 \001(\tH\000\022-\n\014gps_position\030\002 \001" + "(\0132\025.context.GPS_PositionH\000\022\023\n\tinterface" + "\030\003 \001(\tH\000\022\026\n\014circuit_pack\030\004 \001(\tH\000B\n\n\010loca" + "tion\"l\n\033Constraint_EndPointLocation\022(\n\013e" + "ndpoint_id\030\001 \001(\0132\023.context.EndPointId\022#\n" + "\010location\030\002 \001(\0132\021.context.Location\"Y\n\033Co" + "nstraint_EndPointPriority\022(\n\013endpoint_id" + "\030\001 \001(\0132\023.context.EndPointId\022\020\n\010priority\030" + "\002 \001(\r\"0\n\026Constraint_SLA_Latency\022\026\n\016e2e_l" + "atency_ms\030\001 \001(\002\"0\n\027Constraint_SLA_Capaci" + "ty\022\025\n\rcapacity_gbps\030\001 \001(\002\"c\n\033Constraint_" + "SLA_Availability\022\032\n\022num_disjoint_paths\030\001" + " \001(\r\022\022\n\nall_active\030\002 \001(\010\022\024\n\014availability" + "\030\003 \001(\002\"V\n\036Constraint_SLA_Isolation_level" + "\0224\n\017isolation_level\030\001 \003(\0162\033.context.Isol" + "ationLevelEnum\"\242\001\n\025Constraint_Exclusions" + "\022\024\n\014is_permanent\030\001 \001(\010\022%\n\ndevice_ids\030\002 \003" + "(\0132\021.context.DeviceId\022)\n\014endpoint_ids\030\003 " + "\003(\0132\023.context.EndPointId\022!\n\010link_ids\030\004 \003" + "(\0132\017.context.LinkId\"5\n\014QoSProfileId\022%\n\016q" + "os_profile_id\030\001 \001(\0132\r.context.Uuid\"`\n\025Co" + "nstraint_QoSProfile\022-\n\016qos_profile_id\030\001 " + "\001(\0132\025.context.QoSProfileId\022\030\n\020qos_profil" + "e_name\030\002 \001(\t\"\222\005\n\nConstraint\022-\n\006action\030\001 " + "\001(\0162\035.context.ConstraintActionEnum\022,\n\006cu" + "stom\030\002 \001(\0132\032.context.Constraint_CustomH\000" + "\0220\n\010schedule\030\003 \001(\0132\034.context.Constraint_" + "ScheduleH\000\022A\n\021endpoint_location\030\004 \001(\0132$." + "context.Constraint_EndPointLocationH\000\022A\n" + "\021endpoint_priority\030\005 \001(\0132$.context.Const" + "raint_EndPointPriorityH\000\0228\n\014sla_capacity" + "\030\006 \001(\0132 .context.Constraint_SLA_Capacity" + "H\000\0226\n\013sla_latency\030\007 \001(\0132\037.context.Constr" + "aint_SLA_LatencyH\000\022@\n\020sla_availability\030\010" + " \001(\0132$.context.Constraint_SLA_Availabili" + "tyH\000\022@\n\rsla_isolation\030\t \001(\0132\'.context.Co" + "nstraint_SLA_Isolation_levelH\000\0224\n\nexclus" + "ions\030\n \001(\0132\036.context.Constraint_Exclusio" + "nsH\000\0225\n\013qos_profile\030\013 \001(\0132\036.context.Cons" + "traint_QoSProfileH\000B\014\n\nconstraint\"^\n\022Ter" + "aFlowController\022&\n\ncontext_id\030\001 \001(\0132\022.co" + "ntext.ContextId\022\022\n\nip_address\030\002 \001(\t\022\014\n\004p" + "ort\030\003 \001(\r\"U\n\024AuthenticationResult\022&\n\ncon" + "text_id\030\001 \001(\0132\022.context.ContextId\022\025\n\raut" + "henticated\030\002 \001(\010\"-\n\017OpticalConfigId\022\032\n\022o" + "pticalconfig_uuid\030\001 \001(\t\"y\n\rOpticalConfig" + "\0222\n\020opticalconfig_id\030\001 \001(\0132\030.context.Opt" + "icalConfigId\022\016\n\006config\030\002 \001(\t\022$\n\tdevice_i" + "d\030\003 \001(\0132\021.context.DeviceId\"C\n\021OpticalCon" + "figList\022.\n\016opticalconfigs\030\001 \003(\0132\026.contex" + "t.OpticalConfig\"g\n\022OpticalConfigEvent\022\035\n" + "\005event\030\001 \001(\0132\016.context.Event\0222\n\020opticalc" + "onfig_id\030\002 \001(\0132\030.context.OpticalConfigId" + "\"_\n\021OpticalEndPointId\022$\n\tdevice_id\030\002 \001(\013" + "2\021.context.DeviceId\022$\n\rendpoint_uuid\030\003 \001" + "(\0132\r.context.Uuid\">\n\017OpticalLinkList\022+\n\r" + "optical_links\030\001 \003(\0132\024.context.OpticalLin" + "k\"\304\003\n\022OpticalLinkDetails\022\016\n\006length\030\001 \001(\002" + "\022\020\n\010src_port\030\002 \001(\t\022\020\n\010dst_port\030\003 \001(\t\022\027\n\017" + "local_peer_port\030\004 \001(\t\022\030\n\020remote_peer_por" + "t\030\005 \001(\t\022\014\n\004used\030\006 \001(\010\0228\n\007c_slots\030\007 \003(\0132\'" + ".context.OpticalLinkDetails.CSlotsEntry\022" + "8\n\007l_slots\030\010 \003(\0132\'.context.OpticalLinkDe" + "tails.LSlotsEntry\0228\n\007s_slots\030\t \003(\0132\'.con" + "text.OpticalLinkDetails.SSlotsEntry\032-\n\013C" + "SlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\002" + "8\001\032-\n\013LSlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\005:\0028\001\032-\n\013SSlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\005:\0028\001\"\243\001\n\013OpticalLink\022\014\n\004name" + "\030\001 \001(\t\0224\n\017optical_details\030\002 \001(\0132\033.contex" + "t.OpticalLinkDetails\022 \n\007link_id\030\003 \001(\0132\017." + "context.LinkId\022.\n\021link_endpoint_ids\030\004 \003(" + "\0132\023.context.EndPointId\"0\n\tChannelId\022#\n\014c" + "hannel_uuid\030\001 \001(\0132\r.context.Uuid\"8\n\rOpti" + "calBandId\022\'\n\020opticalband_uuid\030\001 \001(\0132\r.co" + "ntext.Uuid\"\247\002\n\013OpticalBand\022.\n\016opticalban" + "d_id\030\001 \001(\0132\026.context.OpticalBandId\022,\n\rco" + "nnection_id\030\002 \001(\0132\025.context.ConnectionId" + "\022&\n\nchannel_id\030\003 \001(\0132\022.context.ChannelId" + "\022&\n\nservice_id\030\004 \001(\0132\022.context.ServiceId" + "\022#\n\007service\030\005 \001(\0132\020.context.ServiceH\000\022)\n" + "\nconnection\030\006 \001(\0132\023.context.ConnectionH\000" + "\022\021\n\007channel\030\007 \001(\tH\000B\007\n\005field\"=\n\017OpticalB" + "andList\022*\n\014opticalbands\030\001 \003(\0132\024.context." + "OpticalBand\"r\n\021ServiceConfigRule\022&\n\nserv" + "ice_id\030\001 \001(\0132\022.context.ServiceId\0225\n\021conf" + "igrule_custom\030\002 \001(\0132\032.context.ConfigRule" + "_Custom*j\n\rEventTypeEnum\022\027\n\023EVENTTYPE_UN" + "DEFINED\020\000\022\024\n\020EVENTTYPE_CREATE\020\001\022\024\n\020EVENT" + "TYPE_UPDATE\020\002\022\024\n\020EVENTTYPE_REMOVE\020\003*\333\004\n\020" + "DeviceDriverEnum\022\032\n\026DEVICEDRIVER_UNDEFIN" + "ED\020\000\022\033\n\027DEVICEDRIVER_OPENCONFIG\020\001\022\036\n\032DEV" + "ICEDRIVER_TRANSPORT_API\020\002\022\023\n\017DEVICEDRIVE" + "R_P4\020\003\022&\n\"DEVICEDRIVER_IETF_NETWORK_TOPO" + "LOGY\020\004\022\033\n\027DEVICEDRIVER_ONF_TR_532\020\005\022\023\n\017D" + "EVICEDRIVER_XR\020\006\022\033\n\027DEVICEDRIVER_IETF_L2" + "VPN\020\007\022 \n\034DEVICEDRIVER_GNMI_OPENCONFIG\020\010\022" + "\034\n\030DEVICEDRIVER_OPTICAL_TFS\020\t\022\032\n\026DEVICED" + "RIVER_IETF_ACTN\020\n\022\023\n\017DEVICEDRIVER_OC\020\013\022\024" + "\n\020DEVICEDRIVER_QKD\020\014\022\033\n\027DEVICEDRIVER_IET" + "F_L3VPN\020\r\022\033\n\027DEVICEDRIVER_IETF_SLICE\020\016\022\024" + "\n\020DEVICEDRIVER_NCE\020\017\022\031\n\025DEVICEDRIVER_SMA" + "RTNIC\020\020\022\031\n\025DEVICEDRIVER_MORPHEUS\020\021\022\024\n\020DE" + "VICEDRIVER_RYU\020\022\022#\n\037DEVICEDRIVER_GNMI_NO" + "KIA_SRLINUX\020\023\022\032\n\026DEVICEDRIVER_OPENROADM\020" + "\024*\217\001\n\033DeviceOperationalStatusEnum\022%\n!DEV" + "ICEOPERATIONALSTATUS_UNDEFINED\020\000\022$\n DEVI" + "CEOPERATIONALSTATUS_DISABLED\020\001\022#\n\037DEVICE" + "OPERATIONALSTATUS_ENABLED\020\002*\245\001\n\014LinkType" + "Enum\022\024\n\020LINKTYPE_UNKNOWN\020\000\022\023\n\017LINKTYPE_C" + "OPPER\020\001\022\022\n\016LINKTYPE_FIBER\020\002\022\022\n\016LINKTYPE_" + "RADIO\020\003\022\024\n\020LINKTYPE_VIRTUAL\020\004\022\027\n\023LINKTYP" + "E_MANAGEMENT\020\005\022\023\n\017LINKTYPE_REMOTE\020\006*\276\002\n\017" + "ServiceTypeEnum\022\027\n\023SERVICETYPE_UNKNOWN\020\000" + "\022\024\n\020SERVICETYPE_L3NM\020\001\022\024\n\020SERVICETYPE_L2" + "NM\020\002\022)\n%SERVICETYPE_TAPI_CONNECTIVITY_SE" + "RVICE\020\003\022\022\n\016SERVICETYPE_TE\020\004\022\023\n\017SERVICETY" + "PE_E2E\020\005\022$\n SERVICETYPE_OPTICAL_CONNECTI" + "VITY\020\006\022\023\n\017SERVICETYPE_QKD\020\007\022\024\n\020SERVICETY" + "PE_L1NM\020\010\022\023\n\017SERVICETYPE_INT\020\t\022\023\n\017SERVIC" + "ETYPE_ACL\020\n\022\027\n\023SERVICETYPE_IP_LINK\020\013*\304\001\n" + "\021ServiceStatusEnum\022\033\n\027SERVICESTATUS_UNDE" + "FINED\020\000\022\031\n\025SERVICESTATUS_PLANNED\020\001\022\030\n\024SE" + "RVICESTATUS_ACTIVE\020\002\022\032\n\026SERVICESTATUS_UP" + "DATING\020\003\022!\n\035SERVICESTATUS_PENDING_REMOVA" + "L\020\004\022\036\n\032SERVICESTATUS_SLA_VIOLATED\020\005*\251\001\n\017" + "SliceStatusEnum\022\031\n\025SLICESTATUS_UNDEFINED" + "\020\000\022\027\n\023SLICESTATUS_PLANNED\020\001\022\024\n\020SLICESTAT" + "US_INIT\020\002\022\026\n\022SLICESTATUS_ACTIVE\020\003\022\026\n\022SLI" + "CESTATUS_DEINIT\020\004\022\034\n\030SLICESTATUS_SLA_VIO" + "LATED\020\005*]\n\020ConfigActionEnum\022\032\n\026CONFIGACT" + "ION_UNDEFINED\020\000\022\024\n\020CONFIGACTION_SET\020\001\022\027\n" + "\023CONFIGACTION_DELETE\020\002*m\n\024ConstraintActi" + "onEnum\022\036\n\032CONSTRAINTACTION_UNDEFINED\020\000\022\030" + "\n\024CONSTRAINTACTION_SET\020\001\022\033\n\027CONSTRAINTAC" + "TION_DELETE\020\002*\203\002\n\022IsolationLevelEnum\022\020\n\014" + "NO_ISOLATION\020\000\022\026\n\022PHYSICAL_ISOLATION\020\001\022\025" + "\n\021LOGICAL_ISOLATION\020\002\022\025\n\021PROCESS_ISOLATI" + "ON\020\003\022\035\n\031PHYSICAL_MEMORY_ISOLATION\020\004\022\036\n\032P" + "HYSICAL_NETWORK_ISOLATION\020\005\022\036\n\032VIRTUAL_R" + "ESOURCE_ISOLATION\020\006\022\037\n\033NETWORK_FUNCTIONS" + "_ISOLATION\020\007\022\025\n\021SERVICE_ISOLATION\020\0102\274\035\n\016" + "ContextService\022:\n\016ListContextIds\022\016.conte" + "xt.Empty\032\026.context.ContextIdList\"\000\0226\n\014Li" + "stContexts\022\016.context.Empty\032\024.context.Con" + "textList\"\000\0224\n\nGetContext\022\022.context.Conte" + "xtId\032\020.context.Context\"\000\0224\n\nSetContext\022\020" + ".context.Context\032\022.context.ContextId\"\000\0225" + "\n\rRemoveContext\022\022.context.ContextId\032\016.co" + "ntext.Empty\"\000\022=\n\020GetContextEvents\022\016.cont" + "ext.Empty\032\025.context.ContextEvent\"\0000\001\022@\n\017" + "ListTopologyIds\022\022.context.ContextId\032\027.co" + "ntext.TopologyIdList\"\000\022=\n\016ListTopologies" + "\022\022.context.ContextId\032\025.context.TopologyL" + "ist\"\000\0227\n\013GetTopology\022\023.context.TopologyI" + "d\032\021.context.Topology\"\000\022E\n\022GetTopologyDet" + "ails\022\023.context.TopologyId\032\030.context.Topo" + "logyDetails\"\000\0227\n\013SetTopology\022\021.context.T" + "opology\032\023.context.TopologyId\"\000\0227\n\016Remove" + "Topology\022\023.context.TopologyId\032\016.context." + "Empty\"\000\022?\n\021GetTopologyEvents\022\016.context.E" + "mpty\032\026.context.TopologyEvent\"\0000\001\0228\n\rList" + "DeviceIds\022\016.context.Empty\032\025.context.Devi" + "ceIdList\"\000\0224\n\013ListDevices\022\016.context.Empt" + "y\032\023.context.DeviceList\"\000\0221\n\tGetDevice\022\021." + "context.DeviceId\032\017.context.Device\"\000\0221\n\tS" + "etDevice\022\017.context.Device\032\021.context.Devi" + "ceId\"\000\0223\n\014RemoveDevice\022\021.context.DeviceI" + "d\032\016.context.Empty\"\000\022;\n\017GetDeviceEvents\022\016" + ".context.Empty\032\024.context.DeviceEvent\"\0000\001" + "\022<\n\014SelectDevice\022\025.context.DeviceFilter\032" + "\023.context.DeviceList\"\000\022I\n\021ListEndPointNa" + "mes\022\027.context.EndPointIdList\032\031.context.E" + "ndPointNameList\"\000\0224\n\013ListLinkIds\022\016.conte" + "xt.Empty\032\023.context.LinkIdList\"\000\0220\n\tListL" + "inks\022\016.context.Empty\032\021.context.LinkList\"" + "\000\022+\n\007GetLink\022\017.context.LinkId\032\r.context." + "Link\"\000\022+\n\007SetLink\022\r.context.Link\032\017.conte" + "xt.LinkId\"\000\022/\n\nRemoveLink\022\017.context.Link" + "Id\032\016.context.Empty\"\000\0227\n\rGetLinkEvents\022\016." + "context.Empty\032\022.context.LinkEvent\"\0000\001\022>\n" + "\016ListServiceIds\022\022.context.ContextId\032\026.co" + "ntext.ServiceIdList\"\000\022:\n\014ListServices\022\022." + "context.ContextId\032\024.context.ServiceList\"" + "\000\0224\n\nGetService\022\022.context.ServiceId\032\020.co" + "ntext.Service\"\000\0224\n\nSetService\022\020.context." + "Service\032\022.context.ServiceId\"\000\0226\n\014UnsetSe" + "rvice\022\020.context.Service\032\022.context.Servic" + "eId\"\000\0225\n\rRemoveService\022\022.context.Service" + "Id\032\016.context.Empty\"\000\022=\n\020GetServiceEvents" + "\022\016.context.Empty\032\025.context.ServiceEvent\"" + "\0000\001\022?\n\rSelectService\022\026.context.ServiceFi" + "lter\032\024.context.ServiceList\"\000\022:\n\014ListSlic" + "eIds\022\022.context.ContextId\032\024.context.Slice" + "IdList\"\000\0226\n\nListSlices\022\022.context.Context" + "Id\032\022.context.SliceList\"\000\022.\n\010GetSlice\022\020.c" + "ontext.SliceId\032\016.context.Slice\"\000\022.\n\010SetS" + "lice\022\016.context.Slice\032\020.context.SliceId\"\000" + "\0220\n\nUnsetSlice\022\016.context.Slice\032\020.context" + ".SliceId\"\000\0221\n\013RemoveSlice\022\020.context.Slic" + "eId\032\016.context.Empty\"\000\0229\n\016GetSliceEvents\022" + "\016.context.Empty\032\023.context.SliceEvent\"\0000\001" + "\0229\n\013SelectSlice\022\024.context.SliceFilter\032\022." + "context.SliceList\"\000\022D\n\021ListConnectionIds", "\022\022.context.ServiceId\032\031.context.Connectio" + "nIdList\"\000\022@\n\017ListConnections\022\022.context.S" + "erviceId\032\027.context.ConnectionList\"\000\022=\n\rG" + "etConnection\022\025.context.ConnectionId\032\023.co" + "ntext.Connection\"\000\022=\n\rSetConnection\022\023.co" + "ntext.Connection\032\025.context.ConnectionId\"" + "\000\022;\n\020RemoveConnection\022\025.context.Connecti" + "onId\032\016.context.Empty\"\000\022C\n\023GetConnectionE" + "vents\022\016.context.Empty\032\030.context.Connecti" + "onEvent\"\0000\001\0225\n\014GetAllEvents\022\016.context.Em" + "pty\032\021.context.AnyEvent\"\0000\001\022@\n\020GetOptical" + "Config\022\016.context.Empty\032\032.context.Optical" + "ConfigList\"\000\022F\n\020SetOpticalConfig\022\026.conte" + "xt.OpticalConfig\032\030.context.OpticalConfig" + "Id\"\000\022I\n\023UpdateOpticalConfig\022\026.context.Op" + "ticalConfig\032\030.context.OpticalConfigId\"\000\022" + "I\n\023SelectOpticalConfig\022\030.context.Optical" + "ConfigId\032\026.context.OpticalConfig\"\000\022A\n\023De" + "leteOpticalConfig\022\030.context.OpticalConfi" + "gId\032\016.context.Empty\"\000\022@\n\024DeleteOpticalCh" + "annel\022\026.context.OpticalConfig\032\016.context." + "Empty\"\000\0228\n\016SetOpticalLink\022\024.context.Opti" + "calLink\032\016.context.Empty\"\000\0229\n\016GetOpticalL" + "ink\022\017.context.LinkId\032\024.context.OpticalLi" + "nk\"\000\0226\n\021DeleteOpticalLink\022\017.context.Link" + "Id\032\016.context.Empty\"\000\022@\n\022GetOpticalLinkLi" + "st\022\016.context.Empty\032\030.context.OpticalLink" + "List\"\000\022<\n\016GetOpticalBand\022\016.context.Empty" + "\032\030.context.OpticalBandList\"\000\022C\n\021SelectOp" + "ticalBand\022\026.context.OpticalBandId\032\024.cont" + "ext.OpticalBand\"\000\022G\n\027DeleteServiceConfig" + "Rule\022\032.context.ServiceConfigRule\032\016.conte" + "xt.Empty\"\000b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), acl.Acl.getDescriptor(), ip_link.IpLink.getDescriptor(), kpi_sample_types.KpiSampleTypes.getDescriptor() }); + java.lang.String[] descriptorData = { "\n\rcontext.proto\022\007context\032\031google/protobu" + "f/any.proto\032\tacl.proto\032\014ipowdm.proto\032\rip" + "_link.proto\032\026kpi_sample_types.proto\032\016tap" + "i_lsp.proto\"\007\n\005Empty\"\024\n\004Uuid\022\014\n\004uuid\030\001 \001" + "(\t\"\036\n\tTimestamp\022\021\n\ttimestamp\030\001 \001(\001\"Z\n\005Ev" + "ent\022%\n\ttimestamp\030\001 \001(\0132\022.context.Timesta" + "mp\022*\n\nevent_type\030\002 \001(\0162\026.context.EventTy" + "peEnum\"\265\002\n\010AnyEvent\022(\n\007context\030\001 \001(\0132\025.c" + "ontext.ContextEventH\000\022*\n\010topology\030\002 \001(\0132" + "\026.context.TopologyEventH\000\022&\n\006device\030\003 \001(" + "\0132\024.context.DeviceEventH\000\022\"\n\004link\030\004 \001(\0132" + "\022.context.LinkEventH\000\022(\n\007service\030\005 \001(\0132\025" + ".context.ServiceEventH\000\022$\n\005slice\030\006 \001(\0132\023" + ".context.SliceEventH\000\022.\n\nconnection\030\007 \001(" + "\0132\030.context.ConnectionEventH\000B\007\n\005event\"0" + "\n\tContextId\022#\n\014context_uuid\030\001 \001(\0132\r.cont" + "ext.Uuid\"\351\001\n\007Context\022&\n\ncontext_id\030\001 \001(\013" + "2\022.context.ContextId\022\014\n\004name\030\002 \001(\t\022)\n\014to" + "pology_ids\030\003 \003(\0132\023.context.TopologyId\022\'\n" + "\013service_ids\030\004 \003(\0132\022.context.ServiceId\022#" + "\n\tslice_ids\030\005 \003(\0132\020.context.SliceId\022/\n\nc" + "ontroller\030\006 \001(\0132\033.context.TeraFlowContro" + "ller\"8\n\rContextIdList\022\'\n\013context_ids\030\001 \003" + "(\0132\022.context.ContextId\"1\n\013ContextList\022\"\n" + "\010contexts\030\001 \003(\0132\020.context.Context\"U\n\014Con" + "textEvent\022\035\n\005event\030\001 \001(\0132\016.context.Event" + "\022&\n\ncontext_id\030\002 \001(\0132\022.context.ContextId" + "\"Z\n\nTopologyId\022&\n\ncontext_id\030\001 \001(\0132\022.con" + "text.ContextId\022$\n\rtopology_uuid\030\002 \001(\0132\r." + "context.Uuid\"\267\001\n\010Topology\022(\n\013topology_id" + "\030\001 \001(\0132\023.context.TopologyId\022\014\n\004name\030\002 \001(" + "\t\022%\n\ndevice_ids\030\003 \003(\0132\021.context.DeviceId" + "\022!\n\010link_ids\030\004 \003(\0132\017.context.LinkId\022)\n\020o" + "ptical_link_ids\030\005 \003(\0132\017.context.LinkId\"\266" + "\001\n\017TopologyDetails\022(\n\013topology_id\030\001 \001(\0132" + "\023.context.TopologyId\022\014\n\004name\030\002 \001(\t\022 \n\007de" + "vices\030\003 \003(\0132\017.context.Device\022\034\n\005links\030\004 " + "\003(\0132\r.context.Link\022+\n\roptical_links\030\005 \003(" + "\0132\024.context.OpticalLink\";\n\016TopologyIdLis" + "t\022)\n\014topology_ids\030\001 \003(\0132\023.context.Topolo" + "gyId\"5\n\014TopologyList\022%\n\ntopologies\030\001 \003(\013" + "2\021.context.Topology\"X\n\rTopologyEvent\022\035\n\005" + "event\030\001 \001(\0132\016.context.Event\022(\n\013topology_" + "id\030\002 \001(\0132\023.context.TopologyId\".\n\010DeviceI" + "d\022\"\n\013device_uuid\030\001 \001(\0132\r.context.Uuid\"\372\002" + "\n\006Device\022$\n\tdevice_id\030\001 \001(\0132\021.context.De" + "viceId\022\014\n\004name\030\002 \001(\t\022\023\n\013device_type\030\003 \001(" + "\t\022,\n\rdevice_config\030\004 \001(\0132\025.context.Devic" + "eConfig\022G\n\031device_operational_status\030\005 \001" + "(\0162$.context.DeviceOperationalStatusEnum" + "\0221\n\016device_drivers\030\006 \003(\0162\031.context.Devic" + "eDriverEnum\022+\n\020device_endpoints\030\007 \003(\0132\021." + "context.EndPoint\022&\n\ncomponents\030\010 \003(\0132\022.c" + "ontext.Component\022(\n\rcontroller_id\030\t \001(\0132" + "\021.context.DeviceId\"\311\001\n\tComponent\022%\n\016comp" + "onent_uuid\030\001 \001(\0132\r.context.Uuid\022\014\n\004name\030" + "\002 \001(\t\022\014\n\004type\030\003 \001(\t\0226\n\nattributes\030\004 \003(\0132" + "\".context.Component.AttributesEntry\022\016\n\006p" + "arent\030\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"9\n\014DeviceConfig\022)" + "\n\014config_rules\030\001 \003(\0132\023.context.ConfigRul" + "e\"5\n\014DeviceIdList\022%\n\ndevice_ids\030\001 \003(\0132\021." + "context.DeviceId\".\n\nDeviceList\022 \n\007device" + "s\030\001 \003(\0132\017.context.Device\"\216\001\n\014DeviceFilte" + "r\022)\n\ndevice_ids\030\001 \001(\0132\025.context.DeviceId" + "List\022\031\n\021include_endpoints\030\002 \001(\010\022\034\n\024inclu" + "de_config_rules\030\003 \001(\010\022\032\n\022include_compone" + "nts\030\004 \001(\010\"\200\001\n\013DeviceEvent\022\035\n\005event\030\001 \001(\013" + "2\016.context.Event\022$\n\tdevice_id\030\002 \001(\0132\021.co" + "ntext.DeviceId\022,\n\rdevice_config\030\003 \001(\0132\025." + "context.DeviceConfig\"*\n\006LinkId\022 \n\tlink_u" + "uid\030\001 \001(\0132\r.context.Uuid\"c\n\016LinkAttribut" + "es\022\030\n\020is_bidirectional\030\001 \001(\010\022\033\n\023total_ca" + "pacity_gbps\030\002 \001(\002\022\032\n\022used_capacity_gbps\030" + "\003 \001(\002\"\275\001\n\004Link\022 \n\007link_id\030\001 \001(\0132\017.contex" + "t.LinkId\022\014\n\004name\030\002 \001(\t\022(\n\tlink_type\030\003 \001(" + "\0162\025.context.LinkTypeEnum\022.\n\021link_endpoin" + "t_ids\030\004 \003(\0132\023.context.EndPointId\022+\n\nattr" + "ibutes\030\005 \001(\0132\027.context.LinkAttributes\"/\n" + "\nLinkIdList\022!\n\010link_ids\030\001 \003(\0132\017.context." + "LinkId\"(\n\010LinkList\022\034\n\005links\030\001 \003(\0132\r.cont" + "ext.Link\"L\n\tLinkEvent\022\035\n\005event\030\001 \001(\0132\016.c" + "ontext.Event\022 \n\007link_id\030\002 \001(\0132\017.context." + "LinkId\"X\n\tServiceId\022&\n\ncontext_id\030\001 \001(\0132" + "\022.context.ContextId\022#\n\014service_uuid\030\002 \001(" + "\0132\r.context.Uuid\"\333\002\n\007Service\022&\n\nservice_" + "id\030\001 \001(\0132\022.context.ServiceId\022\014\n\004name\030\002 \001" + "(\t\022.\n\014service_type\030\003 \001(\0162\030.context.Servi" + "ceTypeEnum\0221\n\024service_endpoint_ids\030\004 \003(\013" + "2\023.context.EndPointId\0220\n\023service_constra" + "ints\030\005 \003(\0132\023.context.Constraint\022.\n\016servi" + "ce_status\030\006 \001(\0132\026.context.ServiceStatus\022" + ".\n\016service_config\030\007 \001(\0132\026.context.Servic" + "eConfig\022%\n\ttimestamp\030\010 \001(\0132\022.context.Tim" + "estamp\"C\n\rServiceStatus\0222\n\016service_statu" + "s\030\001 \001(\0162\032.context.ServiceStatusEnum\":\n\rS" + "erviceConfig\022)\n\014config_rules\030\001 \003(\0132\023.con" + "text.ConfigRule\"8\n\rServiceIdList\022\'\n\013serv" + "ice_ids\030\001 \003(\0132\022.context.ServiceId\"1\n\013Ser" + "viceList\022\"\n\010services\030\001 \003(\0132\020.context.Ser" + "vice\"\225\001\n\rServiceFilter\022+\n\013service_ids\030\001 " + "\001(\0132\026.context.ServiceIdList\022\034\n\024include_e" + "ndpoint_ids\030\002 \001(\010\022\033\n\023include_constraints" + "\030\003 \001(\010\022\034\n\024include_config_rules\030\004 \001(\010\"U\n\014" + "ServiceEvent\022\035\n\005event\030\001 \001(\0132\016.context.Ev" + "ent\022&\n\nservice_id\030\002 \001(\0132\022.context.Servic" + "eId\"T\n\007SliceId\022&\n\ncontext_id\030\001 \001(\0132\022.con" + "text.ContextId\022!\n\nslice_uuid\030\002 \001(\0132\r.con" + "text.Uuid\"\240\003\n\005Slice\022\"\n\010slice_id\030\001 \001(\0132\020." + "context.SliceId\022\014\n\004name\030\002 \001(\t\022/\n\022slice_e" + "ndpoint_ids\030\003 \003(\0132\023.context.EndPointId\022." + "\n\021slice_constraints\030\004 \003(\0132\023.context.Cons" + "traint\022-\n\021slice_service_ids\030\005 \003(\0132\022.cont" + "ext.ServiceId\022,\n\022slice_subslice_ids\030\006 \003(" + "\0132\020.context.SliceId\022*\n\014slice_status\030\007 \001(" + "\0132\024.context.SliceStatus\022*\n\014slice_config\030" + "\010 \001(\0132\024.context.SliceConfig\022(\n\013slice_own" + "er\030\t \001(\0132\023.context.SliceOwner\022%\n\ttimesta" + "mp\030\n \001(\0132\022.context.Timestamp\"E\n\nSliceOwn" + "er\022!\n\nowner_uuid\030\001 \001(\0132\r.context.Uuid\022\024\n" + "\014owner_string\030\002 \001(\t\"=\n\013SliceStatus\022.\n\014sl" + "ice_status\030\001 \001(\0162\030.context.SliceStatusEn" + "um\"8\n\013SliceConfig\022)\n\014config_rules\030\001 \003(\0132" + "\023.context.ConfigRule\"2\n\013SliceIdList\022#\n\ts" + "lice_ids\030\001 \003(\0132\020.context.SliceId\"+\n\tSlic" + "eList\022\036\n\006slices\030\001 \003(\0132\016.context.Slice\"\312\001" + "\n\013SliceFilter\022\'\n\tslice_ids\030\001 \001(\0132\024.conte" + "xt.SliceIdList\022\034\n\024include_endpoint_ids\030\002" + " \001(\010\022\033\n\023include_constraints\030\003 \001(\010\022\033\n\023inc" + "lude_service_ids\030\004 \001(\010\022\034\n\024include_subsli" + "ce_ids\030\005 \001(\010\022\034\n\024include_config_rules\030\006 \001" + "(\010\"O\n\nSliceEvent\022\035\n\005event\030\001 \001(\0132\016.contex" + "t.Event\022\"\n\010slice_id\030\002 \001(\0132\020.context.Slic" + "eId\"6\n\014ConnectionId\022&\n\017connection_uuid\030\001" + " \001(\0132\r.context.Uuid\"2\n\025ConnectionSetting" + "s_L0\022\031\n\021lsp_symbolic_name\030\001 \001(\t\"\236\001\n\025Conn" + "ectionSettings_L2\022\027\n\017src_mac_address\030\001 \001" + "(\t\022\027\n\017dst_mac_address\030\002 \001(\t\022\022\n\nether_typ" + "e\030\003 \001(\r\022\017\n\007vlan_id\030\004 \001(\r\022\022\n\nmpls_label\030\005" + " \001(\r\022\032\n\022mpls_traffic_class\030\006 \001(\r\"t\n\025Conn" + "ectionSettings_L3\022\026\n\016src_ip_address\030\001 \001(" + "\t\022\026\n\016dst_ip_address\030\002 \001(\t\022\014\n\004dscp\030\003 \001(\r\022" + "\020\n\010protocol\030\004 \001(\r\022\013\n\003ttl\030\005 \001(\r\"[\n\025Connec" + "tionSettings_L4\022\020\n\010src_port\030\001 \001(\r\022\020\n\010dst" + "_port\030\002 \001(\r\022\021\n\ttcp_flags\030\003 \001(\r\022\013\n\003ttl\030\004 " + "\001(\r\"\304\001\n\022ConnectionSettings\022*\n\002l0\030\001 \001(\0132\036" + ".context.ConnectionSettings_L0\022*\n\002l2\030\002 \001" + "(\0132\036.context.ConnectionSettings_L2\022*\n\002l3" + "\030\003 \001(\0132\036.context.ConnectionSettings_L3\022*" + "\n\002l4\030\004 \001(\0132\036.context.ConnectionSettings_" + "L4\"\363\001\n\nConnection\022,\n\rconnection_id\030\001 \001(\013" + "2\025.context.ConnectionId\022&\n\nservice_id\030\002 " + "\001(\0132\022.context.ServiceId\0223\n\026path_hops_end" + "point_ids\030\003 \003(\0132\023.context.EndPointId\022+\n\017" + "sub_service_ids\030\004 \003(\0132\022.context.ServiceI" + "d\022-\n\010settings\030\005 \001(\0132\033.context.Connection" + "Settings\"A\n\020ConnectionIdList\022-\n\016connecti" + "on_ids\030\001 \003(\0132\025.context.ConnectionId\":\n\016C" + "onnectionList\022(\n\013connections\030\001 \003(\0132\023.con" + "text.Connection\"^\n\017ConnectionEvent\022\035\n\005ev" + "ent\030\001 \001(\0132\016.context.Event\022,\n\rconnection_" + "id\030\002 \001(\0132\025.context.ConnectionId\"\202\001\n\nEndP" + "ointId\022(\n\013topology_id\030\001 \001(\0132\023.context.To" + "pologyId\022$\n\tdevice_id\030\002 \001(\0132\021.context.De" + "viceId\022$\n\rendpoint_uuid\030\003 \001(\0132\r.context." + "Uuid\"\310\002\n\010EndPoint\022(\n\013endpoint_id\030\001 \001(\0132\023" + ".context.EndPointId\022\014\n\004name\030\002 \001(\t\022\025\n\rend" + "point_type\030\003 \001(\t\0229\n\020kpi_sample_types\030\004 \003" + "(\0162\037.kpi_sample_types.KpiSampleType\022,\n\021e" + "ndpoint_location\030\005 \001(\0132\021.context.Locatio" + "n\0229\n\014capabilities\030\006 \003(\0132#.context.EndPoi" + "nt.CapabilitiesEntry\032I\n\021CapabilitiesEntr" + "y\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.google.p" + "rotobuf.Any:\0028\001\"{\n\014EndPointName\022(\n\013endpo" + "int_id\030\001 \001(\0132\023.context.EndPointId\022\023\n\013dev" + "ice_name\030\002 \001(\t\022\025\n\rendpoint_name\030\003 \001(\t\022\025\n" + "\rendpoint_type\030\004 \001(\t\";\n\016EndPointIdList\022)" + "\n\014endpoint_ids\030\001 \003(\0132\023.context.EndPointI" + "d\"A\n\020EndPointNameList\022-\n\016endpoint_names\030" + "\001 \003(\0132\025.context.EndPointName\"A\n\021ConfigRu" + "le_Custom\022\024\n\014resource_key\030\001 \001(\t\022\026\n\016resou" + "rce_value\030\002 \001(\t\"]\n\016ConfigRule_ACL\022(\n\013end" + "point_id\030\001 \001(\0132\023.context.EndPointId\022!\n\010r" + "ule_set\030\002 \001(\0132\017.acl.AclRuleSet\"f\n\021Config" + "Rule_IPOWDM\022(\n\013endpoint_id\030\001 \001(\0132\023.conte" + "xt.EndPointId\022\'\n\010rule_set\030\002 \001(\0132\025.ipowdm" + ".IpowdmRuleSet\"k\n\023ConfigRule_TAPI_LSP\022(\n" + "\013endpoint_id\030\001 \001(\0132\023.context.EndPointId\022" + "*\n\010rule_set\030\002 \003(\0132\030.tapi_lsp.TapiLspRule" + "Set\"h\n\022ConfigRule_IP_LINK\022(\n\013endpoint_id" + "\030\001 \001(\0132\023.context.EndPointId\022(\n\010rule_set\030" + "\002 \001(\0132\026.ip_link.IpLinkRuleSet\"\254\002\n\nConfig" + "Rule\022)\n\006action\030\001 \001(\0162\031.context.ConfigAct" + "ionEnum\022,\n\006custom\030\002 \001(\0132\032.context.Config" + "Rule_CustomH\000\022&\n\003acl\030\003 \001(\0132\027.context.Con" + "figRule_ACLH\000\022.\n\007ip_link\030\004 \001(\0132\033.context" + ".ConfigRule_IP_LINKH\000\0220\n\010tapi_lsp\030\005 \001(\0132" + "\034.context.ConfigRule_TAPI_LSPH\000\022,\n\006ipowd" + "m\030\006 \001(\0132\032.context.ConfigRule_IPOWDMH\000B\r\n" + "\013config_rule\"F\n\021Constraint_Custom\022\027\n\017con" + "straint_type\030\001 \001(\t\022\030\n\020constraint_value\030\002" + " \001(\t\"E\n\023Constraint_Schedule\022\027\n\017start_tim" + "estamp\030\001 \001(\001\022\025\n\rduration_days\030\002 \001(\002\"3\n\014G" + "PS_Position\022\020\n\010latitude\030\001 \001(\002\022\021\n\tlongitu" + "de\030\002 \001(\002\"\204\001\n\010Location\022\020\n\006region\030\001 \001(\tH\000\022" + "-\n\014gps_position\030\002 \001(\0132\025.context.GPS_Posi" + "tionH\000\022\023\n\tinterface\030\003 \001(\tH\000\022\026\n\014circuit_p" + "ack\030\004 \001(\tH\000B\n\n\010location\"l\n\033Constraint_En" + "dPointLocation\022(\n\013endpoint_id\030\001 \001(\0132\023.co" + "ntext.EndPointId\022#\n\010location\030\002 \001(\0132\021.con" + "text.Location\"Y\n\033Constraint_EndPointPrio" + "rity\022(\n\013endpoint_id\030\001 \001(\0132\023.context.EndP" + "ointId\022\020\n\010priority\030\002 \001(\r\"0\n\026Constraint_S" + "LA_Latency\022\026\n\016e2e_latency_ms\030\001 \001(\002\"0\n\027Co" + "nstraint_SLA_Capacity\022\025\n\rcapacity_gbps\030\001" + " \001(\002\"c\n\033Constraint_SLA_Availability\022\032\n\022n" + "um_disjoint_paths\030\001 \001(\r\022\022\n\nall_active\030\002 " + "\001(\010\022\024\n\014availability\030\003 \001(\002\"V\n\036Constraint_" + "SLA_Isolation_level\0224\n\017isolation_level\030\001" + " \003(\0162\033.context.IsolationLevelEnum\"\242\001\n\025Co" + "nstraint_Exclusions\022\024\n\014is_permanent\030\001 \001(" + "\010\022%\n\ndevice_ids\030\002 \003(\0132\021.context.DeviceId" + "\022)\n\014endpoint_ids\030\003 \003(\0132\023.context.EndPoin" + "tId\022!\n\010link_ids\030\004 \003(\0132\017.context.LinkId\"5" + "\n\014QoSProfileId\022%\n\016qos_profile_id\030\001 \001(\0132\r" + ".context.Uuid\"`\n\025Constraint_QoSProfile\022-" + "\n\016qos_profile_id\030\001 \001(\0132\025.context.QoSProf" + "ileId\022\030\n\020qos_profile_name\030\002 \001(\t\"\222\005\n\nCons" + "traint\022-\n\006action\030\001 \001(\0162\035.context.Constra" + "intActionEnum\022,\n\006custom\030\002 \001(\0132\032.context." + "Constraint_CustomH\000\0220\n\010schedule\030\003 \001(\0132\034." + "context.Constraint_ScheduleH\000\022A\n\021endpoin" + "t_location\030\004 \001(\0132$.context.Constraint_En" + "dPointLocationH\000\022A\n\021endpoint_priority\030\005 " + "\001(\0132$.context.Constraint_EndPointPriorit" + "yH\000\0228\n\014sla_capacity\030\006 \001(\0132 .context.Cons" + "traint_SLA_CapacityH\000\0226\n\013sla_latency\030\007 \001" + "(\0132\037.context.Constraint_SLA_LatencyH\000\022@\n" + "\020sla_availability\030\010 \001(\0132$.context.Constr" + "aint_SLA_AvailabilityH\000\022@\n\rsla_isolation" + "\030\t \001(\0132\'.context.Constraint_SLA_Isolatio" + "n_levelH\000\0224\n\nexclusions\030\n \001(\0132\036.context." + "Constraint_ExclusionsH\000\0225\n\013qos_profile\030\013" + " \001(\0132\036.context.Constraint_QoSProfileH\000B\014" + "\n\nconstraint\"^\n\022TeraFlowController\022&\n\nco" + "ntext_id\030\001 \001(\0132\022.context.ContextId\022\022\n\nip" + "_address\030\002 \001(\t\022\014\n\004port\030\003 \001(\r\"U\n\024Authenti" + "cationResult\022&\n\ncontext_id\030\001 \001(\0132\022.conte" + "xt.ContextId\022\025\n\rauthenticated\030\002 \001(\010\"-\n\017O" + "pticalConfigId\022\032\n\022opticalconfig_uuid\030\001 \001" + "(\t\"y\n\rOpticalConfig\0222\n\020opticalconfig_id\030" + "\001 \001(\0132\030.context.OpticalConfigId\022\016\n\006confi" + "g\030\002 \001(\t\022$\n\tdevice_id\030\003 \001(\0132\021.context.Dev" + "iceId\"C\n\021OpticalConfigList\022.\n\016opticalcon" + "figs\030\001 \003(\0132\026.context.OpticalConfig\"g\n\022Op" + "ticalConfigEvent\022\035\n\005event\030\001 \001(\0132\016.contex" + "t.Event\0222\n\020opticalconfig_id\030\002 \001(\0132\030.cont" + "ext.OpticalConfigId\"_\n\021OpticalEndPointId" + "\022$\n\tdevice_id\030\002 \001(\0132\021.context.DeviceId\022$" + "\n\rendpoint_uuid\030\003 \001(\0132\r.context.Uuid\">\n\017" + "OpticalLinkList\022+\n\roptical_links\030\001 \003(\0132\024" + ".context.OpticalLink\"\304\003\n\022OpticalLinkDeta" + "ils\022\016\n\006length\030\001 \001(\002\022\020\n\010src_port\030\002 \001(\t\022\020\n" + "\010dst_port\030\003 \001(\t\022\027\n\017local_peer_port\030\004 \001(\t" + "\022\030\n\020remote_peer_port\030\005 \001(\t\022\014\n\004used\030\006 \001(\010" + "\0228\n\007c_slots\030\007 \003(\0132\'.context.OpticalLinkD" + "etails.CSlotsEntry\0228\n\007l_slots\030\010 \003(\0132\'.co" + "ntext.OpticalLinkDetails.LSlotsEntry\0228\n\007" + "s_slots\030\t \003(\0132\'.context.OpticalLinkDetai" + "ls.SSlotsEntry\032-\n\013CSlotsEntry\022\013\n\003key\030\001 \001" + "(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013LSlotsEntry\022\013\n\003" + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013SSlotsEn" + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\"\243\001\n\013" + "OpticalLink\022\014\n\004name\030\001 \001(\t\0224\n\017optical_det" + "ails\030\002 \001(\0132\033.context.OpticalLinkDetails\022" + " \n\007link_id\030\003 \001(\0132\017.context.LinkId\022.\n\021lin" + "k_endpoint_ids\030\004 \003(\0132\023.context.EndPointI" + "d\"0\n\tChannelId\022#\n\014channel_uuid\030\001 \001(\0132\r.c" + "ontext.Uuid\"8\n\rOpticalBandId\022\'\n\020opticalb" + "and_uuid\030\001 \001(\0132\r.context.Uuid\"\247\002\n\013Optica" + "lBand\022.\n\016opticalband_id\030\001 \001(\0132\026.context." + "OpticalBandId\022,\n\rconnection_id\030\002 \001(\0132\025.c" + "ontext.ConnectionId\022&\n\nchannel_id\030\003 \001(\0132" + "\022.context.ChannelId\022&\n\nservice_id\030\004 \001(\0132" + "\022.context.ServiceId\022#\n\007service\030\005 \001(\0132\020.c" + "ontext.ServiceH\000\022)\n\nconnection\030\006 \001(\0132\023.c" + "ontext.ConnectionH\000\022\021\n\007channel\030\007 \001(\tH\000B\007" + "\n\005field\"=\n\017OpticalBandList\022*\n\014opticalban" + "ds\030\001 \003(\0132\024.context.OpticalBand\"r\n\021Servic" + "eConfigRule\022&\n\nservice_id\030\001 \001(\0132\022.contex" + "t.ServiceId\0225\n\021configrule_custom\030\002 \001(\0132\032" + ".context.ConfigRule_Custom*j\n\rEventTypeE" + "num\022\027\n\023EVENTTYPE_UNDEFINED\020\000\022\024\n\020EVENTTYP" + "E_CREATE\020\001\022\024\n\020EVENTTYPE_UPDATE\020\002\022\024\n\020EVEN" + "TTYPE_REMOVE\020\003*\333\004\n\020DeviceDriverEnum\022\032\n\026D" + "EVICEDRIVER_UNDEFINED\020\000\022\033\n\027DEVICEDRIVER_" + "OPENCONFIG\020\001\022\036\n\032DEVICEDRIVER_TRANSPORT_A" + "PI\020\002\022\023\n\017DEVICEDRIVER_P4\020\003\022&\n\"DEVICEDRIVE" + "R_IETF_NETWORK_TOPOLOGY\020\004\022\033\n\027DEVICEDRIVE" + "R_ONF_TR_532\020\005\022\023\n\017DEVICEDRIVER_XR\020\006\022\033\n\027D" + "EVICEDRIVER_IETF_L2VPN\020\007\022 \n\034DEVICEDRIVER" + "_GNMI_OPENCONFIG\020\010\022\034\n\030DEVICEDRIVER_OPTIC" + "AL_TFS\020\t\022\032\n\026DEVICEDRIVER_IETF_ACTN\020\n\022\023\n\017" + "DEVICEDRIVER_OC\020\013\022\024\n\020DEVICEDRIVER_QKD\020\014\022" + "\033\n\027DEVICEDRIVER_IETF_L3VPN\020\r\022\033\n\027DEVICEDR" + "IVER_IETF_SLICE\020\016\022\024\n\020DEVICEDRIVER_NCE\020\017\022" + "\031\n\025DEVICEDRIVER_SMARTNIC\020\020\022\031\n\025DEVICEDRIV" + "ER_MORPHEUS\020\021\022\024\n\020DEVICEDRIVER_RYU\020\022\022#\n\037D" + "EVICEDRIVER_GNMI_NOKIA_SRLINUX\020\023\022\032\n\026DEVI" + "CEDRIVER_OPENROADM\020\024*\217\001\n\033DeviceOperation" + "alStatusEnum\022%\n!DEVICEOPERATIONALSTATUS_" + "UNDEFINED\020\000\022$\n DEVICEOPERATIONALSTATUS_D" + "ISABLED\020\001\022#\n\037DEVICEOPERATIONALSTATUS_ENA" + "BLED\020\002*\245\001\n\014LinkTypeEnum\022\024\n\020LINKTYPE_UNKN" + "OWN\020\000\022\023\n\017LINKTYPE_COPPER\020\001\022\022\n\016LINKTYPE_F" + "IBER\020\002\022\022\n\016LINKTYPE_RADIO\020\003\022\024\n\020LINKTYPE_V" + "IRTUAL\020\004\022\027\n\023LINKTYPE_MANAGEMENT\020\005\022\023\n\017LIN" + "KTYPE_REMOTE\020\006*\360\002\n\017ServiceTypeEnum\022\027\n\023SE" + "RVICETYPE_UNKNOWN\020\000\022\024\n\020SERVICETYPE_L3NM\020" + "\001\022\024\n\020SERVICETYPE_L2NM\020\002\022)\n%SERVICETYPE_T" + "API_CONNECTIVITY_SERVICE\020\003\022\022\n\016SERVICETYP" + "E_TE\020\004\022\023\n\017SERVICETYPE_E2E\020\005\022$\n SERVICETY" + "PE_OPTICAL_CONNECTIVITY\020\006\022\023\n\017SERVICETYPE" + "_QKD\020\007\022\024\n\020SERVICETYPE_L1NM\020\010\022\023\n\017SERVICET" + "YPE_INT\020\t\022\023\n\017SERVICETYPE_ACL\020\n\022\027\n\023SERVIC" + "ETYPE_IP_LINK\020\013\022\030\n\024SERVICETYPE_TAPI_LSP\020" + "\014\022\026\n\022SERVICETYPE_IPOWDM\020\r*\304\001\n\021ServiceSta" + "tusEnum\022\033\n\027SERVICESTATUS_UNDEFINED\020\000\022\031\n\025" + "SERVICESTATUS_PLANNED\020\001\022\030\n\024SERVICESTATUS" + "_ACTIVE\020\002\022\032\n\026SERVICESTATUS_UPDATING\020\003\022!\n" + "\035SERVICESTATUS_PENDING_REMOVAL\020\004\022\036\n\032SERV" + "ICESTATUS_SLA_VIOLATED\020\005*\251\001\n\017SliceStatus" + "Enum\022\031\n\025SLICESTATUS_UNDEFINED\020\000\022\027\n\023SLICE" + "STATUS_PLANNED\020\001\022\024\n\020SLICESTATUS_INIT\020\002\022\026" + "\n\022SLICESTATUS_ACTIVE\020\003\022\026\n\022SLICESTATUS_DE" + "INIT\020\004\022\034\n\030SLICESTATUS_SLA_VIOLATED\020\005*]\n\020" + "ConfigActionEnum\022\032\n\026CONFIGACTION_UNDEFIN" + "ED\020\000\022\024\n\020CONFIGACTION_SET\020\001\022\027\n\023CONFIGACTI" + "ON_DELETE\020\002*m\n\024ConstraintActionEnum\022\036\n\032C" + "ONSTRAINTACTION_UNDEFINED\020\000\022\030\n\024CONSTRAIN" + "TACTION_SET\020\001\022\033\n\027CONSTRAINTACTION_DELETE" + "\020\002*\203\002\n\022IsolationLevelEnum\022\020\n\014NO_ISOLATIO" + "N\020\000\022\026\n\022PHYSICAL_ISOLATION\020\001\022\025\n\021LOGICAL_I" + "SOLATION\020\002\022\025\n\021PROCESS_ISOLATION\020\003\022\035\n\031PHY" + "SICAL_MEMORY_ISOLATION\020\004\022\036\n\032PHYSICAL_NET" + "WORK_ISOLATION\020\005\022\036\n\032VIRTUAL_RESOURCE_ISO" + "LATION\020\006\022\037\n\033NETWORK_FUNCTIONS_ISOLATION\020" + "\007\022\025\n\021SERVICE_ISOLATION\020\0102\274\035\n\016ContextServ" + "ice\022:\n\016ListContextIds\022\016.context.Empty\032\026." + "context.ContextIdList\"\000\0226\n\014ListContexts\022" + "\016.context.Empty\032\024.context.ContextList\"\000\022" + "4\n\nGetContext\022\022.context.ContextId\032\020.cont" + "ext.Context\"\000\0224\n\nSetContext\022\020.context.Co" + "ntext\032\022.context.ContextId\"\000\0225\n\rRemoveCon" + "text\022\022.context.ContextId\032\016.context.Empty" + "\"\000\022=\n\020GetContextEvents\022\016.context.Empty\032\025" + ".context.ContextEvent\"\0000\001\022@\n\017ListTopolog" + "yIds\022\022.context.ContextId\032\027.context.Topol" + "ogyIdList\"\000\022=\n\016ListTopologies\022\022.context." + "ContextId\032\025.context.TopologyList\"\000\0227\n\013Ge" + "tTopology\022\023.context.TopologyId\032\021.context" + ".Topology\"\000\022E\n\022GetTopologyDetails\022\023.cont" + "ext.TopologyId\032\030.context.TopologyDetails" + "\"\000\0227\n\013SetTopology\022\021.context.Topology\032\023.c" + "ontext.TopologyId\"\000\0227\n\016RemoveTopology\022\023." + "context.TopologyId\032\016.context.Empty\"\000\022?\n\021" + "GetTopologyEvents\022\016.context.Empty\032\026.cont" + "ext.TopologyEvent\"\0000\001\0228\n\rListDeviceIds\022\016" + ".context.Empty\032\025.context.DeviceIdList\"\000\022" + "4\n\013ListDevices\022\016.context.Empty\032\023.context" + ".DeviceList\"\000\0221\n\tGetDevice\022\021.context.Dev" + "iceId\032\017.context.Device\"\000\0221\n\tSetDevice\022\017." + "context.Device\032\021.context.DeviceId\"\000\0223\n\014R" + "emoveDevice\022\021.context.DeviceId\032\016.context" + ".Empty\"\000\022;\n\017GetDeviceEvents\022\016.context.Em" + "pty\032\024.context.DeviceEvent\"\0000\001\022<\n\014SelectD" + "evice\022\025.context.DeviceFilter\032\023.context.D" + "eviceList\"\000\022I\n\021ListEndPointNames\022\027.conte" + "xt.EndPointIdList\032\031.context.EndPointName" + "List\"\000\0224\n\013ListLinkIds\022\016.context.Empty\032\023." + "context.LinkIdList\"\000\0220\n\tListLinks\022\016.cont" + "ext.Empty\032\021.context.LinkList\"\000\022+\n\007GetLin" + "k\022\017.context.LinkId\032\r.context.Link\"\000\022+\n\007S" + "etLink\022\r.context.Link\032\017.context.LinkId\"\000" + "\022/\n\nRemoveLink\022\017.context.LinkId\032\016.contex" + "t.Empty\"\000\0227\n\rGetLinkEvents\022\016.context.Emp" + "ty\032\022.context.LinkEvent\"\0000\001\022>\n\016ListServic" + "eIds\022\022.context.ContextId\032\026.context.Servi" + "ceIdList\"\000\022:\n\014ListServices\022\022.context.Con" + "textId\032\024.context.ServiceList\"\000\0224\n\nGetSer" + "vice\022\022.context.ServiceId\032\020.context.Servi" + "ce\"\000\0224\n\nSetService\022\020.context.Service\032\022.c" + "ontext.ServiceId\"\000\0226\n\014UnsetService\022\020.con" + "text.Service\032\022.context.ServiceId\"\000\0225\n\rRe" + "moveService\022\022.context.ServiceId\032\016.contex" + "t.Empty\"\000\022=\n\020GetServiceEvents\022\016.context." + "Empty\032\025.context.ServiceEvent\"\0000\001\022?\n\rSele" + "ctService\022\026.context.ServiceFilter\032\024.cont" + "ext.ServiceList\"\000\022:\n\014ListSliceIds\022\022.cont" + "ext.ContextId\032\024.context.SliceIdList\"\000\0226\n", "\nListSlices\022\022.context.ContextId\032\022.contex" + "t.SliceList\"\000\022.\n\010GetSlice\022\020.context.Slic" + "eId\032\016.context.Slice\"\000\022.\n\010SetSlice\022\016.cont" + "ext.Slice\032\020.context.SliceId\"\000\0220\n\nUnsetSl" + "ice\022\016.context.Slice\032\020.context.SliceId\"\000\022" + "1\n\013RemoveSlice\022\020.context.SliceId\032\016.conte" + "xt.Empty\"\000\0229\n\016GetSliceEvents\022\016.context.E" + "mpty\032\023.context.SliceEvent\"\0000\001\0229\n\013SelectS" + "lice\022\024.context.SliceFilter\032\022.context.Sli" + "ceList\"\000\022D\n\021ListConnectionIds\022\022.context." + "ServiceId\032\031.context.ConnectionIdList\"\000\022@" + "\n\017ListConnections\022\022.context.ServiceId\032\027." + "context.ConnectionList\"\000\022=\n\rGetConnectio" + "n\022\025.context.ConnectionId\032\023.context.Conne" + "ction\"\000\022=\n\rSetConnection\022\023.context.Conne" + "ction\032\025.context.ConnectionId\"\000\022;\n\020Remove" + "Connection\022\025.context.ConnectionId\032\016.cont" + "ext.Empty\"\000\022C\n\023GetConnectionEvents\022\016.con" + "text.Empty\032\030.context.ConnectionEvent\"\0000\001" + "\0225\n\014GetAllEvents\022\016.context.Empty\032\021.conte" + "xt.AnyEvent\"\0000\001\022@\n\020GetOpticalConfig\022\016.co" + "ntext.Empty\032\032.context.OpticalConfigList\"" + "\000\022F\n\020SetOpticalConfig\022\026.context.OpticalC" + "onfig\032\030.context.OpticalConfigId\"\000\022I\n\023Upd" + "ateOpticalConfig\022\026.context.OpticalConfig" + "\032\030.context.OpticalConfigId\"\000\022I\n\023SelectOp" + "ticalConfig\022\030.context.OpticalConfigId\032\026." + "context.OpticalConfig\"\000\022A\n\023DeleteOptical" + "Config\022\030.context.OpticalConfigId\032\016.conte" + "xt.Empty\"\000\022@\n\024DeleteOpticalChannel\022\026.con" + "text.OpticalConfig\032\016.context.Empty\"\000\0228\n\016" + "SetOpticalLink\022\024.context.OpticalLink\032\016.c" + "ontext.Empty\"\000\0229\n\016GetOpticalLink\022\017.conte" + "xt.LinkId\032\024.context.OpticalLink\"\000\0226\n\021Del" + "eteOpticalLink\022\017.context.LinkId\032\016.contex" + "t.Empty\"\000\022@\n\022GetOpticalLinkList\022\016.contex" + "t.Empty\032\030.context.OpticalLinkList\"\000\022<\n\016G" + "etOpticalBand\022\016.context.Empty\032\030.context." + "OpticalBandList\"\000\022C\n\021SelectOpticalBand\022\026" + ".context.OpticalBandId\032\024.context.Optical" + "Band\"\000\022G\n\027DeleteServiceConfigRule\022\032.cont" + "ext.ServiceConfigRule\032\016.context.Empty\"\000b" + "\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), acl.Acl.getDescriptor(), ipowdm.Ipowdm.getDescriptor(), ip_link.IpLink.getDescriptor(), kpi_sample_types.KpiSampleTypes.getDescriptor(), tapi_lsp.TapiLsp.getDescriptor() }); internal_static_context_Empty_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_context_Empty_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Empty_descriptor, new java.lang.String[] {}); internal_static_context_Uuid_descriptor = getDescriptor().getMessageTypes().get(1); @@ -88132,55 +90272,59 @@ public final class ContextOuterClass { internal_static_context_ConfigRule_Custom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_Custom_descriptor, new java.lang.String[] { "ResourceKey", "ResourceValue" }); internal_static_context_ConfigRule_ACL_descriptor = getDescriptor().getMessageTypes().get(63); internal_static_context_ConfigRule_ACL_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_ACL_descriptor, new java.lang.String[] { "EndpointId", "RuleSet" }); - internal_static_context_ConfigRule_IP_LINK_descriptor = getDescriptor().getMessageTypes().get(64); + internal_static_context_ConfigRule_IPOWDM_descriptor = getDescriptor().getMessageTypes().get(64); + internal_static_context_ConfigRule_IPOWDM_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_IPOWDM_descriptor, new java.lang.String[] { "EndpointId", "RuleSet" }); + internal_static_context_ConfigRule_TAPI_LSP_descriptor = getDescriptor().getMessageTypes().get(65); + internal_static_context_ConfigRule_TAPI_LSP_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_TAPI_LSP_descriptor, new java.lang.String[] { "EndpointId", "RuleSet" }); + internal_static_context_ConfigRule_IP_LINK_descriptor = getDescriptor().getMessageTypes().get(66); internal_static_context_ConfigRule_IP_LINK_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_IP_LINK_descriptor, new java.lang.String[] { "EndpointId", "RuleSet" }); - internal_static_context_ConfigRule_descriptor = getDescriptor().getMessageTypes().get(65); - internal_static_context_ConfigRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_descriptor, new java.lang.String[] { "Action", "Custom", "Acl", "IpLink", "ConfigRule" }); - internal_static_context_Constraint_Custom_descriptor = getDescriptor().getMessageTypes().get(66); + internal_static_context_ConfigRule_descriptor = getDescriptor().getMessageTypes().get(67); + internal_static_context_ConfigRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_descriptor, new java.lang.String[] { "Action", "Custom", "Acl", "IpLink", "TapiLsp", "Ipowdm", "ConfigRule" }); + internal_static_context_Constraint_Custom_descriptor = getDescriptor().getMessageTypes().get(68); internal_static_context_Constraint_Custom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_Custom_descriptor, new java.lang.String[] { "ConstraintType", "ConstraintValue" }); - internal_static_context_Constraint_Schedule_descriptor = getDescriptor().getMessageTypes().get(67); + internal_static_context_Constraint_Schedule_descriptor = getDescriptor().getMessageTypes().get(69); internal_static_context_Constraint_Schedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_Schedule_descriptor, new java.lang.String[] { "StartTimestamp", "DurationDays" }); - internal_static_context_GPS_Position_descriptor = getDescriptor().getMessageTypes().get(68); + internal_static_context_GPS_Position_descriptor = getDescriptor().getMessageTypes().get(70); internal_static_context_GPS_Position_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_GPS_Position_descriptor, new java.lang.String[] { "Latitude", "Longitude" }); - internal_static_context_Location_descriptor = getDescriptor().getMessageTypes().get(69); + internal_static_context_Location_descriptor = getDescriptor().getMessageTypes().get(71); internal_static_context_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Location_descriptor, new java.lang.String[] { "Region", "GpsPosition", "Interface", "CircuitPack", "Location" }); - internal_static_context_Constraint_EndPointLocation_descriptor = getDescriptor().getMessageTypes().get(70); + internal_static_context_Constraint_EndPointLocation_descriptor = getDescriptor().getMessageTypes().get(72); internal_static_context_Constraint_EndPointLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_EndPointLocation_descriptor, new java.lang.String[] { "EndpointId", "Location" }); - internal_static_context_Constraint_EndPointPriority_descriptor = getDescriptor().getMessageTypes().get(71); + internal_static_context_Constraint_EndPointPriority_descriptor = getDescriptor().getMessageTypes().get(73); internal_static_context_Constraint_EndPointPriority_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_EndPointPriority_descriptor, new java.lang.String[] { "EndpointId", "Priority" }); - internal_static_context_Constraint_SLA_Latency_descriptor = getDescriptor().getMessageTypes().get(72); + internal_static_context_Constraint_SLA_Latency_descriptor = getDescriptor().getMessageTypes().get(74); internal_static_context_Constraint_SLA_Latency_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Latency_descriptor, new java.lang.String[] { "E2ELatencyMs" }); - internal_static_context_Constraint_SLA_Capacity_descriptor = getDescriptor().getMessageTypes().get(73); + internal_static_context_Constraint_SLA_Capacity_descriptor = getDescriptor().getMessageTypes().get(75); internal_static_context_Constraint_SLA_Capacity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Capacity_descriptor, new java.lang.String[] { "CapacityGbps" }); - internal_static_context_Constraint_SLA_Availability_descriptor = getDescriptor().getMessageTypes().get(74); + internal_static_context_Constraint_SLA_Availability_descriptor = getDescriptor().getMessageTypes().get(76); internal_static_context_Constraint_SLA_Availability_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Availability_descriptor, new java.lang.String[] { "NumDisjointPaths", "AllActive", "Availability" }); - internal_static_context_Constraint_SLA_Isolation_level_descriptor = getDescriptor().getMessageTypes().get(75); + internal_static_context_Constraint_SLA_Isolation_level_descriptor = getDescriptor().getMessageTypes().get(77); internal_static_context_Constraint_SLA_Isolation_level_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Isolation_level_descriptor, new java.lang.String[] { "IsolationLevel" }); - internal_static_context_Constraint_Exclusions_descriptor = getDescriptor().getMessageTypes().get(76); + internal_static_context_Constraint_Exclusions_descriptor = getDescriptor().getMessageTypes().get(78); internal_static_context_Constraint_Exclusions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_Exclusions_descriptor, new java.lang.String[] { "IsPermanent", "DeviceIds", "EndpointIds", "LinkIds" }); - internal_static_context_QoSProfileId_descriptor = getDescriptor().getMessageTypes().get(77); + internal_static_context_QoSProfileId_descriptor = getDescriptor().getMessageTypes().get(79); internal_static_context_QoSProfileId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_QoSProfileId_descriptor, new java.lang.String[] { "QosProfileId" }); - internal_static_context_Constraint_QoSProfile_descriptor = getDescriptor().getMessageTypes().get(78); + internal_static_context_Constraint_QoSProfile_descriptor = getDescriptor().getMessageTypes().get(80); internal_static_context_Constraint_QoSProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_QoSProfile_descriptor, new java.lang.String[] { "QosProfileId", "QosProfileName" }); - internal_static_context_Constraint_descriptor = getDescriptor().getMessageTypes().get(79); + internal_static_context_Constraint_descriptor = getDescriptor().getMessageTypes().get(81); internal_static_context_Constraint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_descriptor, new java.lang.String[] { "Action", "Custom", "Schedule", "EndpointLocation", "EndpointPriority", "SlaCapacity", "SlaLatency", "SlaAvailability", "SlaIsolation", "Exclusions", "QosProfile", "Constraint" }); - internal_static_context_TeraFlowController_descriptor = getDescriptor().getMessageTypes().get(80); + internal_static_context_TeraFlowController_descriptor = getDescriptor().getMessageTypes().get(82); internal_static_context_TeraFlowController_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_TeraFlowController_descriptor, new java.lang.String[] { "ContextId", "IpAddress", "Port" }); - internal_static_context_AuthenticationResult_descriptor = getDescriptor().getMessageTypes().get(81); + internal_static_context_AuthenticationResult_descriptor = getDescriptor().getMessageTypes().get(83); internal_static_context_AuthenticationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_AuthenticationResult_descriptor, new java.lang.String[] { "ContextId", "Authenticated" }); - internal_static_context_OpticalConfigId_descriptor = getDescriptor().getMessageTypes().get(82); + internal_static_context_OpticalConfigId_descriptor = getDescriptor().getMessageTypes().get(84); internal_static_context_OpticalConfigId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfigId_descriptor, new java.lang.String[] { "OpticalconfigUuid" }); - internal_static_context_OpticalConfig_descriptor = getDescriptor().getMessageTypes().get(83); + internal_static_context_OpticalConfig_descriptor = getDescriptor().getMessageTypes().get(85); internal_static_context_OpticalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfig_descriptor, new java.lang.String[] { "OpticalconfigId", "Config", "DeviceId" }); - internal_static_context_OpticalConfigList_descriptor = getDescriptor().getMessageTypes().get(84); + internal_static_context_OpticalConfigList_descriptor = getDescriptor().getMessageTypes().get(86); internal_static_context_OpticalConfigList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfigList_descriptor, new java.lang.String[] { "Opticalconfigs" }); - internal_static_context_OpticalConfigEvent_descriptor = getDescriptor().getMessageTypes().get(85); + internal_static_context_OpticalConfigEvent_descriptor = getDescriptor().getMessageTypes().get(87); internal_static_context_OpticalConfigEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfigEvent_descriptor, new java.lang.String[] { "Event", "OpticalconfigId" }); - internal_static_context_OpticalEndPointId_descriptor = getDescriptor().getMessageTypes().get(86); + internal_static_context_OpticalEndPointId_descriptor = getDescriptor().getMessageTypes().get(88); internal_static_context_OpticalEndPointId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalEndPointId_descriptor, new java.lang.String[] { "DeviceId", "EndpointUuid" }); - internal_static_context_OpticalLinkList_descriptor = getDescriptor().getMessageTypes().get(87); + internal_static_context_OpticalLinkList_descriptor = getDescriptor().getMessageTypes().get(89); internal_static_context_OpticalLinkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkList_descriptor, new java.lang.String[] { "OpticalLinks" }); - internal_static_context_OpticalLinkDetails_descriptor = getDescriptor().getMessageTypes().get(88); + internal_static_context_OpticalLinkDetails_descriptor = getDescriptor().getMessageTypes().get(90); internal_static_context_OpticalLinkDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_descriptor, new java.lang.String[] { "Length", "SrcPort", "DstPort", "LocalPeerPort", "RemotePeerPort", "Used", "CSlots", "LSlots", "SSlots" }); internal_static_context_OpticalLinkDetails_CSlotsEntry_descriptor = internal_static_context_OpticalLinkDetails_descriptor.getNestedTypes().get(0); internal_static_context_OpticalLinkDetails_CSlotsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_CSlotsEntry_descriptor, new java.lang.String[] { "Key", "Value" }); @@ -88188,22 +90332,24 @@ public final class ContextOuterClass { internal_static_context_OpticalLinkDetails_LSlotsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_LSlotsEntry_descriptor, new java.lang.String[] { "Key", "Value" }); internal_static_context_OpticalLinkDetails_SSlotsEntry_descriptor = internal_static_context_OpticalLinkDetails_descriptor.getNestedTypes().get(2); internal_static_context_OpticalLinkDetails_SSlotsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_SSlotsEntry_descriptor, new java.lang.String[] { "Key", "Value" }); - internal_static_context_OpticalLink_descriptor = getDescriptor().getMessageTypes().get(89); + internal_static_context_OpticalLink_descriptor = getDescriptor().getMessageTypes().get(91); internal_static_context_OpticalLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLink_descriptor, new java.lang.String[] { "Name", "OpticalDetails", "LinkId", "LinkEndpointIds" }); - internal_static_context_ChannelId_descriptor = getDescriptor().getMessageTypes().get(90); + internal_static_context_ChannelId_descriptor = getDescriptor().getMessageTypes().get(92); internal_static_context_ChannelId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ChannelId_descriptor, new java.lang.String[] { "ChannelUuid" }); - internal_static_context_OpticalBandId_descriptor = getDescriptor().getMessageTypes().get(91); + internal_static_context_OpticalBandId_descriptor = getDescriptor().getMessageTypes().get(93); internal_static_context_OpticalBandId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalBandId_descriptor, new java.lang.String[] { "OpticalbandUuid" }); - internal_static_context_OpticalBand_descriptor = getDescriptor().getMessageTypes().get(92); + internal_static_context_OpticalBand_descriptor = getDescriptor().getMessageTypes().get(94); internal_static_context_OpticalBand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalBand_descriptor, new java.lang.String[] { "OpticalbandId", "ConnectionId", "ChannelId", "ServiceId", "Service", "Connection", "Channel", "Field" }); - internal_static_context_OpticalBandList_descriptor = getDescriptor().getMessageTypes().get(93); + internal_static_context_OpticalBandList_descriptor = getDescriptor().getMessageTypes().get(95); internal_static_context_OpticalBandList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalBandList_descriptor, new java.lang.String[] { "Opticalbands" }); - internal_static_context_ServiceConfigRule_descriptor = getDescriptor().getMessageTypes().get(94); + internal_static_context_ServiceConfigRule_descriptor = getDescriptor().getMessageTypes().get(96); internal_static_context_ServiceConfigRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ServiceConfigRule_descriptor, new java.lang.String[] { "ServiceId", "ConfigruleCustom" }); com.google.protobuf.AnyProto.getDescriptor(); acl.Acl.getDescriptor(); + ipowdm.Ipowdm.getDescriptor(); ip_link.IpLink.getDescriptor(); kpi_sample_types.KpiSampleTypes.getDescriptor(); + tapi_lsp.TapiLsp.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/ztp/target/generated-sources/grpc/ipowdm/Ipowdm.java b/src/ztp/target/generated-sources/grpc/ipowdm/Ipowdm.java new file mode 100644 index 0000000000000000000000000000000000000000..2008e5d4fecf20f60486efdf655b512080bfa413 --- /dev/null +++ b/src/ztp/target/generated-sources/grpc/ipowdm/Ipowdm.java @@ -0,0 +1,5782 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ipowdm.proto +package ipowdm; + +public final class Ipowdm { + + private Ipowdm() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface RuleEndpointOrBuilder extends // @@protoc_insertion_point(interface_extends:ipowdm.RuleEndpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * string uuid = 1; + * @return The uuid. + */ + java.lang.String getUuid(); + + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString getUuidBytes(); + + /** + * string ip_address = 2; + * @return The ipAddress. + */ + java.lang.String getIpAddress(); + + /** + * string ip_address = 2; + * @return The bytes for ipAddress. + */ + com.google.protobuf.ByteString getIpAddressBytes(); + + /** + * string ip_mask = 3; + * @return The ipMask. + */ + java.lang.String getIpMask(); + + /** + * string ip_mask = 3; + * @return The bytes for ipMask. + */ + com.google.protobuf.ByteString getIpMaskBytes(); + + /** + * int32 vlan_id = 4; + * @return The vlanId. + */ + int getVlanId(); + } + + /** + * Protobuf type {@code ipowdm.RuleEndpoint} + */ + public static final class RuleEndpoint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipowdm.RuleEndpoint) + RuleEndpointOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use RuleEndpoint.newBuilder() to construct. + private RuleEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RuleEndpoint() { + uuid_ = ""; + ipAddress_ = ""; + ipMask_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RuleEndpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_RuleEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_RuleEndpoint_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.RuleEndpoint.class, ipowdm.Ipowdm.RuleEndpoint.Builder.class); + } + + public static final int UUID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * string uuid = 1; + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + 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(); + uuid_ = s; + return s; + } + } + + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_ADDRESS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipAddress_ = ""; + + /** + * string ip_address = 2; + * @return The ipAddress. + */ + @java.lang.Override + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + 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(); + ipAddress_ = s; + return s; + } + } + + /** + * string ip_address = 2; + * @return The bytes for ipAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_MASK_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipMask_ = ""; + + /** + * string ip_mask = 3; + * @return The ipMask. + */ + @java.lang.Override + public java.lang.String getIpMask() { + java.lang.Object ref = ipMask_; + 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(); + ipMask_ = s; + return s; + } + } + + /** + * string ip_mask = 3; + * @return The bytes for ipMask. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpMaskBytes() { + java.lang.Object ref = ipMask_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipMask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VLAN_ID_FIELD_NUMBER = 4; + + private int vlanId_ = 0; + + /** + * int32 vlan_id = 4; + * @return The vlanId. + */ + @java.lang.Override + public int getVlanId() { + return vlanId_; + } + + 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(uuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipMask_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipMask_); + } + if (vlanId_ != 0) { + output.writeInt32(4, vlanId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipMask_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipMask_); + } + if (vlanId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, vlanId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ipowdm.Ipowdm.RuleEndpoint)) { + return super.equals(obj); + } + ipowdm.Ipowdm.RuleEndpoint other = (ipowdm.Ipowdm.RuleEndpoint) obj; + if (!getUuid().equals(other.getUuid())) + return false; + if (!getIpAddress().equals(other.getIpAddress())) + return false; + if (!getIpMask().equals(other.getIpMask())) + return false; + if (getVlanId() != other.getVlanId()) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + hash = (37 * hash) + IP_MASK_FIELD_NUMBER; + hash = (53 * hash) + getIpMask().hashCode(); + hash = (37 * hash) + VLAN_ID_FIELD_NUMBER; + hash = (53 * hash) + getVlanId(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.RuleEndpoint parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.RuleEndpoint 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 ipowdm.Ipowdm.RuleEndpoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.RuleEndpoint 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 ipowdm.Ipowdm.RuleEndpoint parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.RuleEndpoint 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(ipowdm.Ipowdm.RuleEndpoint 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; + } + + /** + * Protobuf type {@code ipowdm.RuleEndpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipowdm.RuleEndpoint) + ipowdm.Ipowdm.RuleEndpointOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_RuleEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_RuleEndpoint_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.RuleEndpoint.class, ipowdm.Ipowdm.RuleEndpoint.Builder.class); + } + + // Construct using ipowdm.Ipowdm.RuleEndpoint.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uuid_ = ""; + ipAddress_ = ""; + ipMask_ = ""; + vlanId_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ipowdm.Ipowdm.internal_static_ipowdm_RuleEndpoint_descriptor; + } + + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpoint getDefaultInstanceForType() { + return ipowdm.Ipowdm.RuleEndpoint.getDefaultInstance(); + } + + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpoint build() { + ipowdm.Ipowdm.RuleEndpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpoint buildPartial() { + ipowdm.Ipowdm.RuleEndpoint result = new ipowdm.Ipowdm.RuleEndpoint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(ipowdm.Ipowdm.RuleEndpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uuid_ = uuid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ipAddress_ = ipAddress_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ipMask_ = ipMask_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vlanId_ = vlanId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ipowdm.Ipowdm.RuleEndpoint) { + return mergeFrom((ipowdm.Ipowdm.RuleEndpoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ipowdm.Ipowdm.RuleEndpoint other) { + if (other == ipowdm.Ipowdm.RuleEndpoint.getDefaultInstance()) + return this; + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getIpAddress().isEmpty()) { + ipAddress_ = other.ipAddress_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getIpMask().isEmpty()) { + ipMask_ = other.ipMask_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getVlanId() != 0) { + setVlanId(other.getVlanId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + uuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 18: + { + ipAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } + // case 18 + case 26: + { + ipMask_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } + // case 26 + case 32: + { + vlanId_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } + // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uuid_ = ""; + + /** + * string uuid = 1; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string uuid = 1; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string uuid = 1; + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string uuid = 1; + * @return This builder for chaining. + */ + public Builder clearUuid() { + uuid_ = getDefaultInstance().getUuid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string uuid = 1; + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object ipAddress_ = ""; + + /** + * string ip_address = 2; + * @return The ipAddress. + */ + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string ip_address = 2; + * @return The bytes for ipAddress. + */ + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string ip_address = 2; + * @param value The ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipAddress_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string ip_address = 2; + * @return This builder for chaining. + */ + public Builder clearIpAddress() { + ipAddress_ = getDefaultInstance().getIpAddress(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string ip_address = 2; + * @param value The bytes for ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object ipMask_ = ""; + + /** + * string ip_mask = 3; + * @return The ipMask. + */ + public java.lang.String getIpMask() { + java.lang.Object ref = ipMask_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipMask_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string ip_mask = 3; + * @return The bytes for ipMask. + */ + public com.google.protobuf.ByteString getIpMaskBytes() { + java.lang.Object ref = ipMask_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipMask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string ip_mask = 3; + * @param value The ipMask to set. + * @return This builder for chaining. + */ + public Builder setIpMask(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipMask_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * string ip_mask = 3; + * @return This builder for chaining. + */ + public Builder clearIpMask() { + ipMask_ = getDefaultInstance().getIpMask(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * string ip_mask = 3; + * @param value The bytes for ipMask to set. + * @return This builder for chaining. + */ + public Builder setIpMaskBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipMask_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int vlanId_; + + /** + * int32 vlan_id = 4; + * @return The vlanId. + */ + @java.lang.Override + public int getVlanId() { + return vlanId_; + } + + /** + * int32 vlan_id = 4; + * @param value The vlanId to set. + * @return This builder for chaining. + */ + public Builder setVlanId(int value) { + vlanId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * int32 vlan_id = 4; + * @return This builder for chaining. + */ + public Builder clearVlanId() { + bitField0_ = (bitField0_ & ~0x00000008); + vlanId_ = 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:ipowdm.RuleEndpoint) + } + + // @@protoc_insertion_point(class_scope:ipowdm.RuleEndpoint) + private static final ipowdm.Ipowdm.RuleEndpoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ipowdm.Ipowdm.RuleEndpoint(); + } + + public static ipowdm.Ipowdm.RuleEndpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public RuleEndpoint parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DigitalSubCarrierIdOrBuilder extends // @@protoc_insertion_point(interface_extends:ipowdm.DigitalSubCarrierId) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 sub_carrier_id = 1; + * @return The subCarrierId. + */ + int getSubCarrierId(); + + /** + * string active = 2; + * @return The active. + */ + java.lang.String getActive(); + + /** + * string active = 2; + * @return The bytes for active. + */ + com.google.protobuf.ByteString getActiveBytes(); + } + + /** + * Protobuf type {@code ipowdm.DigitalSubCarrierId} + */ + public static final class DigitalSubCarrierId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipowdm.DigitalSubCarrierId) + DigitalSubCarrierIdOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use DigitalSubCarrierId.newBuilder() to construct. + private DigitalSubCarrierId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DigitalSubCarrierId() { + active_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DigitalSubCarrierId(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarrierId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarrierId_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.DigitalSubCarrierId.class, ipowdm.Ipowdm.DigitalSubCarrierId.Builder.class); + } + + public static final int SUB_CARRIER_ID_FIELD_NUMBER = 1; + + private int subCarrierId_ = 0; + + /** + * int32 sub_carrier_id = 1; + * @return The subCarrierId. + */ + @java.lang.Override + public int getSubCarrierId() { + return subCarrierId_; + } + + public static final int ACTIVE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object active_ = ""; + + /** + * string active = 2; + * @return The active. + */ + @java.lang.Override + public java.lang.String getActive() { + java.lang.Object ref = active_; + 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(); + active_ = s; + return s; + } + } + + /** + * string active = 2; + * @return The bytes for active. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActiveBytes() { + java.lang.Object ref = active_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + active_ = 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 (subCarrierId_ != 0) { + output.writeInt32(1, subCarrierId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(active_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, active_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (subCarrierId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, subCarrierId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(active_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, active_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ipowdm.Ipowdm.DigitalSubCarrierId)) { + return super.equals(obj); + } + ipowdm.Ipowdm.DigitalSubCarrierId other = (ipowdm.Ipowdm.DigitalSubCarrierId) obj; + if (getSubCarrierId() != other.getSubCarrierId()) + return false; + if (!getActive().equals(other.getActive())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + SUB_CARRIER_ID_FIELD_NUMBER; + hash = (53 * hash) + getSubCarrierId(); + hash = (37 * hash) + ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + getActive().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId 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 ipowdm.Ipowdm.DigitalSubCarrierId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId 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 ipowdm.Ipowdm.DigitalSubCarrierId parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId 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(ipowdm.Ipowdm.DigitalSubCarrierId 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; + } + + /** + * Protobuf type {@code ipowdm.DigitalSubCarrierId} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipowdm.DigitalSubCarrierId) + ipowdm.Ipowdm.DigitalSubCarrierIdOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarrierId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarrierId_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.DigitalSubCarrierId.class, ipowdm.Ipowdm.DigitalSubCarrierId.Builder.class); + } + + // Construct using ipowdm.Ipowdm.DigitalSubCarrierId.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subCarrierId_ = 0; + active_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarrierId_descriptor; + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarrierId getDefaultInstanceForType() { + return ipowdm.Ipowdm.DigitalSubCarrierId.getDefaultInstance(); + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarrierId build() { + ipowdm.Ipowdm.DigitalSubCarrierId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarrierId buildPartial() { + ipowdm.Ipowdm.DigitalSubCarrierId result = new ipowdm.Ipowdm.DigitalSubCarrierId(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(ipowdm.Ipowdm.DigitalSubCarrierId result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subCarrierId_ = subCarrierId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.active_ = active_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ipowdm.Ipowdm.DigitalSubCarrierId) { + return mergeFrom((ipowdm.Ipowdm.DigitalSubCarrierId) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ipowdm.Ipowdm.DigitalSubCarrierId other) { + if (other == ipowdm.Ipowdm.DigitalSubCarrierId.getDefaultInstance()) + return this; + if (other.getSubCarrierId() != 0) { + setSubCarrierId(other.getSubCarrierId()); + } + if (!other.getActive().isEmpty()) { + active_ = other.active_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 8: + { + subCarrierId_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } + // case 8 + case 18: + { + active_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } + // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private int subCarrierId_; + + /** + * int32 sub_carrier_id = 1; + * @return The subCarrierId. + */ + @java.lang.Override + public int getSubCarrierId() { + return subCarrierId_; + } + + /** + * int32 sub_carrier_id = 1; + * @param value The subCarrierId to set. + * @return This builder for chaining. + */ + public Builder setSubCarrierId(int value) { + subCarrierId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * int32 sub_carrier_id = 1; + * @return This builder for chaining. + */ + public Builder clearSubCarrierId() { + bitField0_ = (bitField0_ & ~0x00000001); + subCarrierId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object active_ = ""; + + /** + * string active = 2; + * @return The active. + */ + public java.lang.String getActive() { + java.lang.Object ref = active_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + active_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string active = 2; + * @return The bytes for active. + */ + public com.google.protobuf.ByteString getActiveBytes() { + java.lang.Object ref = active_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + active_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string active = 2; + * @param value The active to set. + * @return This builder for chaining. + */ + public Builder setActive(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + active_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string active = 2; + * @return This builder for chaining. + */ + public Builder clearActive() { + active_ = getDefaultInstance().getActive(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string active = 2; + * @param value The bytes for active to set. + * @return This builder for chaining. + */ + public Builder setActiveBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + active_ = value; + bitField0_ |= 0x00000002; + 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:ipowdm.DigitalSubCarrierId) + } + + // @@protoc_insertion_point(class_scope:ipowdm.DigitalSubCarrierId) + private static final ipowdm.Ipowdm.DigitalSubCarrierId DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ipowdm.Ipowdm.DigitalSubCarrierId(); + } + + public static ipowdm.Ipowdm.DigitalSubCarrierId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public DigitalSubCarrierId parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarrierId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DigitalSubCarriersGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:ipowdm.DigitalSubCarriersGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 digital_sub_carriers_group_id = 1; + * @return The digitalSubCarriersGroupId. + */ + int getDigitalSubCarriersGroupId(); + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + java.util.List getDigitalSubCarrierIdList(); + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + ipowdm.Ipowdm.DigitalSubCarrierId getDigitalSubCarrierId(int index); + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + int getDigitalSubCarrierIdCount(); + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + java.util.List getDigitalSubCarrierIdOrBuilderList(); + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + ipowdm.Ipowdm.DigitalSubCarrierIdOrBuilder getDigitalSubCarrierIdOrBuilder(int index); + } + + /** + * Protobuf type {@code ipowdm.DigitalSubCarriersGroup} + */ + public static final class DigitalSubCarriersGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipowdm.DigitalSubCarriersGroup) + DigitalSubCarriersGroupOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use DigitalSubCarriersGroup.newBuilder() to construct. + private DigitalSubCarriersGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DigitalSubCarriersGroup() { + digitalSubCarrierId_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DigitalSubCarriersGroup(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarriersGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarriersGroup_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.DigitalSubCarriersGroup.class, ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder.class); + } + + public static final int DIGITAL_SUB_CARRIERS_GROUP_ID_FIELD_NUMBER = 1; + + private int digitalSubCarriersGroupId_ = 0; + + /** + * int32 digital_sub_carriers_group_id = 1; + * @return The digitalSubCarriersGroupId. + */ + @java.lang.Override + public int getDigitalSubCarriersGroupId() { + return digitalSubCarriersGroupId_; + } + + public static final int DIGITAL_SUB_CARRIER_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List digitalSubCarrierId_; + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + @java.lang.Override + public java.util.List getDigitalSubCarrierIdList() { + return digitalSubCarrierId_; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + @java.lang.Override + public java.util.List getDigitalSubCarrierIdOrBuilderList() { + return digitalSubCarrierId_; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + @java.lang.Override + public int getDigitalSubCarrierIdCount() { + return digitalSubCarrierId_.size(); + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarrierId getDigitalSubCarrierId(int index) { + return digitalSubCarrierId_.get(index); + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarrierIdOrBuilder getDigitalSubCarrierIdOrBuilder(int index) { + return digitalSubCarrierId_.get(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 (digitalSubCarriersGroupId_ != 0) { + output.writeInt32(1, digitalSubCarriersGroupId_); + } + for (int i = 0; i < digitalSubCarrierId_.size(); i++) { + output.writeMessage(4, digitalSubCarrierId_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (digitalSubCarriersGroupId_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, digitalSubCarriersGroupId_); + } + for (int i = 0; i < digitalSubCarrierId_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, digitalSubCarrierId_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ipowdm.Ipowdm.DigitalSubCarriersGroup)) { + return super.equals(obj); + } + ipowdm.Ipowdm.DigitalSubCarriersGroup other = (ipowdm.Ipowdm.DigitalSubCarriersGroup) obj; + if (getDigitalSubCarriersGroupId() != other.getDigitalSubCarriersGroupId()) + return false; + if (!getDigitalSubCarrierIdList().equals(other.getDigitalSubCarrierIdList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + DIGITAL_SUB_CARRIERS_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getDigitalSubCarriersGroupId(); + if (getDigitalSubCarrierIdCount() > 0) { + hash = (37 * hash) + DIGITAL_SUB_CARRIER_ID_FIELD_NUMBER; + hash = (53 * hash) + getDigitalSubCarrierIdList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup 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 ipowdm.Ipowdm.DigitalSubCarriersGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup 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 ipowdm.Ipowdm.DigitalSubCarriersGroup parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup 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(ipowdm.Ipowdm.DigitalSubCarriersGroup 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; + } + + /** + * Protobuf type {@code ipowdm.DigitalSubCarriersGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipowdm.DigitalSubCarriersGroup) + ipowdm.Ipowdm.DigitalSubCarriersGroupOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarriersGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarriersGroup_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.DigitalSubCarriersGroup.class, ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder.class); + } + + // Construct using ipowdm.Ipowdm.DigitalSubCarriersGroup.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + digitalSubCarriersGroupId_ = 0; + if (digitalSubCarrierIdBuilder_ == null) { + digitalSubCarrierId_ = java.util.Collections.emptyList(); + } else { + digitalSubCarrierId_ = null; + digitalSubCarrierIdBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ipowdm.Ipowdm.internal_static_ipowdm_DigitalSubCarriersGroup_descriptor; + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarriersGroup getDefaultInstanceForType() { + return ipowdm.Ipowdm.DigitalSubCarriersGroup.getDefaultInstance(); + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarriersGroup build() { + ipowdm.Ipowdm.DigitalSubCarriersGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarriersGroup buildPartial() { + ipowdm.Ipowdm.DigitalSubCarriersGroup result = new ipowdm.Ipowdm.DigitalSubCarriersGroup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(ipowdm.Ipowdm.DigitalSubCarriersGroup result) { + if (digitalSubCarrierIdBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + digitalSubCarrierId_ = java.util.Collections.unmodifiableList(digitalSubCarrierId_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.digitalSubCarrierId_ = digitalSubCarrierId_; + } else { + result.digitalSubCarrierId_ = digitalSubCarrierIdBuilder_.build(); + } + } + + private void buildPartial0(ipowdm.Ipowdm.DigitalSubCarriersGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.digitalSubCarriersGroupId_ = digitalSubCarriersGroupId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ipowdm.Ipowdm.DigitalSubCarriersGroup) { + return mergeFrom((ipowdm.Ipowdm.DigitalSubCarriersGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ipowdm.Ipowdm.DigitalSubCarriersGroup other) { + if (other == ipowdm.Ipowdm.DigitalSubCarriersGroup.getDefaultInstance()) + return this; + if (other.getDigitalSubCarriersGroupId() != 0) { + setDigitalSubCarriersGroupId(other.getDigitalSubCarriersGroupId()); + } + if (digitalSubCarrierIdBuilder_ == null) { + if (!other.digitalSubCarrierId_.isEmpty()) { + if (digitalSubCarrierId_.isEmpty()) { + digitalSubCarrierId_ = other.digitalSubCarrierId_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.addAll(other.digitalSubCarrierId_); + } + onChanged(); + } + } else { + if (!other.digitalSubCarrierId_.isEmpty()) { + if (digitalSubCarrierIdBuilder_.isEmpty()) { + digitalSubCarrierIdBuilder_.dispose(); + digitalSubCarrierIdBuilder_ = null; + digitalSubCarrierId_ = other.digitalSubCarrierId_; + bitField0_ = (bitField0_ & ~0x00000002); + digitalSubCarrierIdBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDigitalSubCarrierIdFieldBuilder() : null; + } else { + digitalSubCarrierIdBuilder_.addAllMessages(other.digitalSubCarrierId_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 8: + { + digitalSubCarriersGroupId_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } + // case 8 + case 34: + { + ipowdm.Ipowdm.DigitalSubCarrierId m = input.readMessage(ipowdm.Ipowdm.DigitalSubCarrierId.parser(), extensionRegistry); + if (digitalSubCarrierIdBuilder_ == null) { + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.add(m); + } else { + digitalSubCarrierIdBuilder_.addMessage(m); + } + break; + } + // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private int digitalSubCarriersGroupId_; + + /** + * int32 digital_sub_carriers_group_id = 1; + * @return The digitalSubCarriersGroupId. + */ + @java.lang.Override + public int getDigitalSubCarriersGroupId() { + return digitalSubCarriersGroupId_; + } + + /** + * int32 digital_sub_carriers_group_id = 1; + * @param value The digitalSubCarriersGroupId to set. + * @return This builder for chaining. + */ + public Builder setDigitalSubCarriersGroupId(int value) { + digitalSubCarriersGroupId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * int32 digital_sub_carriers_group_id = 1; + * @return This builder for chaining. + */ + public Builder clearDigitalSubCarriersGroupId() { + bitField0_ = (bitField0_ & ~0x00000001); + digitalSubCarriersGroupId_ = 0; + onChanged(); + return this; + } + + private java.util.List digitalSubCarrierId_ = java.util.Collections.emptyList(); + + private void ensureDigitalSubCarrierIdIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + digitalSubCarrierId_ = new java.util.ArrayList(digitalSubCarrierId_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 digitalSubCarrierIdBuilder_; + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public java.util.List getDigitalSubCarrierIdList() { + if (digitalSubCarrierIdBuilder_ == null) { + return java.util.Collections.unmodifiableList(digitalSubCarrierId_); + } else { + return digitalSubCarrierIdBuilder_.getMessageList(); + } + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public int getDigitalSubCarrierIdCount() { + if (digitalSubCarrierIdBuilder_ == null) { + return digitalSubCarrierId_.size(); + } else { + return digitalSubCarrierIdBuilder_.getCount(); + } + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public ipowdm.Ipowdm.DigitalSubCarrierId getDigitalSubCarrierId(int index) { + if (digitalSubCarrierIdBuilder_ == null) { + return digitalSubCarrierId_.get(index); + } else { + return digitalSubCarrierIdBuilder_.getMessage(index); + } + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder setDigitalSubCarrierId(int index, ipowdm.Ipowdm.DigitalSubCarrierId value) { + if (digitalSubCarrierIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.set(index, value); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder setDigitalSubCarrierId(int index, ipowdm.Ipowdm.DigitalSubCarrierId.Builder builderForValue) { + if (digitalSubCarrierIdBuilder_ == null) { + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.set(index, builderForValue.build()); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder addDigitalSubCarrierId(ipowdm.Ipowdm.DigitalSubCarrierId value) { + if (digitalSubCarrierIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.add(value); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder addDigitalSubCarrierId(int index, ipowdm.Ipowdm.DigitalSubCarrierId value) { + if (digitalSubCarrierIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.add(index, value); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder addDigitalSubCarrierId(ipowdm.Ipowdm.DigitalSubCarrierId.Builder builderForValue) { + if (digitalSubCarrierIdBuilder_ == null) { + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.add(builderForValue.build()); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder addDigitalSubCarrierId(int index, ipowdm.Ipowdm.DigitalSubCarrierId.Builder builderForValue) { + if (digitalSubCarrierIdBuilder_ == null) { + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.add(index, builderForValue.build()); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder addAllDigitalSubCarrierId(java.lang.Iterable values) { + if (digitalSubCarrierIdBuilder_ == null) { + ensureDigitalSubCarrierIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, digitalSubCarrierId_); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder clearDigitalSubCarrierId() { + if (digitalSubCarrierIdBuilder_ == null) { + digitalSubCarrierId_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.clear(); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public Builder removeDigitalSubCarrierId(int index) { + if (digitalSubCarrierIdBuilder_ == null) { + ensureDigitalSubCarrierIdIsMutable(); + digitalSubCarrierId_.remove(index); + onChanged(); + } else { + digitalSubCarrierIdBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public ipowdm.Ipowdm.DigitalSubCarrierId.Builder getDigitalSubCarrierIdBuilder(int index) { + return getDigitalSubCarrierIdFieldBuilder().getBuilder(index); + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public ipowdm.Ipowdm.DigitalSubCarrierIdOrBuilder getDigitalSubCarrierIdOrBuilder(int index) { + if (digitalSubCarrierIdBuilder_ == null) { + return digitalSubCarrierId_.get(index); + } else { + return digitalSubCarrierIdBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public java.util.List getDigitalSubCarrierIdOrBuilderList() { + if (digitalSubCarrierIdBuilder_ != null) { + return digitalSubCarrierIdBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(digitalSubCarrierId_); + } + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public ipowdm.Ipowdm.DigitalSubCarrierId.Builder addDigitalSubCarrierIdBuilder() { + return getDigitalSubCarrierIdFieldBuilder().addBuilder(ipowdm.Ipowdm.DigitalSubCarrierId.getDefaultInstance()); + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public ipowdm.Ipowdm.DigitalSubCarrierId.Builder addDigitalSubCarrierIdBuilder(int index) { + return getDigitalSubCarrierIdFieldBuilder().addBuilder(index, ipowdm.Ipowdm.DigitalSubCarrierId.getDefaultInstance()); + } + + /** + * repeated .ipowdm.DigitalSubCarrierId digital_sub_carrier_id = 4; + */ + public java.util.List getDigitalSubCarrierIdBuilderList() { + return getDigitalSubCarrierIdFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getDigitalSubCarrierIdFieldBuilder() { + if (digitalSubCarrierIdBuilder_ == null) { + digitalSubCarrierIdBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(digitalSubCarrierId_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + digitalSubCarrierId_ = null; + } + return digitalSubCarrierIdBuilder_; + } + + @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:ipowdm.DigitalSubCarriersGroup) + } + + // @@protoc_insertion_point(class_scope:ipowdm.DigitalSubCarriersGroup) + private static final ipowdm.Ipowdm.DigitalSubCarriersGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ipowdm.Ipowdm.DigitalSubCarriersGroup(); + } + + public static ipowdm.Ipowdm.DigitalSubCarriersGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public DigitalSubCarriersGroup parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarriersGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ComponentOrBuilder extends // @@protoc_insertion_point(interface_extends:ipowdm.Component) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * float frequency = 2; + * @return The frequency. + */ + float getFrequency(); + + /** + * float target_output_power = 3; + * @return The targetOutputPower. + */ + float getTargetOutputPower(); + + /** + * int32 operational_mode = 4; + * @return The operationalMode. + */ + int getOperationalMode(); + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + java.util.List getDigitalSubCarriersGroupList(); + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + ipowdm.Ipowdm.DigitalSubCarriersGroup getDigitalSubCarriersGroup(int index); + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + int getDigitalSubCarriersGroupCount(); + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + java.util.List getDigitalSubCarriersGroupOrBuilderList(); + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + ipowdm.Ipowdm.DigitalSubCarriersGroupOrBuilder getDigitalSubCarriersGroupOrBuilder(int index); + + /** + * string operation = 6; + * @return The operation. + */ + java.lang.String getOperation(); + + /** + * string operation = 6; + * @return The bytes for operation. + */ + com.google.protobuf.ByteString getOperationBytes(); + } + + /** + * Protobuf type {@code ipowdm.Component} + */ + public static final class Component extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipowdm.Component) + ComponentOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use Component.newBuilder() to construct. + private Component(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Component() { + name_ = ""; + digitalSubCarriersGroup_ = java.util.Collections.emptyList(); + operation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Component(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_Component_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_Component_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.Component.class, ipowdm.Ipowdm.Component.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FREQUENCY_FIELD_NUMBER = 2; + + private float frequency_ = 0F; + + /** + * float frequency = 2; + * @return The frequency. + */ + @java.lang.Override + public float getFrequency() { + return frequency_; + } + + public static final int TARGET_OUTPUT_POWER_FIELD_NUMBER = 3; + + private float targetOutputPower_ = 0F; + + /** + * float target_output_power = 3; + * @return The targetOutputPower. + */ + @java.lang.Override + public float getTargetOutputPower() { + return targetOutputPower_; + } + + public static final int OPERATIONAL_MODE_FIELD_NUMBER = 4; + + private int operationalMode_ = 0; + + /** + * int32 operational_mode = 4; + * @return The operationalMode. + */ + @java.lang.Override + public int getOperationalMode() { + return operationalMode_; + } + + public static final int DIGITAL_SUB_CARRIERS_GROUP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List digitalSubCarriersGroup_; + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + @java.lang.Override + public java.util.List getDigitalSubCarriersGroupList() { + return digitalSubCarriersGroup_; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + @java.lang.Override + public java.util.List getDigitalSubCarriersGroupOrBuilderList() { + return digitalSubCarriersGroup_; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + @java.lang.Override + public int getDigitalSubCarriersGroupCount() { + return digitalSubCarriersGroup_.size(); + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarriersGroup getDigitalSubCarriersGroup(int index) { + return digitalSubCarriersGroup_.get(index); + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + @java.lang.Override + public ipowdm.Ipowdm.DigitalSubCarriersGroupOrBuilder getDigitalSubCarriersGroupOrBuilder(int index) { + return digitalSubCarriersGroup_.get(index); + } + + public static final int OPERATION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object operation_ = ""; + + /** + * string operation = 6; + * @return The operation. + */ + @java.lang.Override + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + 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(); + operation_ = s; + return s; + } + } + + /** + * string operation = 6; + * @return The bytes for operation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = 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_); + } + if (java.lang.Float.floatToRawIntBits(frequency_) != 0) { + output.writeFloat(2, frequency_); + } + if (java.lang.Float.floatToRawIntBits(targetOutputPower_) != 0) { + output.writeFloat(3, targetOutputPower_); + } + if (operationalMode_ != 0) { + output.writeInt32(4, operationalMode_); + } + for (int i = 0; i < digitalSubCarriersGroup_.size(); i++) { + output.writeMessage(5, digitalSubCarriersGroup_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, operation_); + } + getUnknownFields().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 (java.lang.Float.floatToRawIntBits(frequency_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, frequency_); + } + if (java.lang.Float.floatToRawIntBits(targetOutputPower_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, targetOutputPower_); + } + if (operationalMode_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, operationalMode_); + } + for (int i = 0; i < digitalSubCarriersGroup_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, digitalSubCarriersGroup_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, operation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ipowdm.Ipowdm.Component)) { + return super.equals(obj); + } + ipowdm.Ipowdm.Component other = (ipowdm.Ipowdm.Component) obj; + if (!getName().equals(other.getName())) + return false; + if (java.lang.Float.floatToIntBits(getFrequency()) != java.lang.Float.floatToIntBits(other.getFrequency())) + return false; + if (java.lang.Float.floatToIntBits(getTargetOutputPower()) != java.lang.Float.floatToIntBits(other.getTargetOutputPower())) + return false; + if (getOperationalMode() != other.getOperationalMode()) + return false; + if (!getDigitalSubCarriersGroupList().equals(other.getDigitalSubCarriersGroupList())) + return false; + if (!getOperation().equals(other.getOperation())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + FREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFrequency()); + hash = (37 * hash) + TARGET_OUTPUT_POWER_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTargetOutputPower()); + hash = (37 * hash) + OPERATIONAL_MODE_FIELD_NUMBER; + hash = (53 * hash) + getOperationalMode(); + if (getDigitalSubCarriersGroupCount() > 0) { + hash = (37 * hash) + DIGITAL_SUB_CARRIERS_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getDigitalSubCarriersGroupList().hashCode(); + } + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getOperation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ipowdm.Ipowdm.Component parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.Component parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.Component parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.Component parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.Component parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.Component parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.Component parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.Component 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 ipowdm.Ipowdm.Component parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.Component 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 ipowdm.Ipowdm.Component parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.Component 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(ipowdm.Ipowdm.Component 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; + } + + /** + * Protobuf type {@code ipowdm.Component} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipowdm.Component) + ipowdm.Ipowdm.ComponentOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_Component_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_Component_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.Component.class, ipowdm.Ipowdm.Component.Builder.class); + } + + // Construct using ipowdm.Ipowdm.Component.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + frequency_ = 0F; + targetOutputPower_ = 0F; + operationalMode_ = 0; + if (digitalSubCarriersGroupBuilder_ == null) { + digitalSubCarriersGroup_ = java.util.Collections.emptyList(); + } else { + digitalSubCarriersGroup_ = null; + digitalSubCarriersGroupBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + operation_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ipowdm.Ipowdm.internal_static_ipowdm_Component_descriptor; + } + + @java.lang.Override + public ipowdm.Ipowdm.Component getDefaultInstanceForType() { + return ipowdm.Ipowdm.Component.getDefaultInstance(); + } + + @java.lang.Override + public ipowdm.Ipowdm.Component build() { + ipowdm.Ipowdm.Component result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ipowdm.Ipowdm.Component buildPartial() { + ipowdm.Ipowdm.Component result = new ipowdm.Ipowdm.Component(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(ipowdm.Ipowdm.Component result) { + if (digitalSubCarriersGroupBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + digitalSubCarriersGroup_ = java.util.Collections.unmodifiableList(digitalSubCarriersGroup_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.digitalSubCarriersGroup_ = digitalSubCarriersGroup_; + } else { + result.digitalSubCarriersGroup_ = digitalSubCarriersGroupBuilder_.build(); + } + } + + private void buildPartial0(ipowdm.Ipowdm.Component result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.frequency_ = frequency_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.targetOutputPower_ = targetOutputPower_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.operationalMode_ = operationalMode_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.operation_ = operation_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ipowdm.Ipowdm.Component) { + return mergeFrom((ipowdm.Ipowdm.Component) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ipowdm.Ipowdm.Component other) { + if (other == ipowdm.Ipowdm.Component.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getFrequency() != 0F) { + setFrequency(other.getFrequency()); + } + if (other.getTargetOutputPower() != 0F) { + setTargetOutputPower(other.getTargetOutputPower()); + } + if (other.getOperationalMode() != 0) { + setOperationalMode(other.getOperationalMode()); + } + if (digitalSubCarriersGroupBuilder_ == null) { + if (!other.digitalSubCarriersGroup_.isEmpty()) { + if (digitalSubCarriersGroup_.isEmpty()) { + digitalSubCarriersGroup_ = other.digitalSubCarriersGroup_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.addAll(other.digitalSubCarriersGroup_); + } + onChanged(); + } + } else { + if (!other.digitalSubCarriersGroup_.isEmpty()) { + if (digitalSubCarriersGroupBuilder_.isEmpty()) { + digitalSubCarriersGroupBuilder_.dispose(); + digitalSubCarriersGroupBuilder_ = null; + digitalSubCarriersGroup_ = other.digitalSubCarriersGroup_; + bitField0_ = (bitField0_ & ~0x00000010); + digitalSubCarriersGroupBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDigitalSubCarriersGroupFieldBuilder() : null; + } else { + digitalSubCarriersGroupBuilder_.addAllMessages(other.digitalSubCarriersGroup_); + } + } + } + if (!other.getOperation().isEmpty()) { + operation_ = other.operation_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 21: + { + frequency_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } + // case 21 + case 29: + { + targetOutputPower_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } + // case 29 + case 32: + { + operationalMode_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } + // case 32 + case 42: + { + ipowdm.Ipowdm.DigitalSubCarriersGroup m = input.readMessage(ipowdm.Ipowdm.DigitalSubCarriersGroup.parser(), extensionRegistry); + if (digitalSubCarriersGroupBuilder_ == null) { + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.add(m); + } else { + digitalSubCarriersGroupBuilder_.addMessage(m); + } + break; + } + // case 42 + case 50: + { + operation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } + // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float frequency_; + + /** + * float frequency = 2; + * @return The frequency. + */ + @java.lang.Override + public float getFrequency() { + return frequency_; + } + + /** + * float frequency = 2; + * @param value The frequency to set. + * @return This builder for chaining. + */ + public Builder setFrequency(float value) { + frequency_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * float frequency = 2; + * @return This builder for chaining. + */ + public Builder clearFrequency() { + bitField0_ = (bitField0_ & ~0x00000002); + frequency_ = 0F; + onChanged(); + return this; + } + + private float targetOutputPower_; + + /** + * float target_output_power = 3; + * @return The targetOutputPower. + */ + @java.lang.Override + public float getTargetOutputPower() { + return targetOutputPower_; + } + + /** + * float target_output_power = 3; + * @param value The targetOutputPower to set. + * @return This builder for chaining. + */ + public Builder setTargetOutputPower(float value) { + targetOutputPower_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * float target_output_power = 3; + * @return This builder for chaining. + */ + public Builder clearTargetOutputPower() { + bitField0_ = (bitField0_ & ~0x00000004); + targetOutputPower_ = 0F; + onChanged(); + return this; + } + + private int operationalMode_; + + /** + * int32 operational_mode = 4; + * @return The operationalMode. + */ + @java.lang.Override + public int getOperationalMode() { + return operationalMode_; + } + + /** + * int32 operational_mode = 4; + * @param value The operationalMode to set. + * @return This builder for chaining. + */ + public Builder setOperationalMode(int value) { + operationalMode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * int32 operational_mode = 4; + * @return This builder for chaining. + */ + public Builder clearOperationalMode() { + bitField0_ = (bitField0_ & ~0x00000008); + operationalMode_ = 0; + onChanged(); + return this; + } + + private java.util.List digitalSubCarriersGroup_ = java.util.Collections.emptyList(); + + private void ensureDigitalSubCarriersGroupIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + digitalSubCarriersGroup_ = new java.util.ArrayList(digitalSubCarriersGroup_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 digitalSubCarriersGroupBuilder_; + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public java.util.List getDigitalSubCarriersGroupList() { + if (digitalSubCarriersGroupBuilder_ == null) { + return java.util.Collections.unmodifiableList(digitalSubCarriersGroup_); + } else { + return digitalSubCarriersGroupBuilder_.getMessageList(); + } + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public int getDigitalSubCarriersGroupCount() { + if (digitalSubCarriersGroupBuilder_ == null) { + return digitalSubCarriersGroup_.size(); + } else { + return digitalSubCarriersGroupBuilder_.getCount(); + } + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public ipowdm.Ipowdm.DigitalSubCarriersGroup getDigitalSubCarriersGroup(int index) { + if (digitalSubCarriersGroupBuilder_ == null) { + return digitalSubCarriersGroup_.get(index); + } else { + return digitalSubCarriersGroupBuilder_.getMessage(index); + } + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder setDigitalSubCarriersGroup(int index, ipowdm.Ipowdm.DigitalSubCarriersGroup value) { + if (digitalSubCarriersGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.set(index, value); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder setDigitalSubCarriersGroup(int index, ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder builderForValue) { + if (digitalSubCarriersGroupBuilder_ == null) { + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.set(index, builderForValue.build()); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder addDigitalSubCarriersGroup(ipowdm.Ipowdm.DigitalSubCarriersGroup value) { + if (digitalSubCarriersGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.add(value); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder addDigitalSubCarriersGroup(int index, ipowdm.Ipowdm.DigitalSubCarriersGroup value) { + if (digitalSubCarriersGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.add(index, value); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder addDigitalSubCarriersGroup(ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder builderForValue) { + if (digitalSubCarriersGroupBuilder_ == null) { + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.add(builderForValue.build()); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder addDigitalSubCarriersGroup(int index, ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder builderForValue) { + if (digitalSubCarriersGroupBuilder_ == null) { + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.add(index, builderForValue.build()); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder addAllDigitalSubCarriersGroup(java.lang.Iterable values) { + if (digitalSubCarriersGroupBuilder_ == null) { + ensureDigitalSubCarriersGroupIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, digitalSubCarriersGroup_); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder clearDigitalSubCarriersGroup() { + if (digitalSubCarriersGroupBuilder_ == null) { + digitalSubCarriersGroup_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.clear(); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public Builder removeDigitalSubCarriersGroup(int index) { + if (digitalSubCarriersGroupBuilder_ == null) { + ensureDigitalSubCarriersGroupIsMutable(); + digitalSubCarriersGroup_.remove(index); + onChanged(); + } else { + digitalSubCarriersGroupBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder getDigitalSubCarriersGroupBuilder(int index) { + return getDigitalSubCarriersGroupFieldBuilder().getBuilder(index); + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public ipowdm.Ipowdm.DigitalSubCarriersGroupOrBuilder getDigitalSubCarriersGroupOrBuilder(int index) { + if (digitalSubCarriersGroupBuilder_ == null) { + return digitalSubCarriersGroup_.get(index); + } else { + return digitalSubCarriersGroupBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public java.util.List getDigitalSubCarriersGroupOrBuilderList() { + if (digitalSubCarriersGroupBuilder_ != null) { + return digitalSubCarriersGroupBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(digitalSubCarriersGroup_); + } + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder addDigitalSubCarriersGroupBuilder() { + return getDigitalSubCarriersGroupFieldBuilder().addBuilder(ipowdm.Ipowdm.DigitalSubCarriersGroup.getDefaultInstance()); + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public ipowdm.Ipowdm.DigitalSubCarriersGroup.Builder addDigitalSubCarriersGroupBuilder(int index) { + return getDigitalSubCarriersGroupFieldBuilder().addBuilder(index, ipowdm.Ipowdm.DigitalSubCarriersGroup.getDefaultInstance()); + } + + /** + * repeated .ipowdm.DigitalSubCarriersGroup digital_sub_carriers_group = 5; + */ + public java.util.List getDigitalSubCarriersGroupBuilderList() { + return getDigitalSubCarriersGroupFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getDigitalSubCarriersGroupFieldBuilder() { + if (digitalSubCarriersGroupBuilder_ == null) { + digitalSubCarriersGroupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(digitalSubCarriersGroup_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + digitalSubCarriersGroup_ = null; + } + return digitalSubCarriersGroupBuilder_; + } + + private java.lang.Object operation_ = ""; + + /** + * string operation = 6; + * @return The operation. + */ + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string operation = 6; + * @return The bytes for operation. + */ + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string operation = 6; + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * string operation = 6; + * @return This builder for chaining. + */ + public Builder clearOperation() { + operation_ = getDefaultInstance().getOperation(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * string operation = 6; + * @param value The bytes for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operation_ = value; + bitField0_ |= 0x00000020; + 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:ipowdm.Component) + } + + // @@protoc_insertion_point(class_scope:ipowdm.Component) + private static final ipowdm.Ipowdm.Component DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ipowdm.Ipowdm.Component(); + } + + public static ipowdm.Ipowdm.Component getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public Component parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ipowdm.Ipowdm.Component getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TransceiverOrBuilder extends // @@protoc_insertion_point(interface_extends:ipowdm.Transceiver) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .ipowdm.Component components = 1; + */ + java.util.List getComponentsList(); + + /** + * repeated .ipowdm.Component components = 1; + */ + ipowdm.Ipowdm.Component getComponents(int index); + + /** + * repeated .ipowdm.Component components = 1; + */ + int getComponentsCount(); + + /** + * repeated .ipowdm.Component components = 1; + */ + java.util.List getComponentsOrBuilderList(); + + /** + * repeated .ipowdm.Component components = 1; + */ + ipowdm.Ipowdm.ComponentOrBuilder getComponentsOrBuilder(int index); + } + + /** + * Protobuf type {@code ipowdm.Transceiver} + */ + public static final class Transceiver extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipowdm.Transceiver) + TransceiverOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use Transceiver.newBuilder() to construct. + private Transceiver(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Transceiver() { + components_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Transceiver(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_Transceiver_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_Transceiver_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.Transceiver.class, ipowdm.Ipowdm.Transceiver.Builder.class); + } + + public static final int COMPONENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List components_; + + /** + * repeated .ipowdm.Component components = 1; + */ + @java.lang.Override + public java.util.List getComponentsList() { + return components_; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + @java.lang.Override + public java.util.List getComponentsOrBuilderList() { + return components_; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + @java.lang.Override + public int getComponentsCount() { + return components_.size(); + } + + /** + * repeated .ipowdm.Component components = 1; + */ + @java.lang.Override + public ipowdm.Ipowdm.Component getComponents(int index) { + return components_.get(index); + } + + /** + * repeated .ipowdm.Component components = 1; + */ + @java.lang.Override + public ipowdm.Ipowdm.ComponentOrBuilder getComponentsOrBuilder(int index) { + return components_.get(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 { + for (int i = 0; i < components_.size(); i++) { + output.writeMessage(1, components_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + for (int i = 0; i < components_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, components_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ipowdm.Ipowdm.Transceiver)) { + return super.equals(obj); + } + ipowdm.Ipowdm.Transceiver other = (ipowdm.Ipowdm.Transceiver) obj; + if (!getComponentsList().equals(other.getComponentsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getComponentsCount() > 0) { + hash = (37 * hash) + COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getComponentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.Transceiver parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.Transceiver 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 ipowdm.Ipowdm.Transceiver parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.Transceiver 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 ipowdm.Ipowdm.Transceiver parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.Transceiver 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(ipowdm.Ipowdm.Transceiver 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; + } + + /** + * Protobuf type {@code ipowdm.Transceiver} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipowdm.Transceiver) + ipowdm.Ipowdm.TransceiverOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_Transceiver_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_Transceiver_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.Transceiver.class, ipowdm.Ipowdm.Transceiver.Builder.class); + } + + // Construct using ipowdm.Ipowdm.Transceiver.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + } else { + components_ = null; + componentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ipowdm.Ipowdm.internal_static_ipowdm_Transceiver_descriptor; + } + + @java.lang.Override + public ipowdm.Ipowdm.Transceiver getDefaultInstanceForType() { + return ipowdm.Ipowdm.Transceiver.getDefaultInstance(); + } + + @java.lang.Override + public ipowdm.Ipowdm.Transceiver build() { + ipowdm.Ipowdm.Transceiver result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ipowdm.Ipowdm.Transceiver buildPartial() { + ipowdm.Ipowdm.Transceiver result = new ipowdm.Ipowdm.Transceiver(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(ipowdm.Ipowdm.Transceiver result) { + if (componentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + components_ = java.util.Collections.unmodifiableList(components_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.components_ = components_; + } else { + result.components_ = componentsBuilder_.build(); + } + } + + private void buildPartial0(ipowdm.Ipowdm.Transceiver result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ipowdm.Ipowdm.Transceiver) { + return mergeFrom((ipowdm.Ipowdm.Transceiver) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ipowdm.Ipowdm.Transceiver other) { + if (other == ipowdm.Ipowdm.Transceiver.getDefaultInstance()) + return this; + if (componentsBuilder_ == null) { + if (!other.components_.isEmpty()) { + if (components_.isEmpty()) { + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureComponentsIsMutable(); + components_.addAll(other.components_); + } + onChanged(); + } + } else { + if (!other.components_.isEmpty()) { + if (componentsBuilder_.isEmpty()) { + componentsBuilder_.dispose(); + componentsBuilder_ = null; + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000001); + componentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getComponentsFieldBuilder() : null; + } else { + componentsBuilder_.addAllMessages(other.components_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + ipowdm.Ipowdm.Component m = input.readMessage(ipowdm.Ipowdm.Component.parser(), extensionRegistry); + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(m); + } else { + componentsBuilder_.addMessage(m); + } + break; + } + // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.util.List components_ = java.util.Collections.emptyList(); + + private void ensureComponentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + components_ = new java.util.ArrayList(components_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 componentsBuilder_; + + /** + * repeated .ipowdm.Component components = 1; + */ + public java.util.List getComponentsList() { + if (componentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(components_); + } else { + return componentsBuilder_.getMessageList(); + } + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public int getComponentsCount() { + if (componentsBuilder_ == null) { + return components_.size(); + } else { + return componentsBuilder_.getCount(); + } + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public ipowdm.Ipowdm.Component getComponents(int index) { + if (componentsBuilder_ == null) { + return components_.get(index); + } else { + return componentsBuilder_.getMessage(index); + } + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder setComponents(int index, ipowdm.Ipowdm.Component value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.set(index, value); + onChanged(); + } else { + componentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder setComponents(int index, ipowdm.Ipowdm.Component.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.set(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder addComponents(ipowdm.Ipowdm.Component value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(value); + onChanged(); + } else { + componentsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder addComponents(int index, ipowdm.Ipowdm.Component value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(index, value); + onChanged(); + } else { + componentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder addComponents(ipowdm.Ipowdm.Component.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder addComponents(int index, ipowdm.Ipowdm.Component.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder addAllComponents(java.lang.Iterable values) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, components_); + onChanged(); + } else { + componentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder clearComponents() { + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + componentsBuilder_.clear(); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public Builder removeComponents(int index) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.remove(index); + onChanged(); + } else { + componentsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public ipowdm.Ipowdm.Component.Builder getComponentsBuilder(int index) { + return getComponentsFieldBuilder().getBuilder(index); + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public ipowdm.Ipowdm.ComponentOrBuilder getComponentsOrBuilder(int index) { + if (componentsBuilder_ == null) { + return components_.get(index); + } else { + return componentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public java.util.List getComponentsOrBuilderList() { + if (componentsBuilder_ != null) { + return componentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(components_); + } + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public ipowdm.Ipowdm.Component.Builder addComponentsBuilder() { + return getComponentsFieldBuilder().addBuilder(ipowdm.Ipowdm.Component.getDefaultInstance()); + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public ipowdm.Ipowdm.Component.Builder addComponentsBuilder(int index) { + return getComponentsFieldBuilder().addBuilder(index, ipowdm.Ipowdm.Component.getDefaultInstance()); + } + + /** + * repeated .ipowdm.Component components = 1; + */ + public java.util.List getComponentsBuilderList() { + return getComponentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getComponentsFieldBuilder() { + if (componentsBuilder_ == null) { + componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(components_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + components_ = null; + } + return componentsBuilder_; + } + + @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:ipowdm.Transceiver) + } + + // @@protoc_insertion_point(class_scope:ipowdm.Transceiver) + private static final ipowdm.Ipowdm.Transceiver DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ipowdm.Ipowdm.Transceiver(); + } + + public static ipowdm.Ipowdm.Transceiver getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public Transceiver parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ipowdm.Ipowdm.Transceiver getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IpowdmRuleSetOrBuilder extends // @@protoc_insertion_point(interface_extends:ipowdm.IpowdmRuleSet) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + java.util.List getSrcList(); + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + ipowdm.Ipowdm.RuleEndpoint getSrc(int index); + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + int getSrcCount(); + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + java.util.List getSrcOrBuilderList(); + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + ipowdm.Ipowdm.RuleEndpointOrBuilder getSrcOrBuilder(int index); + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + java.util.List getDstList(); + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + ipowdm.Ipowdm.RuleEndpoint getDst(int index); + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + int getDstCount(); + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + java.util.List getDstOrBuilderList(); + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + ipowdm.Ipowdm.RuleEndpointOrBuilder getDstOrBuilder(int index); + + /** + * int32 bw = 3; + * @return The bw. + */ + int getBw(); + + /** + * string uuid = 4; + * @return The uuid. + */ + java.lang.String getUuid(); + + /** + * string uuid = 4; + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString getUuidBytes(); + + /** + * .ipowdm.Transceiver transceiver = 5; + * @return Whether the transceiver field is set. + */ + boolean hasTransceiver(); + + /** + * .ipowdm.Transceiver transceiver = 5; + * @return The transceiver. + */ + ipowdm.Ipowdm.Transceiver getTransceiver(); + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + ipowdm.Ipowdm.TransceiverOrBuilder getTransceiverOrBuilder(); + } + + /** + * Protobuf type {@code ipowdm.IpowdmRuleSet} + */ + public static final class IpowdmRuleSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ipowdm.IpowdmRuleSet) + IpowdmRuleSetOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use IpowdmRuleSet.newBuilder() to construct. + private IpowdmRuleSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IpowdmRuleSet() { + src_ = java.util.Collections.emptyList(); + dst_ = java.util.Collections.emptyList(); + uuid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IpowdmRuleSet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_IpowdmRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_IpowdmRuleSet_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.IpowdmRuleSet.class, ipowdm.Ipowdm.IpowdmRuleSet.Builder.class); + } + + public static final int SRC_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List src_; + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + @java.lang.Override + public java.util.List getSrcList() { + return src_; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + @java.lang.Override + public java.util.List getSrcOrBuilderList() { + return src_; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + @java.lang.Override + public int getSrcCount() { + return src_.size(); + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpoint getSrc(int index) { + return src_.get(index); + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpointOrBuilder getSrcOrBuilder(int index) { + return src_.get(index); + } + + public static final int DST_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List dst_; + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + @java.lang.Override + public java.util.List getDstList() { + return dst_; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + @java.lang.Override + public java.util.List getDstOrBuilderList() { + return dst_; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + @java.lang.Override + public int getDstCount() { + return dst_.size(); + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpoint getDst(int index) { + return dst_.get(index); + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + @java.lang.Override + public ipowdm.Ipowdm.RuleEndpointOrBuilder getDstOrBuilder(int index) { + return dst_.get(index); + } + + public static final int BW_FIELD_NUMBER = 3; + + private int bw_ = 0; + + /** + * int32 bw = 3; + * @return The bw. + */ + @java.lang.Override + public int getBw() { + return bw_; + } + + public static final int UUID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * string uuid = 4; + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + 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(); + uuid_ = s; + return s; + } + } + + /** + * string uuid = 4; + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRANSCEIVER_FIELD_NUMBER = 5; + + private ipowdm.Ipowdm.Transceiver transceiver_; + + /** + * .ipowdm.Transceiver transceiver = 5; + * @return Whether the transceiver field is set. + */ + @java.lang.Override + public boolean hasTransceiver() { + return transceiver_ != null; + } + + /** + * .ipowdm.Transceiver transceiver = 5; + * @return The transceiver. + */ + @java.lang.Override + public ipowdm.Ipowdm.Transceiver getTransceiver() { + return transceiver_ == null ? ipowdm.Ipowdm.Transceiver.getDefaultInstance() : transceiver_; + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + @java.lang.Override + public ipowdm.Ipowdm.TransceiverOrBuilder getTransceiverOrBuilder() { + return transceiver_ == null ? ipowdm.Ipowdm.Transceiver.getDefaultInstance() : transceiver_; + } + + 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 < src_.size(); i++) { + output.writeMessage(1, src_.get(i)); + } + for (int i = 0; i < dst_.size(); i++) { + output.writeMessage(2, dst_.get(i)); + } + if (bw_ != 0) { + output.writeInt32(3, bw_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uuid_); + } + if (transceiver_ != null) { + output.writeMessage(5, getTransceiver()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + for (int i = 0; i < src_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, src_.get(i)); + } + for (int i = 0; i < dst_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dst_.get(i)); + } + if (bw_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, bw_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uuid_); + } + if (transceiver_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTransceiver()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ipowdm.Ipowdm.IpowdmRuleSet)) { + return super.equals(obj); + } + ipowdm.Ipowdm.IpowdmRuleSet other = (ipowdm.Ipowdm.IpowdmRuleSet) obj; + if (!getSrcList().equals(other.getSrcList())) + return false; + if (!getDstList().equals(other.getDstList())) + return false; + if (getBw() != other.getBw()) + return false; + if (!getUuid().equals(other.getUuid())) + return false; + if (hasTransceiver() != other.hasTransceiver()) + return false; + if (hasTransceiver()) { + if (!getTransceiver().equals(other.getTransceiver())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSrcCount() > 0) { + hash = (37 * hash) + SRC_FIELD_NUMBER; + hash = (53 * hash) + getSrcList().hashCode(); + } + if (getDstCount() > 0) { + hash = (37 * hash) + DST_FIELD_NUMBER; + hash = (53 * hash) + getDstList().hashCode(); + } + hash = (37 * hash) + BW_FIELD_NUMBER; + hash = (53 * hash) + getBw(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + if (hasTransceiver()) { + hash = (37 * hash) + TRANSCEIVER_FIELD_NUMBER; + hash = (53 * hash) + getTransceiver().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet 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 ipowdm.Ipowdm.IpowdmRuleSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet 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 ipowdm.Ipowdm.IpowdmRuleSet parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet 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(ipowdm.Ipowdm.IpowdmRuleSet 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; + } + + /** + * Protobuf type {@code ipowdm.IpowdmRuleSet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ipowdm.IpowdmRuleSet) + ipowdm.Ipowdm.IpowdmRuleSetOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ipowdm.Ipowdm.internal_static_ipowdm_IpowdmRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ipowdm.Ipowdm.internal_static_ipowdm_IpowdmRuleSet_fieldAccessorTable.ensureFieldAccessorsInitialized(ipowdm.Ipowdm.IpowdmRuleSet.class, ipowdm.Ipowdm.IpowdmRuleSet.Builder.class); + } + + // Construct using ipowdm.Ipowdm.IpowdmRuleSet.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (srcBuilder_ == null) { + src_ = java.util.Collections.emptyList(); + } else { + src_ = null; + srcBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (dstBuilder_ == null) { + dst_ = java.util.Collections.emptyList(); + } else { + dst_ = null; + dstBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + bw_ = 0; + uuid_ = ""; + transceiver_ = null; + if (transceiverBuilder_ != null) { + transceiverBuilder_.dispose(); + transceiverBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ipowdm.Ipowdm.internal_static_ipowdm_IpowdmRuleSet_descriptor; + } + + @java.lang.Override + public ipowdm.Ipowdm.IpowdmRuleSet getDefaultInstanceForType() { + return ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance(); + } + + @java.lang.Override + public ipowdm.Ipowdm.IpowdmRuleSet build() { + ipowdm.Ipowdm.IpowdmRuleSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ipowdm.Ipowdm.IpowdmRuleSet buildPartial() { + ipowdm.Ipowdm.IpowdmRuleSet result = new ipowdm.Ipowdm.IpowdmRuleSet(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(ipowdm.Ipowdm.IpowdmRuleSet result) { + if (srcBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + src_ = java.util.Collections.unmodifiableList(src_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.src_ = src_; + } else { + result.src_ = srcBuilder_.build(); + } + if (dstBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + dst_ = java.util.Collections.unmodifiableList(dst_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dst_ = dst_; + } else { + result.dst_ = dstBuilder_.build(); + } + } + + private void buildPartial0(ipowdm.Ipowdm.IpowdmRuleSet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bw_ = bw_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.uuid_ = uuid_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.transceiver_ = transceiverBuilder_ == null ? transceiver_ : transceiverBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ipowdm.Ipowdm.IpowdmRuleSet) { + return mergeFrom((ipowdm.Ipowdm.IpowdmRuleSet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ipowdm.Ipowdm.IpowdmRuleSet other) { + if (other == ipowdm.Ipowdm.IpowdmRuleSet.getDefaultInstance()) + return this; + if (srcBuilder_ == null) { + if (!other.src_.isEmpty()) { + if (src_.isEmpty()) { + src_ = other.src_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSrcIsMutable(); + src_.addAll(other.src_); + } + onChanged(); + } + } else { + if (!other.src_.isEmpty()) { + if (srcBuilder_.isEmpty()) { + srcBuilder_.dispose(); + srcBuilder_ = null; + src_ = other.src_; + bitField0_ = (bitField0_ & ~0x00000001); + srcBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSrcFieldBuilder() : null; + } else { + srcBuilder_.addAllMessages(other.src_); + } + } + } + if (dstBuilder_ == null) { + if (!other.dst_.isEmpty()) { + if (dst_.isEmpty()) { + dst_ = other.dst_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDstIsMutable(); + dst_.addAll(other.dst_); + } + onChanged(); + } + } else { + if (!other.dst_.isEmpty()) { + if (dstBuilder_.isEmpty()) { + dstBuilder_.dispose(); + dstBuilder_ = null; + dst_ = other.dst_; + bitField0_ = (bitField0_ & ~0x00000002); + dstBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDstFieldBuilder() : null; + } else { + dstBuilder_.addAllMessages(other.dst_); + } + } + } + if (other.getBw() != 0) { + setBw(other.getBw()); + } + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasTransceiver()) { + mergeTransceiver(other.getTransceiver()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + ipowdm.Ipowdm.RuleEndpoint m = input.readMessage(ipowdm.Ipowdm.RuleEndpoint.parser(), extensionRegistry); + if (srcBuilder_ == null) { + ensureSrcIsMutable(); + src_.add(m); + } else { + srcBuilder_.addMessage(m); + } + break; + } + // case 10 + case 18: + { + ipowdm.Ipowdm.RuleEndpoint m = input.readMessage(ipowdm.Ipowdm.RuleEndpoint.parser(), extensionRegistry); + if (dstBuilder_ == null) { + ensureDstIsMutable(); + dst_.add(m); + } else { + dstBuilder_.addMessage(m); + } + break; + } + // case 18 + case 24: + { + bw_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } + // case 24 + case 34: + { + uuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } + // case 34 + case 42: + { + input.readMessage(getTransceiverFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } + // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.util.List src_ = java.util.Collections.emptyList(); + + private void ensureSrcIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + src_ = new java.util.ArrayList(src_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 srcBuilder_; + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public java.util.List getSrcList() { + if (srcBuilder_ == null) { + return java.util.Collections.unmodifiableList(src_); + } else { + return srcBuilder_.getMessageList(); + } + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public int getSrcCount() { + if (srcBuilder_ == null) { + return src_.size(); + } else { + return srcBuilder_.getCount(); + } + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public ipowdm.Ipowdm.RuleEndpoint getSrc(int index) { + if (srcBuilder_ == null) { + return src_.get(index); + } else { + return srcBuilder_.getMessage(index); + } + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder setSrc(int index, ipowdm.Ipowdm.RuleEndpoint value) { + if (srcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSrcIsMutable(); + src_.set(index, value); + onChanged(); + } else { + srcBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder setSrc(int index, ipowdm.Ipowdm.RuleEndpoint.Builder builderForValue) { + if (srcBuilder_ == null) { + ensureSrcIsMutable(); + src_.set(index, builderForValue.build()); + onChanged(); + } else { + srcBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder addSrc(ipowdm.Ipowdm.RuleEndpoint value) { + if (srcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSrcIsMutable(); + src_.add(value); + onChanged(); + } else { + srcBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder addSrc(int index, ipowdm.Ipowdm.RuleEndpoint value) { + if (srcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSrcIsMutable(); + src_.add(index, value); + onChanged(); + } else { + srcBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder addSrc(ipowdm.Ipowdm.RuleEndpoint.Builder builderForValue) { + if (srcBuilder_ == null) { + ensureSrcIsMutable(); + src_.add(builderForValue.build()); + onChanged(); + } else { + srcBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder addSrc(int index, ipowdm.Ipowdm.RuleEndpoint.Builder builderForValue) { + if (srcBuilder_ == null) { + ensureSrcIsMutable(); + src_.add(index, builderForValue.build()); + onChanged(); + } else { + srcBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder addAllSrc(java.lang.Iterable values) { + if (srcBuilder_ == null) { + ensureSrcIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, src_); + onChanged(); + } else { + srcBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder clearSrc() { + if (srcBuilder_ == null) { + src_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + srcBuilder_.clear(); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public Builder removeSrc(int index) { + if (srcBuilder_ == null) { + ensureSrcIsMutable(); + src_.remove(index); + onChanged(); + } else { + srcBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public ipowdm.Ipowdm.RuleEndpoint.Builder getSrcBuilder(int index) { + return getSrcFieldBuilder().getBuilder(index); + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public ipowdm.Ipowdm.RuleEndpointOrBuilder getSrcOrBuilder(int index) { + if (srcBuilder_ == null) { + return src_.get(index); + } else { + return srcBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public java.util.List getSrcOrBuilderList() { + if (srcBuilder_ != null) { + return srcBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(src_); + } + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public ipowdm.Ipowdm.RuleEndpoint.Builder addSrcBuilder() { + return getSrcFieldBuilder().addBuilder(ipowdm.Ipowdm.RuleEndpoint.getDefaultInstance()); + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public ipowdm.Ipowdm.RuleEndpoint.Builder addSrcBuilder(int index) { + return getSrcFieldBuilder().addBuilder(index, ipowdm.Ipowdm.RuleEndpoint.getDefaultInstance()); + } + + /** + * repeated .ipowdm.RuleEndpoint src = 1; + */ + public java.util.List getSrcBuilderList() { + return getSrcFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getSrcFieldBuilder() { + if (srcBuilder_ == null) { + srcBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(src_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + src_ = null; + } + return srcBuilder_; + } + + private java.util.List dst_ = java.util.Collections.emptyList(); + + private void ensureDstIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + dst_ = new java.util.ArrayList(dst_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 dstBuilder_; + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public java.util.List getDstList() { + if (dstBuilder_ == null) { + return java.util.Collections.unmodifiableList(dst_); + } else { + return dstBuilder_.getMessageList(); + } + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public int getDstCount() { + if (dstBuilder_ == null) { + return dst_.size(); + } else { + return dstBuilder_.getCount(); + } + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public ipowdm.Ipowdm.RuleEndpoint getDst(int index) { + if (dstBuilder_ == null) { + return dst_.get(index); + } else { + return dstBuilder_.getMessage(index); + } + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder setDst(int index, ipowdm.Ipowdm.RuleEndpoint value) { + if (dstBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDstIsMutable(); + dst_.set(index, value); + onChanged(); + } else { + dstBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder setDst(int index, ipowdm.Ipowdm.RuleEndpoint.Builder builderForValue) { + if (dstBuilder_ == null) { + ensureDstIsMutable(); + dst_.set(index, builderForValue.build()); + onChanged(); + } else { + dstBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder addDst(ipowdm.Ipowdm.RuleEndpoint value) { + if (dstBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDstIsMutable(); + dst_.add(value); + onChanged(); + } else { + dstBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder addDst(int index, ipowdm.Ipowdm.RuleEndpoint value) { + if (dstBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDstIsMutable(); + dst_.add(index, value); + onChanged(); + } else { + dstBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder addDst(ipowdm.Ipowdm.RuleEndpoint.Builder builderForValue) { + if (dstBuilder_ == null) { + ensureDstIsMutable(); + dst_.add(builderForValue.build()); + onChanged(); + } else { + dstBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder addDst(int index, ipowdm.Ipowdm.RuleEndpoint.Builder builderForValue) { + if (dstBuilder_ == null) { + ensureDstIsMutable(); + dst_.add(index, builderForValue.build()); + onChanged(); + } else { + dstBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder addAllDst(java.lang.Iterable values) { + if (dstBuilder_ == null) { + ensureDstIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dst_); + onChanged(); + } else { + dstBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder clearDst() { + if (dstBuilder_ == null) { + dst_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dstBuilder_.clear(); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public Builder removeDst(int index) { + if (dstBuilder_ == null) { + ensureDstIsMutable(); + dst_.remove(index); + onChanged(); + } else { + dstBuilder_.remove(index); + } + return this; + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public ipowdm.Ipowdm.RuleEndpoint.Builder getDstBuilder(int index) { + return getDstFieldBuilder().getBuilder(index); + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public ipowdm.Ipowdm.RuleEndpointOrBuilder getDstOrBuilder(int index) { + if (dstBuilder_ == null) { + return dst_.get(index); + } else { + return dstBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public java.util.List getDstOrBuilderList() { + if (dstBuilder_ != null) { + return dstBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dst_); + } + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public ipowdm.Ipowdm.RuleEndpoint.Builder addDstBuilder() { + return getDstFieldBuilder().addBuilder(ipowdm.Ipowdm.RuleEndpoint.getDefaultInstance()); + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public ipowdm.Ipowdm.RuleEndpoint.Builder addDstBuilder(int index) { + return getDstFieldBuilder().addBuilder(index, ipowdm.Ipowdm.RuleEndpoint.getDefaultInstance()); + } + + /** + * repeated .ipowdm.RuleEndpoint dst = 2; + */ + public java.util.List getDstBuilderList() { + return getDstFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getDstFieldBuilder() { + if (dstBuilder_ == null) { + dstBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(dst_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + dst_ = null; + } + return dstBuilder_; + } + + private int bw_; + + /** + * int32 bw = 3; + * @return The bw. + */ + @java.lang.Override + public int getBw() { + return bw_; + } + + /** + * int32 bw = 3; + * @param value The bw to set. + * @return This builder for chaining. + */ + public Builder setBw(int value) { + bw_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * int32 bw = 3; + * @return This builder for chaining. + */ + public Builder clearBw() { + bitField0_ = (bitField0_ & ~0x00000004); + bw_ = 0; + onChanged(); + return this; + } + + private java.lang.Object uuid_ = ""; + + /** + * string uuid = 4; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string uuid = 4; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string uuid = 4; + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uuid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * string uuid = 4; + * @return This builder for chaining. + */ + public Builder clearUuid() { + uuid_ = getDefaultInstance().getUuid(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * string uuid = 4; + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private ipowdm.Ipowdm.Transceiver transceiver_; + + private com.google.protobuf.SingleFieldBuilderV3 transceiverBuilder_; + + /** + * .ipowdm.Transceiver transceiver = 5; + * @return Whether the transceiver field is set. + */ + public boolean hasTransceiver() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * .ipowdm.Transceiver transceiver = 5; + * @return The transceiver. + */ + public ipowdm.Ipowdm.Transceiver getTransceiver() { + if (transceiverBuilder_ == null) { + return transceiver_ == null ? ipowdm.Ipowdm.Transceiver.getDefaultInstance() : transceiver_; + } else { + return transceiverBuilder_.getMessage(); + } + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + public Builder setTransceiver(ipowdm.Ipowdm.Transceiver value) { + if (transceiverBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transceiver_ = value; + } else { + transceiverBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + public Builder setTransceiver(ipowdm.Ipowdm.Transceiver.Builder builderForValue) { + if (transceiverBuilder_ == null) { + transceiver_ = builderForValue.build(); + } else { + transceiverBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + public Builder mergeTransceiver(ipowdm.Ipowdm.Transceiver value) { + if (transceiverBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && transceiver_ != null && transceiver_ != ipowdm.Ipowdm.Transceiver.getDefaultInstance()) { + getTransceiverBuilder().mergeFrom(value); + } else { + transceiver_ = value; + } + } else { + transceiverBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + public Builder clearTransceiver() { + bitField0_ = (bitField0_ & ~0x00000010); + transceiver_ = null; + if (transceiverBuilder_ != null) { + transceiverBuilder_.dispose(); + transceiverBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + public ipowdm.Ipowdm.Transceiver.Builder getTransceiverBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getTransceiverFieldBuilder().getBuilder(); + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + public ipowdm.Ipowdm.TransceiverOrBuilder getTransceiverOrBuilder() { + if (transceiverBuilder_ != null) { + return transceiverBuilder_.getMessageOrBuilder(); + } else { + return transceiver_ == null ? ipowdm.Ipowdm.Transceiver.getDefaultInstance() : transceiver_; + } + } + + /** + * .ipowdm.Transceiver transceiver = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTransceiverFieldBuilder() { + if (transceiverBuilder_ == null) { + transceiverBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getTransceiver(), getParentForChildren(), isClean()); + transceiver_ = null; + } + return transceiverBuilder_; + } + + @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:ipowdm.IpowdmRuleSet) + } + + // @@protoc_insertion_point(class_scope:ipowdm.IpowdmRuleSet) + private static final ipowdm.Ipowdm.IpowdmRuleSet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ipowdm.Ipowdm.IpowdmRuleSet(); + } + + public static ipowdm.Ipowdm.IpowdmRuleSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public IpowdmRuleSet parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ipowdm.Ipowdm.IpowdmRuleSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipowdm_RuleEndpoint_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipowdm_RuleEndpoint_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipowdm_DigitalSubCarrierId_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipowdm_DigitalSubCarrierId_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipowdm_DigitalSubCarriersGroup_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipowdm_DigitalSubCarriersGroup_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipowdm_Component_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipowdm_Component_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipowdm_Transceiver_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipowdm_Transceiver_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ipowdm_IpowdmRuleSet_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ipowdm_IpowdmRuleSet_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\014ipowdm.proto\022\006ipowdm\"R\n\014RuleEndpoint\022\014" + "\n\004uuid\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\017\n\007ip_m" + "ask\030\003 \001(\t\022\017\n\007vlan_id\030\004 \001(\005\"=\n\023DigitalSub" + "CarrierId\022\026\n\016sub_carrier_id\030\001 \001(\005\022\016\n\006act" + "ive\030\002 \001(\t\"}\n\027DigitalSubCarriersGroup\022%\n\035" + "digital_sub_carriers_group_id\030\001 \001(\005\022;\n\026d" + "igital_sub_carrier_id\030\004 \003(\0132\033.ipowdm.Dig" + "italSubCarrierId\"\273\001\n\tComponent\022\014\n\004name\030\001" + " \001(\t\022\021\n\tfrequency\030\002 \001(\002\022\033\n\023target_output" + "_power\030\003 \001(\002\022\030\n\020operational_mode\030\004 \001(\005\022C" + "\n\032digital_sub_carriers_group\030\005 \003(\0132\037.ipo" + "wdm.DigitalSubCarriersGroup\022\021\n\toperation" + "\030\006 \001(\t\"4\n\013Transceiver\022%\n\ncomponents\030\001 \003(" + "\0132\021.ipowdm.Component\"\231\001\n\rIpowdmRuleSet\022!" + "\n\003src\030\001 \003(\0132\024.ipowdm.RuleEndpoint\022!\n\003dst" + "\030\002 \003(\0132\024.ipowdm.RuleEndpoint\022\n\n\002bw\030\003 \001(\005" + "\022\014\n\004uuid\030\004 \001(\t\022(\n\013transceiver\030\005 \001(\0132\023.ip" + "owdm.Transceiverb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_ipowdm_RuleEndpoint_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_ipowdm_RuleEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ipowdm_RuleEndpoint_descriptor, new java.lang.String[] { "Uuid", "IpAddress", "IpMask", "VlanId" }); + internal_static_ipowdm_DigitalSubCarrierId_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_ipowdm_DigitalSubCarrierId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ipowdm_DigitalSubCarrierId_descriptor, new java.lang.String[] { "SubCarrierId", "Active" }); + internal_static_ipowdm_DigitalSubCarriersGroup_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_ipowdm_DigitalSubCarriersGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ipowdm_DigitalSubCarriersGroup_descriptor, new java.lang.String[] { "DigitalSubCarriersGroupId", "DigitalSubCarrierId" }); + internal_static_ipowdm_Component_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_ipowdm_Component_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ipowdm_Component_descriptor, new java.lang.String[] { "Name", "Frequency", "TargetOutputPower", "OperationalMode", "DigitalSubCarriersGroup", "Operation" }); + internal_static_ipowdm_Transceiver_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_ipowdm_Transceiver_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ipowdm_Transceiver_descriptor, new java.lang.String[] { "Components" }); + internal_static_ipowdm_IpowdmRuleSet_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_ipowdm_IpowdmRuleSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ipowdm_IpowdmRuleSet_descriptor, new java.lang.String[] { "Src", "Dst", "Bw", "Uuid", "Transceiver" }); + } + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/ztp/target/generated-sources/grpc/tapi_lsp/TapiLsp.java b/src/ztp/target/generated-sources/grpc/tapi_lsp/TapiLsp.java new file mode 100644 index 0000000000000000000000000000000000000000..e8f5145bd42a8f2e62e949d0f9762b91b59da360 --- /dev/null +++ b/src/ztp/target/generated-sources/grpc/tapi_lsp/TapiLsp.java @@ -0,0 +1,3031 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tapi_lsp.proto +package tapi_lsp; + +public final class TapiLsp { + + private TapiLsp() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface TapiLspRuleSetOrBuilder extends // @@protoc_insertion_point(interface_extends:tapi_lsp.TapiLspRuleSet) + com.google.protobuf.MessageOrBuilder { + + /** + * string input_sip = 1; + * @return The inputSip. + */ + java.lang.String getInputSip(); + + /** + * string input_sip = 1; + * @return The bytes for inputSip. + */ + com.google.protobuf.ByteString getInputSipBytes(); + + /** + * string output_sip = 2; + * @return The outputSip. + */ + java.lang.String getOutputSip(); + + /** + * string output_sip = 2; + * @return The bytes for outputSip. + */ + com.google.protobuf.ByteString getOutputSipBytes(); + + /** + * string uuid = 3; + * @return The uuid. + */ + java.lang.String getUuid(); + + /** + * string uuid = 3; + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString getUuidBytes(); + + /** + * string bw = 4; + * @return The bw. + */ + java.lang.String getBw(); + + /** + * string bw = 4; + * @return The bytes for bw. + */ + com.google.protobuf.ByteString getBwBytes(); + + /** + * string tenant_uuid = 5; + * @return The tenantUuid. + */ + java.lang.String getTenantUuid(); + + /** + * string tenant_uuid = 5; + * @return The bytes for tenantUuid. + */ + com.google.protobuf.ByteString getTenantUuidBytes(); + + /** + * string layer_protocol_name = 6; + * @return The layerProtocolName. + */ + java.lang.String getLayerProtocolName(); + + /** + * string layer_protocol_name = 6; + * @return The bytes for layerProtocolName. + */ + com.google.protobuf.ByteString getLayerProtocolNameBytes(); + + /** + * string layer_protocol_qualifier = 7; + * @return The layerProtocolQualifier. + */ + java.lang.String getLayerProtocolQualifier(); + + /** + * string layer_protocol_qualifier = 7; + * @return The bytes for layerProtocolQualifier. + */ + com.google.protobuf.ByteString getLayerProtocolQualifierBytes(); + + /** + * string lower_frequency_mhz = 8; + * @return The lowerFrequencyMhz. + */ + java.lang.String getLowerFrequencyMhz(); + + /** + * string lower_frequency_mhz = 8; + * @return The bytes for lowerFrequencyMhz. + */ + com.google.protobuf.ByteString getLowerFrequencyMhzBytes(); + + /** + * string upper_frequency_mhz = 9; + * @return The upperFrequencyMhz. + */ + java.lang.String getUpperFrequencyMhz(); + + /** + * string upper_frequency_mhz = 9; + * @return The bytes for upperFrequencyMhz. + */ + com.google.protobuf.ByteString getUpperFrequencyMhzBytes(); + + /** + * repeated string link_uuid_path = 10; + * @return A list containing the linkUuidPath. + */ + java.util.List getLinkUuidPathList(); + + /** + * repeated string link_uuid_path = 10; + * @return The count of linkUuidPath. + */ + int getLinkUuidPathCount(); + + /** + * repeated string link_uuid_path = 10; + * @param index The index of the element to return. + * @return The linkUuidPath at the given index. + */ + java.lang.String getLinkUuidPath(int index); + + /** + * repeated string link_uuid_path = 10; + * @param index The index of the value to return. + * @return The bytes of the linkUuidPath at the given index. + */ + com.google.protobuf.ByteString getLinkUuidPathBytes(int index); + + /** + * string granularity = 11; + * @return The granularity. + */ + java.lang.String getGranularity(); + + /** + * string granularity = 11; + * @return The bytes for granularity. + */ + com.google.protobuf.ByteString getGranularityBytes(); + + /** + * string grid_type = 12; + * @return The gridType. + */ + java.lang.String getGridType(); + + /** + * string grid_type = 12; + * @return The bytes for gridType. + */ + com.google.protobuf.ByteString getGridTypeBytes(); + + /** + * string direction = 13; + * @return The direction. + */ + java.lang.String getDirection(); + + /** + * string direction = 13; + * @return The bytes for direction. + */ + com.google.protobuf.ByteString getDirectionBytes(); + + /** + * string capacity_unit = 14; + * @return The capacityUnit. + */ + java.lang.String getCapacityUnit(); + + /** + * string capacity_unit = 14; + * @return The bytes for capacityUnit. + */ + com.google.protobuf.ByteString getCapacityUnitBytes(); + + /** + * string capacity_value = 15; + * @return The capacityValue. + */ + java.lang.String getCapacityValue(); + + /** + * string capacity_value = 15; + * @return The bytes for capacityValue. + */ + com.google.protobuf.ByteString getCapacityValueBytes(); + + /** + * string route_objective_function = 16; + * @return The routeObjectiveFunction. + */ + java.lang.String getRouteObjectiveFunction(); + + /** + * string route_objective_function = 16; + * @return The bytes for routeObjectiveFunction. + */ + com.google.protobuf.ByteString getRouteObjectiveFunctionBytes(); + + /** + * string url = 17; + * @return The url. + */ + java.lang.String getUrl(); + + /** + * string url = 17; + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); + } + + /** + * Protobuf type {@code tapi_lsp.TapiLspRuleSet} + */ + public static final class TapiLspRuleSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tapi_lsp.TapiLspRuleSet) + TapiLspRuleSetOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use TapiLspRuleSet.newBuilder() to construct. + private TapiLspRuleSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TapiLspRuleSet() { + inputSip_ = ""; + outputSip_ = ""; + uuid_ = ""; + bw_ = ""; + tenantUuid_ = ""; + layerProtocolName_ = ""; + layerProtocolQualifier_ = ""; + lowerFrequencyMhz_ = ""; + upperFrequencyMhz_ = ""; + linkUuidPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + granularity_ = ""; + gridType_ = ""; + direction_ = ""; + capacityUnit_ = ""; + capacityValue_ = ""; + routeObjectiveFunction_ = ""; + url_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TapiLspRuleSet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return tapi_lsp.TapiLsp.internal_static_tapi_lsp_TapiLspRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return tapi_lsp.TapiLsp.internal_static_tapi_lsp_TapiLspRuleSet_fieldAccessorTable.ensureFieldAccessorsInitialized(tapi_lsp.TapiLsp.TapiLspRuleSet.class, tapi_lsp.TapiLsp.TapiLspRuleSet.Builder.class); + } + + public static final int INPUT_SIP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputSip_ = ""; + + /** + * string input_sip = 1; + * @return The inputSip. + */ + @java.lang.Override + public java.lang.String getInputSip() { + java.lang.Object ref = inputSip_; + 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(); + inputSip_ = s; + return s; + } + } + + /** + * string input_sip = 1; + * @return The bytes for inputSip. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInputSipBytes() { + java.lang.Object ref = inputSip_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputSip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_SIP_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputSip_ = ""; + + /** + * string output_sip = 2; + * @return The outputSip. + */ + @java.lang.Override + public java.lang.String getOutputSip() { + java.lang.Object ref = outputSip_; + 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(); + outputSip_ = s; + return s; + } + } + + /** + * string output_sip = 2; + * @return The bytes for outputSip. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputSipBytes() { + java.lang.Object ref = outputSip_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputSip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UUID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object uuid_ = ""; + + /** + * string uuid = 3; + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + 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(); + uuid_ = s; + return s; + } + } + + /** + * string uuid = 3; + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BW_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object bw_ = ""; + + /** + * string bw = 4; + * @return The bw. + */ + @java.lang.Override + public java.lang.String getBw() { + java.lang.Object ref = bw_; + 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(); + bw_ = s; + return s; + } + } + + /** + * string bw = 4; + * @return The bytes for bw. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBwBytes() { + java.lang.Object ref = bw_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bw_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_UUID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object tenantUuid_ = ""; + + /** + * string tenant_uuid = 5; + * @return The tenantUuid. + */ + @java.lang.Override + public java.lang.String getTenantUuid() { + java.lang.Object ref = tenantUuid_; + 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(); + tenantUuid_ = s; + return s; + } + } + + /** + * string tenant_uuid = 5; + * @return The bytes for tenantUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTenantUuidBytes() { + java.lang.Object ref = tenantUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAYER_PROTOCOL_NAME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object layerProtocolName_ = ""; + + /** + * string layer_protocol_name = 6; + * @return The layerProtocolName. + */ + @java.lang.Override + public java.lang.String getLayerProtocolName() { + java.lang.Object ref = layerProtocolName_; + 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(); + layerProtocolName_ = s; + return s; + } + } + + /** + * string layer_protocol_name = 6; + * @return The bytes for layerProtocolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLayerProtocolNameBytes() { + java.lang.Object ref = layerProtocolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + layerProtocolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAYER_PROTOCOL_QUALIFIER_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object layerProtocolQualifier_ = ""; + + /** + * string layer_protocol_qualifier = 7; + * @return The layerProtocolQualifier. + */ + @java.lang.Override + public java.lang.String getLayerProtocolQualifier() { + java.lang.Object ref = layerProtocolQualifier_; + 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(); + layerProtocolQualifier_ = s; + return s; + } + } + + /** + * string layer_protocol_qualifier = 7; + * @return The bytes for layerProtocolQualifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLayerProtocolQualifierBytes() { + java.lang.Object ref = layerProtocolQualifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + layerProtocolQualifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOWER_FREQUENCY_MHZ_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object lowerFrequencyMhz_ = ""; + + /** + * string lower_frequency_mhz = 8; + * @return The lowerFrequencyMhz. + */ + @java.lang.Override + public java.lang.String getLowerFrequencyMhz() { + java.lang.Object ref = lowerFrequencyMhz_; + 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(); + lowerFrequencyMhz_ = s; + return s; + } + } + + /** + * string lower_frequency_mhz = 8; + * @return The bytes for lowerFrequencyMhz. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLowerFrequencyMhzBytes() { + java.lang.Object ref = lowerFrequencyMhz_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lowerFrequencyMhz_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPPER_FREQUENCY_MHZ_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object upperFrequencyMhz_ = ""; + + /** + * string upper_frequency_mhz = 9; + * @return The upperFrequencyMhz. + */ + @java.lang.Override + public java.lang.String getUpperFrequencyMhz() { + java.lang.Object ref = upperFrequencyMhz_; + 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(); + upperFrequencyMhz_ = s; + return s; + } + } + + /** + * string upper_frequency_mhz = 9; + * @return The bytes for upperFrequencyMhz. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUpperFrequencyMhzBytes() { + java.lang.Object ref = upperFrequencyMhz_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + upperFrequencyMhz_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINK_UUID_PATH_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList linkUuidPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * repeated string link_uuid_path = 10; + * @return A list containing the linkUuidPath. + */ + public com.google.protobuf.ProtocolStringList getLinkUuidPathList() { + return linkUuidPath_; + } + + /** + * repeated string link_uuid_path = 10; + * @return The count of linkUuidPath. + */ + public int getLinkUuidPathCount() { + return linkUuidPath_.size(); + } + + /** + * repeated string link_uuid_path = 10; + * @param index The index of the element to return. + * @return The linkUuidPath at the given index. + */ + public java.lang.String getLinkUuidPath(int index) { + return linkUuidPath_.get(index); + } + + /** + * repeated string link_uuid_path = 10; + * @param index The index of the value to return. + * @return The bytes of the linkUuidPath at the given index. + */ + public com.google.protobuf.ByteString getLinkUuidPathBytes(int index) { + return linkUuidPath_.getByteString(index); + } + + public static final int GRANULARITY_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object granularity_ = ""; + + /** + * string granularity = 11; + * @return The granularity. + */ + @java.lang.Override + public java.lang.String getGranularity() { + java.lang.Object ref = granularity_; + 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(); + granularity_ = s; + return s; + } + } + + /** + * string granularity = 11; + * @return The bytes for granularity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGranularityBytes() { + java.lang.Object ref = granularity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + granularity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GRID_TYPE_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object gridType_ = ""; + + /** + * string grid_type = 12; + * @return The gridType. + */ + @java.lang.Override + public java.lang.String getGridType() { + java.lang.Object ref = gridType_; + 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(); + gridType_ = s; + return s; + } + } + + /** + * string grid_type = 12; + * @return The bytes for gridType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGridTypeBytes() { + java.lang.Object ref = gridType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gridType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIRECTION_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object direction_ = ""; + + /** + * string direction = 13; + * @return The direction. + */ + @java.lang.Override + public java.lang.String getDirection() { + java.lang.Object ref = direction_; + 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(); + direction_ = s; + return s; + } + } + + /** + * string direction = 13; + * @return The bytes for direction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDirectionBytes() { + java.lang.Object ref = direction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + direction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAPACITY_UNIT_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object capacityUnit_ = ""; + + /** + * string capacity_unit = 14; + * @return The capacityUnit. + */ + @java.lang.Override + public java.lang.String getCapacityUnit() { + java.lang.Object ref = capacityUnit_; + 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(); + capacityUnit_ = s; + return s; + } + } + + /** + * string capacity_unit = 14; + * @return The bytes for capacityUnit. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCapacityUnitBytes() { + java.lang.Object ref = capacityUnit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + capacityUnit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAPACITY_VALUE_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object capacityValue_ = ""; + + /** + * string capacity_value = 15; + * @return The capacityValue. + */ + @java.lang.Override + public java.lang.String getCapacityValue() { + java.lang.Object ref = capacityValue_; + 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(); + capacityValue_ = s; + return s; + } + } + + /** + * string capacity_value = 15; + * @return The bytes for capacityValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCapacityValueBytes() { + java.lang.Object ref = capacityValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + capacityValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROUTE_OBJECTIVE_FUNCTION_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object routeObjectiveFunction_ = ""; + + /** + * string route_objective_function = 16; + * @return The routeObjectiveFunction. + */ + @java.lang.Override + public java.lang.String getRouteObjectiveFunction() { + java.lang.Object ref = routeObjectiveFunction_; + 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(); + routeObjectiveFunction_ = s; + return s; + } + } + + /** + * string route_objective_function = 16; + * @return The bytes for routeObjectiveFunction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouteObjectiveFunctionBytes() { + java.lang.Object ref = routeObjectiveFunction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeObjectiveFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + + /** + * string url = 17; + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + 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(); + url_ = s; + return s; + } + } + + /** + * string url = 17; + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = 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(inputSip_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputSip_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputSip_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputSip_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bw_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bw_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantUuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tenantUuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(layerProtocolName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, layerProtocolName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(layerProtocolQualifier_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, layerProtocolQualifier_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lowerFrequencyMhz_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, lowerFrequencyMhz_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upperFrequencyMhz_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, upperFrequencyMhz_); + } + for (int i = 0; i < linkUuidPath_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, linkUuidPath_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granularity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, granularity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gridType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, gridType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(direction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, direction_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(capacityUnit_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, capacityUnit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(capacityValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, capacityValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeObjectiveFunction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, routeObjectiveFunction_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, url_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputSip_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputSip_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputSip_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputSip_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bw_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, bw_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantUuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tenantUuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(layerProtocolName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, layerProtocolName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(layerProtocolQualifier_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, layerProtocolQualifier_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lowerFrequencyMhz_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, lowerFrequencyMhz_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upperFrequencyMhz_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, upperFrequencyMhz_); + } + { + int dataSize = 0; + for (int i = 0; i < linkUuidPath_.size(); i++) { + dataSize += computeStringSizeNoTag(linkUuidPath_.getRaw(i)); + } + size += dataSize; + size += 1 * getLinkUuidPathList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(granularity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, granularity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gridType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, gridType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(direction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, direction_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(capacityUnit_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, capacityUnit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(capacityValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, capacityValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeObjectiveFunction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, routeObjectiveFunction_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, url_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof tapi_lsp.TapiLsp.TapiLspRuleSet)) { + return super.equals(obj); + } + tapi_lsp.TapiLsp.TapiLspRuleSet other = (tapi_lsp.TapiLsp.TapiLspRuleSet) obj; + if (!getInputSip().equals(other.getInputSip())) + return false; + if (!getOutputSip().equals(other.getOutputSip())) + return false; + if (!getUuid().equals(other.getUuid())) + return false; + if (!getBw().equals(other.getBw())) + return false; + if (!getTenantUuid().equals(other.getTenantUuid())) + return false; + if (!getLayerProtocolName().equals(other.getLayerProtocolName())) + return false; + if (!getLayerProtocolQualifier().equals(other.getLayerProtocolQualifier())) + return false; + if (!getLowerFrequencyMhz().equals(other.getLowerFrequencyMhz())) + return false; + if (!getUpperFrequencyMhz().equals(other.getUpperFrequencyMhz())) + return false; + if (!getLinkUuidPathList().equals(other.getLinkUuidPathList())) + return false; + if (!getGranularity().equals(other.getGranularity())) + return false; + if (!getGridType().equals(other.getGridType())) + return false; + if (!getDirection().equals(other.getDirection())) + return false; + if (!getCapacityUnit().equals(other.getCapacityUnit())) + return false; + if (!getCapacityValue().equals(other.getCapacityValue())) + return false; + if (!getRouteObjectiveFunction().equals(other.getRouteObjectiveFunction())) + return false; + if (!getUrl().equals(other.getUrl())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + INPUT_SIP_FIELD_NUMBER; + hash = (53 * hash) + getInputSip().hashCode(); + hash = (37 * hash) + OUTPUT_SIP_FIELD_NUMBER; + hash = (53 * hash) + getOutputSip().hashCode(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + hash = (37 * hash) + BW_FIELD_NUMBER; + hash = (53 * hash) + getBw().hashCode(); + hash = (37 * hash) + TENANT_UUID_FIELD_NUMBER; + hash = (53 * hash) + getTenantUuid().hashCode(); + hash = (37 * hash) + LAYER_PROTOCOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLayerProtocolName().hashCode(); + hash = (37 * hash) + LAYER_PROTOCOL_QUALIFIER_FIELD_NUMBER; + hash = (53 * hash) + getLayerProtocolQualifier().hashCode(); + hash = (37 * hash) + LOWER_FREQUENCY_MHZ_FIELD_NUMBER; + hash = (53 * hash) + getLowerFrequencyMhz().hashCode(); + hash = (37 * hash) + UPPER_FREQUENCY_MHZ_FIELD_NUMBER; + hash = (53 * hash) + getUpperFrequencyMhz().hashCode(); + if (getLinkUuidPathCount() > 0) { + hash = (37 * hash) + LINK_UUID_PATH_FIELD_NUMBER; + hash = (53 * hash) + getLinkUuidPathList().hashCode(); + } + hash = (37 * hash) + GRANULARITY_FIELD_NUMBER; + hash = (53 * hash) + getGranularity().hashCode(); + hash = (37 * hash) + GRID_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getGridType().hashCode(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + getDirection().hashCode(); + hash = (37 * hash) + CAPACITY_UNIT_FIELD_NUMBER; + hash = (53 * hash) + getCapacityUnit().hashCode(); + hash = (37 * hash) + CAPACITY_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getCapacityValue().hashCode(); + hash = (37 * hash) + ROUTE_OBJECTIVE_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getRouteObjectiveFunction().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet 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 tapi_lsp.TapiLsp.TapiLspRuleSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet 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 tapi_lsp.TapiLsp.TapiLspRuleSet parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet 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(tapi_lsp.TapiLsp.TapiLspRuleSet 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; + } + + /** + * Protobuf type {@code tapi_lsp.TapiLspRuleSet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tapi_lsp.TapiLspRuleSet) + tapi_lsp.TapiLsp.TapiLspRuleSetOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return tapi_lsp.TapiLsp.internal_static_tapi_lsp_TapiLspRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return tapi_lsp.TapiLsp.internal_static_tapi_lsp_TapiLspRuleSet_fieldAccessorTable.ensureFieldAccessorsInitialized(tapi_lsp.TapiLsp.TapiLspRuleSet.class, tapi_lsp.TapiLsp.TapiLspRuleSet.Builder.class); + } + + // Construct using tapi_lsp.TapiLsp.TapiLspRuleSet.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputSip_ = ""; + outputSip_ = ""; + uuid_ = ""; + bw_ = ""; + tenantUuid_ = ""; + layerProtocolName_ = ""; + layerProtocolQualifier_ = ""; + lowerFrequencyMhz_ = ""; + upperFrequencyMhz_ = ""; + linkUuidPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + granularity_ = ""; + gridType_ = ""; + direction_ = ""; + capacityUnit_ = ""; + capacityValue_ = ""; + routeObjectiveFunction_ = ""; + url_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return tapi_lsp.TapiLsp.internal_static_tapi_lsp_TapiLspRuleSet_descriptor; + } + + @java.lang.Override + public tapi_lsp.TapiLsp.TapiLspRuleSet getDefaultInstanceForType() { + return tapi_lsp.TapiLsp.TapiLspRuleSet.getDefaultInstance(); + } + + @java.lang.Override + public tapi_lsp.TapiLsp.TapiLspRuleSet build() { + tapi_lsp.TapiLsp.TapiLspRuleSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public tapi_lsp.TapiLsp.TapiLspRuleSet buildPartial() { + tapi_lsp.TapiLsp.TapiLspRuleSet result = new tapi_lsp.TapiLsp.TapiLspRuleSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(tapi_lsp.TapiLsp.TapiLspRuleSet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputSip_ = inputSip_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputSip_ = outputSip_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uuid_ = uuid_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.bw_ = bw_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tenantUuid_ = tenantUuid_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.layerProtocolName_ = layerProtocolName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.layerProtocolQualifier_ = layerProtocolQualifier_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.lowerFrequencyMhz_ = lowerFrequencyMhz_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.upperFrequencyMhz_ = upperFrequencyMhz_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + linkUuidPath_.makeImmutable(); + result.linkUuidPath_ = linkUuidPath_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.granularity_ = granularity_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.gridType_ = gridType_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.direction_ = direction_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.capacityUnit_ = capacityUnit_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.capacityValue_ = capacityValue_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.routeObjectiveFunction_ = routeObjectiveFunction_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.url_ = url_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof tapi_lsp.TapiLsp.TapiLspRuleSet) { + return mergeFrom((tapi_lsp.TapiLsp.TapiLspRuleSet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(tapi_lsp.TapiLsp.TapiLspRuleSet other) { + if (other == tapi_lsp.TapiLsp.TapiLspRuleSet.getDefaultInstance()) + return this; + if (!other.getInputSip().isEmpty()) { + inputSip_ = other.inputSip_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOutputSip().isEmpty()) { + outputSip_ = other.outputSip_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getBw().isEmpty()) { + bw_ = other.bw_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTenantUuid().isEmpty()) { + tenantUuid_ = other.tenantUuid_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getLayerProtocolName().isEmpty()) { + layerProtocolName_ = other.layerProtocolName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getLayerProtocolQualifier().isEmpty()) { + layerProtocolQualifier_ = other.layerProtocolQualifier_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getLowerFrequencyMhz().isEmpty()) { + lowerFrequencyMhz_ = other.lowerFrequencyMhz_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getUpperFrequencyMhz().isEmpty()) { + upperFrequencyMhz_ = other.upperFrequencyMhz_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.linkUuidPath_.isEmpty()) { + if (linkUuidPath_.isEmpty()) { + linkUuidPath_ = other.linkUuidPath_; + bitField0_ |= 0x00000200; + } else { + ensureLinkUuidPathIsMutable(); + linkUuidPath_.addAll(other.linkUuidPath_); + } + onChanged(); + } + if (!other.getGranularity().isEmpty()) { + granularity_ = other.granularity_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getGridType().isEmpty()) { + gridType_ = other.gridType_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getDirection().isEmpty()) { + direction_ = other.direction_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (!other.getCapacityUnit().isEmpty()) { + capacityUnit_ = other.capacityUnit_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (!other.getCapacityValue().isEmpty()) { + capacityValue_ = other.capacityValue_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (!other.getRouteObjectiveFunction().isEmpty()) { + routeObjectiveFunction_ = other.routeObjectiveFunction_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00010000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + inputSip_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 18: + { + outputSip_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } + // case 18 + case 26: + { + uuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } + // case 26 + case 34: + { + bw_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } + // case 34 + case 42: + { + tenantUuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } + // case 42 + case 50: + { + layerProtocolName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } + // case 50 + case 58: + { + layerProtocolQualifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } + // case 58 + case 66: + { + lowerFrequencyMhz_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } + // case 66 + case 74: + { + upperFrequencyMhz_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } + // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLinkUuidPathIsMutable(); + linkUuidPath_.add(s); + break; + } + // case 82 + case 90: + { + granularity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } + // case 90 + case 98: + { + gridType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } + // case 98 + case 106: + { + direction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } + // case 106 + case 114: + { + capacityUnit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } + // case 114 + case 122: + { + capacityValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } + // case 122 + case 130: + { + routeObjectiveFunction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } + // case 130 + case 138: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } + // case 138 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.lang.Object inputSip_ = ""; + + /** + * string input_sip = 1; + * @return The inputSip. + */ + public java.lang.String getInputSip() { + java.lang.Object ref = inputSip_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputSip_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string input_sip = 1; + * @return The bytes for inputSip. + */ + public com.google.protobuf.ByteString getInputSipBytes() { + java.lang.Object ref = inputSip_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputSip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string input_sip = 1; + * @param value The inputSip to set. + * @return This builder for chaining. + */ + public Builder setInputSip(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputSip_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string input_sip = 1; + * @return This builder for chaining. + */ + public Builder clearInputSip() { + inputSip_ = getDefaultInstance().getInputSip(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string input_sip = 1; + * @param value The bytes for inputSip to set. + * @return This builder for chaining. + */ + public Builder setInputSipBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputSip_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object outputSip_ = ""; + + /** + * string output_sip = 2; + * @return The outputSip. + */ + public java.lang.String getOutputSip() { + java.lang.Object ref = outputSip_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputSip_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string output_sip = 2; + * @return The bytes for outputSip. + */ + public com.google.protobuf.ByteString getOutputSipBytes() { + java.lang.Object ref = outputSip_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputSip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string output_sip = 2; + * @param value The outputSip to set. + * @return This builder for chaining. + */ + public Builder setOutputSip(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputSip_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string output_sip = 2; + * @return This builder for chaining. + */ + public Builder clearOutputSip() { + outputSip_ = getDefaultInstance().getOutputSip(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string output_sip = 2; + * @param value The bytes for outputSip to set. + * @return This builder for chaining. + */ + public Builder setOutputSipBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputSip_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object uuid_ = ""; + + /** + * string uuid = 3; + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string uuid = 3; + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string uuid = 3; + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uuid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * string uuid = 3; + * @return This builder for chaining. + */ + public Builder clearUuid() { + uuid_ = getDefaultInstance().getUuid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * string uuid = 3; + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uuid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object bw_ = ""; + + /** + * string bw = 4; + * @return The bw. + */ + public java.lang.String getBw() { + java.lang.Object ref = bw_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bw_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string bw = 4; + * @return The bytes for bw. + */ + public com.google.protobuf.ByteString getBwBytes() { + java.lang.Object ref = bw_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bw_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string bw = 4; + * @param value The bw to set. + * @return This builder for chaining. + */ + public Builder setBw(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bw_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * string bw = 4; + * @return This builder for chaining. + */ + public Builder clearBw() { + bw_ = getDefaultInstance().getBw(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * string bw = 4; + * @param value The bytes for bw to set. + * @return This builder for chaining. + */ + public Builder setBwBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bw_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object tenantUuid_ = ""; + + /** + * string tenant_uuid = 5; + * @return The tenantUuid. + */ + public java.lang.String getTenantUuid() { + java.lang.Object ref = tenantUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenantUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string tenant_uuid = 5; + * @return The bytes for tenantUuid. + */ + public com.google.protobuf.ByteString getTenantUuidBytes() { + java.lang.Object ref = tenantUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string tenant_uuid = 5; + * @param value The tenantUuid to set. + * @return This builder for chaining. + */ + public Builder setTenantUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tenantUuid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * string tenant_uuid = 5; + * @return This builder for chaining. + */ + public Builder clearTenantUuid() { + tenantUuid_ = getDefaultInstance().getTenantUuid(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * string tenant_uuid = 5; + * @param value The bytes for tenantUuid to set. + * @return This builder for chaining. + */ + public Builder setTenantUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tenantUuid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object layerProtocolName_ = ""; + + /** + * string layer_protocol_name = 6; + * @return The layerProtocolName. + */ + public java.lang.String getLayerProtocolName() { + java.lang.Object ref = layerProtocolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + layerProtocolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string layer_protocol_name = 6; + * @return The bytes for layerProtocolName. + */ + public com.google.protobuf.ByteString getLayerProtocolNameBytes() { + java.lang.Object ref = layerProtocolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + layerProtocolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string layer_protocol_name = 6; + * @param value The layerProtocolName to set. + * @return This builder for chaining. + */ + public Builder setLayerProtocolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + layerProtocolName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * string layer_protocol_name = 6; + * @return This builder for chaining. + */ + public Builder clearLayerProtocolName() { + layerProtocolName_ = getDefaultInstance().getLayerProtocolName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * string layer_protocol_name = 6; + * @param value The bytes for layerProtocolName to set. + * @return This builder for chaining. + */ + public Builder setLayerProtocolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + layerProtocolName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object layerProtocolQualifier_ = ""; + + /** + * string layer_protocol_qualifier = 7; + * @return The layerProtocolQualifier. + */ + public java.lang.String getLayerProtocolQualifier() { + java.lang.Object ref = layerProtocolQualifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + layerProtocolQualifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string layer_protocol_qualifier = 7; + * @return The bytes for layerProtocolQualifier. + */ + public com.google.protobuf.ByteString getLayerProtocolQualifierBytes() { + java.lang.Object ref = layerProtocolQualifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + layerProtocolQualifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string layer_protocol_qualifier = 7; + * @param value The layerProtocolQualifier to set. + * @return This builder for chaining. + */ + public Builder setLayerProtocolQualifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + layerProtocolQualifier_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * string layer_protocol_qualifier = 7; + * @return This builder for chaining. + */ + public Builder clearLayerProtocolQualifier() { + layerProtocolQualifier_ = getDefaultInstance().getLayerProtocolQualifier(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * string layer_protocol_qualifier = 7; + * @param value The bytes for layerProtocolQualifier to set. + * @return This builder for chaining. + */ + public Builder setLayerProtocolQualifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + layerProtocolQualifier_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object lowerFrequencyMhz_ = ""; + + /** + * string lower_frequency_mhz = 8; + * @return The lowerFrequencyMhz. + */ + public java.lang.String getLowerFrequencyMhz() { + java.lang.Object ref = lowerFrequencyMhz_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lowerFrequencyMhz_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string lower_frequency_mhz = 8; + * @return The bytes for lowerFrequencyMhz. + */ + public com.google.protobuf.ByteString getLowerFrequencyMhzBytes() { + java.lang.Object ref = lowerFrequencyMhz_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lowerFrequencyMhz_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string lower_frequency_mhz = 8; + * @param value The lowerFrequencyMhz to set. + * @return This builder for chaining. + */ + public Builder setLowerFrequencyMhz(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + lowerFrequencyMhz_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * string lower_frequency_mhz = 8; + * @return This builder for chaining. + */ + public Builder clearLowerFrequencyMhz() { + lowerFrequencyMhz_ = getDefaultInstance().getLowerFrequencyMhz(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * string lower_frequency_mhz = 8; + * @param value The bytes for lowerFrequencyMhz to set. + * @return This builder for chaining. + */ + public Builder setLowerFrequencyMhzBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lowerFrequencyMhz_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object upperFrequencyMhz_ = ""; + + /** + * string upper_frequency_mhz = 9; + * @return The upperFrequencyMhz. + */ + public java.lang.String getUpperFrequencyMhz() { + java.lang.Object ref = upperFrequencyMhz_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + upperFrequencyMhz_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string upper_frequency_mhz = 9; + * @return The bytes for upperFrequencyMhz. + */ + public com.google.protobuf.ByteString getUpperFrequencyMhzBytes() { + java.lang.Object ref = upperFrequencyMhz_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + upperFrequencyMhz_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string upper_frequency_mhz = 9; + * @param value The upperFrequencyMhz to set. + * @return This builder for chaining. + */ + public Builder setUpperFrequencyMhz(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + upperFrequencyMhz_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * string upper_frequency_mhz = 9; + * @return This builder for chaining. + */ + public Builder clearUpperFrequencyMhz() { + upperFrequencyMhz_ = getDefaultInstance().getUpperFrequencyMhz(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * string upper_frequency_mhz = 9; + * @param value The bytes for upperFrequencyMhz to set. + * @return This builder for chaining. + */ + public Builder setUpperFrequencyMhzBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + upperFrequencyMhz_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList linkUuidPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureLinkUuidPathIsMutable() { + if (!linkUuidPath_.isModifiable()) { + linkUuidPath_ = new com.google.protobuf.LazyStringArrayList(linkUuidPath_); + } + bitField0_ |= 0x00000200; + } + + /** + * repeated string link_uuid_path = 10; + * @return A list containing the linkUuidPath. + */ + public com.google.protobuf.ProtocolStringList getLinkUuidPathList() { + linkUuidPath_.makeImmutable(); + return linkUuidPath_; + } + + /** + * repeated string link_uuid_path = 10; + * @return The count of linkUuidPath. + */ + public int getLinkUuidPathCount() { + return linkUuidPath_.size(); + } + + /** + * repeated string link_uuid_path = 10; + * @param index The index of the element to return. + * @return The linkUuidPath at the given index. + */ + public java.lang.String getLinkUuidPath(int index) { + return linkUuidPath_.get(index); + } + + /** + * repeated string link_uuid_path = 10; + * @param index The index of the value to return. + * @return The bytes of the linkUuidPath at the given index. + */ + public com.google.protobuf.ByteString getLinkUuidPathBytes(int index) { + return linkUuidPath_.getByteString(index); + } + + /** + * repeated string link_uuid_path = 10; + * @param index The index to set the value at. + * @param value The linkUuidPath to set. + * @return This builder for chaining. + */ + public Builder setLinkUuidPath(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkUuidPathIsMutable(); + linkUuidPath_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * repeated string link_uuid_path = 10; + * @param value The linkUuidPath to add. + * @return This builder for chaining. + */ + public Builder addLinkUuidPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkUuidPathIsMutable(); + linkUuidPath_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * repeated string link_uuid_path = 10; + * @param values The linkUuidPath to add. + * @return This builder for chaining. + */ + public Builder addAllLinkUuidPath(java.lang.Iterable values) { + ensureLinkUuidPathIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkUuidPath_); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * repeated string link_uuid_path = 10; + * @return This builder for chaining. + */ + public Builder clearLinkUuidPath() { + linkUuidPath_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; + onChanged(); + return this; + } + + /** + * repeated string link_uuid_path = 10; + * @param value The bytes of the linkUuidPath to add. + * @return This builder for chaining. + */ + public Builder addLinkUuidPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLinkUuidPathIsMutable(); + linkUuidPath_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object granularity_ = ""; + + /** + * string granularity = 11; + * @return The granularity. + */ + public java.lang.String getGranularity() { + java.lang.Object ref = granularity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + granularity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string granularity = 11; + * @return The bytes for granularity. + */ + public com.google.protobuf.ByteString getGranularityBytes() { + java.lang.Object ref = granularity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + granularity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string granularity = 11; + * @param value The granularity to set. + * @return This builder for chaining. + */ + public Builder setGranularity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + granularity_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * string granularity = 11; + * @return This builder for chaining. + */ + public Builder clearGranularity() { + granularity_ = getDefaultInstance().getGranularity(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * string granularity = 11; + * @param value The bytes for granularity to set. + * @return This builder for chaining. + */ + public Builder setGranularityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + granularity_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object gridType_ = ""; + + /** + * string grid_type = 12; + * @return The gridType. + */ + public java.lang.String getGridType() { + java.lang.Object ref = gridType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gridType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string grid_type = 12; + * @return The bytes for gridType. + */ + public com.google.protobuf.ByteString getGridTypeBytes() { + java.lang.Object ref = gridType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gridType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string grid_type = 12; + * @param value The gridType to set. + * @return This builder for chaining. + */ + public Builder setGridType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gridType_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * string grid_type = 12; + * @return This builder for chaining. + */ + public Builder clearGridType() { + gridType_ = getDefaultInstance().getGridType(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * string grid_type = 12; + * @param value The bytes for gridType to set. + * @return This builder for chaining. + */ + public Builder setGridTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gridType_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object direction_ = ""; + + /** + * string direction = 13; + * @return The direction. + */ + public java.lang.String getDirection() { + java.lang.Object ref = direction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + direction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string direction = 13; + * @return The bytes for direction. + */ + public com.google.protobuf.ByteString getDirectionBytes() { + java.lang.Object ref = direction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + direction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string direction = 13; + * @param value The direction to set. + * @return This builder for chaining. + */ + public Builder setDirection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + direction_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * string direction = 13; + * @return This builder for chaining. + */ + public Builder clearDirection() { + direction_ = getDefaultInstance().getDirection(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * string direction = 13; + * @param value The bytes for direction to set. + * @return This builder for chaining. + */ + public Builder setDirectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + direction_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object capacityUnit_ = ""; + + /** + * string capacity_unit = 14; + * @return The capacityUnit. + */ + public java.lang.String getCapacityUnit() { + java.lang.Object ref = capacityUnit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + capacityUnit_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string capacity_unit = 14; + * @return The bytes for capacityUnit. + */ + public com.google.protobuf.ByteString getCapacityUnitBytes() { + java.lang.Object ref = capacityUnit_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + capacityUnit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string capacity_unit = 14; + * @param value The capacityUnit to set. + * @return This builder for chaining. + */ + public Builder setCapacityUnit(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + capacityUnit_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * string capacity_unit = 14; + * @return This builder for chaining. + */ + public Builder clearCapacityUnit() { + capacityUnit_ = getDefaultInstance().getCapacityUnit(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * string capacity_unit = 14; + * @param value The bytes for capacityUnit to set. + * @return This builder for chaining. + */ + public Builder setCapacityUnitBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + capacityUnit_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object capacityValue_ = ""; + + /** + * string capacity_value = 15; + * @return The capacityValue. + */ + public java.lang.String getCapacityValue() { + java.lang.Object ref = capacityValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + capacityValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string capacity_value = 15; + * @return The bytes for capacityValue. + */ + public com.google.protobuf.ByteString getCapacityValueBytes() { + java.lang.Object ref = capacityValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + capacityValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string capacity_value = 15; + * @param value The capacityValue to set. + * @return This builder for chaining. + */ + public Builder setCapacityValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + capacityValue_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * string capacity_value = 15; + * @return This builder for chaining. + */ + public Builder clearCapacityValue() { + capacityValue_ = getDefaultInstance().getCapacityValue(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + /** + * string capacity_value = 15; + * @param value The bytes for capacityValue to set. + * @return This builder for chaining. + */ + public Builder setCapacityValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + capacityValue_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private java.lang.Object routeObjectiveFunction_ = ""; + + /** + * string route_objective_function = 16; + * @return The routeObjectiveFunction. + */ + public java.lang.String getRouteObjectiveFunction() { + java.lang.Object ref = routeObjectiveFunction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + routeObjectiveFunction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string route_objective_function = 16; + * @return The bytes for routeObjectiveFunction. + */ + public com.google.protobuf.ByteString getRouteObjectiveFunctionBytes() { + java.lang.Object ref = routeObjectiveFunction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeObjectiveFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string route_objective_function = 16; + * @param value The routeObjectiveFunction to set. + * @return This builder for chaining. + */ + public Builder setRouteObjectiveFunction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + routeObjectiveFunction_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * string route_objective_function = 16; + * @return This builder for chaining. + */ + public Builder clearRouteObjectiveFunction() { + routeObjectiveFunction_ = getDefaultInstance().getRouteObjectiveFunction(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + + /** + * string route_objective_function = 16; + * @param value The bytes for routeObjectiveFunction to set. + * @return This builder for chaining. + */ + public Builder setRouteObjectiveFunctionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routeObjectiveFunction_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + + /** + * string url = 17; + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string url = 17; + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string url = 17; + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * string url = 17; + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** + * string url = 17; + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00010000; + 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:tapi_lsp.TapiLspRuleSet) + } + + // @@protoc_insertion_point(class_scope:tapi_lsp.TapiLspRuleSet) + private static final tapi_lsp.TapiLsp.TapiLspRuleSet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new tapi_lsp.TapiLsp.TapiLspRuleSet(); + } + + public static tapi_lsp.TapiLsp.TapiLspRuleSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public TapiLspRuleSet parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public tapi_lsp.TapiLsp.TapiLspRuleSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_tapi_lsp_TapiLspRuleSet_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tapi_lsp_TapiLspRuleSet_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\016tapi_lsp.proto\022\010tapi_lsp\"\220\003\n\016TapiLspRu" + "leSet\022\021\n\tinput_sip\030\001 \001(\t\022\022\n\noutput_sip\030\002" + " \001(\t\022\014\n\004uuid\030\003 \001(\t\022\n\n\002bw\030\004 \001(\t\022\023\n\013tenant" + "_uuid\030\005 \001(\t\022\033\n\023layer_protocol_name\030\006 \001(\t" + "\022 \n\030layer_protocol_qualifier\030\007 \001(\t\022\033\n\023lo" + "wer_frequency_mhz\030\010 \001(\t\022\033\n\023upper_frequen" + "cy_mhz\030\t \001(\t\022\026\n\016link_uuid_path\030\n \003(\t\022\023\n\013" + "granularity\030\013 \001(\t\022\021\n\tgrid_type\030\014 \001(\t\022\021\n\t" + "direction\030\r \001(\t\022\025\n\rcapacity_unit\030\016 \001(\t\022\026" + "\n\016capacity_value\030\017 \001(\t\022 \n\030route_objectiv" + "e_function\030\020 \001(\t\022\013\n\003url\030\021 \001(\tb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_tapi_lsp_TapiLspRuleSet_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_tapi_lsp_TapiLspRuleSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_tapi_lsp_TapiLspRuleSet_descriptor, new java.lang.String[] { "InputSip", "OutputSip", "Uuid", "Bw", "TenantUuid", "LayerProtocolName", "LayerProtocolQualifier", "LowerFrequencyMhz", "UpperFrequencyMhz", "LinkUuidPath", "Granularity", "GridType", "Direction", "CapacityUnit", "CapacityValue", "RouteObjectiveFunction", "Url" }); + } + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/ztp/target/kubernetes/kubernetes.yml b/src/ztp/target/kubernetes/kubernetes.yml index 04c75050c51d37c19f60ec6d8761f535b2db3cc7..2d153068e5f1463e21ba958d6c979962d81e799d 100644 --- a/src/ztp/target/kubernetes/kubernetes.yml +++ b/src/ztp/target/kubernetes/kubernetes.yml @@ -3,8 +3,8 @@ apiVersion: v1 kind: Service metadata: annotations: - app.quarkus.io/commit-id: 905a409221c21205aba667ad34f7610681bd09c1 - app.quarkus.io/build-timestamp: 2025-10-22 - 13:42:34 +0000 + app.quarkus.io/commit-id: f6ca78538c88e1affff6dd8908e6f14379f5d9ac + app.quarkus.io/build-timestamp: 2025-10-27 - 16:23:04 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -17,10 +17,6 @@ metadata: name: ztpservice spec: ports: - - name: https - port: 443 - protocol: TCP - targetPort: 8443 - name: grpc port: 5050 protocol: TCP @@ -29,6 +25,10 @@ spec: port: 9192 protocol: TCP targetPort: 8080 + - name: https + port: 443 + protocol: TCP + targetPort: 8443 selector: app.kubernetes.io/name: ztpservice type: ClusterIP @@ -37,8 +37,8 @@ apiVersion: apps/v1 kind: Deployment metadata: annotations: - app.quarkus.io/commit-id: 905a409221c21205aba667ad34f7610681bd09c1 - app.quarkus.io/build-timestamp: 2025-10-22 - 13:42:34 +0000 + app.quarkus.io/commit-id: f6ca78538c88e1affff6dd8908e6f14379f5d9ac + app.quarkus.io/build-timestamp: 2025-10-27 - 16:23:04 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -57,8 +57,8 @@ spec: template: metadata: annotations: - app.quarkus.io/commit-id: 905a409221c21205aba667ad34f7610681bd09c1 - app.quarkus.io/build-timestamp: 2025-10-22 - 13:42:34 +0000 + app.quarkus.io/commit-id: f6ca78538c88e1affff6dd8908e6f14379f5d9ac + app.quarkus.io/build-timestamp: 2025-10-27 - 16:23:04 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -75,10 +75,10 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace - - name: DEVICE_SERVICE_HOST - value: deviceservice - name: CONTEXT_SERVICE_HOST value: contextservice + - name: DEVICE_SERVICE_HOST + value: deviceservice image: labs.etsi.org:5050/tfs/controller/ztp:0.2.0 imagePullPolicy: Always livenessProbe: @@ -93,15 +93,15 @@ spec: timeoutSeconds: 10 name: ztpservice ports: - - containerPort: 8443 - name: https - protocol: TCP - containerPort: 5050 name: grpc protocol: TCP - containerPort: 8080 name: http protocol: TCP + - containerPort: 8443 + name: https + protocol: TCP readinessProbe: failureThreshold: 3 httpGet: diff --git a/src/ztp_server/Dockerfile b/src/ztp_server/Dockerfile index bd0dcf465d3cb834bbefc9d7c3edcf8d2532011c..1bc93f786b3a099c15cecb7b6d081d972fd5a84b 100755 --- a/src/ztp_server/Dockerfile +++ b/src/ztp_server/Dockerfile @@ -28,9 +28,9 @@ RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \ chmod +x /bin/grpc_health_probe # Get generic Python packages -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --upgrade setuptools wheel -RUN python3 -m pip install --upgrade pip-tools +RUN python3 -m pip install --upgrade 'pip==25.2' +RUN python3 -m pip install --upgrade 'setuptools==79.0.0' 'wheel==0.45.1' +RUN python3 -m pip install --upgrade 'pip-tools==7.3.0' # Get common Python packages # Note: this step enables sharing the previous Docker build steps among all the Python components