From 54c17f3e31e00c4ae98768b97128afd0348d162f Mon Sep 17 00:00:00 2001 From: Liguang Xie Date: Mon, 15 Jul 2019 18:29:53 -0700 Subject: [PATCH 01/11] Add .gitignore file --- .gitignore | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..fda503fc2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,65 @@ +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests From a1f0c15cbc2dcecc3a86ca518cfd16718818e102 Mon Sep 17 00:00:00 2001 From: Liguang Xie Date: Mon, 15 Jul 2019 23:08:51 -0700 Subject: [PATCH 02/11] Add data scheme proto files --- src/schema/proto3/vpcgoalstate.proto | 135 +++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 src/schema/proto3/vpcgoalstate.proto diff --git a/src/schema/proto3/vpcgoalstate.proto b/src/schema/proto3/vpcgoalstate.proto new file mode 100644 index 000000000..d9bd2bfbe --- /dev/null +++ b/src/schema/proto3/vpcgoalstate.proto @@ -0,0 +1,135 @@ +syntax = "proto3"; + +package aliothcontroller; + +option java_package = "com.futurewei.aliothcontroller"; +option java_outer_classname = "vpcconfiguration"; + +message VpcConfiguration { + required string project_id = 1; + required string id = 2; + optional string name = 3; + required string cidr = 4; + + message SubnetId { + required string id = 1; + } + + message Route { + required string destination = 1; + required string next_hop = 2; + } + + repeated Subnet subnet_ids = 5; + repeated Route routes = 6; +} + +message SecurityGroup { + required string project_id = 1; + required string vpc_id = 2; + required string name = 3; + + enum Direction { + EGRESS = 0; + INGRESS = 1; + } + + enum EtherType { + IPV4 = 0; + IPV6 = 1; + } + + enum Protocol { + TCP = 0; + UDP = 1; + ICMP = 2; + } + + message SecurityGroupRule { + required string security_group_id = 1; + required string id = 2; + required Direction direction = 3; + optional EtherType ethertype = 4 [default = IPV4]; + optional Protocol protocol = 5 [default = TCP]; + + required int32 port_range_min = 6; + required int32 port_range_max = 7; + optional string remote_ip_prefix = 8; + optional string remote_group_id = 9; + } + + repeated SecurityGroupRule security_group_rules = 4; +} + +message SubnetConfiguration { + required string project_id = 1; + required string vpc_id = 2; + required string id = 3; + required string name = 4; + required string cidr = 5; + + required string gateway_ip = 6; + optional bool dhcp_enable = 7; + optional string primary_dns = 8; + optional string secondary_dns = 9; + + message DnsEntry { + required string entry = 1; + } + + repeated DnsEntry dns_list = 10; + optional string availability_zone = 11; + + message SecurityGroupId { + required string id = 1; + } + + optional SecurityGroupId security_group_ids = 12; +} + +message PortConfiguration { + required string project_id = 1; + required string network_id = 2; + required string id = 3; + optional string name = 4; + optional bool admin_state_up = 5; + + message FixedIp { + required string subnet_id = 1; + required string ip_address = 2; + } + + repeated FixedIp fixed_ips = 6; + + message SecurityGroupId { + required string id = 1; + } + + repeated SecurityGroupId security_group_ids = 7; + + message AllowAddressPair { + optional string ip_address = 1; + optional string mac_address = 2; + } + + repeated AllowAddressPair allow_address_pairs = 8; + + message ExtraDhcpOption { + optional string name = 1; + optional string value = 2; + } + + repeated ExtraDhcpOption extra_dhcp_options = 9; +} + +message VpcState { + enum OperationType { + CREATE = 0; + UPDATE = 1; + GET = 2; + DELETE = 3; + } + + required OperationType operation_type = 1; + required VpcConfiguration = 2; +} From 6cac1cff855a8394aed33b4710da88df33a089ba Mon Sep 17 00:00:00 2001 From: xieus Date: Tue, 16 Jul 2019 04:10:14 -0700 Subject: [PATCH 03/11] Add vpc state proto file --- src/schema/proto3/vpcstate.proto | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/schema/proto3/vpcstate.proto diff --git a/src/schema/proto3/vpcstate.proto b/src/schema/proto3/vpcstate.proto new file mode 100644 index 000000000..6f2572107 --- /dev/null +++ b/src/schema/proto3/vpcstate.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; + +package aliothcontroller; + +option java_package = "com.futurewei.alioth.controller"; +option java_outer_classname = "vpcstate"; + +message VpcConfiguration { + required string project_id = 1; + required string id = 2; + optional string name = 3; + required string cidr = 4; + + message SubnetId { + required string id = 1; + } + + message Route { + required string destination = 1; + required string next_hop = 2; + } + + repeated Subnet subnet_ids = 5; + repeated Route routes = 6; +} + +message VpcState { + enum OperationType { + CREATE = 0; + UPDATE = 1; + GET = 2; + DELETE = 3; + } + + required OperationType operation_type = 1; + required VpcConfiguration = 2; +} \ No newline at end of file From 756200efb9af7d865a0fcfafefe0f761687111ad Mon Sep 17 00:00:00 2001 From: Liguang Xie Date: Tue, 16 Jul 2019 04:36:14 -0700 Subject: [PATCH 04/11] Update vpcstate proto and generate its class file --- .../futurewei/alioth/controller/vpcstate.java | 3665 +++++++++++++++++ src/schema/proto3/vpcstate.proto | 22 +- 2 files changed, 3676 insertions(+), 11 deletions(-) create mode 100644 src/com/futurewei/alioth/controller/vpcstate.java diff --git a/src/com/futurewei/alioth/controller/vpcstate.java b/src/com/futurewei/alioth/controller/vpcstate.java new file mode 100644 index 000000000..40e9c7de7 --- /dev/null +++ b/src/com/futurewei/alioth/controller/vpcstate.java @@ -0,0 +1,3665 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: vpcstate.proto + +package com.futurewei.alioth.controller; + +public final class vpcstate { + private vpcstate() {} + 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 VpcConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.VpcConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string project_id = 1; + */ + java.lang.String getProjectId(); + /** + * optional string project_id = 1; + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + * optional string id = 2; + */ + java.lang.String getId(); + /** + * optional string id = 2; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * optional string name = 3; + */ + java.lang.String getName(); + /** + * optional string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional string cidr = 4; + */ + java.lang.String getCidr(); + /** + * optional string cidr = 4; + */ + com.google.protobuf.ByteString + getCidrBytes(); + + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + java.util.List + getSubnetIdsList(); + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getSubnetIds(int index); + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + int getSubnetIdsCount(); + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + java.util.List + getSubnetIdsOrBuilderList(); + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( + int index); + + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + java.util.List + getRoutesList(); + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getRoutes(int index); + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + int getRoutesCount(); + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + java.util.List + getRoutesOrBuilderList(); + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( + int index); + } + /** + * Protobuf type {@code aliothcontroller.VpcConfiguration} + */ + public static final class VpcConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.VpcConfiguration) + VpcConfigurationOrBuilder { + // Use VpcConfiguration.newBuilder() to construct. + private VpcConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VpcConfiguration() { + projectId_ = ""; + id_ = ""; + name_ = ""; + cidr_ = ""; + subnetIds_ = java.util.Collections.emptyList(); + routes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private VpcConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + cidr_ = s; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + subnetIds_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + subnetIds_.add( + input.readMessage(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + routes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + routes_.add( + input.readMessage(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + subnetIds_ = java.util.Collections.unmodifiableList(subnetIds_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + routes_ = java.util.Collections.unmodifiableList(routes_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.class, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder.class); + } + + public interface SubnetIdOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.VpcConfiguration.SubnetId) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string id = 1; + */ + java.lang.String getId(); + /** + * optional string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + } + /** + * Protobuf type {@code aliothcontroller.VpcConfiguration.SubnetId} + */ + public static final class SubnetId extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.VpcConfiguration.SubnetId) + SubnetIdOrBuilder { + // Use SubnetId.newBuilder() to construct. + private SubnetId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SubnetId() { + id_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SubnetId( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.class, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId other = (com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId) obj; + + boolean result = true; + result = result && getId() + .equals(other.getId()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId 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 com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId 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 com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.VpcConfiguration.SubnetId} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.VpcConfiguration.SubnetId) + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.class, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + id_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; + } + + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getDefaultInstanceForType() { + return com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId build() { + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId buildPartial() { + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId result = new com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId(this); + result.id_ = id_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId) { + return mergeFrom((com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId other) { + if (other == com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.VpcConfiguration.SubnetId) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.VpcConfiguration.SubnetId) + private static final com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId(); + } + + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SubnetId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubnetId(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RouteOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.VpcConfiguration.Route) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string destination = 1; + */ + java.lang.String getDestination(); + /** + * optional string destination = 1; + */ + com.google.protobuf.ByteString + getDestinationBytes(); + + /** + * optional string next_hop = 2; + */ + java.lang.String getNextHop(); + /** + * optional string next_hop = 2; + */ + com.google.protobuf.ByteString + getNextHopBytes(); + } + /** + * Protobuf type {@code aliothcontroller.VpcConfiguration.Route} + */ + public static final class Route extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.VpcConfiguration.Route) + RouteOrBuilder { + // Use Route.newBuilder() to construct. + private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Route() { + destination_ = ""; + nextHop_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Route( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + destination_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextHop_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.class, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder.class); + } + + public static final int DESTINATION_FIELD_NUMBER = 1; + private volatile java.lang.Object destination_; + /** + * optional string destination = 1; + */ + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + 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(); + destination_ = s; + return s; + } + } + /** + * optional string destination = 1; + */ + public com.google.protobuf.ByteString + getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEXT_HOP_FIELD_NUMBER = 2; + private volatile java.lang.Object nextHop_; + /** + * optional string next_hop = 2; + */ + public java.lang.String getNextHop() { + java.lang.Object ref = nextHop_; + 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(); + nextHop_ = s; + return s; + } + } + /** + * optional string next_hop = 2; + */ + public com.google.protobuf.ByteString + getNextHopBytes() { + java.lang.Object ref = nextHop_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextHop_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getDestinationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destination_); + } + if (!getNextHopBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextHop_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDestinationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destination_); + } + if (!getNextHopBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextHop_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route other = (com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route) obj; + + boolean result = true; + result = result && getDestination() + .equals(other.getDestination()); + result = result && getNextHop() + .equals(other.getNextHop()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getDestination().hashCode(); + hash = (37 * hash) + NEXT_HOP_FIELD_NUMBER; + hash = (53 * hash) + getNextHop().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route 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 com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route 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 com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.VpcConfiguration.Route} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.VpcConfiguration.Route) + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.class, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + destination_ = ""; + + nextHop_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; + } + + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getDefaultInstanceForType() { + return com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route build() { + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route buildPartial() { + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route result = new com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route(this); + result.destination_ = destination_; + result.nextHop_ = nextHop_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route) { + return mergeFrom((com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route other) { + if (other == com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.getDefaultInstance()) return this; + if (!other.getDestination().isEmpty()) { + destination_ = other.destination_; + onChanged(); + } + if (!other.getNextHop().isEmpty()) { + nextHop_ = other.nextHop_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object destination_ = ""; + /** + * optional string destination = 1; + */ + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destination_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string destination = 1; + */ + public com.google.protobuf.ByteString + getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string destination = 1; + */ + public Builder setDestination( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + destination_ = value; + onChanged(); + return this; + } + /** + * optional string destination = 1; + */ + public Builder clearDestination() { + + destination_ = getDefaultInstance().getDestination(); + onChanged(); + return this; + } + /** + * optional string destination = 1; + */ + public Builder setDestinationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destination_ = value; + onChanged(); + return this; + } + + private java.lang.Object nextHop_ = ""; + /** + * optional string next_hop = 2; + */ + public java.lang.String getNextHop() { + java.lang.Object ref = nextHop_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextHop_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string next_hop = 2; + */ + public com.google.protobuf.ByteString + getNextHopBytes() { + java.lang.Object ref = nextHop_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextHop_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string next_hop = 2; + */ + public Builder setNextHop( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextHop_ = value; + onChanged(); + return this; + } + /** + * optional string next_hop = 2; + */ + public Builder clearNextHop() { + + nextHop_ = getDefaultInstance().getNextHop(); + onChanged(); + return this; + } + /** + * optional string next_hop = 2; + */ + public Builder setNextHopBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextHop_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.VpcConfiguration.Route) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.VpcConfiguration.Route) + private static final com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route(); + } + + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Route parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Route(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * optional string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + * optional string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + private volatile java.lang.Object id_; + /** + * optional string id = 2; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * optional string id = 2; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + * optional string name = 3; + */ + 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; + } + } + /** + * optional string name = 3; + */ + 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 CIDR_FIELD_NUMBER = 4; + private volatile java.lang.Object cidr_; + /** + * optional string cidr = 4; + */ + public java.lang.String getCidr() { + java.lang.Object ref = cidr_; + 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(); + cidr_ = s; + return s; + } + } + /** + * optional string cidr = 4; + */ + public com.google.protobuf.ByteString + getCidrBytes() { + java.lang.Object ref = cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBNET_IDS_FIELD_NUMBER = 5; + private java.util.List subnetIds_; + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public java.util.List getSubnetIdsList() { + return subnetIds_; + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public java.util.List + getSubnetIdsOrBuilderList() { + return subnetIds_; + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public int getSubnetIdsCount() { + return subnetIds_.size(); + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getSubnetIds(int index) { + return subnetIds_.get(index); + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( + int index) { + return subnetIds_.get(index); + } + + public static final int ROUTES_FIELD_NUMBER = 6; + private java.util.List routes_; + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public java.util.List getRoutesList() { + return routes_; + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public java.util.List + getRoutesOrBuilderList() { + return routes_; + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public int getRoutesCount() { + return routes_.size(); + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getRoutes(int index) { + return routes_.get(index); + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( + int index) { + return routes_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + if (!getCidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cidr_); + } + for (int i = 0; i < subnetIds_.size(); i++) { + output.writeMessage(5, subnetIds_.get(i)); + } + for (int i = 0; i < routes_.size(); i++) { + output.writeMessage(6, routes_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + if (!getCidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cidr_); + } + for (int i = 0; i < subnetIds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, subnetIds_.get(i)); + } + for (int i = 0; i < routes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, routes_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.vpcstate.VpcConfiguration)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.vpcstate.VpcConfiguration other = (com.futurewei.alioth.controller.vpcstate.VpcConfiguration) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getId() + .equals(other.getId()); + result = result && getName() + .equals(other.getName()); + result = result && getCidr() + .equals(other.getCidr()); + result = result && getSubnetIdsList() + .equals(other.getSubnetIdsList()); + result = result && getRoutesList() + .equals(other.getRoutesList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CIDR_FIELD_NUMBER; + hash = (53 * hash) + getCidr().hashCode(); + if (getSubnetIdsCount() > 0) { + hash = (37 * hash) + SUBNET_IDS_FIELD_NUMBER; + hash = (53 * hash) + getSubnetIdsList().hashCode(); + } + if (getRoutesCount() > 0) { + hash = (37 * hash) + ROUTES_FIELD_NUMBER; + hash = (53 * hash) + getRoutesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration 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 com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration 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 com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.vpcstate.VpcConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.VpcConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.VpcConfiguration) + com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.class, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.vpcstate.VpcConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubnetIdsFieldBuilder(); + getRoutesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + projectId_ = ""; + + id_ = ""; + + name_ = ""; + + cidr_ = ""; + + if (subnetIdsBuilder_ == null) { + subnetIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + subnetIdsBuilder_.clear(); + } + if (routesBuilder_ == null) { + routes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + routesBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_descriptor; + } + + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration getDefaultInstanceForType() { + return com.futurewei.alioth.controller.vpcstate.VpcConfiguration.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration build() { + com.futurewei.alioth.controller.vpcstate.VpcConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration buildPartial() { + com.futurewei.alioth.controller.vpcstate.VpcConfiguration result = new com.futurewei.alioth.controller.vpcstate.VpcConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.projectId_ = projectId_; + result.id_ = id_; + result.name_ = name_; + result.cidr_ = cidr_; + if (subnetIdsBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subnetIds_ = java.util.Collections.unmodifiableList(subnetIds_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.subnetIds_ = subnetIds_; + } else { + result.subnetIds_ = subnetIdsBuilder_.build(); + } + if (routesBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + routes_ = java.util.Collections.unmodifiableList(routes_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.routes_ = routes_; + } else { + result.routes_ = routesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.vpcstate.VpcConfiguration) { + return mergeFrom((com.futurewei.alioth.controller.vpcstate.VpcConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.vpcstate.VpcConfiguration other) { + if (other == com.futurewei.alioth.controller.vpcstate.VpcConfiguration.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getCidr().isEmpty()) { + cidr_ = other.cidr_; + onChanged(); + } + if (subnetIdsBuilder_ == null) { + if (!other.subnetIds_.isEmpty()) { + if (subnetIds_.isEmpty()) { + subnetIds_ = other.subnetIds_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSubnetIdsIsMutable(); + subnetIds_.addAll(other.subnetIds_); + } + onChanged(); + } + } else { + if (!other.subnetIds_.isEmpty()) { + if (subnetIdsBuilder_.isEmpty()) { + subnetIdsBuilder_.dispose(); + subnetIdsBuilder_ = null; + subnetIds_ = other.subnetIds_; + bitField0_ = (bitField0_ & ~0x00000010); + subnetIdsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubnetIdsFieldBuilder() : null; + } else { + subnetIdsBuilder_.addAllMessages(other.subnetIds_); + } + } + } + if (routesBuilder_ == null) { + if (!other.routes_.isEmpty()) { + if (routes_.isEmpty()) { + routes_ = other.routes_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureRoutesIsMutable(); + routes_.addAll(other.routes_); + } + onChanged(); + } + } else { + if (!other.routes_.isEmpty()) { + if (routesBuilder_.isEmpty()) { + routesBuilder_.dispose(); + routesBuilder_ = null; + routes_ = other.routes_; + bitField0_ = (bitField0_ & ~0x00000020); + routesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRoutesFieldBuilder() : null; + } else { + routesBuilder_.addAllMessages(other.routes_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.vpcstate.VpcConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.vpcstate.VpcConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + * optional string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string project_id = 1; + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * optional string project_id = 1; + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * optional string project_id = 1; + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * optional string id = 2; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 2; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 2; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 2; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 2; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * optional string name = 3; + */ + 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; + } + } + /** + * optional string name = 3; + */ + 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; + } + } + /** + * optional string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object cidr_ = ""; + /** + * optional string cidr = 4; + */ + public java.lang.String getCidr() { + java.lang.Object ref = cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string cidr = 4; + */ + public com.google.protobuf.ByteString + getCidrBytes() { + java.lang.Object ref = cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string cidr = 4; + */ + public Builder setCidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cidr_ = value; + onChanged(); + return this; + } + /** + * optional string cidr = 4; + */ + public Builder clearCidr() { + + cidr_ = getDefaultInstance().getCidr(); + onChanged(); + return this; + } + /** + * optional string cidr = 4; + */ + public Builder setCidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cidr_ = value; + onChanged(); + return this; + } + + private java.util.List subnetIds_ = + java.util.Collections.emptyList(); + private void ensureSubnetIdsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + subnetIds_ = new java.util.ArrayList(subnetIds_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder> subnetIdsBuilder_; + + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public java.util.List getSubnetIdsList() { + if (subnetIdsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subnetIds_); + } else { + return subnetIdsBuilder_.getMessageList(); + } + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public int getSubnetIdsCount() { + if (subnetIdsBuilder_ == null) { + return subnetIds_.size(); + } else { + return subnetIdsBuilder_.getCount(); + } + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getSubnetIds(int index) { + if (subnetIdsBuilder_ == null) { + return subnetIds_.get(index); + } else { + return subnetIdsBuilder_.getMessage(index); + } + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public Builder setSubnetIds( + int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId value) { + if (subnetIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetIdsIsMutable(); + subnetIds_.set(index, value); + onChanged(); + } else { + subnetIdsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public Builder setSubnetIds( + int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder builderForValue) { + if (subnetIdsBuilder_ == null) { + ensureSubnetIdsIsMutable(); + subnetIds_.set(index, builderForValue.build()); + onChanged(); + } else { + subnetIdsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public Builder addSubnetIds(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId value) { + if (subnetIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetIdsIsMutable(); + subnetIds_.add(value); + onChanged(); + } else { + subnetIdsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public Builder addSubnetIds( + int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId value) { + if (subnetIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetIdsIsMutable(); + subnetIds_.add(index, value); + onChanged(); + } else { + subnetIdsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public Builder addSubnetIds( + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder builderForValue) { + if (subnetIdsBuilder_ == null) { + ensureSubnetIdsIsMutable(); + subnetIds_.add(builderForValue.build()); + onChanged(); + } else { + subnetIdsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public Builder addSubnetIds( + int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder builderForValue) { + if (subnetIdsBuilder_ == null) { + ensureSubnetIdsIsMutable(); + subnetIds_.add(index, builderForValue.build()); + onChanged(); + } else { + subnetIdsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public Builder addAllSubnetIds( + java.lang.Iterable values) { + if (subnetIdsBuilder_ == null) { + ensureSubnetIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subnetIds_); + onChanged(); + } else { + subnetIdsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public Builder clearSubnetIds() { + if (subnetIdsBuilder_ == null) { + subnetIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + subnetIdsBuilder_.clear(); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public Builder removeSubnetIds(int index) { + if (subnetIdsBuilder_ == null) { + ensureSubnetIdsIsMutable(); + subnetIds_.remove(index); + onChanged(); + } else { + subnetIdsBuilder_.remove(index); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder getSubnetIdsBuilder( + int index) { + return getSubnetIdsFieldBuilder().getBuilder(index); + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( + int index) { + if (subnetIdsBuilder_ == null) { + return subnetIds_.get(index); } else { + return subnetIdsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public java.util.List + getSubnetIdsOrBuilderList() { + if (subnetIdsBuilder_ != null) { + return subnetIdsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subnetIds_); + } + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder addSubnetIdsBuilder() { + return getSubnetIdsFieldBuilder().addBuilder( + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder addSubnetIdsBuilder( + int index) { + return getSubnetIdsFieldBuilder().addBuilder( + index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; + */ + public java.util.List + getSubnetIdsBuilderList() { + return getSubnetIdsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder> + getSubnetIdsFieldBuilder() { + if (subnetIdsBuilder_ == null) { + subnetIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder>( + subnetIds_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + subnetIds_ = null; + } + return subnetIdsBuilder_; + } + + private java.util.List routes_ = + java.util.Collections.emptyList(); + private void ensureRoutesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + routes_ = new java.util.ArrayList(routes_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder> routesBuilder_; + + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public java.util.List getRoutesList() { + if (routesBuilder_ == null) { + return java.util.Collections.unmodifiableList(routes_); + } else { + return routesBuilder_.getMessageList(); + } + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public int getRoutesCount() { + if (routesBuilder_ == null) { + return routes_.size(); + } else { + return routesBuilder_.getCount(); + } + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getRoutes(int index) { + if (routesBuilder_ == null) { + return routes_.get(index); + } else { + return routesBuilder_.getMessage(index); + } + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public Builder setRoutes( + int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.set(index, value); + onChanged(); + } else { + routesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public Builder setRoutes( + int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.set(index, builderForValue.build()); + onChanged(); + } else { + routesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public Builder addRoutes(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.add(value); + onChanged(); + } else { + routesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public Builder addRoutes( + int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.add(index, value); + onChanged(); + } else { + routesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public Builder addRoutes( + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(builderForValue.build()); + onChanged(); + } else { + routesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public Builder addRoutes( + int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(index, builderForValue.build()); + onChanged(); + } else { + routesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public Builder addAllRoutes( + java.lang.Iterable values) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, routes_); + onChanged(); + } else { + routesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public Builder clearRoutes() { + if (routesBuilder_ == null) { + routes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + routesBuilder_.clear(); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public Builder removeRoutes(int index) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.remove(index); + onChanged(); + } else { + routesBuilder_.remove(index); + } + return this; + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder getRoutesBuilder( + int index) { + return getRoutesFieldBuilder().getBuilder(index); + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( + int index) { + if (routesBuilder_ == null) { + return routes_.get(index); } else { + return routesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public java.util.List + getRoutesOrBuilderList() { + if (routesBuilder_ != null) { + return routesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(routes_); + } + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder addRoutesBuilder() { + return getRoutesFieldBuilder().addBuilder( + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder addRoutesBuilder( + int index) { + return getRoutesFieldBuilder().addBuilder( + index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; + */ + public java.util.List + getRoutesBuilderList() { + return getRoutesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder> + getRoutesFieldBuilder() { + if (routesBuilder_ == null) { + routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder>( + routes_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + routes_ = null; + } + return routesBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.VpcConfiguration) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.VpcConfiguration) + private static final com.futurewei.alioth.controller.vpcstate.VpcConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.vpcstate.VpcConfiguration(); + } + + public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public VpcConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VpcConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VpcStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.VpcState) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + */ + int getOperationTypeValue(); + /** + * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + */ + com.futurewei.alioth.controller.vpcstate.VpcState.OperationType getOperationType(); + + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + boolean hasConfiguration(); + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + com.futurewei.alioth.controller.vpcstate.VpcConfiguration getConfiguration(); + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder getConfigurationOrBuilder(); + } + /** + * Protobuf type {@code aliothcontroller.VpcState} + */ + public static final class VpcState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.VpcState) + VpcStateOrBuilder { + // Use VpcState.newBuilder() to construct. + private VpcState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VpcState() { + operationType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private VpcState( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + operationType_ = rawValue; + break; + } + case 18: { + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder subBuilder = null; + if (configuration_ != null) { + subBuilder = configuration_.toBuilder(); + } + configuration_ = input.readMessage(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configuration_); + configuration_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcState_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.vpcstate.VpcState.class, com.futurewei.alioth.controller.vpcstate.VpcState.Builder.class); + } + + /** + * Protobuf enum {@code aliothcontroller.VpcState.OperationType} + */ + public enum OperationType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CREATE = 0; + */ + CREATE(0), + /** + * UPDATE = 1; + */ + UPDATE(1), + /** + * GET = 2; + */ + GET(2), + /** + * DELETE = 3; + */ + DELETE(3), + UNRECOGNIZED(-1), + ; + + /** + * CREATE = 0; + */ + public static final int CREATE_VALUE = 0; + /** + * UPDATE = 1; + */ + public static final int UPDATE_VALUE = 1; + /** + * GET = 2; + */ + public static final int GET_VALUE = 2; + /** + * DELETE = 3; + */ + public static final int DELETE_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperationType valueOf(int value) { + return forNumber(value); + } + + public static OperationType forNumber(int value) { + switch (value) { + case 0: return CREATE; + case 1: return UPDATE; + case 2: return GET; + case 3: return DELETE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + OperationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationType findValueByNumber(int number) { + return OperationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.futurewei.alioth.controller.vpcstate.VpcState.getDescriptor().getEnumTypes().get(0); + } + + private static final OperationType[] VALUES = values(); + + public static OperationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OperationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aliothcontroller.VpcState.OperationType) + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 1; + private int operationType_; + /** + * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + */ + public int getOperationTypeValue() { + return operationType_; + } + /** + * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + */ + public com.futurewei.alioth.controller.vpcstate.VpcState.OperationType getOperationType() { + com.futurewei.alioth.controller.vpcstate.VpcState.OperationType result = com.futurewei.alioth.controller.vpcstate.VpcState.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.vpcstate.VpcState.OperationType.UNRECOGNIZED : result; + } + + public static final int CONFIGURATION_FIELD_NUMBER = 2; + private com.futurewei.alioth.controller.vpcstate.VpcConfiguration configuration_; + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + public boolean hasConfiguration() { + return configuration_ != null; + } + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration getConfiguration() { + return configuration_ == null ? com.futurewei.alioth.controller.vpcstate.VpcConfiguration.getDefaultInstance() : configuration_; + } + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder getConfigurationOrBuilder() { + return getConfiguration(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operationType_ != com.futurewei.alioth.controller.vpcstate.VpcState.OperationType.CREATE.getNumber()) { + output.writeEnum(1, operationType_); + } + if (configuration_ != null) { + output.writeMessage(2, getConfiguration()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operationType_ != com.futurewei.alioth.controller.vpcstate.VpcState.OperationType.CREATE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operationType_); + } + if (configuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfiguration()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.vpcstate.VpcState)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.vpcstate.VpcState other = (com.futurewei.alioth.controller.vpcstate.VpcState) obj; + + boolean result = true; + result = result && operationType_ == other.operationType_; + result = result && (hasConfiguration() == other.hasConfiguration()); + if (hasConfiguration()) { + result = result && getConfiguration() + .equals(other.getConfiguration()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + operationType_; + if (hasConfiguration()) { + hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getConfiguration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.vpcstate.VpcState 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 com.futurewei.alioth.controller.vpcstate.VpcState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.vpcstate.VpcState 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 com.futurewei.alioth.controller.vpcstate.VpcState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.vpcstate.VpcState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.VpcState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.VpcState) + com.futurewei.alioth.controller.vpcstate.VpcStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcState_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.vpcstate.VpcState.class, com.futurewei.alioth.controller.vpcstate.VpcState.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.vpcstate.VpcState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + operationType_ = 0; + + if (configurationBuilder_ == null) { + configuration_ = null; + } else { + configuration_ = null; + configurationBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcState_descriptor; + } + + public com.futurewei.alioth.controller.vpcstate.VpcState getDefaultInstanceForType() { + return com.futurewei.alioth.controller.vpcstate.VpcState.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.vpcstate.VpcState build() { + com.futurewei.alioth.controller.vpcstate.VpcState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.vpcstate.VpcState buildPartial() { + com.futurewei.alioth.controller.vpcstate.VpcState result = new com.futurewei.alioth.controller.vpcstate.VpcState(this); + result.operationType_ = operationType_; + if (configurationBuilder_ == null) { + result.configuration_ = configuration_; + } else { + result.configuration_ = configurationBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.vpcstate.VpcState) { + return mergeFrom((com.futurewei.alioth.controller.vpcstate.VpcState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.vpcstate.VpcState other) { + if (other == com.futurewei.alioth.controller.vpcstate.VpcState.getDefaultInstance()) return this; + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (other.hasConfiguration()) { + mergeConfiguration(other.getConfiguration()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.vpcstate.VpcState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.vpcstate.VpcState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operationType_ = 0; + /** + * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + */ + public int getOperationTypeValue() { + return operationType_; + } + /** + * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + */ + public Builder setOperationTypeValue(int value) { + operationType_ = value; + onChanged(); + return this; + } + /** + * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + */ + public com.futurewei.alioth.controller.vpcstate.VpcState.OperationType getOperationType() { + com.futurewei.alioth.controller.vpcstate.VpcState.OperationType result = com.futurewei.alioth.controller.vpcstate.VpcState.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.vpcstate.VpcState.OperationType.UNRECOGNIZED : result; + } + /** + * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + */ + public Builder setOperationType(com.futurewei.alioth.controller.vpcstate.VpcState.OperationType value) { + if (value == null) { + throw new NullPointerException(); + } + + operationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + */ + public Builder clearOperationType() { + + operationType_ = 0; + onChanged(); + return this; + } + + private com.futurewei.alioth.controller.vpcstate.VpcConfiguration configuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.vpcstate.VpcConfiguration, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder> configurationBuilder_; + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + public boolean hasConfiguration() { + return configurationBuilder_ != null || configuration_ != null; + } + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration getConfiguration() { + if (configurationBuilder_ == null) { + return configuration_ == null ? com.futurewei.alioth.controller.vpcstate.VpcConfiguration.getDefaultInstance() : configuration_; + } else { + return configurationBuilder_.getMessage(); + } + } + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + public Builder setConfiguration(com.futurewei.alioth.controller.vpcstate.VpcConfiguration value) { + if (configurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configuration_ = value; + onChanged(); + } else { + configurationBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + public Builder setConfiguration( + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder builderForValue) { + if (configurationBuilder_ == null) { + configuration_ = builderForValue.build(); + onChanged(); + } else { + configurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + public Builder mergeConfiguration(com.futurewei.alioth.controller.vpcstate.VpcConfiguration value) { + if (configurationBuilder_ == null) { + if (configuration_ != null) { + configuration_ = + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + } else { + configuration_ = value; + } + onChanged(); + } else { + configurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + public Builder clearConfiguration() { + if (configurationBuilder_ == null) { + configuration_ = null; + onChanged(); + } else { + configuration_ = null; + configurationBuilder_ = null; + } + + return this; + } + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder getConfigurationBuilder() { + + onChanged(); + return getConfigurationFieldBuilder().getBuilder(); + } + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder getConfigurationOrBuilder() { + if (configurationBuilder_ != null) { + return configurationBuilder_.getMessageOrBuilder(); + } else { + return configuration_ == null ? + com.futurewei.alioth.controller.vpcstate.VpcConfiguration.getDefaultInstance() : configuration_; + } + } + /** + * optional .aliothcontroller.VpcConfiguration configuration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.vpcstate.VpcConfiguration, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder> + getConfigurationFieldBuilder() { + if (configurationBuilder_ == null) { + configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.vpcstate.VpcConfiguration, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder>( + getConfiguration(), + getParentForChildren(), + isClean()); + configuration_ = null; + } + return configurationBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.VpcState) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.VpcState) + private static final com.futurewei.alioth.controller.vpcstate.VpcState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.vpcstate.VpcState(); + } + + public static com.futurewei.alioth.controller.vpcstate.VpcState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public VpcState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VpcState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.vpcstate.VpcState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_VpcConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_VpcConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_VpcConfiguration_SubnetId_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_VpcConfiguration_Route_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_VpcState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_VpcState_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\016vpcstate.proto\022\020aliothcontroller\"\221\002\n\020V" + + "pcConfiguration\022\022\n\nproject_id\030\001 \001(\t\022\n\n\002i" + + "d\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\014\n\004cidr\030\004 \001(\t\022?\n\ns" + + "ubnet_ids\030\005 \003(\0132+.aliothcontroller.VpcCo" + + "nfiguration.SubnetId\0228\n\006routes\030\006 \003(\0132(.a" + + "liothcontroller.VpcConfiguration.Route\032\026" + + "\n\010SubnetId\022\n\n\002id\030\001 \001(\t\032.\n\005Route\022\023\n\013desti" + + "nation\030\001 \001(\t\022\020\n\010next_hop\030\002 \001(\t\"\305\001\n\010VpcSt" + + "ate\022@\n\016operation_type\030\001 \001(\0162(.aliothcont" + + "roller.VpcState.OperationType\0229\n\rconfigu", + "ration\030\002 \001(\0132\".aliothcontroller.VpcConfi" + + "guration\"<\n\rOperationType\022\n\n\006CREATE\020\000\022\n\n" + + "\006UPDATE\020\001\022\007\n\003GET\020\002\022\n\n\006DELETE\020\003B+\n\037com.fu" + + "turewei.alioth.controllerB\010vpcstateb\006pro" + + "to3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_aliothcontroller_VpcConfiguration_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_aliothcontroller_VpcConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_VpcConfiguration_descriptor, + new java.lang.String[] { "ProjectId", "Id", "Name", "Cidr", "SubnetIds", "Routes", }); + internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor = + internal_static_aliothcontroller_VpcConfiguration_descriptor.getNestedTypes().get(0); + internal_static_aliothcontroller_VpcConfiguration_SubnetId_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor, + new java.lang.String[] { "Id", }); + internal_static_aliothcontroller_VpcConfiguration_Route_descriptor = + internal_static_aliothcontroller_VpcConfiguration_descriptor.getNestedTypes().get(1); + internal_static_aliothcontroller_VpcConfiguration_Route_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_VpcConfiguration_Route_descriptor, + new java.lang.String[] { "Destination", "NextHop", }); + internal_static_aliothcontroller_VpcState_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_aliothcontroller_VpcState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_VpcState_descriptor, + new java.lang.String[] { "OperationType", "Configuration", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/schema/proto3/vpcstate.proto b/src/schema/proto3/vpcstate.proto index 6f2572107..961fb02a1 100644 --- a/src/schema/proto3/vpcstate.proto +++ b/src/schema/proto3/vpcstate.proto @@ -6,21 +6,21 @@ option java_package = "com.futurewei.alioth.controller"; option java_outer_classname = "vpcstate"; message VpcConfiguration { - required string project_id = 1; - required string id = 2; - optional string name = 3; - required string cidr = 4; + string project_id = 1; + string id = 2; + string name = 3; + string cidr = 4; message SubnetId { - required string id = 1; + string id = 1; } message Route { - required string destination = 1; - required string next_hop = 2; + string destination = 1; + string next_hop = 2; } - repeated Subnet subnet_ids = 5; + repeated SubnetId subnet_ids = 5; repeated Route routes = 6; } @@ -32,6 +32,6 @@ message VpcState { DELETE = 3; } - required OperationType operation_type = 1; - required VpcConfiguration = 2; -} \ No newline at end of file + OperationType operation_type = 1; + VpcConfiguration configuration = 2; +} From 47cc39fc898d5f25aeb700cf8f9c97f2eb4e7a54 Mon Sep 17 00:00:00 2001 From: xieus Date: Tue, 16 Jul 2019 05:06:51 -0700 Subject: [PATCH 05/11] Add proto files for subnet, port and security group --- src/schema/proto3/common.proto | 24 +++++++++++ src/schema/proto3/portstate.proto | 48 ++++++++++++++++++++++ src/schema/proto3/securitygroupstate.proto | 46 +++++++++++++++++++++ src/schema/proto3/subnetstate.proto | 38 +++++++++++++++++ src/schema/proto3/vpcstate.proto | 9 +--- 5 files changed, 158 insertions(+), 7 deletions(-) create mode 100644 src/schema/proto3/common.proto create mode 100644 src/schema/proto3/portstate.proto create mode 100644 src/schema/proto3/securitygroupstate.proto create mode 100644 src/schema/proto3/subnetstate.proto diff --git a/src/schema/proto3/common.proto b/src/schema/proto3/common.proto new file mode 100644 index 000000000..833ed4356 --- /dev/null +++ b/src/schema/proto3/common.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +package aliothcontroller; + +option java_package = "com.futurewei.alioth.controller"; +option java_outer_classname = "common"; + +enum OperationType { + CREATE = 0; + UPDATE = 1; + GET = 2; + DELETE = 3; +} + +enum EtherType { + IPV4 = 0; + IPV6 = 1; +} + +enum Protocol { + TCP = 0; + UDP = 1; + ICMP = 2; +} diff --git a/src/schema/proto3/portstate.proto b/src/schema/proto3/portstate.proto new file mode 100644 index 000000000..20f082158 --- /dev/null +++ b/src/schema/proto3/portstate.proto @@ -0,0 +1,48 @@ +syntax = "proto3"; + +package aliothcontroller; + +option java_package = "com.futurewei.alioth.controller"; +option java_outer_classname = "portstate"; + +import "common.proto"; + +message PortConfiguration { + string project_id = 1; + string network_id = 2; + string id = 3; + string name = 4; + bool admin_state_up = 5; + + message FixedIp { + string subnet_id = 1; + string ip_address = 2; + } + + repeated FixedIp fixed_ips = 6; + + message SecurityGroupId { + string id = 1; + } + + repeated SecurityGroupId security_group_ids = 7; + + message AllowAddressPair { + string ip_address = 1; + string mac_address = 2; + } + + repeated AllowAddressPair allow_address_pairs = 8; + + message ExtraDhcpOption { + string name = 1; + string value = 2; + } + + repeated ExtraDhcpOption extra_dhcp_options = 9; +} + +message PortState { + OperationType operation_type = 1; + PortConfiguration configuration = 2; +} diff --git a/src/schema/proto3/securitygroupstate.proto b/src/schema/proto3/securitygroupstate.proto new file mode 100644 index 000000000..fb2091e24 --- /dev/null +++ b/src/schema/proto3/securitygroupstate.proto @@ -0,0 +1,46 @@ +syntax = "proto3"; + +package aliothcontroller; + +option java_package = "com.futurewei.alioth.controller"; +option java_outer_classname = "securitygroupstate"; + +import "common.proto"; + +message SecurityGroupConfiguration { + string project_id = 1; + string vpc_id = 2; + string name = 3; + + enum Direction { + EGRESS = 0; + INGRESS = 1; + } + + message SecurityGroupRule { + string security_group_id = 1; + string id = 2; + Direction direction = 3; + EtherType ethertype = 4; + Protocol protocol = 5; + + int32 port_range_min = 6; + int32 port_range_max = 7; + string remote_ip_prefix = 8; + string remote_group_id = 9; + } + + repeated SecurityGroupRule security_group_rules = 4; +} + +message SecurityGroupState { + enum OperationType { + CREATE = 0; + UPDATE = 1; + GET = 2; + DELETE = 3; + } + + OperationType operation_type = 1; + SecurityGroupConfiguration configuration = 2; +} diff --git a/src/schema/proto3/subnetstate.proto b/src/schema/proto3/subnetstate.proto new file mode 100644 index 000000000..cd66d320f --- /dev/null +++ b/src/schema/proto3/subnetstate.proto @@ -0,0 +1,38 @@ +syntax = "proto3"; + +package aliothcontroller; + +option java_package = "com.futurewei.alioth.controller"; +option java_outer_classname = "subnetstate"; + +import "common.proto"; + +message SubnetConfiguration { + string project_id = 1; + string vpc_id = 2; + string id = 3; + string name = 4; + string cidr = 5; + + string gateway_ip = 6; + bool dhcp_enable = 7; + string primary_dns = 8; + string secondary_dns = 9; + + message DnsEntry { + string entry = 1; + } + + repeated DnsEntry dns_list = 10; + string availability_zone = 11; + + message SecurityGroupId { + string id = 1; + } + + SecurityGroupId security_group_ids = 12; +} +message SubnetState { + OperationType operation_type = 1; + SubnetConfiguration configuration = 2; +} diff --git a/src/schema/proto3/vpcstate.proto b/src/schema/proto3/vpcstate.proto index 961fb02a1..e77dfb928 100644 --- a/src/schema/proto3/vpcstate.proto +++ b/src/schema/proto3/vpcstate.proto @@ -5,6 +5,8 @@ package aliothcontroller; option java_package = "com.futurewei.alioth.controller"; option java_outer_classname = "vpcstate"; +import "common.proto"; + message VpcConfiguration { string project_id = 1; string id = 2; @@ -25,13 +27,6 @@ message VpcConfiguration { } message VpcState { - enum OperationType { - CREATE = 0; - UPDATE = 1; - GET = 2; - DELETE = 3; - } - OperationType operation_type = 1; VpcConfiguration configuration = 2; } From 51479495e0af1bab22d4fd5780727af9793afb49 Mon Sep 17 00:00:00 2001 From: Liguang Xie Date: Tue, 16 Jul 2019 05:12:41 -0700 Subject: [PATCH 06/11] Generate classes for subnet, port and security group --- .../futurewei/alioth/controller/common.java | 369 ++ .../alioth/controller/portstate.java | 5658 +++++++++++++++++ .../alioth/controller/securitygroupstate.java | 3431 ++++++++++ .../alioth/controller/subnetstate.java | 3992 ++++++++++++ .../futurewei/alioth/controller/vpcstate.java | 184 +- 5 files changed, 13484 insertions(+), 150 deletions(-) create mode 100644 src/com/futurewei/alioth/controller/common.java create mode 100644 src/com/futurewei/alioth/controller/portstate.java create mode 100644 src/com/futurewei/alioth/controller/securitygroupstate.java create mode 100644 src/com/futurewei/alioth/controller/subnetstate.java diff --git a/src/com/futurewei/alioth/controller/common.java b/src/com/futurewei/alioth/controller/common.java new file mode 100644 index 000000000..5e4a4bb62 --- /dev/null +++ b/src/com/futurewei/alioth/controller/common.java @@ -0,0 +1,369 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: common.proto + +package com.futurewei.alioth.controller; + +public final class common { + private common() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code aliothcontroller.OperationType} + */ + public enum OperationType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CREATE = 0; + */ + CREATE(0), + /** + * UPDATE = 1; + */ + UPDATE(1), + /** + * GET = 2; + */ + GET(2), + /** + * DELETE = 3; + */ + DELETE(3), + UNRECOGNIZED(-1), + ; + + /** + * CREATE = 0; + */ + public static final int CREATE_VALUE = 0; + /** + * UPDATE = 1; + */ + public static final int UPDATE_VALUE = 1; + /** + * GET = 2; + */ + public static final int GET_VALUE = 2; + /** + * DELETE = 3; + */ + public static final int DELETE_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperationType valueOf(int value) { + return forNumber(value); + } + + public static OperationType forNumber(int value) { + switch (value) { + case 0: return CREATE; + case 1: return UPDATE; + case 2: return GET; + case 3: return DELETE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + OperationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationType findValueByNumber(int number) { + return OperationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.futurewei.alioth.controller.common.getDescriptor().getEnumTypes().get(0); + } + + private static final OperationType[] VALUES = values(); + + public static OperationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OperationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aliothcontroller.OperationType) + } + + /** + * Protobuf enum {@code aliothcontroller.EtherType} + */ + public enum EtherType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * IPV4 = 0; + */ + IPV4(0), + /** + * IPV6 = 1; + */ + IPV6(1), + UNRECOGNIZED(-1), + ; + + /** + * IPV4 = 0; + */ + public static final int IPV4_VALUE = 0; + /** + * IPV6 = 1; + */ + public static final int IPV6_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EtherType valueOf(int value) { + return forNumber(value); + } + + public static EtherType forNumber(int value) { + switch (value) { + case 0: return IPV4; + case 1: return IPV6; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + EtherType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EtherType findValueByNumber(int number) { + return EtherType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.futurewei.alioth.controller.common.getDescriptor().getEnumTypes().get(1); + } + + private static final EtherType[] VALUES = values(); + + public static EtherType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EtherType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aliothcontroller.EtherType) + } + + /** + * Protobuf enum {@code aliothcontroller.Protocol} + */ + public enum Protocol + implements com.google.protobuf.ProtocolMessageEnum { + /** + * TCP = 0; + */ + TCP(0), + /** + * UDP = 1; + */ + UDP(1), + /** + * ICMP = 2; + */ + ICMP(2), + UNRECOGNIZED(-1), + ; + + /** + * TCP = 0; + */ + public static final int TCP_VALUE = 0; + /** + * UDP = 1; + */ + public static final int UDP_VALUE = 1; + /** + * ICMP = 2; + */ + public static final int ICMP_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Protocol valueOf(int value) { + return forNumber(value); + } + + public static Protocol forNumber(int value) { + switch (value) { + case 0: return TCP; + case 1: return UDP; + case 2: return ICMP; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Protocol> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Protocol findValueByNumber(int number) { + return Protocol.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.futurewei.alioth.controller.common.getDescriptor().getEnumTypes().get(2); + } + + private static final Protocol[] VALUES = values(); + + public static Protocol valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Protocol(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aliothcontroller.Protocol) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\014common.proto\022\020aliothcontroller*<\n\rOper" + + "ationType\022\n\n\006CREATE\020\000\022\n\n\006UPDATE\020\001\022\007\n\003GET" + + "\020\002\022\n\n\006DELETE\020\003*\037\n\tEtherType\022\010\n\004IPV4\020\000\022\010\n" + + "\004IPV6\020\001*&\n\010Protocol\022\007\n\003TCP\020\000\022\007\n\003UDP\020\001\022\010\n" + + "\004ICMP\020\002B)\n\037com.futurewei.alioth.controll" + + "erB\006commonb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/com/futurewei/alioth/controller/portstate.java b/src/com/futurewei/alioth/controller/portstate.java new file mode 100644 index 000000000..b5b0cd9e9 --- /dev/null +++ b/src/com/futurewei/alioth/controller/portstate.java @@ -0,0 +1,5658 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: portstate.proto + +package com.futurewei.alioth.controller; + +public final class portstate { + private portstate() {} + 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 PortConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.PortConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string project_id = 1; + */ + java.lang.String getProjectId(); + /** + * optional string project_id = 1; + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + * optional string network_id = 2; + */ + java.lang.String getNetworkId(); + /** + * optional string network_id = 2; + */ + com.google.protobuf.ByteString + getNetworkIdBytes(); + + /** + * optional string id = 3; + */ + java.lang.String getId(); + /** + * optional string id = 3; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * optional string name = 4; + */ + java.lang.String getName(); + /** + * optional string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional bool admin_state_up = 5; + */ + boolean getAdminStateUp(); + + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + java.util.List + getFixedIpsList(); + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getFixedIps(int index); + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + int getFixedIpsCount(); + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + java.util.List + getFixedIpsOrBuilderList(); + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( + int index); + + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + java.util.List + getSecurityGroupIdsList(); + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index); + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + int getSecurityGroupIdsCount(); + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + java.util.List + getSecurityGroupIdsOrBuilderList(); + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( + int index); + + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + java.util.List + getAllowAddressPairsList(); + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index); + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + int getAllowAddressPairsCount(); + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + java.util.List + getAllowAddressPairsOrBuilderList(); + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( + int index); + + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + java.util.List + getExtraDhcpOptionsList(); + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index); + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + int getExtraDhcpOptionsCount(); + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + java.util.List + getExtraDhcpOptionsOrBuilderList(); + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( + int index); + } + /** + * Protobuf type {@code aliothcontroller.PortConfiguration} + */ + public static final class PortConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.PortConfiguration) + PortConfigurationOrBuilder { + // Use PortConfiguration.newBuilder() to construct. + private PortConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PortConfiguration() { + projectId_ = ""; + networkId_ = ""; + id_ = ""; + name_ = ""; + adminStateUp_ = false; + fixedIps_ = java.util.Collections.emptyList(); + securityGroupIds_ = java.util.Collections.emptyList(); + allowAddressPairs_ = java.util.Collections.emptyList(); + extraDhcpOptions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private PortConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + networkId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 40: { + + adminStateUp_ = input.readBool(); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + fixedIps_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + fixedIps_.add( + input.readMessage(com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.parser(), extensionRegistry)); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + securityGroupIds_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + securityGroupIds_.add( + input.readMessage(com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.parser(), extensionRegistry)); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + allowAddressPairs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + allowAddressPairs_.add( + input.readMessage(com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.parser(), extensionRegistry)); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + extraDhcpOptions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + extraDhcpOptions_.add( + input.readMessage(com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + fixedIps_ = java.util.Collections.unmodifiableList(fixedIps_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + securityGroupIds_ = java.util.Collections.unmodifiableList(securityGroupIds_); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + allowAddressPairs_ = java.util.Collections.unmodifiableList(allowAddressPairs_); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + extraDhcpOptions_ = java.util.Collections.unmodifiableList(extraDhcpOptions_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.portstate.PortConfiguration.class, com.futurewei.alioth.controller.portstate.PortConfiguration.Builder.class); + } + + public interface FixedIpOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.PortConfiguration.FixedIp) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string subnet_id = 1; + */ + java.lang.String getSubnetId(); + /** + * optional string subnet_id = 1; + */ + com.google.protobuf.ByteString + getSubnetIdBytes(); + + /** + * optional string ip_address = 2; + */ + java.lang.String getIpAddress(); + /** + * optional string ip_address = 2; + */ + com.google.protobuf.ByteString + getIpAddressBytes(); + } + /** + * Protobuf type {@code aliothcontroller.PortConfiguration.FixedIp} + */ + public static final class FixedIp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.PortConfiguration.FixedIp) + FixedIpOrBuilder { + // Use FixedIp.newBuilder() to construct. + private FixedIp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FixedIp() { + subnetId_ = ""; + ipAddress_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private FixedIp( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subnetId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + ipAddress_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.class, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder.class); + } + + public static final int SUBNET_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object subnetId_; + /** + * optional string subnet_id = 1; + */ + public java.lang.String getSubnetId() { + java.lang.Object ref = subnetId_; + 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(); + subnetId_ = s; + return s; + } + } + /** + * optional string subnet_id = 1; + */ + public com.google.protobuf.ByteString + getSubnetIdBytes() { + java.lang.Object ref = subnetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_ADDRESS_FIELD_NUMBER = 2; + private volatile java.lang.Object ipAddress_; + /** + * optional string ip_address = 2; + */ + 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; + } + } + /** + * optional string ip_address = 2; + */ + 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; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSubnetIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetId_); + } + if (!getIpAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipAddress_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubnetIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetId_); + } + if (!getIpAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipAddress_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp other = (com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp) obj; + + boolean result = true; + result = result && getSubnetId() + .equals(other.getSubnetId()); + result = result && getIpAddress() + .equals(other.getIpAddress()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER; + hash = (53 * hash) + getSubnetId().hashCode(); + hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp 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 com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp 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 com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.PortConfiguration.FixedIp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration.FixedIp) + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.class, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + subnetId_ = ""; + + ipAddress_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getDefaultInstanceForType() { + return com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp build() { + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp buildPartial() { + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp result = new com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp(this); + result.subnetId_ = subnetId_; + result.ipAddress_ = ipAddress_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp) { + return mergeFrom((com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp other) { + if (other == com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.getDefaultInstance()) return this; + if (!other.getSubnetId().isEmpty()) { + subnetId_ = other.subnetId_; + onChanged(); + } + if (!other.getIpAddress().isEmpty()) { + ipAddress_ = other.ipAddress_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object subnetId_ = ""; + /** + * optional string subnet_id = 1; + */ + public java.lang.String getSubnetId() { + java.lang.Object ref = subnetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string subnet_id = 1; + */ + public com.google.protobuf.ByteString + getSubnetIdBytes() { + java.lang.Object ref = subnetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string subnet_id = 1; + */ + public Builder setSubnetId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetId_ = value; + onChanged(); + return this; + } + /** + * optional string subnet_id = 1; + */ + public Builder clearSubnetId() { + + subnetId_ = getDefaultInstance().getSubnetId(); + onChanged(); + return this; + } + /** + * optional string subnet_id = 1; + */ + public Builder setSubnetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetId_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipAddress_ = ""; + /** + * optional string ip_address = 2; + */ + 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; + } + } + /** + * optional string ip_address = 2; + */ + 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; + } + } + /** + * optional string ip_address = 2; + */ + public Builder setIpAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipAddress_ = value; + onChanged(); + return this; + } + /** + * optional string ip_address = 2; + */ + public Builder clearIpAddress() { + + ipAddress_ = getDefaultInstance().getIpAddress(); + onChanged(); + return this; + } + /** + * optional string ip_address = 2; + */ + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipAddress_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.PortConfiguration.FixedIp) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration.FixedIp) + private static final com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp(); + } + + public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public FixedIp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FixedIp(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecurityGroupIdOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.PortConfiguration.SecurityGroupId) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string id = 1; + */ + java.lang.String getId(); + /** + * optional string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + } + /** + * Protobuf type {@code aliothcontroller.PortConfiguration.SecurityGroupId} + */ + public static final class SecurityGroupId extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.PortConfiguration.SecurityGroupId) + SecurityGroupIdOrBuilder { + // Use SecurityGroupId.newBuilder() to construct. + private SecurityGroupId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecurityGroupId() { + id_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SecurityGroupId( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId other = (com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId) obj; + + boolean result = true; + result = result && getId() + .equals(other.getId()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId 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 com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId 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 com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.PortConfiguration.SecurityGroupId} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration.SecurityGroupId) + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + id_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId getDefaultInstanceForType() { + return com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId build() { + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId buildPartial() { + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId result = new com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId(this); + result.id_ = id_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId) { + return mergeFrom((com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId other) { + if (other == com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.PortConfiguration.SecurityGroupId) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration.SecurityGroupId) + private static final com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId(); + } + + public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SecurityGroupId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityGroupId(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AllowAddressPairOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.PortConfiguration.AllowAddressPair) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string ip_address = 1; + */ + java.lang.String getIpAddress(); + /** + * optional string ip_address = 1; + */ + com.google.protobuf.ByteString + getIpAddressBytes(); + + /** + * optional string mac_address = 2; + */ + java.lang.String getMacAddress(); + /** + * optional string mac_address = 2; + */ + com.google.protobuf.ByteString + getMacAddressBytes(); + } + /** + * Protobuf type {@code aliothcontroller.PortConfiguration.AllowAddressPair} + */ + public static final class AllowAddressPair extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.PortConfiguration.AllowAddressPair) + AllowAddressPairOrBuilder { + // Use AllowAddressPair.newBuilder() to construct. + private AllowAddressPair(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AllowAddressPair() { + ipAddress_ = ""; + macAddress_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private AllowAddressPair( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + ipAddress_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + macAddress_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.class, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder.class); + } + + public static final int IP_ADDRESS_FIELD_NUMBER = 1; + private volatile java.lang.Object ipAddress_; + /** + * optional string ip_address = 1; + */ + 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; + } + } + /** + * optional string ip_address = 1; + */ + 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 MAC_ADDRESS_FIELD_NUMBER = 2; + private volatile java.lang.Object macAddress_; + /** + * optional string mac_address = 2; + */ + public java.lang.String getMacAddress() { + java.lang.Object ref = macAddress_; + 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(); + macAddress_ = s; + return s; + } + } + /** + * optional string mac_address = 2; + */ + public com.google.protobuf.ByteString + getMacAddressBytes() { + java.lang.Object ref = macAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + macAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIpAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipAddress_); + } + if (!getMacAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, macAddress_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIpAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ipAddress_); + } + if (!getMacAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, macAddress_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair other = (com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair) obj; + + boolean result = true; + result = result && getIpAddress() + .equals(other.getIpAddress()); + result = result && getMacAddress() + .equals(other.getMacAddress()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + hash = (37 * hash) + MAC_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMacAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair 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 com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair 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 com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.PortConfiguration.AllowAddressPair} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration.AllowAddressPair) + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.class, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + ipAddress_ = ""; + + macAddress_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair getDefaultInstanceForType() { + return com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair build() { + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair buildPartial() { + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair result = new com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair(this); + result.ipAddress_ = ipAddress_; + result.macAddress_ = macAddress_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair) { + return mergeFrom((com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair other) { + if (other == com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance()) return this; + if (!other.getIpAddress().isEmpty()) { + ipAddress_ = other.ipAddress_; + onChanged(); + } + if (!other.getMacAddress().isEmpty()) { + macAddress_ = other.macAddress_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object ipAddress_ = ""; + /** + * optional string ip_address = 1; + */ + 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; + } + } + /** + * optional string ip_address = 1; + */ + 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; + } + } + /** + * optional string ip_address = 1; + */ + public Builder setIpAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipAddress_ = value; + onChanged(); + return this; + } + /** + * optional string ip_address = 1; + */ + public Builder clearIpAddress() { + + ipAddress_ = getDefaultInstance().getIpAddress(); + onChanged(); + return this; + } + /** + * optional string ip_address = 1; + */ + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipAddress_ = value; + onChanged(); + return this; + } + + private java.lang.Object macAddress_ = ""; + /** + * optional string mac_address = 2; + */ + public java.lang.String getMacAddress() { + java.lang.Object ref = macAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + macAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string mac_address = 2; + */ + public com.google.protobuf.ByteString + getMacAddressBytes() { + java.lang.Object ref = macAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + macAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string mac_address = 2; + */ + public Builder setMacAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + macAddress_ = value; + onChanged(); + return this; + } + /** + * optional string mac_address = 2; + */ + public Builder clearMacAddress() { + + macAddress_ = getDefaultInstance().getMacAddress(); + onChanged(); + return this; + } + /** + * optional string mac_address = 2; + */ + public Builder setMacAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + macAddress_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.PortConfiguration.AllowAddressPair) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration.AllowAddressPair) + private static final com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair(); + } + + public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public AllowAddressPair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllowAddressPair(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExtraDhcpOptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.PortConfiguration.ExtraDhcpOption) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string name = 1; + */ + java.lang.String getName(); + /** + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional string value = 2; + */ + java.lang.String getValue(); + /** + * optional string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code aliothcontroller.PortConfiguration.ExtraDhcpOption} + */ + public static final class ExtraDhcpOption extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.PortConfiguration.ExtraDhcpOption) + ExtraDhcpOptionOrBuilder { + // Use ExtraDhcpOption.newBuilder() to construct. + private ExtraDhcpOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExtraDhcpOption() { + name_ = ""; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ExtraDhcpOption( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.class, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * optional string name = 1; + */ + 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; + } + } + /** + * optional string name = 1; + */ + 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 VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + * optional string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + * optional string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption other = (com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getValue() + .equals(other.getValue()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption 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 com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption 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 com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.PortConfiguration.ExtraDhcpOption} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration.ExtraDhcpOption) + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.class, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + name_ = ""; + + value_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption getDefaultInstanceForType() { + return com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption build() { + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption buildPartial() { + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption result = new com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption(this); + result.name_ = name_; + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption) { + return mergeFrom((com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption other) { + if (other == com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * optional string name = 1; + */ + 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; + } + } + /** + * optional string name = 1; + */ + 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; + } + } + /** + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * optional string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * optional string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * optional string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.PortConfiguration.ExtraDhcpOption) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration.ExtraDhcpOption) + private static final com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption(); + } + + public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ExtraDhcpOption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExtraDhcpOption(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * optional string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + * optional string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object networkId_; + /** + * optional string network_id = 2; + */ + public java.lang.String getNetworkId() { + java.lang.Object ref = networkId_; + 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(); + networkId_ = s; + return s; + } + } + /** + * optional string network_id = 2; + */ + public com.google.protobuf.ByteString + getNetworkIdBytes() { + java.lang.Object ref = networkId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + networkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 3; + private volatile java.lang.Object id_; + /** + * optional string id = 3; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * optional string id = 3; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + * optional string name = 4; + */ + 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; + } + } + /** + * optional string name = 4; + */ + 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 ADMIN_STATE_UP_FIELD_NUMBER = 5; + private boolean adminStateUp_; + /** + * optional bool admin_state_up = 5; + */ + public boolean getAdminStateUp() { + return adminStateUp_; + } + + public static final int FIXED_IPS_FIELD_NUMBER = 6; + private java.util.List fixedIps_; + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public java.util.List getFixedIpsList() { + return fixedIps_; + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public java.util.List + getFixedIpsOrBuilderList() { + return fixedIps_; + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public int getFixedIpsCount() { + return fixedIps_.size(); + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getFixedIps(int index) { + return fixedIps_.get(index); + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( + int index) { + return fixedIps_.get(index); + } + + public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 7; + private java.util.List securityGroupIds_; + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public java.util.List getSecurityGroupIdsList() { + return securityGroupIds_; + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public java.util.List + getSecurityGroupIdsOrBuilderList() { + return securityGroupIds_; + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public int getSecurityGroupIdsCount() { + return securityGroupIds_.size(); + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index) { + return securityGroupIds_.get(index); + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( + int index) { + return securityGroupIds_.get(index); + } + + public static final int ALLOW_ADDRESS_PAIRS_FIELD_NUMBER = 8; + private java.util.List allowAddressPairs_; + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public java.util.List getAllowAddressPairsList() { + return allowAddressPairs_; + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public java.util.List + getAllowAddressPairsOrBuilderList() { + return allowAddressPairs_; + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public int getAllowAddressPairsCount() { + return allowAddressPairs_.size(); + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index) { + return allowAddressPairs_.get(index); + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( + int index) { + return allowAddressPairs_.get(index); + } + + public static final int EXTRA_DHCP_OPTIONS_FIELD_NUMBER = 9; + private java.util.List extraDhcpOptions_; + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public java.util.List getExtraDhcpOptionsList() { + return extraDhcpOptions_; + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public java.util.List + getExtraDhcpOptionsOrBuilderList() { + return extraDhcpOptions_; + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public int getExtraDhcpOptionsCount() { + return extraDhcpOptions_.size(); + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index) { + return extraDhcpOptions_.get(index); + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( + int index) { + return extraDhcpOptions_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getNetworkIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkId_); + } + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, id_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + if (adminStateUp_ != false) { + output.writeBool(5, adminStateUp_); + } + for (int i = 0; i < fixedIps_.size(); i++) { + output.writeMessage(6, fixedIps_.get(i)); + } + for (int i = 0; i < securityGroupIds_.size(); i++) { + output.writeMessage(7, securityGroupIds_.get(i)); + } + for (int i = 0; i < allowAddressPairs_.size(); i++) { + output.writeMessage(8, allowAddressPairs_.get(i)); + } + for (int i = 0; i < extraDhcpOptions_.size(); i++) { + output.writeMessage(9, extraDhcpOptions_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getNetworkIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, networkId_); + } + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, id_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + if (adminStateUp_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, adminStateUp_); + } + for (int i = 0; i < fixedIps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, fixedIps_.get(i)); + } + for (int i = 0; i < securityGroupIds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, securityGroupIds_.get(i)); + } + for (int i = 0; i < allowAddressPairs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, allowAddressPairs_.get(i)); + } + for (int i = 0; i < extraDhcpOptions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, extraDhcpOptions_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.portstate.PortConfiguration)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.portstate.PortConfiguration other = (com.futurewei.alioth.controller.portstate.PortConfiguration) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getNetworkId() + .equals(other.getNetworkId()); + result = result && getId() + .equals(other.getId()); + result = result && getName() + .equals(other.getName()); + result = result && (getAdminStateUp() + == other.getAdminStateUp()); + result = result && getFixedIpsList() + .equals(other.getFixedIpsList()); + result = result && getSecurityGroupIdsList() + .equals(other.getSecurityGroupIdsList()); + result = result && getAllowAddressPairsList() + .equals(other.getAllowAddressPairsList()); + result = result && getExtraDhcpOptionsList() + .equals(other.getExtraDhcpOptionsList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + NETWORK_ID_FIELD_NUMBER; + hash = (53 * hash) + getNetworkId().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ADMIN_STATE_UP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAdminStateUp()); + if (getFixedIpsCount() > 0) { + hash = (37 * hash) + FIXED_IPS_FIELD_NUMBER; + hash = (53 * hash) + getFixedIpsList().hashCode(); + } + if (getSecurityGroupIdsCount() > 0) { + hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER; + hash = (53 * hash) + getSecurityGroupIdsList().hashCode(); + } + if (getAllowAddressPairsCount() > 0) { + hash = (37 * hash) + ALLOW_ADDRESS_PAIRS_FIELD_NUMBER; + hash = (53 * hash) + getAllowAddressPairsList().hashCode(); + } + if (getExtraDhcpOptionsCount() > 0) { + hash = (37 * hash) + EXTRA_DHCP_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExtraDhcpOptionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration 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 com.futurewei.alioth.controller.portstate.PortConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration 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 com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.portstate.PortConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.PortConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration) + com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.portstate.PortConfiguration.class, com.futurewei.alioth.controller.portstate.PortConfiguration.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.portstate.PortConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFixedIpsFieldBuilder(); + getSecurityGroupIdsFieldBuilder(); + getAllowAddressPairsFieldBuilder(); + getExtraDhcpOptionsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + projectId_ = ""; + + networkId_ = ""; + + id_ = ""; + + name_ = ""; + + adminStateUp_ = false; + + if (fixedIpsBuilder_ == null) { + fixedIps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + fixedIpsBuilder_.clear(); + } + if (securityGroupIdsBuilder_ == null) { + securityGroupIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + securityGroupIdsBuilder_.clear(); + } + if (allowAddressPairsBuilder_ == null) { + allowAddressPairs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + allowAddressPairsBuilder_.clear(); + } + if (extraDhcpOptionsBuilder_ == null) { + extraDhcpOptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + } else { + extraDhcpOptionsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_descriptor; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration getDefaultInstanceForType() { + return com.futurewei.alioth.controller.portstate.PortConfiguration.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration build() { + com.futurewei.alioth.controller.portstate.PortConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration buildPartial() { + com.futurewei.alioth.controller.portstate.PortConfiguration result = new com.futurewei.alioth.controller.portstate.PortConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.projectId_ = projectId_; + result.networkId_ = networkId_; + result.id_ = id_; + result.name_ = name_; + result.adminStateUp_ = adminStateUp_; + if (fixedIpsBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + fixedIps_ = java.util.Collections.unmodifiableList(fixedIps_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.fixedIps_ = fixedIps_; + } else { + result.fixedIps_ = fixedIpsBuilder_.build(); + } + if (securityGroupIdsBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + securityGroupIds_ = java.util.Collections.unmodifiableList(securityGroupIds_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.securityGroupIds_ = securityGroupIds_; + } else { + result.securityGroupIds_ = securityGroupIdsBuilder_.build(); + } + if (allowAddressPairsBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + allowAddressPairs_ = java.util.Collections.unmodifiableList(allowAddressPairs_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.allowAddressPairs_ = allowAddressPairs_; + } else { + result.allowAddressPairs_ = allowAddressPairsBuilder_.build(); + } + if (extraDhcpOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { + extraDhcpOptions_ = java.util.Collections.unmodifiableList(extraDhcpOptions_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.extraDhcpOptions_ = extraDhcpOptions_; + } else { + result.extraDhcpOptions_ = extraDhcpOptionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.portstate.PortConfiguration) { + return mergeFrom((com.futurewei.alioth.controller.portstate.PortConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.portstate.PortConfiguration other) { + if (other == com.futurewei.alioth.controller.portstate.PortConfiguration.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getNetworkId().isEmpty()) { + networkId_ = other.networkId_; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getAdminStateUp() != false) { + setAdminStateUp(other.getAdminStateUp()); + } + if (fixedIpsBuilder_ == null) { + if (!other.fixedIps_.isEmpty()) { + if (fixedIps_.isEmpty()) { + fixedIps_ = other.fixedIps_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureFixedIpsIsMutable(); + fixedIps_.addAll(other.fixedIps_); + } + onChanged(); + } + } else { + if (!other.fixedIps_.isEmpty()) { + if (fixedIpsBuilder_.isEmpty()) { + fixedIpsBuilder_.dispose(); + fixedIpsBuilder_ = null; + fixedIps_ = other.fixedIps_; + bitField0_ = (bitField0_ & ~0x00000020); + fixedIpsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFixedIpsFieldBuilder() : null; + } else { + fixedIpsBuilder_.addAllMessages(other.fixedIps_); + } + } + } + if (securityGroupIdsBuilder_ == null) { + if (!other.securityGroupIds_.isEmpty()) { + if (securityGroupIds_.isEmpty()) { + securityGroupIds_ = other.securityGroupIds_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.addAll(other.securityGroupIds_); + } + onChanged(); + } + } else { + if (!other.securityGroupIds_.isEmpty()) { + if (securityGroupIdsBuilder_.isEmpty()) { + securityGroupIdsBuilder_.dispose(); + securityGroupIdsBuilder_ = null; + securityGroupIds_ = other.securityGroupIds_; + bitField0_ = (bitField0_ & ~0x00000040); + securityGroupIdsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecurityGroupIdsFieldBuilder() : null; + } else { + securityGroupIdsBuilder_.addAllMessages(other.securityGroupIds_); + } + } + } + if (allowAddressPairsBuilder_ == null) { + if (!other.allowAddressPairs_.isEmpty()) { + if (allowAddressPairs_.isEmpty()) { + allowAddressPairs_ = other.allowAddressPairs_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureAllowAddressPairsIsMutable(); + allowAddressPairs_.addAll(other.allowAddressPairs_); + } + onChanged(); + } + } else { + if (!other.allowAddressPairs_.isEmpty()) { + if (allowAddressPairsBuilder_.isEmpty()) { + allowAddressPairsBuilder_.dispose(); + allowAddressPairsBuilder_ = null; + allowAddressPairs_ = other.allowAddressPairs_; + bitField0_ = (bitField0_ & ~0x00000080); + allowAddressPairsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAllowAddressPairsFieldBuilder() : null; + } else { + allowAddressPairsBuilder_.addAllMessages(other.allowAddressPairs_); + } + } + } + if (extraDhcpOptionsBuilder_ == null) { + if (!other.extraDhcpOptions_.isEmpty()) { + if (extraDhcpOptions_.isEmpty()) { + extraDhcpOptions_ = other.extraDhcpOptions_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureExtraDhcpOptionsIsMutable(); + extraDhcpOptions_.addAll(other.extraDhcpOptions_); + } + onChanged(); + } + } else { + if (!other.extraDhcpOptions_.isEmpty()) { + if (extraDhcpOptionsBuilder_.isEmpty()) { + extraDhcpOptionsBuilder_.dispose(); + extraDhcpOptionsBuilder_ = null; + extraDhcpOptions_ = other.extraDhcpOptions_; + bitField0_ = (bitField0_ & ~0x00000100); + extraDhcpOptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExtraDhcpOptionsFieldBuilder() : null; + } else { + extraDhcpOptionsBuilder_.addAllMessages(other.extraDhcpOptions_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.portstate.PortConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.portstate.PortConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + * optional string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string project_id = 1; + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * optional string project_id = 1; + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * optional string project_id = 1; + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object networkId_ = ""; + /** + * optional string network_id = 2; + */ + public java.lang.String getNetworkId() { + java.lang.Object ref = networkId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string network_id = 2; + */ + public com.google.protobuf.ByteString + getNetworkIdBytes() { + java.lang.Object ref = networkId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + networkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string network_id = 2; + */ + public Builder setNetworkId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + networkId_ = value; + onChanged(); + return this; + } + /** + * optional string network_id = 2; + */ + public Builder clearNetworkId() { + + networkId_ = getDefaultInstance().getNetworkId(); + onChanged(); + return this; + } + /** + * optional string network_id = 2; + */ + public Builder setNetworkIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + networkId_ = value; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * optional string id = 3; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 3; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 3; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 3; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 3; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * optional string name = 4; + */ + 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; + } + } + /** + * optional string name = 4; + */ + 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; + } + } + /** + * optional string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 4; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean adminStateUp_ ; + /** + * optional bool admin_state_up = 5; + */ + public boolean getAdminStateUp() { + return adminStateUp_; + } + /** + * optional bool admin_state_up = 5; + */ + public Builder setAdminStateUp(boolean value) { + + adminStateUp_ = value; + onChanged(); + return this; + } + /** + * optional bool admin_state_up = 5; + */ + public Builder clearAdminStateUp() { + + adminStateUp_ = false; + onChanged(); + return this; + } + + private java.util.List fixedIps_ = + java.util.Collections.emptyList(); + private void ensureFixedIpsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + fixedIps_ = new java.util.ArrayList(fixedIps_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder> fixedIpsBuilder_; + + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public java.util.List getFixedIpsList() { + if (fixedIpsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fixedIps_); + } else { + return fixedIpsBuilder_.getMessageList(); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public int getFixedIpsCount() { + if (fixedIpsBuilder_ == null) { + return fixedIps_.size(); + } else { + return fixedIpsBuilder_.getCount(); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getFixedIps(int index) { + if (fixedIpsBuilder_ == null) { + return fixedIps_.get(index); + } else { + return fixedIpsBuilder_.getMessage(index); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public Builder setFixedIps( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp value) { + if (fixedIpsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFixedIpsIsMutable(); + fixedIps_.set(index, value); + onChanged(); + } else { + fixedIpsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public Builder setFixedIps( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder builderForValue) { + if (fixedIpsBuilder_ == null) { + ensureFixedIpsIsMutable(); + fixedIps_.set(index, builderForValue.build()); + onChanged(); + } else { + fixedIpsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public Builder addFixedIps(com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp value) { + if (fixedIpsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFixedIpsIsMutable(); + fixedIps_.add(value); + onChanged(); + } else { + fixedIpsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public Builder addFixedIps( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp value) { + if (fixedIpsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFixedIpsIsMutable(); + fixedIps_.add(index, value); + onChanged(); + } else { + fixedIpsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public Builder addFixedIps( + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder builderForValue) { + if (fixedIpsBuilder_ == null) { + ensureFixedIpsIsMutable(); + fixedIps_.add(builderForValue.build()); + onChanged(); + } else { + fixedIpsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public Builder addFixedIps( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder builderForValue) { + if (fixedIpsBuilder_ == null) { + ensureFixedIpsIsMutable(); + fixedIps_.add(index, builderForValue.build()); + onChanged(); + } else { + fixedIpsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public Builder addAllFixedIps( + java.lang.Iterable values) { + if (fixedIpsBuilder_ == null) { + ensureFixedIpsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fixedIps_); + onChanged(); + } else { + fixedIpsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public Builder clearFixedIps() { + if (fixedIpsBuilder_ == null) { + fixedIps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + fixedIpsBuilder_.clear(); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public Builder removeFixedIps(int index) { + if (fixedIpsBuilder_ == null) { + ensureFixedIpsIsMutable(); + fixedIps_.remove(index); + onChanged(); + } else { + fixedIpsBuilder_.remove(index); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder getFixedIpsBuilder( + int index) { + return getFixedIpsFieldBuilder().getBuilder(index); + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( + int index) { + if (fixedIpsBuilder_ == null) { + return fixedIps_.get(index); } else { + return fixedIpsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public java.util.List + getFixedIpsOrBuilderList() { + if (fixedIpsBuilder_ != null) { + return fixedIpsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fixedIps_); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder addFixedIpsBuilder() { + return getFixedIpsFieldBuilder().addBuilder( + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder addFixedIpsBuilder( + int index) { + return getFixedIpsFieldBuilder().addBuilder( + index, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; + */ + public java.util.List + getFixedIpsBuilderList() { + return getFixedIpsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder> + getFixedIpsFieldBuilder() { + if (fixedIpsBuilder_ == null) { + fixedIpsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder>( + fixedIps_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + fixedIps_ = null; + } + return fixedIpsBuilder_; + } + + private java.util.List securityGroupIds_ = + java.util.Collections.emptyList(); + private void ensureSecurityGroupIdsIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + securityGroupIds_ = new java.util.ArrayList(securityGroupIds_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder> securityGroupIdsBuilder_; + + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public java.util.List getSecurityGroupIdsList() { + if (securityGroupIdsBuilder_ == null) { + return java.util.Collections.unmodifiableList(securityGroupIds_); + } else { + return securityGroupIdsBuilder_.getMessageList(); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public int getSecurityGroupIdsCount() { + if (securityGroupIdsBuilder_ == null) { + return securityGroupIds_.size(); + } else { + return securityGroupIdsBuilder_.getCount(); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index) { + if (securityGroupIdsBuilder_ == null) { + return securityGroupIds_.get(index); + } else { + return securityGroupIdsBuilder_.getMessage(index); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public Builder setSecurityGroupIds( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId value) { + if (securityGroupIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.set(index, value); + onChanged(); + } else { + securityGroupIdsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public Builder setSecurityGroupIds( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder builderForValue) { + if (securityGroupIdsBuilder_ == null) { + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.set(index, builderForValue.build()); + onChanged(); + } else { + securityGroupIdsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public Builder addSecurityGroupIds(com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId value) { + if (securityGroupIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.add(value); + onChanged(); + } else { + securityGroupIdsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public Builder addSecurityGroupIds( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId value) { + if (securityGroupIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.add(index, value); + onChanged(); + } else { + securityGroupIdsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public Builder addSecurityGroupIds( + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder builderForValue) { + if (securityGroupIdsBuilder_ == null) { + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.add(builderForValue.build()); + onChanged(); + } else { + securityGroupIdsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public Builder addSecurityGroupIds( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder builderForValue) { + if (securityGroupIdsBuilder_ == null) { + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.add(index, builderForValue.build()); + onChanged(); + } else { + securityGroupIdsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public Builder addAllSecurityGroupIds( + java.lang.Iterable values) { + if (securityGroupIdsBuilder_ == null) { + ensureSecurityGroupIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, securityGroupIds_); + onChanged(); + } else { + securityGroupIdsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public Builder clearSecurityGroupIds() { + if (securityGroupIdsBuilder_ == null) { + securityGroupIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + securityGroupIdsBuilder_.clear(); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public Builder removeSecurityGroupIds(int index) { + if (securityGroupIdsBuilder_ == null) { + ensureSecurityGroupIdsIsMutable(); + securityGroupIds_.remove(index); + onChanged(); + } else { + securityGroupIdsBuilder_.remove(index); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder getSecurityGroupIdsBuilder( + int index) { + return getSecurityGroupIdsFieldBuilder().getBuilder(index); + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( + int index) { + if (securityGroupIdsBuilder_ == null) { + return securityGroupIds_.get(index); } else { + return securityGroupIdsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public java.util.List + getSecurityGroupIdsOrBuilderList() { + if (securityGroupIdsBuilder_ != null) { + return securityGroupIdsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(securityGroupIds_); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder addSecurityGroupIdsBuilder() { + return getSecurityGroupIdsFieldBuilder().addBuilder( + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder addSecurityGroupIdsBuilder( + int index) { + return getSecurityGroupIdsFieldBuilder().addBuilder( + index, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; + */ + public java.util.List + getSecurityGroupIdsBuilderList() { + return getSecurityGroupIdsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder> + getSecurityGroupIdsFieldBuilder() { + if (securityGroupIdsBuilder_ == null) { + securityGroupIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder>( + securityGroupIds_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + securityGroupIds_ = null; + } + return securityGroupIdsBuilder_; + } + + private java.util.List allowAddressPairs_ = + java.util.Collections.emptyList(); + private void ensureAllowAddressPairsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + allowAddressPairs_ = new java.util.ArrayList(allowAddressPairs_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder> allowAddressPairsBuilder_; + + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public java.util.List getAllowAddressPairsList() { + if (allowAddressPairsBuilder_ == null) { + return java.util.Collections.unmodifiableList(allowAddressPairs_); + } else { + return allowAddressPairsBuilder_.getMessageList(); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public int getAllowAddressPairsCount() { + if (allowAddressPairsBuilder_ == null) { + return allowAddressPairs_.size(); + } else { + return allowAddressPairsBuilder_.getCount(); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index) { + if (allowAddressPairsBuilder_ == null) { + return allowAddressPairs_.get(index); + } else { + return allowAddressPairsBuilder_.getMessage(index); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public Builder setAllowAddressPairs( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair value) { + if (allowAddressPairsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowAddressPairsIsMutable(); + allowAddressPairs_.set(index, value); + onChanged(); + } else { + allowAddressPairsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public Builder setAllowAddressPairs( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder builderForValue) { + if (allowAddressPairsBuilder_ == null) { + ensureAllowAddressPairsIsMutable(); + allowAddressPairs_.set(index, builderForValue.build()); + onChanged(); + } else { + allowAddressPairsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public Builder addAllowAddressPairs(com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair value) { + if (allowAddressPairsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowAddressPairsIsMutable(); + allowAddressPairs_.add(value); + onChanged(); + } else { + allowAddressPairsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public Builder addAllowAddressPairs( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair value) { + if (allowAddressPairsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowAddressPairsIsMutable(); + allowAddressPairs_.add(index, value); + onChanged(); + } else { + allowAddressPairsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public Builder addAllowAddressPairs( + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder builderForValue) { + if (allowAddressPairsBuilder_ == null) { + ensureAllowAddressPairsIsMutable(); + allowAddressPairs_.add(builderForValue.build()); + onChanged(); + } else { + allowAddressPairsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public Builder addAllowAddressPairs( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder builderForValue) { + if (allowAddressPairsBuilder_ == null) { + ensureAllowAddressPairsIsMutable(); + allowAddressPairs_.add(index, builderForValue.build()); + onChanged(); + } else { + allowAddressPairsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public Builder addAllAllowAddressPairs( + java.lang.Iterable values) { + if (allowAddressPairsBuilder_ == null) { + ensureAllowAddressPairsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowAddressPairs_); + onChanged(); + } else { + allowAddressPairsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public Builder clearAllowAddressPairs() { + if (allowAddressPairsBuilder_ == null) { + allowAddressPairs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + allowAddressPairsBuilder_.clear(); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public Builder removeAllowAddressPairs(int index) { + if (allowAddressPairsBuilder_ == null) { + ensureAllowAddressPairsIsMutable(); + allowAddressPairs_.remove(index); + onChanged(); + } else { + allowAddressPairsBuilder_.remove(index); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder getAllowAddressPairsBuilder( + int index) { + return getAllowAddressPairsFieldBuilder().getBuilder(index); + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( + int index) { + if (allowAddressPairsBuilder_ == null) { + return allowAddressPairs_.get(index); } else { + return allowAddressPairsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public java.util.List + getAllowAddressPairsOrBuilderList() { + if (allowAddressPairsBuilder_ != null) { + return allowAddressPairsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(allowAddressPairs_); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder addAllowAddressPairsBuilder() { + return getAllowAddressPairsFieldBuilder().addBuilder( + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder addAllowAddressPairsBuilder( + int index) { + return getAllowAddressPairsFieldBuilder().addBuilder( + index, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; + */ + public java.util.List + getAllowAddressPairsBuilderList() { + return getAllowAddressPairsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder> + getAllowAddressPairsFieldBuilder() { + if (allowAddressPairsBuilder_ == null) { + allowAddressPairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder>( + allowAddressPairs_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + allowAddressPairs_ = null; + } + return allowAddressPairsBuilder_; + } + + private java.util.List extraDhcpOptions_ = + java.util.Collections.emptyList(); + private void ensureExtraDhcpOptionsIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + extraDhcpOptions_ = new java.util.ArrayList(extraDhcpOptions_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder> extraDhcpOptionsBuilder_; + + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public java.util.List getExtraDhcpOptionsList() { + if (extraDhcpOptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(extraDhcpOptions_); + } else { + return extraDhcpOptionsBuilder_.getMessageList(); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public int getExtraDhcpOptionsCount() { + if (extraDhcpOptionsBuilder_ == null) { + return extraDhcpOptions_.size(); + } else { + return extraDhcpOptionsBuilder_.getCount(); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index) { + if (extraDhcpOptionsBuilder_ == null) { + return extraDhcpOptions_.get(index); + } else { + return extraDhcpOptionsBuilder_.getMessage(index); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public Builder setExtraDhcpOptions( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption value) { + if (extraDhcpOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtraDhcpOptionsIsMutable(); + extraDhcpOptions_.set(index, value); + onChanged(); + } else { + extraDhcpOptionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public Builder setExtraDhcpOptions( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { + if (extraDhcpOptionsBuilder_ == null) { + ensureExtraDhcpOptionsIsMutable(); + extraDhcpOptions_.set(index, builderForValue.build()); + onChanged(); + } else { + extraDhcpOptionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public Builder addExtraDhcpOptions(com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption value) { + if (extraDhcpOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtraDhcpOptionsIsMutable(); + extraDhcpOptions_.add(value); + onChanged(); + } else { + extraDhcpOptionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public Builder addExtraDhcpOptions( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption value) { + if (extraDhcpOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtraDhcpOptionsIsMutable(); + extraDhcpOptions_.add(index, value); + onChanged(); + } else { + extraDhcpOptionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public Builder addExtraDhcpOptions( + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { + if (extraDhcpOptionsBuilder_ == null) { + ensureExtraDhcpOptionsIsMutable(); + extraDhcpOptions_.add(builderForValue.build()); + onChanged(); + } else { + extraDhcpOptionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public Builder addExtraDhcpOptions( + int index, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { + if (extraDhcpOptionsBuilder_ == null) { + ensureExtraDhcpOptionsIsMutable(); + extraDhcpOptions_.add(index, builderForValue.build()); + onChanged(); + } else { + extraDhcpOptionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public Builder addAllExtraDhcpOptions( + java.lang.Iterable values) { + if (extraDhcpOptionsBuilder_ == null) { + ensureExtraDhcpOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, extraDhcpOptions_); + onChanged(); + } else { + extraDhcpOptionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public Builder clearExtraDhcpOptions() { + if (extraDhcpOptionsBuilder_ == null) { + extraDhcpOptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + extraDhcpOptionsBuilder_.clear(); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public Builder removeExtraDhcpOptions(int index) { + if (extraDhcpOptionsBuilder_ == null) { + ensureExtraDhcpOptionsIsMutable(); + extraDhcpOptions_.remove(index); + onChanged(); + } else { + extraDhcpOptionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder getExtraDhcpOptionsBuilder( + int index) { + return getExtraDhcpOptionsFieldBuilder().getBuilder(index); + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( + int index) { + if (extraDhcpOptionsBuilder_ == null) { + return extraDhcpOptions_.get(index); } else { + return extraDhcpOptionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public java.util.List + getExtraDhcpOptionsOrBuilderList() { + if (extraDhcpOptionsBuilder_ != null) { + return extraDhcpOptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(extraDhcpOptions_); + } + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder addExtraDhcpOptionsBuilder() { + return getExtraDhcpOptionsFieldBuilder().addBuilder( + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder addExtraDhcpOptionsBuilder( + int index) { + return getExtraDhcpOptionsFieldBuilder().addBuilder( + index, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; + */ + public java.util.List + getExtraDhcpOptionsBuilderList() { + return getExtraDhcpOptionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder> + getExtraDhcpOptionsFieldBuilder() { + if (extraDhcpOptionsBuilder_ == null) { + extraDhcpOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder>( + extraDhcpOptions_, + ((bitField0_ & 0x00000100) == 0x00000100), + getParentForChildren(), + isClean()); + extraDhcpOptions_ = null; + } + return extraDhcpOptionsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.PortConfiguration) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration) + private static final com.futurewei.alioth.controller.portstate.PortConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.portstate.PortConfiguration(); + } + + public static com.futurewei.alioth.controller.portstate.PortConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PortConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PortConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.portstate.PortConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PortStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.PortState) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + int getOperationTypeValue(); + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + com.futurewei.alioth.controller.common.OperationType getOperationType(); + + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + boolean hasConfiguration(); + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + com.futurewei.alioth.controller.portstate.PortConfiguration getConfiguration(); + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder getConfigurationOrBuilder(); + } + /** + * Protobuf type {@code aliothcontroller.PortState} + */ + public static final class PortState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.PortState) + PortStateOrBuilder { + // Use PortState.newBuilder() to construct. + private PortState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PortState() { + operationType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private PortState( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + operationType_ = rawValue; + break; + } + case 18: { + com.futurewei.alioth.controller.portstate.PortConfiguration.Builder subBuilder = null; + if (configuration_ != null) { + subBuilder = configuration_.toBuilder(); + } + configuration_ = input.readMessage(com.futurewei.alioth.controller.portstate.PortConfiguration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configuration_); + configuration_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortState_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.portstate.PortState.class, com.futurewei.alioth.controller.portstate.PortState.Builder.class); + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 1; + private int operationType_; + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public int getOperationTypeValue() { + return operationType_; + } + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public com.futurewei.alioth.controller.common.OperationType getOperationType() { + com.futurewei.alioth.controller.common.OperationType result = com.futurewei.alioth.controller.common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.common.OperationType.UNRECOGNIZED : result; + } + + public static final int CONFIGURATION_FIELD_NUMBER = 2; + private com.futurewei.alioth.controller.portstate.PortConfiguration configuration_; + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + public boolean hasConfiguration() { + return configuration_ != null; + } + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration getConfiguration() { + return configuration_ == null ? com.futurewei.alioth.controller.portstate.PortConfiguration.getDefaultInstance() : configuration_; + } + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder getConfigurationOrBuilder() { + return getConfiguration(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operationType_ != com.futurewei.alioth.controller.common.OperationType.CREATE.getNumber()) { + output.writeEnum(1, operationType_); + } + if (configuration_ != null) { + output.writeMessage(2, getConfiguration()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operationType_ != com.futurewei.alioth.controller.common.OperationType.CREATE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operationType_); + } + if (configuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfiguration()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.portstate.PortState)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.portstate.PortState other = (com.futurewei.alioth.controller.portstate.PortState) obj; + + boolean result = true; + result = result && operationType_ == other.operationType_; + result = result && (hasConfiguration() == other.hasConfiguration()); + if (hasConfiguration()) { + result = result && getConfiguration() + .equals(other.getConfiguration()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + operationType_; + if (hasConfiguration()) { + hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getConfiguration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.portstate.PortState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.portstate.PortState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.portstate.PortState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.portstate.PortState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.portstate.PortState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortState 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 com.futurewei.alioth.controller.portstate.PortState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortState 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 com.futurewei.alioth.controller.portstate.PortState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.portstate.PortState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.portstate.PortState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.PortState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.PortState) + com.futurewei.alioth.controller.portstate.PortStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortState_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.portstate.PortState.class, com.futurewei.alioth.controller.portstate.PortState.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.portstate.PortState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + operationType_ = 0; + + if (configurationBuilder_ == null) { + configuration_ = null; + } else { + configuration_ = null; + configurationBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortState_descriptor; + } + + public com.futurewei.alioth.controller.portstate.PortState getDefaultInstanceForType() { + return com.futurewei.alioth.controller.portstate.PortState.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.portstate.PortState build() { + com.futurewei.alioth.controller.portstate.PortState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.portstate.PortState buildPartial() { + com.futurewei.alioth.controller.portstate.PortState result = new com.futurewei.alioth.controller.portstate.PortState(this); + result.operationType_ = operationType_; + if (configurationBuilder_ == null) { + result.configuration_ = configuration_; + } else { + result.configuration_ = configurationBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.portstate.PortState) { + return mergeFrom((com.futurewei.alioth.controller.portstate.PortState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.portstate.PortState other) { + if (other == com.futurewei.alioth.controller.portstate.PortState.getDefaultInstance()) return this; + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (other.hasConfiguration()) { + mergeConfiguration(other.getConfiguration()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.portstate.PortState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.portstate.PortState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operationType_ = 0; + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public int getOperationTypeValue() { + return operationType_; + } + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public Builder setOperationTypeValue(int value) { + operationType_ = value; + onChanged(); + return this; + } + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public com.futurewei.alioth.controller.common.OperationType getOperationType() { + com.futurewei.alioth.controller.common.OperationType result = com.futurewei.alioth.controller.common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.common.OperationType.UNRECOGNIZED : result; + } + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public Builder setOperationType(com.futurewei.alioth.controller.common.OperationType value) { + if (value == null) { + throw new NullPointerException(); + } + + operationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public Builder clearOperationType() { + + operationType_ = 0; + onChanged(); + return this; + } + + private com.futurewei.alioth.controller.portstate.PortConfiguration configuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration, com.futurewei.alioth.controller.portstate.PortConfiguration.Builder, com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder> configurationBuilder_; + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + public boolean hasConfiguration() { + return configurationBuilder_ != null || configuration_ != null; + } + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration getConfiguration() { + if (configurationBuilder_ == null) { + return configuration_ == null ? com.futurewei.alioth.controller.portstate.PortConfiguration.getDefaultInstance() : configuration_; + } else { + return configurationBuilder_.getMessage(); + } + } + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + public Builder setConfiguration(com.futurewei.alioth.controller.portstate.PortConfiguration value) { + if (configurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configuration_ = value; + onChanged(); + } else { + configurationBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + public Builder setConfiguration( + com.futurewei.alioth.controller.portstate.PortConfiguration.Builder builderForValue) { + if (configurationBuilder_ == null) { + configuration_ = builderForValue.build(); + onChanged(); + } else { + configurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + public Builder mergeConfiguration(com.futurewei.alioth.controller.portstate.PortConfiguration value) { + if (configurationBuilder_ == null) { + if (configuration_ != null) { + configuration_ = + com.futurewei.alioth.controller.portstate.PortConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + } else { + configuration_ = value; + } + onChanged(); + } else { + configurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + public Builder clearConfiguration() { + if (configurationBuilder_ == null) { + configuration_ = null; + onChanged(); + } else { + configuration_ = null; + configurationBuilder_ = null; + } + + return this; + } + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.portstate.PortConfiguration.Builder getConfigurationBuilder() { + + onChanged(); + return getConfigurationFieldBuilder().getBuilder(); + } + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder getConfigurationOrBuilder() { + if (configurationBuilder_ != null) { + return configurationBuilder_.getMessageOrBuilder(); + } else { + return configuration_ == null ? + com.futurewei.alioth.controller.portstate.PortConfiguration.getDefaultInstance() : configuration_; + } + } + /** + * optional .aliothcontroller.PortConfiguration configuration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration, com.futurewei.alioth.controller.portstate.PortConfiguration.Builder, com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder> + getConfigurationFieldBuilder() { + if (configurationBuilder_ == null) { + configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.portstate.PortConfiguration, com.futurewei.alioth.controller.portstate.PortConfiguration.Builder, com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder>( + getConfiguration(), + getParentForChildren(), + isClean()); + configuration_ = null; + } + return configurationBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.PortState) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.PortState) + private static final com.futurewei.alioth.controller.portstate.PortState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.portstate.PortState(); + } + + public static com.futurewei.alioth.controller.portstate.PortState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PortState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PortState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.portstate.PortState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_PortConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_PortConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_PortConfiguration_FixedIp_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_PortState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_PortState_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\017portstate.proto\022\020aliothcontroller\032\014com" + + "mon.proto\"\340\004\n\021PortConfiguration\022\022\n\nproje" + + "ct_id\030\001 \001(\t\022\022\n\nnetwork_id\030\002 \001(\t\022\n\n\002id\030\003 " + + "\001(\t\022\014\n\004name\030\004 \001(\t\022\026\n\016admin_state_up\030\005 \001(" + + "\010\022>\n\tfixed_ips\030\006 \003(\0132+.aliothcontroller." + + "PortConfiguration.FixedIp\022O\n\022security_gr" + + "oup_ids\030\007 \003(\01323.aliothcontroller.PortCon" + + "figuration.SecurityGroupId\022Q\n\023allow_addr" + + "ess_pairs\030\010 \003(\01324.aliothcontroller.PortC" + + "onfiguration.AllowAddressPair\022O\n\022extra_d", + "hcp_options\030\t \003(\01323.aliothcontroller.Por" + + "tConfiguration.ExtraDhcpOption\0320\n\007FixedI" + + "p\022\021\n\tsubnet_id\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t" + + "\032\035\n\017SecurityGroupId\022\n\n\002id\030\001 \001(\t\032;\n\020Allow" + + "AddressPair\022\022\n\nip_address\030\001 \001(\t\022\023\n\013mac_a" + + "ddress\030\002 \001(\t\032.\n\017ExtraDhcpOption\022\014\n\004name\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\200\001\n\tPortState\0227\n\016op" + + "eration_type\030\001 \001(\0162\037.aliothcontroller.Op" + + "erationType\022:\n\rconfiguration\030\002 \001(\0132#.ali" + + "othcontroller.PortConfigurationB,\n\037com.f", + "uturewei.alioth.controllerB\tportstateb\006p" + + "roto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.futurewei.alioth.controller.common.getDescriptor(), + }, assigner); + internal_static_aliothcontroller_PortConfiguration_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_aliothcontroller_PortConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_PortConfiguration_descriptor, + new java.lang.String[] { "ProjectId", "NetworkId", "Id", "Name", "AdminStateUp", "FixedIps", "SecurityGroupIds", "AllowAddressPairs", "ExtraDhcpOptions", }); + internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor = + internal_static_aliothcontroller_PortConfiguration_descriptor.getNestedTypes().get(0); + internal_static_aliothcontroller_PortConfiguration_FixedIp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor, + new java.lang.String[] { "SubnetId", "IpAddress", }); + internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor = + internal_static_aliothcontroller_PortConfiguration_descriptor.getNestedTypes().get(1); + internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor, + new java.lang.String[] { "Id", }); + internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor = + internal_static_aliothcontroller_PortConfiguration_descriptor.getNestedTypes().get(2); + internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor, + new java.lang.String[] { "IpAddress", "MacAddress", }); + internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor = + internal_static_aliothcontroller_PortConfiguration_descriptor.getNestedTypes().get(3); + internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_aliothcontroller_PortState_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_aliothcontroller_PortState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_PortState_descriptor, + new java.lang.String[] { "OperationType", "Configuration", }); + com.futurewei.alioth.controller.common.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/com/futurewei/alioth/controller/securitygroupstate.java b/src/com/futurewei/alioth/controller/securitygroupstate.java new file mode 100644 index 000000000..bc10580c2 --- /dev/null +++ b/src/com/futurewei/alioth/controller/securitygroupstate.java @@ -0,0 +1,3431 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: securitygroupstate.proto + +package com.futurewei.alioth.controller; + +public final class securitygroupstate { + private securitygroupstate() {} + 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 SecurityGroupConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.SecurityGroupConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string project_id = 1; + */ + java.lang.String getProjectId(); + /** + * optional string project_id = 1; + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + * optional string vpc_id = 2; + */ + java.lang.String getVpcId(); + /** + * optional string vpc_id = 2; + */ + com.google.protobuf.ByteString + getVpcIdBytes(); + + /** + * optional string name = 3; + */ + java.lang.String getName(); + /** + * optional string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + java.util.List + getSecurityGroupRulesList(); + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index); + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + int getSecurityGroupRulesCount(); + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + java.util.List + getSecurityGroupRulesOrBuilderList(); + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( + int index); + } + /** + * Protobuf type {@code aliothcontroller.SecurityGroupConfiguration} + */ + public static final class SecurityGroupConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.SecurityGroupConfiguration) + SecurityGroupConfigurationOrBuilder { + // Use SecurityGroupConfiguration.newBuilder() to construct. + private SecurityGroupConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecurityGroupConfiguration() { + projectId_ = ""; + vpcId_ = ""; + name_ = ""; + securityGroupRules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SecurityGroupConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + vpcId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + securityGroupRules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + securityGroupRules_.add( + input.readMessage(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + securityGroupRules_ = java.util.Collections.unmodifiableList(securityGroupRules_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.class, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder.class); + } + + /** + * Protobuf enum {@code aliothcontroller.SecurityGroupConfiguration.Direction} + */ + public enum Direction + implements com.google.protobuf.ProtocolMessageEnum { + /** + * EGRESS = 0; + */ + EGRESS(0), + /** + * INGRESS = 1; + */ + INGRESS(1), + UNRECOGNIZED(-1), + ; + + /** + * EGRESS = 0; + */ + public static final int EGRESS_VALUE = 0; + /** + * INGRESS = 1; + */ + public static final int INGRESS_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Direction valueOf(int value) { + return forNumber(value); + } + + public static Direction forNumber(int value) { + switch (value) { + case 0: return EGRESS; + case 1: return INGRESS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Direction> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Direction findValueByNumber(int number) { + return Direction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.getDescriptor().getEnumTypes().get(0); + } + + private static final Direction[] VALUES = values(); + + public static Direction valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Direction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aliothcontroller.SecurityGroupConfiguration.Direction) + } + + public interface SecurityGroupRuleOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string security_group_id = 1; + */ + java.lang.String getSecurityGroupId(); + /** + * optional string security_group_id = 1; + */ + com.google.protobuf.ByteString + getSecurityGroupIdBytes(); + + /** + * optional string id = 2; + */ + java.lang.String getId(); + /** + * optional string id = 2; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; + */ + int getDirectionValue(); + /** + * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; + */ + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction getDirection(); + + /** + * optional .aliothcontroller.EtherType ethertype = 4; + */ + int getEthertypeValue(); + /** + * optional .aliothcontroller.EtherType ethertype = 4; + */ + com.futurewei.alioth.controller.common.EtherType getEthertype(); + + /** + * optional .aliothcontroller.Protocol protocol = 5; + */ + int getProtocolValue(); + /** + * optional .aliothcontroller.Protocol protocol = 5; + */ + com.futurewei.alioth.controller.common.Protocol getProtocol(); + + /** + * optional int32 port_range_min = 6; + */ + int getPortRangeMin(); + + /** + * optional int32 port_range_max = 7; + */ + int getPortRangeMax(); + + /** + * optional string remote_ip_prefix = 8; + */ + java.lang.String getRemoteIpPrefix(); + /** + * optional string remote_ip_prefix = 8; + */ + com.google.protobuf.ByteString + getRemoteIpPrefixBytes(); + + /** + * optional string remote_group_id = 9; + */ + java.lang.String getRemoteGroupId(); + /** + * optional string remote_group_id = 9; + */ + com.google.protobuf.ByteString + getRemoteGroupIdBytes(); + } + /** + * Protobuf type {@code aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule} + */ + public static final class SecurityGroupRule extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule) + SecurityGroupRuleOrBuilder { + // Use SecurityGroupRule.newBuilder() to construct. + private SecurityGroupRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecurityGroupRule() { + securityGroupId_ = ""; + id_ = ""; + direction_ = 0; + ethertype_ = 0; + protocol_ = 0; + portRangeMin_ = 0; + portRangeMax_ = 0; + remoteIpPrefix_ = ""; + remoteGroupId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SecurityGroupRule( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + securityGroupId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + direction_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); + + ethertype_ = rawValue; + break; + } + case 40: { + int rawValue = input.readEnum(); + + protocol_ = rawValue; + break; + } + case 48: { + + portRangeMin_ = input.readInt32(); + break; + } + case 56: { + + portRangeMax_ = input.readInt32(); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteIpPrefix_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteGroupId_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.class, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder.class); + } + + public static final int SECURITY_GROUP_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object securityGroupId_; + /** + * optional string security_group_id = 1; + */ + public java.lang.String getSecurityGroupId() { + java.lang.Object ref = securityGroupId_; + 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(); + securityGroupId_ = s; + return s; + } + } + /** + * optional string security_group_id = 1; + */ + public com.google.protobuf.ByteString + getSecurityGroupIdBytes() { + java.lang.Object ref = securityGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + securityGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + private volatile java.lang.Object id_; + /** + * optional string id = 2; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * optional string id = 2; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIRECTION_FIELD_NUMBER = 3; + private int direction_; + /** + * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; + */ + public int getDirectionValue() { + return direction_; + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction getDirection() { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction result = com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction.valueOf(direction_); + return result == null ? com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction.UNRECOGNIZED : result; + } + + public static final int ETHERTYPE_FIELD_NUMBER = 4; + private int ethertype_; + /** + * optional .aliothcontroller.EtherType ethertype = 4; + */ + public int getEthertypeValue() { + return ethertype_; + } + /** + * optional .aliothcontroller.EtherType ethertype = 4; + */ + public com.futurewei.alioth.controller.common.EtherType getEthertype() { + com.futurewei.alioth.controller.common.EtherType result = com.futurewei.alioth.controller.common.EtherType.valueOf(ethertype_); + return result == null ? com.futurewei.alioth.controller.common.EtherType.UNRECOGNIZED : result; + } + + public static final int PROTOCOL_FIELD_NUMBER = 5; + private int protocol_; + /** + * optional .aliothcontroller.Protocol protocol = 5; + */ + public int getProtocolValue() { + return protocol_; + } + /** + * optional .aliothcontroller.Protocol protocol = 5; + */ + public com.futurewei.alioth.controller.common.Protocol getProtocol() { + com.futurewei.alioth.controller.common.Protocol result = com.futurewei.alioth.controller.common.Protocol.valueOf(protocol_); + return result == null ? com.futurewei.alioth.controller.common.Protocol.UNRECOGNIZED : result; + } + + public static final int PORT_RANGE_MIN_FIELD_NUMBER = 6; + private int portRangeMin_; + /** + * optional int32 port_range_min = 6; + */ + public int getPortRangeMin() { + return portRangeMin_; + } + + public static final int PORT_RANGE_MAX_FIELD_NUMBER = 7; + private int portRangeMax_; + /** + * optional int32 port_range_max = 7; + */ + public int getPortRangeMax() { + return portRangeMax_; + } + + public static final int REMOTE_IP_PREFIX_FIELD_NUMBER = 8; + private volatile java.lang.Object remoteIpPrefix_; + /** + * optional string remote_ip_prefix = 8; + */ + public java.lang.String getRemoteIpPrefix() { + java.lang.Object ref = remoteIpPrefix_; + 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(); + remoteIpPrefix_ = s; + return s; + } + } + /** + * optional string remote_ip_prefix = 8; + */ + public com.google.protobuf.ByteString + getRemoteIpPrefixBytes() { + java.lang.Object ref = remoteIpPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteIpPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REMOTE_GROUP_ID_FIELD_NUMBER = 9; + private volatile java.lang.Object remoteGroupId_; + /** + * optional string remote_group_id = 9; + */ + public java.lang.String getRemoteGroupId() { + java.lang.Object ref = remoteGroupId_; + 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(); + remoteGroupId_ = s; + return s; + } + } + /** + * optional string remote_group_id = 9; + */ + public com.google.protobuf.ByteString + getRemoteGroupIdBytes() { + java.lang.Object ref = remoteGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSecurityGroupIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, securityGroupId_); + } + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); + } + if (direction_ != com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction.EGRESS.getNumber()) { + output.writeEnum(3, direction_); + } + if (ethertype_ != com.futurewei.alioth.controller.common.EtherType.IPV4.getNumber()) { + output.writeEnum(4, ethertype_); + } + if (protocol_ != com.futurewei.alioth.controller.common.Protocol.TCP.getNumber()) { + output.writeEnum(5, protocol_); + } + if (portRangeMin_ != 0) { + output.writeInt32(6, portRangeMin_); + } + if (portRangeMax_ != 0) { + output.writeInt32(7, portRangeMax_); + } + if (!getRemoteIpPrefixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, remoteIpPrefix_); + } + if (!getRemoteGroupIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, remoteGroupId_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSecurityGroupIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, securityGroupId_); + } + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); + } + if (direction_ != com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction.EGRESS.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, direction_); + } + if (ethertype_ != com.futurewei.alioth.controller.common.EtherType.IPV4.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, ethertype_); + } + if (protocol_ != com.futurewei.alioth.controller.common.Protocol.TCP.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, protocol_); + } + if (portRangeMin_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, portRangeMin_); + } + if (portRangeMax_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, portRangeMax_); + } + if (!getRemoteIpPrefixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, remoteIpPrefix_); + } + if (!getRemoteGroupIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, remoteGroupId_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule other = (com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule) obj; + + boolean result = true; + result = result && getSecurityGroupId() + .equals(other.getSecurityGroupId()); + result = result && getId() + .equals(other.getId()); + result = result && direction_ == other.direction_; + result = result && ethertype_ == other.ethertype_; + result = result && protocol_ == other.protocol_; + result = result && (getPortRangeMin() + == other.getPortRangeMin()); + result = result && (getPortRangeMax() + == other.getPortRangeMax()); + result = result && getRemoteIpPrefix() + .equals(other.getRemoteIpPrefix()); + result = result && getRemoteGroupId() + .equals(other.getRemoteGroupId()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + SECURITY_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getSecurityGroupId().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + hash = (37 * hash) + ETHERTYPE_FIELD_NUMBER; + hash = (53 * hash) + ethertype_; + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + protocol_; + hash = (37 * hash) + PORT_RANGE_MIN_FIELD_NUMBER; + hash = (53 * hash) + getPortRangeMin(); + hash = (37 * hash) + PORT_RANGE_MAX_FIELD_NUMBER; + hash = (53 * hash) + getPortRangeMax(); + hash = (37 * hash) + REMOTE_IP_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getRemoteIpPrefix().hashCode(); + hash = (37 * hash) + REMOTE_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteGroupId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule 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 com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule 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 com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule) + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.class, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + securityGroupId_ = ""; + + id_ = ""; + + direction_ = 0; + + ethertype_ = 0; + + protocol_ = 0; + + portRangeMin_ = 0; + + portRangeMax_ = 0; + + remoteIpPrefix_ = ""; + + remoteGroupId_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; + } + + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstanceForType() { + return com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule build() { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule buildPartial() { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule result = new com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule(this); + result.securityGroupId_ = securityGroupId_; + result.id_ = id_; + result.direction_ = direction_; + result.ethertype_ = ethertype_; + result.protocol_ = protocol_; + result.portRangeMin_ = portRangeMin_; + result.portRangeMax_ = portRangeMax_; + result.remoteIpPrefix_ = remoteIpPrefix_; + result.remoteGroupId_ = remoteGroupId_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule) { + return mergeFrom((com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule other) { + if (other == com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()) return this; + if (!other.getSecurityGroupId().isEmpty()) { + securityGroupId_ = other.securityGroupId_; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + if (other.ethertype_ != 0) { + setEthertypeValue(other.getEthertypeValue()); + } + if (other.protocol_ != 0) { + setProtocolValue(other.getProtocolValue()); + } + if (other.getPortRangeMin() != 0) { + setPortRangeMin(other.getPortRangeMin()); + } + if (other.getPortRangeMax() != 0) { + setPortRangeMax(other.getPortRangeMax()); + } + if (!other.getRemoteIpPrefix().isEmpty()) { + remoteIpPrefix_ = other.remoteIpPrefix_; + onChanged(); + } + if (!other.getRemoteGroupId().isEmpty()) { + remoteGroupId_ = other.remoteGroupId_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object securityGroupId_ = ""; + /** + * optional string security_group_id = 1; + */ + public java.lang.String getSecurityGroupId() { + java.lang.Object ref = securityGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + securityGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string security_group_id = 1; + */ + public com.google.protobuf.ByteString + getSecurityGroupIdBytes() { + java.lang.Object ref = securityGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + securityGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string security_group_id = 1; + */ + public Builder setSecurityGroupId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + securityGroupId_ = value; + onChanged(); + return this; + } + /** + * optional string security_group_id = 1; + */ + public Builder clearSecurityGroupId() { + + securityGroupId_ = getDefaultInstance().getSecurityGroupId(); + onChanged(); + return this; + } + /** + * optional string security_group_id = 1; + */ + public Builder setSecurityGroupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + securityGroupId_ = value; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * optional string id = 2; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 2; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 2; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 2; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 2; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private int direction_ = 0; + /** + * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; + */ + public int getDirectionValue() { + return direction_; + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; + */ + public Builder setDirectionValue(int value) { + direction_ = value; + onChanged(); + return this; + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction getDirection() { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction result = com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction.valueOf(direction_); + return result == null ? com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction.UNRECOGNIZED : result; + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; + */ + public Builder setDirection(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction value) { + if (value == null) { + throw new NullPointerException(); + } + + direction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; + */ + public Builder clearDirection() { + + direction_ = 0; + onChanged(); + return this; + } + + private int ethertype_ = 0; + /** + * optional .aliothcontroller.EtherType ethertype = 4; + */ + public int getEthertypeValue() { + return ethertype_; + } + /** + * optional .aliothcontroller.EtherType ethertype = 4; + */ + public Builder setEthertypeValue(int value) { + ethertype_ = value; + onChanged(); + return this; + } + /** + * optional .aliothcontroller.EtherType ethertype = 4; + */ + public com.futurewei.alioth.controller.common.EtherType getEthertype() { + com.futurewei.alioth.controller.common.EtherType result = com.futurewei.alioth.controller.common.EtherType.valueOf(ethertype_); + return result == null ? com.futurewei.alioth.controller.common.EtherType.UNRECOGNIZED : result; + } + /** + * optional .aliothcontroller.EtherType ethertype = 4; + */ + public Builder setEthertype(com.futurewei.alioth.controller.common.EtherType value) { + if (value == null) { + throw new NullPointerException(); + } + + ethertype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .aliothcontroller.EtherType ethertype = 4; + */ + public Builder clearEthertype() { + + ethertype_ = 0; + onChanged(); + return this; + } + + private int protocol_ = 0; + /** + * optional .aliothcontroller.Protocol protocol = 5; + */ + public int getProtocolValue() { + return protocol_; + } + /** + * optional .aliothcontroller.Protocol protocol = 5; + */ + public Builder setProtocolValue(int value) { + protocol_ = value; + onChanged(); + return this; + } + /** + * optional .aliothcontroller.Protocol protocol = 5; + */ + public com.futurewei.alioth.controller.common.Protocol getProtocol() { + com.futurewei.alioth.controller.common.Protocol result = com.futurewei.alioth.controller.common.Protocol.valueOf(protocol_); + return result == null ? com.futurewei.alioth.controller.common.Protocol.UNRECOGNIZED : result; + } + /** + * optional .aliothcontroller.Protocol protocol = 5; + */ + public Builder setProtocol(com.futurewei.alioth.controller.common.Protocol value) { + if (value == null) { + throw new NullPointerException(); + } + + protocol_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .aliothcontroller.Protocol protocol = 5; + */ + public Builder clearProtocol() { + + protocol_ = 0; + onChanged(); + return this; + } + + private int portRangeMin_ ; + /** + * optional int32 port_range_min = 6; + */ + public int getPortRangeMin() { + return portRangeMin_; + } + /** + * optional int32 port_range_min = 6; + */ + public Builder setPortRangeMin(int value) { + + portRangeMin_ = value; + onChanged(); + return this; + } + /** + * optional int32 port_range_min = 6; + */ + public Builder clearPortRangeMin() { + + portRangeMin_ = 0; + onChanged(); + return this; + } + + private int portRangeMax_ ; + /** + * optional int32 port_range_max = 7; + */ + public int getPortRangeMax() { + return portRangeMax_; + } + /** + * optional int32 port_range_max = 7; + */ + public Builder setPortRangeMax(int value) { + + portRangeMax_ = value; + onChanged(); + return this; + } + /** + * optional int32 port_range_max = 7; + */ + public Builder clearPortRangeMax() { + + portRangeMax_ = 0; + onChanged(); + return this; + } + + private java.lang.Object remoteIpPrefix_ = ""; + /** + * optional string remote_ip_prefix = 8; + */ + public java.lang.String getRemoteIpPrefix() { + java.lang.Object ref = remoteIpPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteIpPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string remote_ip_prefix = 8; + */ + public com.google.protobuf.ByteString + getRemoteIpPrefixBytes() { + java.lang.Object ref = remoteIpPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteIpPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string remote_ip_prefix = 8; + */ + public Builder setRemoteIpPrefix( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteIpPrefix_ = value; + onChanged(); + return this; + } + /** + * optional string remote_ip_prefix = 8; + */ + public Builder clearRemoteIpPrefix() { + + remoteIpPrefix_ = getDefaultInstance().getRemoteIpPrefix(); + onChanged(); + return this; + } + /** + * optional string remote_ip_prefix = 8; + */ + public Builder setRemoteIpPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteIpPrefix_ = value; + onChanged(); + return this; + } + + private java.lang.Object remoteGroupId_ = ""; + /** + * optional string remote_group_id = 9; + */ + public java.lang.String getRemoteGroupId() { + java.lang.Object ref = remoteGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string remote_group_id = 9; + */ + public com.google.protobuf.ByteString + getRemoteGroupIdBytes() { + java.lang.Object ref = remoteGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string remote_group_id = 9; + */ + public Builder setRemoteGroupId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteGroupId_ = value; + onChanged(); + return this; + } + /** + * optional string remote_group_id = 9; + */ + public Builder clearRemoteGroupId() { + + remoteGroupId_ = getDefaultInstance().getRemoteGroupId(); + onChanged(); + return this; + } + /** + * optional string remote_group_id = 9; + */ + public Builder setRemoteGroupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteGroupId_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule) + private static final com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule(); + } + + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SecurityGroupRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityGroupRule(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * optional string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + * optional string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VPC_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object vpcId_; + /** + * optional string vpc_id = 2; + */ + public java.lang.String getVpcId() { + java.lang.Object ref = vpcId_; + 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(); + vpcId_ = s; + return s; + } + } + /** + * optional string vpc_id = 2; + */ + public com.google.protobuf.ByteString + getVpcIdBytes() { + java.lang.Object ref = vpcId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vpcId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + * optional string name = 3; + */ + 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; + } + } + /** + * optional string name = 3; + */ + 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 SECURITY_GROUP_RULES_FIELD_NUMBER = 4; + private java.util.List securityGroupRules_; + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public java.util.List getSecurityGroupRulesList() { + return securityGroupRules_; + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public java.util.List + getSecurityGroupRulesOrBuilderList() { + return securityGroupRules_; + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public int getSecurityGroupRulesCount() { + return securityGroupRules_.size(); + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index) { + return securityGroupRules_.get(index); + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( + int index) { + return securityGroupRules_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getVpcIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vpcId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + for (int i = 0; i < securityGroupRules_.size(); i++) { + output.writeMessage(4, securityGroupRules_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getVpcIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vpcId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + for (int i = 0; i < securityGroupRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, securityGroupRules_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration other = (com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getVpcId() + .equals(other.getVpcId()); + result = result && getName() + .equals(other.getName()); + result = result && getSecurityGroupRulesList() + .equals(other.getSecurityGroupRulesList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + VPC_ID_FIELD_NUMBER; + hash = (53 * hash) + getVpcId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getSecurityGroupRulesCount() > 0) { + hash = (37 * hash) + SECURITY_GROUP_RULES_FIELD_NUMBER; + hash = (53 * hash) + getSecurityGroupRulesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration 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 com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration 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 com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.SecurityGroupConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.SecurityGroupConfiguration) + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.class, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSecurityGroupRulesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + projectId_ = ""; + + vpcId_ = ""; + + name_ = ""; + + if (securityGroupRulesBuilder_ == null) { + securityGroupRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + securityGroupRulesBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; + } + + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration getDefaultInstanceForType() { + return com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration build() { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration buildPartial() { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration result = new com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.projectId_ = projectId_; + result.vpcId_ = vpcId_; + result.name_ = name_; + if (securityGroupRulesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + securityGroupRules_ = java.util.Collections.unmodifiableList(securityGroupRules_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.securityGroupRules_ = securityGroupRules_; + } else { + result.securityGroupRules_ = securityGroupRulesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration) { + return mergeFrom((com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration other) { + if (other == com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getVpcId().isEmpty()) { + vpcId_ = other.vpcId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (securityGroupRulesBuilder_ == null) { + if (!other.securityGroupRules_.isEmpty()) { + if (securityGroupRules_.isEmpty()) { + securityGroupRules_ = other.securityGroupRules_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSecurityGroupRulesIsMutable(); + securityGroupRules_.addAll(other.securityGroupRules_); + } + onChanged(); + } + } else { + if (!other.securityGroupRules_.isEmpty()) { + if (securityGroupRulesBuilder_.isEmpty()) { + securityGroupRulesBuilder_.dispose(); + securityGroupRulesBuilder_ = null; + securityGroupRules_ = other.securityGroupRules_; + bitField0_ = (bitField0_ & ~0x00000008); + securityGroupRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecurityGroupRulesFieldBuilder() : null; + } else { + securityGroupRulesBuilder_.addAllMessages(other.securityGroupRules_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + * optional string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string project_id = 1; + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * optional string project_id = 1; + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * optional string project_id = 1; + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object vpcId_ = ""; + /** + * optional string vpc_id = 2; + */ + public java.lang.String getVpcId() { + java.lang.Object ref = vpcId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string vpc_id = 2; + */ + public com.google.protobuf.ByteString + getVpcIdBytes() { + java.lang.Object ref = vpcId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vpcId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string vpc_id = 2; + */ + public Builder setVpcId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vpcId_ = value; + onChanged(); + return this; + } + /** + * optional string vpc_id = 2; + */ + public Builder clearVpcId() { + + vpcId_ = getDefaultInstance().getVpcId(); + onChanged(); + return this; + } + /** + * optional string vpc_id = 2; + */ + public Builder setVpcIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vpcId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * optional string name = 3; + */ + 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; + } + } + /** + * optional string name = 3; + */ + 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; + } + } + /** + * optional string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.util.List securityGroupRules_ = + java.util.Collections.emptyList(); + private void ensureSecurityGroupRulesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + securityGroupRules_ = new java.util.ArrayList(securityGroupRules_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder> securityGroupRulesBuilder_; + + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public java.util.List getSecurityGroupRulesList() { + if (securityGroupRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(securityGroupRules_); + } else { + return securityGroupRulesBuilder_.getMessageList(); + } + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public int getSecurityGroupRulesCount() { + if (securityGroupRulesBuilder_ == null) { + return securityGroupRules_.size(); + } else { + return securityGroupRulesBuilder_.getCount(); + } + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index) { + if (securityGroupRulesBuilder_ == null) { + return securityGroupRules_.get(index); + } else { + return securityGroupRulesBuilder_.getMessage(index); + } + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public Builder setSecurityGroupRules( + int index, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule value) { + if (securityGroupRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityGroupRulesIsMutable(); + securityGroupRules_.set(index, value); + onChanged(); + } else { + securityGroupRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public Builder setSecurityGroupRules( + int index, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { + if (securityGroupRulesBuilder_ == null) { + ensureSecurityGroupRulesIsMutable(); + securityGroupRules_.set(index, builderForValue.build()); + onChanged(); + } else { + securityGroupRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public Builder addSecurityGroupRules(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule value) { + if (securityGroupRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityGroupRulesIsMutable(); + securityGroupRules_.add(value); + onChanged(); + } else { + securityGroupRulesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public Builder addSecurityGroupRules( + int index, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule value) { + if (securityGroupRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityGroupRulesIsMutable(); + securityGroupRules_.add(index, value); + onChanged(); + } else { + securityGroupRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public Builder addSecurityGroupRules( + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { + if (securityGroupRulesBuilder_ == null) { + ensureSecurityGroupRulesIsMutable(); + securityGroupRules_.add(builderForValue.build()); + onChanged(); + } else { + securityGroupRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public Builder addSecurityGroupRules( + int index, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { + if (securityGroupRulesBuilder_ == null) { + ensureSecurityGroupRulesIsMutable(); + securityGroupRules_.add(index, builderForValue.build()); + onChanged(); + } else { + securityGroupRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public Builder addAllSecurityGroupRules( + java.lang.Iterable values) { + if (securityGroupRulesBuilder_ == null) { + ensureSecurityGroupRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, securityGroupRules_); + onChanged(); + } else { + securityGroupRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public Builder clearSecurityGroupRules() { + if (securityGroupRulesBuilder_ == null) { + securityGroupRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + securityGroupRulesBuilder_.clear(); + } + return this; + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public Builder removeSecurityGroupRules(int index) { + if (securityGroupRulesBuilder_ == null) { + ensureSecurityGroupRulesIsMutable(); + securityGroupRules_.remove(index); + onChanged(); + } else { + securityGroupRulesBuilder_.remove(index); + } + return this; + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder getSecurityGroupRulesBuilder( + int index) { + return getSecurityGroupRulesFieldBuilder().getBuilder(index); + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( + int index) { + if (securityGroupRulesBuilder_ == null) { + return securityGroupRules_.get(index); } else { + return securityGroupRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public java.util.List + getSecurityGroupRulesOrBuilderList() { + if (securityGroupRulesBuilder_ != null) { + return securityGroupRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(securityGroupRules_); + } + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder addSecurityGroupRulesBuilder() { + return getSecurityGroupRulesFieldBuilder().addBuilder( + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder addSecurityGroupRulesBuilder( + int index) { + return getSecurityGroupRulesFieldBuilder().addBuilder( + index, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; + */ + public java.util.List + getSecurityGroupRulesBuilderList() { + return getSecurityGroupRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder> + getSecurityGroupRulesFieldBuilder() { + if (securityGroupRulesBuilder_ == null) { + securityGroupRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder>( + securityGroupRules_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + securityGroupRules_ = null; + } + return securityGroupRulesBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.SecurityGroupConfiguration) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.SecurityGroupConfiguration) + private static final com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration(); + } + + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SecurityGroupConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityGroupConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecurityGroupStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.SecurityGroupState) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + */ + int getOperationTypeValue(); + /** + * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + */ + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType getOperationType(); + + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + boolean hasConfiguration(); + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration getConfiguration(); + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder(); + } + /** + * Protobuf type {@code aliothcontroller.SecurityGroupState} + */ + public static final class SecurityGroupState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.SecurityGroupState) + SecurityGroupStateOrBuilder { + // Use SecurityGroupState.newBuilder() to construct. + private SecurityGroupState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecurityGroupState() { + operationType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SecurityGroupState( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + operationType_ = rawValue; + break; + } + case 18: { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder subBuilder = null; + if (configuration_ != null) { + subBuilder = configuration_.toBuilder(); + } + configuration_ = input.readMessage(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configuration_); + configuration_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.class, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.Builder.class); + } + + /** + * Protobuf enum {@code aliothcontroller.SecurityGroupState.OperationType} + */ + public enum OperationType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CREATE = 0; + */ + CREATE(0), + /** + * UPDATE = 1; + */ + UPDATE(1), + /** + * GET = 2; + */ + GET(2), + /** + * DELETE = 3; + */ + DELETE(3), + UNRECOGNIZED(-1), + ; + + /** + * CREATE = 0; + */ + public static final int CREATE_VALUE = 0; + /** + * UPDATE = 1; + */ + public static final int UPDATE_VALUE = 1; + /** + * GET = 2; + */ + public static final int GET_VALUE = 2; + /** + * DELETE = 3; + */ + public static final int DELETE_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperationType valueOf(int value) { + return forNumber(value); + } + + public static OperationType forNumber(int value) { + switch (value) { + case 0: return CREATE; + case 1: return UPDATE; + case 2: return GET; + case 3: return DELETE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + OperationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationType findValueByNumber(int number) { + return OperationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.getDescriptor().getEnumTypes().get(0); + } + + private static final OperationType[] VALUES = values(); + + public static OperationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OperationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aliothcontroller.SecurityGroupState.OperationType) + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 1; + private int operationType_; + /** + * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + */ + public int getOperationTypeValue() { + return operationType_; + } + /** + * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType getOperationType() { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType result = com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType.UNRECOGNIZED : result; + } + + public static final int CONFIGURATION_FIELD_NUMBER = 2; + private com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration configuration_; + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + public boolean hasConfiguration() { + return configuration_ != null; + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration getConfiguration() { + return configuration_ == null ? com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance() : configuration_; + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder() { + return getConfiguration(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operationType_ != com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType.CREATE.getNumber()) { + output.writeEnum(1, operationType_); + } + if (configuration_ != null) { + output.writeMessage(2, getConfiguration()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operationType_ != com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType.CREATE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operationType_); + } + if (configuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfiguration()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState other = (com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState) obj; + + boolean result = true; + result = result && operationType_ == other.operationType_; + result = result && (hasConfiguration() == other.hasConfiguration()); + if (hasConfiguration()) { + result = result && getConfiguration() + .equals(other.getConfiguration()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + operationType_; + if (hasConfiguration()) { + hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getConfiguration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState 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 com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState 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 com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.SecurityGroupState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.SecurityGroupState) + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.class, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + operationType_ = 0; + + if (configurationBuilder_ == null) { + configuration_ = null; + } else { + configuration_ = null; + configurationBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_descriptor; + } + + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState getDefaultInstanceForType() { + return com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState build() { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState buildPartial() { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState result = new com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState(this); + result.operationType_ = operationType_; + if (configurationBuilder_ == null) { + result.configuration_ = configuration_; + } else { + result.configuration_ = configurationBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState) { + return mergeFrom((com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState other) { + if (other == com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.getDefaultInstance()) return this; + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (other.hasConfiguration()) { + mergeConfiguration(other.getConfiguration()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operationType_ = 0; + /** + * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + */ + public int getOperationTypeValue() { + return operationType_; + } + /** + * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + */ + public Builder setOperationTypeValue(int value) { + operationType_ = value; + onChanged(); + return this; + } + /** + * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType getOperationType() { + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType result = com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType.UNRECOGNIZED : result; + } + /** + * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + */ + public Builder setOperationType(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType value) { + if (value == null) { + throw new NullPointerException(); + } + + operationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + */ + public Builder clearOperationType() { + + operationType_ = 0; + onChanged(); + return this; + } + + private com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration configuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder> configurationBuilder_; + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + public boolean hasConfiguration() { + return configurationBuilder_ != null || configuration_ != null; + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration getConfiguration() { + if (configurationBuilder_ == null) { + return configuration_ == null ? com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance() : configuration_; + } else { + return configurationBuilder_.getMessage(); + } + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + public Builder setConfiguration(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration value) { + if (configurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configuration_ = value; + onChanged(); + } else { + configurationBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + public Builder setConfiguration( + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder builderForValue) { + if (configurationBuilder_ == null) { + configuration_ = builderForValue.build(); + onChanged(); + } else { + configurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + public Builder mergeConfiguration(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration value) { + if (configurationBuilder_ == null) { + if (configuration_ != null) { + configuration_ = + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + } else { + configuration_ = value; + } + onChanged(); + } else { + configurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + public Builder clearConfiguration() { + if (configurationBuilder_ == null) { + configuration_ = null; + onChanged(); + } else { + configuration_ = null; + configurationBuilder_ = null; + } + + return this; + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder getConfigurationBuilder() { + + onChanged(); + return getConfigurationFieldBuilder().getBuilder(); + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder() { + if (configurationBuilder_ != null) { + return configurationBuilder_.getMessageOrBuilder(); + } else { + return configuration_ == null ? + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance() : configuration_; + } + } + /** + * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder> + getConfigurationFieldBuilder() { + if (configurationBuilder_ == null) { + configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder>( + getConfiguration(), + getParentForChildren(), + isClean()); + configuration_ = null; + } + return configurationBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.SecurityGroupState) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.SecurityGroupState) + private static final com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState(); + } + + public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SecurityGroupState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityGroupState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_SecurityGroupConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_SecurityGroupState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_SecurityGroupState_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\030securitygroupstate.proto\022\020aliothcontro" + + "ller\032\014common.proto\"\233\004\n\032SecurityGroupConf" + + "iguration\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006vpc_id\030" + + "\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\\\n\024security_group_ru" + + "les\030\004 \003(\0132>.aliothcontroller.SecurityGro" + + "upConfiguration.SecurityGroupRule\032\306\002\n\021Se" + + "curityGroupRule\022\031\n\021security_group_id\030\001 \001" + + "(\t\022\n\n\002id\030\002 \001(\t\022I\n\tdirection\030\003 \001(\01626.alio" + + "thcontroller.SecurityGroupConfiguration." + + "Direction\022.\n\tethertype\030\004 \001(\0162\033.aliothcon", + "troller.EtherType\022,\n\010protocol\030\005 \001(\0162\032.al" + + "iothcontroller.Protocol\022\026\n\016port_range_mi" + + "n\030\006 \001(\005\022\026\n\016port_range_max\030\007 \001(\005\022\030\n\020remot" + + "e_ip_prefix\030\010 \001(\t\022\027\n\017remote_group_id\030\t \001" + + "(\t\"$\n\tDirection\022\n\n\006EGRESS\020\000\022\013\n\007INGRESS\020\001" + + "\"\343\001\n\022SecurityGroupState\022J\n\016operation_typ" + + "e\030\001 \001(\01622.aliothcontroller.SecurityGroup" + + "State.OperationType\022C\n\rconfiguration\030\002 \001" + + "(\0132,.aliothcontroller.SecurityGroupConfi" + + "guration\"<\n\rOperationType\022\n\n\006CREATE\020\000\022\n\n", + "\006UPDATE\020\001\022\007\n\003GET\020\002\022\n\n\006DELETE\020\003B5\n\037com.fu" + + "turewei.alioth.controllerB\022securitygroup" + + "stateb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.futurewei.alioth.controller.common.getDescriptor(), + }, assigner); + internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_aliothcontroller_SecurityGroupConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor, + new java.lang.String[] { "ProjectId", "VpcId", "Name", "SecurityGroupRules", }); + internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor = + internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor.getNestedTypes().get(0); + internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor, + new java.lang.String[] { "SecurityGroupId", "Id", "Direction", "Ethertype", "Protocol", "PortRangeMin", "PortRangeMax", "RemoteIpPrefix", "RemoteGroupId", }); + internal_static_aliothcontroller_SecurityGroupState_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_aliothcontroller_SecurityGroupState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_SecurityGroupState_descriptor, + new java.lang.String[] { "OperationType", "Configuration", }); + com.futurewei.alioth.controller.common.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/com/futurewei/alioth/controller/subnetstate.java b/src/com/futurewei/alioth/controller/subnetstate.java new file mode 100644 index 000000000..342a0c7e4 --- /dev/null +++ b/src/com/futurewei/alioth/controller/subnetstate.java @@ -0,0 +1,3992 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: subnetstate.proto + +package com.futurewei.alioth.controller; + +public final class subnetstate { + private subnetstate() {} + 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 SubnetConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.SubnetConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string project_id = 1; + */ + java.lang.String getProjectId(); + /** + * optional string project_id = 1; + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + * optional string vpc_id = 2; + */ + java.lang.String getVpcId(); + /** + * optional string vpc_id = 2; + */ + com.google.protobuf.ByteString + getVpcIdBytes(); + + /** + * optional string id = 3; + */ + java.lang.String getId(); + /** + * optional string id = 3; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * optional string name = 4; + */ + java.lang.String getName(); + /** + * optional string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional string cidr = 5; + */ + java.lang.String getCidr(); + /** + * optional string cidr = 5; + */ + com.google.protobuf.ByteString + getCidrBytes(); + + /** + * optional string gateway_ip = 6; + */ + java.lang.String getGatewayIp(); + /** + * optional string gateway_ip = 6; + */ + com.google.protobuf.ByteString + getGatewayIpBytes(); + + /** + * optional bool dhcp_enable = 7; + */ + boolean getDhcpEnable(); + + /** + * optional string primary_dns = 8; + */ + java.lang.String getPrimaryDns(); + /** + * optional string primary_dns = 8; + */ + com.google.protobuf.ByteString + getPrimaryDnsBytes(); + + /** + * optional string secondary_dns = 9; + */ + java.lang.String getSecondaryDns(); + /** + * optional string secondary_dns = 9; + */ + com.google.protobuf.ByteString + getSecondaryDnsBytes(); + + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + java.util.List + getDnsListList(); + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry getDnsList(int index); + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + int getDnsListCount(); + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + java.util.List + getDnsListOrBuilderList(); + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( + int index); + + /** + * optional string availability_zone = 11; + */ + java.lang.String getAvailabilityZone(); + /** + * optional string availability_zone = 11; + */ + com.google.protobuf.ByteString + getAvailabilityZoneBytes(); + + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + boolean hasSecurityGroupIds(); + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId getSecurityGroupIds(); + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder(); + } + /** + * Protobuf type {@code aliothcontroller.SubnetConfiguration} + */ + public static final class SubnetConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.SubnetConfiguration) + SubnetConfigurationOrBuilder { + // Use SubnetConfiguration.newBuilder() to construct. + private SubnetConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SubnetConfiguration() { + projectId_ = ""; + vpcId_ = ""; + id_ = ""; + name_ = ""; + cidr_ = ""; + gatewayIp_ = ""; + dhcpEnable_ = false; + primaryDns_ = ""; + secondaryDns_ = ""; + dnsList_ = java.util.Collections.emptyList(); + availabilityZone_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SubnetConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + vpcId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + cidr_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + gatewayIp_ = s; + break; + } + case 56: { + + dhcpEnable_ = input.readBool(); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + primaryDns_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + secondaryDns_ = s; + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + dnsList_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + dnsList_.add( + input.readMessage(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.parser(), extensionRegistry)); + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + availabilityZone_ = s; + break; + } + case 98: { + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder subBuilder = null; + if (securityGroupIds_ != null) { + subBuilder = securityGroupIds_.toBuilder(); + } + securityGroupIds_ = input.readMessage(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityGroupIds_); + securityGroupIds_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + dnsList_ = java.util.Collections.unmodifiableList(dnsList_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.class, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder.class); + } + + public interface DnsEntryOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.SubnetConfiguration.DnsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string entry = 1; + */ + java.lang.String getEntry(); + /** + * optional string entry = 1; + */ + com.google.protobuf.ByteString + getEntryBytes(); + } + /** + * Protobuf type {@code aliothcontroller.SubnetConfiguration.DnsEntry} + */ + public static final class DnsEntry extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.SubnetConfiguration.DnsEntry) + DnsEntryOrBuilder { + // Use DnsEntry.newBuilder() to construct. + private DnsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DnsEntry() { + entry_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private DnsEntry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + entry_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.class, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder.class); + } + + public static final int ENTRY_FIELD_NUMBER = 1; + private volatile java.lang.Object entry_; + /** + * optional string entry = 1; + */ + public java.lang.String getEntry() { + java.lang.Object ref = entry_; + 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(); + entry_ = s; + return s; + } + } + /** + * optional string entry = 1; + */ + public com.google.protobuf.ByteString + getEntryBytes() { + java.lang.Object ref = entry_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + entry_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getEntryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entry_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEntryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entry_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry other = (com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry) obj; + + boolean result = true; + result = result && getEntry() + .equals(other.getEntry()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + ENTRY_FIELD_NUMBER; + hash = (53 * hash) + getEntry().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry 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 com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry 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 com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.SubnetConfiguration.DnsEntry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.SubnetConfiguration.DnsEntry) + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.class, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + entry_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; + } + + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry getDefaultInstanceForType() { + return com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry build() { + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry buildPartial() { + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry result = new com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry(this); + result.entry_ = entry_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry) { + return mergeFrom((com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry other) { + if (other == com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance()) return this; + if (!other.getEntry().isEmpty()) { + entry_ = other.entry_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object entry_ = ""; + /** + * optional string entry = 1; + */ + public java.lang.String getEntry() { + java.lang.Object ref = entry_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entry_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string entry = 1; + */ + public com.google.protobuf.ByteString + getEntryBytes() { + java.lang.Object ref = entry_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + entry_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string entry = 1; + */ + public Builder setEntry( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entry_ = value; + onChanged(); + return this; + } + /** + * optional string entry = 1; + */ + public Builder clearEntry() { + + entry_ = getDefaultInstance().getEntry(); + onChanged(); + return this; + } + /** + * optional string entry = 1; + */ + public Builder setEntryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entry_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.SubnetConfiguration.DnsEntry) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.SubnetConfiguration.DnsEntry) + private static final com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry(); + } + + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DnsEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DnsEntry(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecurityGroupIdOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.SubnetConfiguration.SecurityGroupId) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string id = 1; + */ + java.lang.String getId(); + /** + * optional string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + } + /** + * Protobuf type {@code aliothcontroller.SubnetConfiguration.SecurityGroupId} + */ + public static final class SecurityGroupId extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.SubnetConfiguration.SecurityGroupId) + SecurityGroupIdOrBuilder { + // Use SecurityGroupId.newBuilder() to construct. + private SecurityGroupId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecurityGroupId() { + id_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SecurityGroupId( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId other = (com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId) obj; + + boolean result = true; + result = result && getId() + .equals(other.getId()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId 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 com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId 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 com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.SubnetConfiguration.SecurityGroupId} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.SubnetConfiguration.SecurityGroupId) + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + id_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; + } + + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId getDefaultInstanceForType() { + return com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId build() { + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId buildPartial() { + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId result = new com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId(this); + result.id_ = id_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId) { + return mergeFrom((com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId other) { + if (other == com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.SubnetConfiguration.SecurityGroupId) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.SubnetConfiguration.SecurityGroupId) + private static final com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId(); + } + + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SecurityGroupId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityGroupId(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * optional string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + * optional string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VPC_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object vpcId_; + /** + * optional string vpc_id = 2; + */ + public java.lang.String getVpcId() { + java.lang.Object ref = vpcId_; + 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(); + vpcId_ = s; + return s; + } + } + /** + * optional string vpc_id = 2; + */ + public com.google.protobuf.ByteString + getVpcIdBytes() { + java.lang.Object ref = vpcId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vpcId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 3; + private volatile java.lang.Object id_; + /** + * optional string id = 3; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * optional string id = 3; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + * optional string name = 4; + */ + 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; + } + } + /** + * optional string name = 4; + */ + 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 CIDR_FIELD_NUMBER = 5; + private volatile java.lang.Object cidr_; + /** + * optional string cidr = 5; + */ + public java.lang.String getCidr() { + java.lang.Object ref = cidr_; + 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(); + cidr_ = s; + return s; + } + } + /** + * optional string cidr = 5; + */ + public com.google.protobuf.ByteString + getCidrBytes() { + java.lang.Object ref = cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GATEWAY_IP_FIELD_NUMBER = 6; + private volatile java.lang.Object gatewayIp_; + /** + * optional string gateway_ip = 6; + */ + public java.lang.String getGatewayIp() { + java.lang.Object ref = gatewayIp_; + 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(); + gatewayIp_ = s; + return s; + } + } + /** + * optional string gateway_ip = 6; + */ + public com.google.protobuf.ByteString + getGatewayIpBytes() { + java.lang.Object ref = gatewayIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gatewayIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DHCP_ENABLE_FIELD_NUMBER = 7; + private boolean dhcpEnable_; + /** + * optional bool dhcp_enable = 7; + */ + public boolean getDhcpEnable() { + return dhcpEnable_; + } + + public static final int PRIMARY_DNS_FIELD_NUMBER = 8; + private volatile java.lang.Object primaryDns_; + /** + * optional string primary_dns = 8; + */ + public java.lang.String getPrimaryDns() { + java.lang.Object ref = primaryDns_; + 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(); + primaryDns_ = s; + return s; + } + } + /** + * optional string primary_dns = 8; + */ + public com.google.protobuf.ByteString + getPrimaryDnsBytes() { + java.lang.Object ref = primaryDns_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryDns_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_DNS_FIELD_NUMBER = 9; + private volatile java.lang.Object secondaryDns_; + /** + * optional string secondary_dns = 9; + */ + public java.lang.String getSecondaryDns() { + java.lang.Object ref = secondaryDns_; + 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(); + secondaryDns_ = s; + return s; + } + } + /** + * optional string secondary_dns = 9; + */ + public com.google.protobuf.ByteString + getSecondaryDnsBytes() { + java.lang.Object ref = secondaryDns_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryDns_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DNS_LIST_FIELD_NUMBER = 10; + private java.util.List dnsList_; + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public java.util.List getDnsListList() { + return dnsList_; + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public java.util.List + getDnsListOrBuilderList() { + return dnsList_; + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public int getDnsListCount() { + return dnsList_.size(); + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry getDnsList(int index) { + return dnsList_.get(index); + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( + int index) { + return dnsList_.get(index); + } + + public static final int AVAILABILITY_ZONE_FIELD_NUMBER = 11; + private volatile java.lang.Object availabilityZone_; + /** + * optional string availability_zone = 11; + */ + public java.lang.String getAvailabilityZone() { + java.lang.Object ref = availabilityZone_; + 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(); + availabilityZone_ = s; + return s; + } + } + /** + * optional string availability_zone = 11; + */ + public com.google.protobuf.ByteString + getAvailabilityZoneBytes() { + java.lang.Object ref = availabilityZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + availabilityZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 12; + private com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId securityGroupIds_; + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + public boolean hasSecurityGroupIds() { + return securityGroupIds_ != null; + } + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId getSecurityGroupIds() { + return securityGroupIds_ == null ? com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; + } + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder() { + return getSecurityGroupIds(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getVpcIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vpcId_); + } + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, id_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + if (!getCidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cidr_); + } + if (!getGatewayIpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, gatewayIp_); + } + if (dhcpEnable_ != false) { + output.writeBool(7, dhcpEnable_); + } + if (!getPrimaryDnsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, primaryDns_); + } + if (!getSecondaryDnsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, secondaryDns_); + } + for (int i = 0; i < dnsList_.size(); i++) { + output.writeMessage(10, dnsList_.get(i)); + } + if (!getAvailabilityZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, availabilityZone_); + } + if (securityGroupIds_ != null) { + output.writeMessage(12, getSecurityGroupIds()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getVpcIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vpcId_); + } + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, id_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + if (!getCidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cidr_); + } + if (!getGatewayIpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, gatewayIp_); + } + if (dhcpEnable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, dhcpEnable_); + } + if (!getPrimaryDnsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, primaryDns_); + } + if (!getSecondaryDnsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, secondaryDns_); + } + for (int i = 0; i < dnsList_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, dnsList_.get(i)); + } + if (!getAvailabilityZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, availabilityZone_); + } + if (securityGroupIds_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getSecurityGroupIds()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.subnetstate.SubnetConfiguration)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration other = (com.futurewei.alioth.controller.subnetstate.SubnetConfiguration) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getVpcId() + .equals(other.getVpcId()); + result = result && getId() + .equals(other.getId()); + result = result && getName() + .equals(other.getName()); + result = result && getCidr() + .equals(other.getCidr()); + result = result && getGatewayIp() + .equals(other.getGatewayIp()); + result = result && (getDhcpEnable() + == other.getDhcpEnable()); + result = result && getPrimaryDns() + .equals(other.getPrimaryDns()); + result = result && getSecondaryDns() + .equals(other.getSecondaryDns()); + result = result && getDnsListList() + .equals(other.getDnsListList()); + result = result && getAvailabilityZone() + .equals(other.getAvailabilityZone()); + result = result && (hasSecurityGroupIds() == other.hasSecurityGroupIds()); + if (hasSecurityGroupIds()) { + result = result && getSecurityGroupIds() + .equals(other.getSecurityGroupIds()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + VPC_ID_FIELD_NUMBER; + hash = (53 * hash) + getVpcId().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CIDR_FIELD_NUMBER; + hash = (53 * hash) + getCidr().hashCode(); + hash = (37 * hash) + GATEWAY_IP_FIELD_NUMBER; + hash = (53 * hash) + getGatewayIp().hashCode(); + hash = (37 * hash) + DHCP_ENABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDhcpEnable()); + hash = (37 * hash) + PRIMARY_DNS_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryDns().hashCode(); + hash = (37 * hash) + SECONDARY_DNS_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryDns().hashCode(); + if (getDnsListCount() > 0) { + hash = (37 * hash) + DNS_LIST_FIELD_NUMBER; + hash = (53 * hash) + getDnsListList().hashCode(); + } + hash = (37 * hash) + AVAILABILITY_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getAvailabilityZone().hashCode(); + if (hasSecurityGroupIds()) { + hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER; + hash = (53 * hash) + getSecurityGroupIds().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration 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 com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration 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 com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.SubnetConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.SubnetConfiguration) + com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.class, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDnsListFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + projectId_ = ""; + + vpcId_ = ""; + + id_ = ""; + + name_ = ""; + + cidr_ = ""; + + gatewayIp_ = ""; + + dhcpEnable_ = false; + + primaryDns_ = ""; + + secondaryDns_ = ""; + + if (dnsListBuilder_ == null) { + dnsList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + dnsListBuilder_.clear(); + } + availabilityZone_ = ""; + + if (securityGroupIdsBuilder_ == null) { + securityGroupIds_ = null; + } else { + securityGroupIds_ = null; + securityGroupIdsBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_descriptor; + } + + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getDefaultInstanceForType() { + return com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration build() { + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration buildPartial() { + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration result = new com.futurewei.alioth.controller.subnetstate.SubnetConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.projectId_ = projectId_; + result.vpcId_ = vpcId_; + result.id_ = id_; + result.name_ = name_; + result.cidr_ = cidr_; + result.gatewayIp_ = gatewayIp_; + result.dhcpEnable_ = dhcpEnable_; + result.primaryDns_ = primaryDns_; + result.secondaryDns_ = secondaryDns_; + if (dnsListBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + dnsList_ = java.util.Collections.unmodifiableList(dnsList_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.dnsList_ = dnsList_; + } else { + result.dnsList_ = dnsListBuilder_.build(); + } + result.availabilityZone_ = availabilityZone_; + if (securityGroupIdsBuilder_ == null) { + result.securityGroupIds_ = securityGroupIds_; + } else { + result.securityGroupIds_ = securityGroupIdsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.subnetstate.SubnetConfiguration) { + return mergeFrom((com.futurewei.alioth.controller.subnetstate.SubnetConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration other) { + if (other == com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getVpcId().isEmpty()) { + vpcId_ = other.vpcId_; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getCidr().isEmpty()) { + cidr_ = other.cidr_; + onChanged(); + } + if (!other.getGatewayIp().isEmpty()) { + gatewayIp_ = other.gatewayIp_; + onChanged(); + } + if (other.getDhcpEnable() != false) { + setDhcpEnable(other.getDhcpEnable()); + } + if (!other.getPrimaryDns().isEmpty()) { + primaryDns_ = other.primaryDns_; + onChanged(); + } + if (!other.getSecondaryDns().isEmpty()) { + secondaryDns_ = other.secondaryDns_; + onChanged(); + } + if (dnsListBuilder_ == null) { + if (!other.dnsList_.isEmpty()) { + if (dnsList_.isEmpty()) { + dnsList_ = other.dnsList_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureDnsListIsMutable(); + dnsList_.addAll(other.dnsList_); + } + onChanged(); + } + } else { + if (!other.dnsList_.isEmpty()) { + if (dnsListBuilder_.isEmpty()) { + dnsListBuilder_.dispose(); + dnsListBuilder_ = null; + dnsList_ = other.dnsList_; + bitField0_ = (bitField0_ & ~0x00000200); + dnsListBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDnsListFieldBuilder() : null; + } else { + dnsListBuilder_.addAllMessages(other.dnsList_); + } + } + } + if (!other.getAvailabilityZone().isEmpty()) { + availabilityZone_ = other.availabilityZone_; + onChanged(); + } + if (other.hasSecurityGroupIds()) { + mergeSecurityGroupIds(other.getSecurityGroupIds()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.subnetstate.SubnetConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + * optional string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string project_id = 1; + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * optional string project_id = 1; + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * optional string project_id = 1; + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object vpcId_ = ""; + /** + * optional string vpc_id = 2; + */ + public java.lang.String getVpcId() { + java.lang.Object ref = vpcId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string vpc_id = 2; + */ + public com.google.protobuf.ByteString + getVpcIdBytes() { + java.lang.Object ref = vpcId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vpcId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string vpc_id = 2; + */ + public Builder setVpcId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vpcId_ = value; + onChanged(); + return this; + } + /** + * optional string vpc_id = 2; + */ + public Builder clearVpcId() { + + vpcId_ = getDefaultInstance().getVpcId(); + onChanged(); + return this; + } + /** + * optional string vpc_id = 2; + */ + public Builder setVpcIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vpcId_ = value; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * optional string id = 3; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 3; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 3; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 3; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 3; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * optional string name = 4; + */ + 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; + } + } + /** + * optional string name = 4; + */ + 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; + } + } + /** + * optional string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 4; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object cidr_ = ""; + /** + * optional string cidr = 5; + */ + public java.lang.String getCidr() { + java.lang.Object ref = cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string cidr = 5; + */ + public com.google.protobuf.ByteString + getCidrBytes() { + java.lang.Object ref = cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string cidr = 5; + */ + public Builder setCidr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cidr_ = value; + onChanged(); + return this; + } + /** + * optional string cidr = 5; + */ + public Builder clearCidr() { + + cidr_ = getDefaultInstance().getCidr(); + onChanged(); + return this; + } + /** + * optional string cidr = 5; + */ + public Builder setCidrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object gatewayIp_ = ""; + /** + * optional string gateway_ip = 6; + */ + public java.lang.String getGatewayIp() { + java.lang.Object ref = gatewayIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gatewayIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string gateway_ip = 6; + */ + public com.google.protobuf.ByteString + getGatewayIpBytes() { + java.lang.Object ref = gatewayIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gatewayIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string gateway_ip = 6; + */ + public Builder setGatewayIp( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gatewayIp_ = value; + onChanged(); + return this; + } + /** + * optional string gateway_ip = 6; + */ + public Builder clearGatewayIp() { + + gatewayIp_ = getDefaultInstance().getGatewayIp(); + onChanged(); + return this; + } + /** + * optional string gateway_ip = 6; + */ + public Builder setGatewayIpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gatewayIp_ = value; + onChanged(); + return this; + } + + private boolean dhcpEnable_ ; + /** + * optional bool dhcp_enable = 7; + */ + public boolean getDhcpEnable() { + return dhcpEnable_; + } + /** + * optional bool dhcp_enable = 7; + */ + public Builder setDhcpEnable(boolean value) { + + dhcpEnable_ = value; + onChanged(); + return this; + } + /** + * optional bool dhcp_enable = 7; + */ + public Builder clearDhcpEnable() { + + dhcpEnable_ = false; + onChanged(); + return this; + } + + private java.lang.Object primaryDns_ = ""; + /** + * optional string primary_dns = 8; + */ + public java.lang.String getPrimaryDns() { + java.lang.Object ref = primaryDns_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryDns_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string primary_dns = 8; + */ + public com.google.protobuf.ByteString + getPrimaryDnsBytes() { + java.lang.Object ref = primaryDns_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryDns_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string primary_dns = 8; + */ + public Builder setPrimaryDns( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + primaryDns_ = value; + onChanged(); + return this; + } + /** + * optional string primary_dns = 8; + */ + public Builder clearPrimaryDns() { + + primaryDns_ = getDefaultInstance().getPrimaryDns(); + onChanged(); + return this; + } + /** + * optional string primary_dns = 8; + */ + public Builder setPrimaryDnsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + primaryDns_ = value; + onChanged(); + return this; + } + + private java.lang.Object secondaryDns_ = ""; + /** + * optional string secondary_dns = 9; + */ + public java.lang.String getSecondaryDns() { + java.lang.Object ref = secondaryDns_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryDns_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string secondary_dns = 9; + */ + public com.google.protobuf.ByteString + getSecondaryDnsBytes() { + java.lang.Object ref = secondaryDns_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryDns_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string secondary_dns = 9; + */ + public Builder setSecondaryDns( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secondaryDns_ = value; + onChanged(); + return this; + } + /** + * optional string secondary_dns = 9; + */ + public Builder clearSecondaryDns() { + + secondaryDns_ = getDefaultInstance().getSecondaryDns(); + onChanged(); + return this; + } + /** + * optional string secondary_dns = 9; + */ + public Builder setSecondaryDnsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secondaryDns_ = value; + onChanged(); + return this; + } + + private java.util.List dnsList_ = + java.util.Collections.emptyList(); + private void ensureDnsListIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + dnsList_ = new java.util.ArrayList(dnsList_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder> dnsListBuilder_; + + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public java.util.List getDnsListList() { + if (dnsListBuilder_ == null) { + return java.util.Collections.unmodifiableList(dnsList_); + } else { + return dnsListBuilder_.getMessageList(); + } + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public int getDnsListCount() { + if (dnsListBuilder_ == null) { + return dnsList_.size(); + } else { + return dnsListBuilder_.getCount(); + } + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry getDnsList(int index) { + if (dnsListBuilder_ == null) { + return dnsList_.get(index); + } else { + return dnsListBuilder_.getMessage(index); + } + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public Builder setDnsList( + int index, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry value) { + if (dnsListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDnsListIsMutable(); + dnsList_.set(index, value); + onChanged(); + } else { + dnsListBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public Builder setDnsList( + int index, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder builderForValue) { + if (dnsListBuilder_ == null) { + ensureDnsListIsMutable(); + dnsList_.set(index, builderForValue.build()); + onChanged(); + } else { + dnsListBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public Builder addDnsList(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry value) { + if (dnsListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDnsListIsMutable(); + dnsList_.add(value); + onChanged(); + } else { + dnsListBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public Builder addDnsList( + int index, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry value) { + if (dnsListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDnsListIsMutable(); + dnsList_.add(index, value); + onChanged(); + } else { + dnsListBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public Builder addDnsList( + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder builderForValue) { + if (dnsListBuilder_ == null) { + ensureDnsListIsMutable(); + dnsList_.add(builderForValue.build()); + onChanged(); + } else { + dnsListBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public Builder addDnsList( + int index, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder builderForValue) { + if (dnsListBuilder_ == null) { + ensureDnsListIsMutable(); + dnsList_.add(index, builderForValue.build()); + onChanged(); + } else { + dnsListBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public Builder addAllDnsList( + java.lang.Iterable values) { + if (dnsListBuilder_ == null) { + ensureDnsListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dnsList_); + onChanged(); + } else { + dnsListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public Builder clearDnsList() { + if (dnsListBuilder_ == null) { + dnsList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + dnsListBuilder_.clear(); + } + return this; + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public Builder removeDnsList(int index) { + if (dnsListBuilder_ == null) { + ensureDnsListIsMutable(); + dnsList_.remove(index); + onChanged(); + } else { + dnsListBuilder_.remove(index); + } + return this; + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder getDnsListBuilder( + int index) { + return getDnsListFieldBuilder().getBuilder(index); + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( + int index) { + if (dnsListBuilder_ == null) { + return dnsList_.get(index); } else { + return dnsListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public java.util.List + getDnsListOrBuilderList() { + if (dnsListBuilder_ != null) { + return dnsListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dnsList_); + } + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder addDnsListBuilder() { + return getDnsListFieldBuilder().addBuilder( + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder addDnsListBuilder( + int index) { + return getDnsListFieldBuilder().addBuilder( + index, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance()); + } + /** + * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; + */ + public java.util.List + getDnsListBuilderList() { + return getDnsListFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder> + getDnsListFieldBuilder() { + if (dnsListBuilder_ == null) { + dnsListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder>( + dnsList_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + dnsList_ = null; + } + return dnsListBuilder_; + } + + private java.lang.Object availabilityZone_ = ""; + /** + * optional string availability_zone = 11; + */ + public java.lang.String getAvailabilityZone() { + java.lang.Object ref = availabilityZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + availabilityZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string availability_zone = 11; + */ + public com.google.protobuf.ByteString + getAvailabilityZoneBytes() { + java.lang.Object ref = availabilityZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + availabilityZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string availability_zone = 11; + */ + public Builder setAvailabilityZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + availabilityZone_ = value; + onChanged(); + return this; + } + /** + * optional string availability_zone = 11; + */ + public Builder clearAvailabilityZone() { + + availabilityZone_ = getDefaultInstance().getAvailabilityZone(); + onChanged(); + return this; + } + /** + * optional string availability_zone = 11; + */ + public Builder setAvailabilityZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + availabilityZone_ = value; + onChanged(); + return this; + } + + private com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId securityGroupIds_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder> securityGroupIdsBuilder_; + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + public boolean hasSecurityGroupIds() { + return securityGroupIdsBuilder_ != null || securityGroupIds_ != null; + } + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId getSecurityGroupIds() { + if (securityGroupIdsBuilder_ == null) { + return securityGroupIds_ == null ? com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; + } else { + return securityGroupIdsBuilder_.getMessage(); + } + } + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + public Builder setSecurityGroupIds(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId value) { + if (securityGroupIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityGroupIds_ = value; + onChanged(); + } else { + securityGroupIdsBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + public Builder setSecurityGroupIds( + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder builderForValue) { + if (securityGroupIdsBuilder_ == null) { + securityGroupIds_ = builderForValue.build(); + onChanged(); + } else { + securityGroupIdsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + public Builder mergeSecurityGroupIds(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId value) { + if (securityGroupIdsBuilder_ == null) { + if (securityGroupIds_ != null) { + securityGroupIds_ = + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.newBuilder(securityGroupIds_).mergeFrom(value).buildPartial(); + } else { + securityGroupIds_ = value; + } + onChanged(); + } else { + securityGroupIdsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + public Builder clearSecurityGroupIds() { + if (securityGroupIdsBuilder_ == null) { + securityGroupIds_ = null; + onChanged(); + } else { + securityGroupIds_ = null; + securityGroupIdsBuilder_ = null; + } + + return this; + } + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder getSecurityGroupIdsBuilder() { + + onChanged(); + return getSecurityGroupIdsFieldBuilder().getBuilder(); + } + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder() { + if (securityGroupIdsBuilder_ != null) { + return securityGroupIdsBuilder_.getMessageOrBuilder(); + } else { + return securityGroupIds_ == null ? + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; + } + } + /** + * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder> + getSecurityGroupIdsFieldBuilder() { + if (securityGroupIdsBuilder_ == null) { + securityGroupIdsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder>( + getSecurityGroupIds(), + getParentForChildren(), + isClean()); + securityGroupIds_ = null; + } + return securityGroupIdsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.SubnetConfiguration) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.SubnetConfiguration) + private static final com.futurewei.alioth.controller.subnetstate.SubnetConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.subnetstate.SubnetConfiguration(); + } + + public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SubnetConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubnetConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SubnetStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:aliothcontroller.SubnetState) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + int getOperationTypeValue(); + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + com.futurewei.alioth.controller.common.OperationType getOperationType(); + + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + boolean hasConfiguration(); + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getConfiguration(); + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder getConfigurationOrBuilder(); + } + /** + * Protobuf type {@code aliothcontroller.SubnetState} + */ + public static final class SubnetState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:aliothcontroller.SubnetState) + SubnetStateOrBuilder { + // Use SubnetState.newBuilder() to construct. + private SubnetState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SubnetState() { + operationType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SubnetState( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + operationType_ = rawValue; + break; + } + case 18: { + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder subBuilder = null; + if (configuration_ != null) { + subBuilder = configuration_.toBuilder(); + } + configuration_ = input.readMessage(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configuration_); + configuration_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetState_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.subnetstate.SubnetState.class, com.futurewei.alioth.controller.subnetstate.SubnetState.Builder.class); + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 1; + private int operationType_; + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public int getOperationTypeValue() { + return operationType_; + } + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public com.futurewei.alioth.controller.common.OperationType getOperationType() { + com.futurewei.alioth.controller.common.OperationType result = com.futurewei.alioth.controller.common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.common.OperationType.UNRECOGNIZED : result; + } + + public static final int CONFIGURATION_FIELD_NUMBER = 2; + private com.futurewei.alioth.controller.subnetstate.SubnetConfiguration configuration_; + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + public boolean hasConfiguration() { + return configuration_ != null; + } + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getConfiguration() { + return configuration_ == null ? com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.getDefaultInstance() : configuration_; + } + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder getConfigurationOrBuilder() { + return getConfiguration(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operationType_ != com.futurewei.alioth.controller.common.OperationType.CREATE.getNumber()) { + output.writeEnum(1, operationType_); + } + if (configuration_ != null) { + output.writeMessage(2, getConfiguration()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operationType_ != com.futurewei.alioth.controller.common.OperationType.CREATE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operationType_); + } + if (configuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfiguration()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.futurewei.alioth.controller.subnetstate.SubnetState)) { + return super.equals(obj); + } + com.futurewei.alioth.controller.subnetstate.SubnetState other = (com.futurewei.alioth.controller.subnetstate.SubnetState) obj; + + boolean result = true; + result = result && operationType_ == other.operationType_; + result = result && (hasConfiguration() == other.hasConfiguration()); + if (hasConfiguration()) { + result = result && getConfiguration() + .equals(other.getConfiguration()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + operationType_; + if (hasConfiguration()) { + hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getConfiguration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetState 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 com.futurewei.alioth.controller.subnetstate.SubnetState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetState 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 com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.futurewei.alioth.controller.subnetstate.SubnetState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 aliothcontroller.SubnetState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:aliothcontroller.SubnetState) + com.futurewei.alioth.controller.subnetstate.SubnetStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetState_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.futurewei.alioth.controller.subnetstate.SubnetState.class, com.futurewei.alioth.controller.subnetstate.SubnetState.Builder.class); + } + + // Construct using com.futurewei.alioth.controller.subnetstate.SubnetState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + operationType_ = 0; + + if (configurationBuilder_ == null) { + configuration_ = null; + } else { + configuration_ = null; + configurationBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetState_descriptor; + } + + public com.futurewei.alioth.controller.subnetstate.SubnetState getDefaultInstanceForType() { + return com.futurewei.alioth.controller.subnetstate.SubnetState.getDefaultInstance(); + } + + public com.futurewei.alioth.controller.subnetstate.SubnetState build() { + com.futurewei.alioth.controller.subnetstate.SubnetState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.futurewei.alioth.controller.subnetstate.SubnetState buildPartial() { + com.futurewei.alioth.controller.subnetstate.SubnetState result = new com.futurewei.alioth.controller.subnetstate.SubnetState(this); + result.operationType_ = operationType_; + if (configurationBuilder_ == null) { + result.configuration_ = configuration_; + } else { + result.configuration_ = configurationBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.futurewei.alioth.controller.subnetstate.SubnetState) { + return mergeFrom((com.futurewei.alioth.controller.subnetstate.SubnetState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.futurewei.alioth.controller.subnetstate.SubnetState other) { + if (other == com.futurewei.alioth.controller.subnetstate.SubnetState.getDefaultInstance()) return this; + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (other.hasConfiguration()) { + mergeConfiguration(other.getConfiguration()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.futurewei.alioth.controller.subnetstate.SubnetState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.futurewei.alioth.controller.subnetstate.SubnetState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operationType_ = 0; + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public int getOperationTypeValue() { + return operationType_; + } + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public Builder setOperationTypeValue(int value) { + operationType_ = value; + onChanged(); + return this; + } + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public com.futurewei.alioth.controller.common.OperationType getOperationType() { + com.futurewei.alioth.controller.common.OperationType result = com.futurewei.alioth.controller.common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.common.OperationType.UNRECOGNIZED : result; + } + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public Builder setOperationType(com.futurewei.alioth.controller.common.OperationType value) { + if (value == null) { + throw new NullPointerException(); + } + + operationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .aliothcontroller.OperationType operation_type = 1; + */ + public Builder clearOperationType() { + + operationType_ = 0; + onChanged(); + return this; + } + + private com.futurewei.alioth.controller.subnetstate.SubnetConfiguration configuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder> configurationBuilder_; + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + public boolean hasConfiguration() { + return configurationBuilder_ != null || configuration_ != null; + } + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getConfiguration() { + if (configurationBuilder_ == null) { + return configuration_ == null ? com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.getDefaultInstance() : configuration_; + } else { + return configurationBuilder_.getMessage(); + } + } + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + public Builder setConfiguration(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration value) { + if (configurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configuration_ = value; + onChanged(); + } else { + configurationBuilder_.setMessage(value); + } + + return this; + } + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + public Builder setConfiguration( + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder builderForValue) { + if (configurationBuilder_ == null) { + configuration_ = builderForValue.build(); + onChanged(); + } else { + configurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + public Builder mergeConfiguration(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration value) { + if (configurationBuilder_ == null) { + if (configuration_ != null) { + configuration_ = + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + } else { + configuration_ = value; + } + onChanged(); + } else { + configurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + public Builder clearConfiguration() { + if (configurationBuilder_ == null) { + configuration_ = null; + onChanged(); + } else { + configuration_ = null; + configurationBuilder_ = null; + } + + return this; + } + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder getConfigurationBuilder() { + + onChanged(); + return getConfigurationFieldBuilder().getBuilder(); + } + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + public com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder getConfigurationOrBuilder() { + if (configurationBuilder_ != null) { + return configurationBuilder_.getMessageOrBuilder(); + } else { + return configuration_ == null ? + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.getDefaultInstance() : configuration_; + } + } + /** + * optional .aliothcontroller.SubnetConfiguration configuration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder> + getConfigurationFieldBuilder() { + if (configurationBuilder_ == null) { + configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.futurewei.alioth.controller.subnetstate.SubnetConfiguration, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder>( + getConfiguration(), + getParentForChildren(), + isClean()); + configuration_ = null; + } + return configurationBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:aliothcontroller.SubnetState) + } + + // @@protoc_insertion_point(class_scope:aliothcontroller.SubnetState) + private static final com.futurewei.alioth.controller.subnetstate.SubnetState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.subnetstate.SubnetState(); + } + + public static com.futurewei.alioth.controller.subnetstate.SubnetState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SubnetState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubnetState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.futurewei.alioth.controller.subnetstate.SubnetState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_SubnetConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_SubnetConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_aliothcontroller_SubnetState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_aliothcontroller_SubnetState_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\021subnetstate.proto\022\020aliothcontroller\032\014c" + + "ommon.proto\"\240\003\n\023SubnetConfiguration\022\022\n\np" + + "roject_id\030\001 \001(\t\022\016\n\006vpc_id\030\002 \001(\t\022\n\n\002id\030\003 " + + "\001(\t\022\014\n\004name\030\004 \001(\t\022\014\n\004cidr\030\005 \001(\t\022\022\n\ngatew" + + "ay_ip\030\006 \001(\t\022\023\n\013dhcp_enable\030\007 \001(\010\022\023\n\013prim" + + "ary_dns\030\010 \001(\t\022\025\n\rsecondary_dns\030\t \001(\t\022@\n\010" + + "dns_list\030\n \003(\0132..aliothcontroller.Subnet" + + "Configuration.DnsEntry\022\031\n\021availability_z" + + "one\030\013 \001(\t\022Q\n\022security_group_ids\030\014 \001(\01325." + + "aliothcontroller.SubnetConfiguration.Sec", + "urityGroupId\032\031\n\010DnsEntry\022\r\n\005entry\030\001 \001(\t\032" + + "\035\n\017SecurityGroupId\022\n\n\002id\030\001 \001(\t\"\204\001\n\013Subne" + + "tState\0227\n\016operation_type\030\001 \001(\0162\037.aliothc" + + "ontroller.OperationType\022<\n\rconfiguration" + + "\030\002 \001(\0132%.aliothcontroller.SubnetConfigur" + + "ationB.\n\037com.futurewei.alioth.controller" + + "B\013subnetstateb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.futurewei.alioth.controller.common.getDescriptor(), + }, assigner); + internal_static_aliothcontroller_SubnetConfiguration_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_aliothcontroller_SubnetConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_SubnetConfiguration_descriptor, + new java.lang.String[] { "ProjectId", "VpcId", "Id", "Name", "Cidr", "GatewayIp", "DhcpEnable", "PrimaryDns", "SecondaryDns", "DnsList", "AvailabilityZone", "SecurityGroupIds", }); + internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor = + internal_static_aliothcontroller_SubnetConfiguration_descriptor.getNestedTypes().get(0); + internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor, + new java.lang.String[] { "Entry", }); + internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor = + internal_static_aliothcontroller_SubnetConfiguration_descriptor.getNestedTypes().get(1); + internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor, + new java.lang.String[] { "Id", }); + internal_static_aliothcontroller_SubnetState_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_aliothcontroller_SubnetState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_aliothcontroller_SubnetState_descriptor, + new java.lang.String[] { "OperationType", "Configuration", }); + com.futurewei.alioth.controller.common.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/com/futurewei/alioth/controller/vpcstate.java b/src/com/futurewei/alioth/controller/vpcstate.java index 40e9c7de7..47d7dffeb 100644 --- a/src/com/futurewei/alioth/controller/vpcstate.java +++ b/src/com/futurewei/alioth/controller/vpcstate.java @@ -2815,13 +2815,13 @@ public interface VpcStateOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ int getOperationTypeValue(); /** - * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ - com.futurewei.alioth.controller.vpcstate.VpcState.OperationType getOperationType(); + com.futurewei.alioth.controller.common.OperationType getOperationType(); /** * optional .aliothcontroller.VpcConfiguration configuration = 2; @@ -2918,136 +2918,20 @@ private VpcState( com.futurewei.alioth.controller.vpcstate.VpcState.class, com.futurewei.alioth.controller.vpcstate.VpcState.Builder.class); } - /** - * Protobuf enum {@code aliothcontroller.VpcState.OperationType} - */ - public enum OperationType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CREATE = 0; - */ - CREATE(0), - /** - * UPDATE = 1; - */ - UPDATE(1), - /** - * GET = 2; - */ - GET(2), - /** - * DELETE = 3; - */ - DELETE(3), - UNRECOGNIZED(-1), - ; - - /** - * CREATE = 0; - */ - public static final int CREATE_VALUE = 0; - /** - * UPDATE = 1; - */ - public static final int UPDATE_VALUE = 1; - /** - * GET = 2; - */ - public static final int GET_VALUE = 2; - /** - * DELETE = 3; - */ - public static final int DELETE_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OperationType valueOf(int value) { - return forNumber(value); - } - - public static OperationType forNumber(int value) { - switch (value) { - case 0: return CREATE; - case 1: return UPDATE; - case 2: return GET; - case 3: return DELETE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - OperationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OperationType findValueByNumber(int number) { - return OperationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.futurewei.alioth.controller.vpcstate.VpcState.getDescriptor().getEnumTypes().get(0); - } - - private static final OperationType[] VALUES = values(); - - public static OperationType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private OperationType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:aliothcontroller.VpcState.OperationType) - } - public static final int OPERATION_TYPE_FIELD_NUMBER = 1; private int operationType_; /** - * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ public int getOperationTypeValue() { return operationType_; } /** - * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.vpcstate.VpcState.OperationType getOperationType() { - com.futurewei.alioth.controller.vpcstate.VpcState.OperationType result = com.futurewei.alioth.controller.vpcstate.VpcState.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.vpcstate.VpcState.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.common.OperationType getOperationType() { + com.futurewei.alioth.controller.common.OperationType result = com.futurewei.alioth.controller.common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.common.OperationType.UNRECOGNIZED : result; } public static final int CONFIGURATION_FIELD_NUMBER = 2; @@ -3083,7 +2967,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operationType_ != com.futurewei.alioth.controller.vpcstate.VpcState.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.common.OperationType.CREATE.getNumber()) { output.writeEnum(1, operationType_); } if (configuration_ != null) { @@ -3096,7 +2980,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (operationType_ != com.futurewei.alioth.controller.vpcstate.VpcState.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.common.OperationType.CREATE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, operationType_); } @@ -3371,13 +3255,13 @@ public Builder mergeFrom( private int operationType_ = 0; /** - * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ public int getOperationTypeValue() { return operationType_; } /** - * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ public Builder setOperationTypeValue(int value) { operationType_ = value; @@ -3385,16 +3269,16 @@ public Builder setOperationTypeValue(int value) { return this; } /** - * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.vpcstate.VpcState.OperationType getOperationType() { - com.futurewei.alioth.controller.vpcstate.VpcState.OperationType result = com.futurewei.alioth.controller.vpcstate.VpcState.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.vpcstate.VpcState.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.common.OperationType getOperationType() { + com.futurewei.alioth.controller.common.OperationType result = com.futurewei.alioth.controller.common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.common.OperationType.UNRECOGNIZED : result; } /** - * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ - public Builder setOperationType(com.futurewei.alioth.controller.vpcstate.VpcState.OperationType value) { + public Builder setOperationType(com.futurewei.alioth.controller.common.OperationType value) { if (value == null) { throw new NullPointerException(); } @@ -3404,7 +3288,7 @@ public Builder setOperationType(com.futurewei.alioth.controller.vpcstate.VpcStat return this; } /** - * optional .aliothcontroller.VpcState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ public Builder clearOperationType() { @@ -3607,21 +3491,19 @@ public com.futurewei.alioth.controller.vpcstate.VpcState getDefaultInstanceForTy descriptor; static { java.lang.String[] descriptorData = { - "\n\016vpcstate.proto\022\020aliothcontroller\"\221\002\n\020V" + - "pcConfiguration\022\022\n\nproject_id\030\001 \001(\t\022\n\n\002i" + - "d\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\014\n\004cidr\030\004 \001(\t\022?\n\ns" + - "ubnet_ids\030\005 \003(\0132+.aliothcontroller.VpcCo" + - "nfiguration.SubnetId\0228\n\006routes\030\006 \003(\0132(.a" + - "liothcontroller.VpcConfiguration.Route\032\026" + - "\n\010SubnetId\022\n\n\002id\030\001 \001(\t\032.\n\005Route\022\023\n\013desti" + - "nation\030\001 \001(\t\022\020\n\010next_hop\030\002 \001(\t\"\305\001\n\010VpcSt" + - "ate\022@\n\016operation_type\030\001 \001(\0162(.aliothcont" + - "roller.VpcState.OperationType\0229\n\rconfigu", - "ration\030\002 \001(\0132\".aliothcontroller.VpcConfi" + - "guration\"<\n\rOperationType\022\n\n\006CREATE\020\000\022\n\n" + - "\006UPDATE\020\001\022\007\n\003GET\020\002\022\n\n\006DELETE\020\003B+\n\037com.fu" + - "turewei.alioth.controllerB\010vpcstateb\006pro" + - "to3" + "\n\016vpcstate.proto\022\020aliothcontroller\032\014comm" + + "on.proto\"\221\002\n\020VpcConfiguration\022\022\n\nproject" + + "_id\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\014\n\004c" + + "idr\030\004 \001(\t\022?\n\nsubnet_ids\030\005 \003(\0132+.aliothco" + + "ntroller.VpcConfiguration.SubnetId\0228\n\006ro" + + "utes\030\006 \003(\0132(.aliothcontroller.VpcConfigu" + + "ration.Route\032\026\n\010SubnetId\022\n\n\002id\030\001 \001(\t\032.\n\005" + + "Route\022\023\n\013destination\030\001 \001(\t\022\020\n\010next_hop\030\002" + + " \001(\t\"~\n\010VpcState\0227\n\016operation_type\030\001 \001(\016" + + "2\037.aliothcontroller.OperationType\0229\n\rcon", + "figuration\030\002 \001(\0132\".aliothcontroller.VpcC" + + "onfigurationB+\n\037com.futurewei.alioth.con" + + "trollerB\010vpcstateb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3634,6 +3516,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.futurewei.alioth.controller.common.getDescriptor(), }, assigner); internal_static_aliothcontroller_VpcConfiguration_descriptor = getDescriptor().getMessageTypes().get(0); @@ -3659,6 +3542,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aliothcontroller_VpcState_descriptor, new java.lang.String[] { "OperationType", "Configuration", }); + com.futurewei.alioth.controller.common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) From a7987d7d307c8b9f59c6007da0205029ef274084 Mon Sep 17 00:00:00 2001 From: xieus Date: Tue, 16 Jul 2019 09:55:07 -0700 Subject: [PATCH 07/11] Update java package path --- src/schema/proto3/common.proto | 2 +- src/schema/proto3/portstate.proto | 2 +- src/schema/proto3/securitygroupstate.proto | 2 +- src/schema/proto3/subnetstate.proto | 2 +- src/schema/proto3/vpcstate.proto | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/schema/proto3/common.proto b/src/schema/proto3/common.proto index 833ed4356..c1d30240a 100644 --- a/src/schema/proto3/common.proto +++ b/src/schema/proto3/common.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package aliothcontroller; -option java_package = "com.futurewei.alioth.controller"; +option java_package = "com.futurewei.alioth.controller.schema"; option java_outer_classname = "common"; enum OperationType { diff --git a/src/schema/proto3/portstate.proto b/src/schema/proto3/portstate.proto index 20f082158..e2f6f1bcf 100644 --- a/src/schema/proto3/portstate.proto +++ b/src/schema/proto3/portstate.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package aliothcontroller; -option java_package = "com.futurewei.alioth.controller"; +option java_package = "com.futurewei.alioth.controller.schema"; option java_outer_classname = "portstate"; import "common.proto"; diff --git a/src/schema/proto3/securitygroupstate.proto b/src/schema/proto3/securitygroupstate.proto index fb2091e24..56914fb25 100644 --- a/src/schema/proto3/securitygroupstate.proto +++ b/src/schema/proto3/securitygroupstate.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package aliothcontroller; -option java_package = "com.futurewei.alioth.controller"; +option java_package = "com.futurewei.alioth.controller.schema"; option java_outer_classname = "securitygroupstate"; import "common.proto"; diff --git a/src/schema/proto3/subnetstate.proto b/src/schema/proto3/subnetstate.proto index cd66d320f..c464a9547 100644 --- a/src/schema/proto3/subnetstate.proto +++ b/src/schema/proto3/subnetstate.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package aliothcontroller; -option java_package = "com.futurewei.alioth.controller"; +option java_package = "com.futurewei.alioth.controller.schema"; option java_outer_classname = "subnetstate"; import "common.proto"; diff --git a/src/schema/proto3/vpcstate.proto b/src/schema/proto3/vpcstate.proto index e77dfb928..360aedfaf 100644 --- a/src/schema/proto3/vpcstate.proto +++ b/src/schema/proto3/vpcstate.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package aliothcontroller; -option java_package = "com.futurewei.alioth.controller"; +option java_package = "com.futurewei.alioth.controller.schema"; option java_outer_classname = "vpcstate"; import "common.proto"; From 54531eec40109875fbc6f6781b68b0c4364eac9e Mon Sep 17 00:00:00 2001 From: Liguang Xie Date: Tue, 16 Jul 2019 10:22:03 -0700 Subject: [PATCH 08/11] Rename schema java files --- .../controller/{ => schema}/common.java | 22 +- .../controller/{ => schema}/portstate.java | 794 +++++++++--------- .../{ => schema}/securitygroupstate.java | 432 +++++----- .../controller/{ => schema}/subnetstate.java | 484 +++++------ .../controller/{ => schema}/vpcstate.java | 508 +++++------ 5 files changed, 1120 insertions(+), 1120 deletions(-) rename src/com/futurewei/alioth/controller/{ => schema}/common.java (91%) rename src/com/futurewei/alioth/controller/{ => schema}/portstate.java (78%) rename src/com/futurewei/alioth/controller/{ => schema}/securitygroupstate.java (79%) rename src/com/futurewei/alioth/controller/{ => schema}/subnetstate.java (80%) rename src/com/futurewei/alioth/controller/{ => schema}/vpcstate.java (79%) diff --git a/src/com/futurewei/alioth/controller/common.java b/src/com/futurewei/alioth/controller/schema/common.java similarity index 91% rename from src/com/futurewei/alioth/controller/common.java rename to src/com/futurewei/alioth/controller/schema/common.java index 5e4a4bb62..8c6b63870 100644 --- a/src/com/futurewei/alioth/controller/common.java +++ b/src/com/futurewei/alioth/controller/schema/common.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: common.proto +// source: schema/proto3/common.proto -package com.futurewei.alioth.controller; +package com.futurewei.alioth.controller.schema; public final class common { private common() {} @@ -104,7 +104,7 @@ public OperationType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.futurewei.alioth.controller.common.getDescriptor().getEnumTypes().get(0); + return com.futurewei.alioth.controller.schema.common.getDescriptor().getEnumTypes().get(0); } private static final OperationType[] VALUES = values(); @@ -202,7 +202,7 @@ public EtherType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.futurewei.alioth.controller.common.getDescriptor().getEnumTypes().get(1); + return com.futurewei.alioth.controller.schema.common.getDescriptor().getEnumTypes().get(1); } private static final EtherType[] VALUES = values(); @@ -309,7 +309,7 @@ public Protocol findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.futurewei.alioth.controller.common.getDescriptor().getEnumTypes().get(2); + return com.futurewei.alioth.controller.schema.common.getDescriptor().getEnumTypes().get(2); } private static final Protocol[] VALUES = values(); @@ -344,12 +344,12 @@ private Protocol(int value) { descriptor; static { java.lang.String[] descriptorData = { - "\n\014common.proto\022\020aliothcontroller*<\n\rOper" + - "ationType\022\n\n\006CREATE\020\000\022\n\n\006UPDATE\020\001\022\007\n\003GET" + - "\020\002\022\n\n\006DELETE\020\003*\037\n\tEtherType\022\010\n\004IPV4\020\000\022\010\n" + - "\004IPV6\020\001*&\n\010Protocol\022\007\n\003TCP\020\000\022\007\n\003UDP\020\001\022\010\n" + - "\004ICMP\020\002B)\n\037com.futurewei.alioth.controll" + - "erB\006commonb\006proto3" + "\n\032schema/proto3/common.proto\022\020aliothcont" + + "roller*<\n\rOperationType\022\n\n\006CREATE\020\000\022\n\n\006U" + + "PDATE\020\001\022\007\n\003GET\020\002\022\n\n\006DELETE\020\003*\037\n\tEtherTyp" + + "e\022\010\n\004IPV4\020\000\022\010\n\004IPV6\020\001*&\n\010Protocol\022\007\n\003TCP" + + "\020\000\022\007\n\003UDP\020\001\022\010\n\004ICMP\020\002B0\n&com.futurewei.a" + + "lioth.controller.schemaB\006commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/src/com/futurewei/alioth/controller/portstate.java b/src/com/futurewei/alioth/controller/schema/portstate.java similarity index 78% rename from src/com/futurewei/alioth/controller/portstate.java rename to src/com/futurewei/alioth/controller/schema/portstate.java index b5b0cd9e9..29f63e597 100644 --- a/src/com/futurewei/alioth/controller/portstate.java +++ b/src/com/futurewei/alioth/controller/schema/portstate.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: portstate.proto -package com.futurewei.alioth.controller; +package com.futurewei.alioth.controller.schema; public final class portstate { private portstate() {} @@ -66,12 +66,12 @@ public interface PortConfigurationOrBuilder extends /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - java.util.List + java.util.List getFixedIpsList(); /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getFixedIps(int index); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp getFixedIps(int index); /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ @@ -79,23 +79,23 @@ public interface PortConfigurationOrBuilder extends /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - java.util.List + java.util.List getFixedIpsOrBuilderList(); /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( int index); /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - java.util.List + java.util.List getSecurityGroupIdsList(); /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index); /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ @@ -103,23 +103,23 @@ com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder get /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - java.util.List + java.util.List getSecurityGroupIdsOrBuilderList(); /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( int index); /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - java.util.List + java.util.List getAllowAddressPairsList(); /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index); /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ @@ -127,23 +127,23 @@ com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBui /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - java.util.List + java.util.List getAllowAddressPairsOrBuilderList(); /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( int index); /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - java.util.List + java.util.List getExtraDhcpOptionsList(); /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index); /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ @@ -151,12 +151,12 @@ com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBu /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - java.util.List + java.util.List getExtraDhcpOptionsOrBuilderList(); /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( int index); } /** @@ -238,38 +238,38 @@ private PortConfiguration( } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - fixedIps_ = new java.util.ArrayList(); + fixedIps_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } fixedIps_.add( - input.readMessage(com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.parser(), extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - securityGroupIds_ = new java.util.ArrayList(); + securityGroupIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } securityGroupIds_.add( - input.readMessage(com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.parser(), extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - allowAddressPairs_ = new java.util.ArrayList(); + allowAddressPairs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } allowAddressPairs_.add( - input.readMessage(com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.parser(), extensionRegistry)); break; } case 74: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - extraDhcpOptions_ = new java.util.ArrayList(); + extraDhcpOptions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } extraDhcpOptions_.add( - input.readMessage(com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.parser(), extensionRegistry)); break; } } @@ -297,14 +297,14 @@ private PortConfiguration( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.portstate.PortConfiguration.class, com.futurewei.alioth.controller.portstate.PortConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder.class); } public interface FixedIpOrBuilder extends @@ -397,14 +397,14 @@ private FixedIp( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_fieldAccessorTable + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.class, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder.class); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder.class); } public static final int SUBNET_ID_FIELD_NUMBER = 1; @@ -516,10 +516,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp)) { return super.equals(obj); } - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp other = (com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp) obj; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp other = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp) obj; boolean result = true; result = result && getSubnetId() @@ -545,58 +545,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp 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 com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp 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 com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -608,7 +608,7 @@ public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedI public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -628,20 +628,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration.FixedIp) - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_fieldAccessorTable + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.class, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder.class); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder.class); } - // Construct using com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -667,23 +667,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; } - public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getDefaultInstanceForType() { - return com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.getDefaultInstance(); } - public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp build() { - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp result = buildPartial(); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp build() { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp buildPartial() { - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp result = new com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp(this); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp buildPartial() { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp result = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp(this); result.subnetId_ = subnetId_; result.ipAddress_ = ipAddress_; onBuilt(); @@ -717,16 +717,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp) { - return mergeFrom((com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp)other); + if (other instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp) { + return mergeFrom((com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp other) { - if (other == com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp other) { + if (other == com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.getDefaultInstance()) return this; if (!other.getSubnetId().isEmpty()) { subnetId_ = other.subnetId_; onChanged(); @@ -747,11 +747,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp parsedMessage = null; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -913,12 +913,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration.FixedIp) - private static final com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp(); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -941,7 +941,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1020,14 +1020,14 @@ private SecurityGroupId( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_fieldAccessorTable + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder.class); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @@ -1099,10 +1099,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId)) { return super.equals(obj); } - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId other = (com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId) obj; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId other = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId) obj; boolean result = true; result = result && getId() @@ -1124,58 +1124,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId 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 com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId 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 com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1187,7 +1187,7 @@ public static com.futurewei.alioth.controller.portstate.PortConfiguration.Securi public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1207,20 +1207,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration.SecurityGroupId) - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_fieldAccessorTable + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder.class); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder.class); } - // Construct using com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1244,23 +1244,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; } - public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId getDefaultInstanceForType() { - return com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance(); } - public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId build() { - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId result = buildPartial(); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId build() { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId buildPartial() { - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId result = new com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId(this); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId buildPartial() { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId result = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId(this); result.id_ = id_; onBuilt(); return result; @@ -1293,16 +1293,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId) { - return mergeFrom((com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId)other); + if (other instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId) { + return mergeFrom((com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId other) { - if (other == com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId other) { + if (other == com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -1319,11 +1319,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId parsedMessage = null; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1416,12 +1416,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration.SecurityGroupId) - private static final com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId(); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1444,7 +1444,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1540,14 +1540,14 @@ private AllowAddressPair( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_fieldAccessorTable + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.class, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder.class); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder.class); } public static final int IP_ADDRESS_FIELD_NUMBER = 1; @@ -1659,10 +1659,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair)) { return super.equals(obj); } - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair other = (com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair) obj; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair other = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair) obj; boolean result = true; result = result && getIpAddress() @@ -1688,58 +1688,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair 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 com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair 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 com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1751,7 +1751,7 @@ public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowA public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1771,20 +1771,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration.AllowAddressPair) - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_fieldAccessorTable + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.class, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder.class); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder.class); } - // Construct using com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1810,23 +1810,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; } - public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair getDefaultInstanceForType() { - return com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance(); } - public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair build() { - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair result = buildPartial(); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair build() { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair buildPartial() { - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair result = new com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair(this); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair buildPartial() { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair result = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair(this); result.ipAddress_ = ipAddress_; result.macAddress_ = macAddress_; onBuilt(); @@ -1860,16 +1860,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair) { - return mergeFrom((com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair)other); + if (other instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair) { + return mergeFrom((com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair other) { - if (other == com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair other) { + if (other == com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance()) return this; if (!other.getIpAddress().isEmpty()) { ipAddress_ = other.ipAddress_; onChanged(); @@ -1890,11 +1890,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair parsedMessage = null; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2056,12 +2056,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration.AllowAddressPair) - private static final com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair(); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2084,7 +2084,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2180,14 +2180,14 @@ private ExtraDhcpOption( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_fieldAccessorTable + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.class, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder.class); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -2299,10 +2299,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption)) { return super.equals(obj); } - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption other = (com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption) obj; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption other = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption) obj; boolean result = true; result = result && getName() @@ -2328,58 +2328,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption 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 com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption 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 com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2391,7 +2391,7 @@ public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraD public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -2411,20 +2411,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration.ExtraDhcpOption) - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_fieldAccessorTable + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.class, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder.class); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder.class); } - // Construct using com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2450,23 +2450,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; } - public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption getDefaultInstanceForType() { - return com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance(); } - public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption build() { - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption result = buildPartial(); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption build() { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption buildPartial() { - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption result = new com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption(this); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption buildPartial() { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption result = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption(this); result.name_ = name_; result.value_ = value_; onBuilt(); @@ -2500,16 +2500,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption) { - return mergeFrom((com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption)other); + if (other instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption) { + return mergeFrom((com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption other) { - if (other == com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption other) { + if (other == com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -2530,11 +2530,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption parsedMessage = null; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2696,12 +2696,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration.ExtraDhcpOption) - private static final com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption(); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2724,7 +2724,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2877,17 +2877,17 @@ public boolean getAdminStateUp() { } public static final int FIXED_IPS_FIELD_NUMBER = 6; - private java.util.List fixedIps_; + private java.util.List fixedIps_; /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public java.util.List getFixedIpsList() { + public java.util.List getFixedIpsList() { return fixedIps_; } /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public java.util.List + public java.util.List getFixedIpsOrBuilderList() { return fixedIps_; } @@ -2900,29 +2900,29 @@ public int getFixedIpsCount() { /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getFixedIps(int index) { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp getFixedIps(int index) { return fixedIps_.get(index); } /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( int index) { return fixedIps_.get(index); } public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 7; - private java.util.List securityGroupIds_; + private java.util.List securityGroupIds_; /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public java.util.List getSecurityGroupIdsList() { + public java.util.List getSecurityGroupIdsList() { return securityGroupIds_; } /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public java.util.List + public java.util.List getSecurityGroupIdsOrBuilderList() { return securityGroupIds_; } @@ -2935,29 +2935,29 @@ public int getSecurityGroupIdsCount() { /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index) { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( int index) { return securityGroupIds_.get(index); } public static final int ALLOW_ADDRESS_PAIRS_FIELD_NUMBER = 8; - private java.util.List allowAddressPairs_; + private java.util.List allowAddressPairs_; /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public java.util.List getAllowAddressPairsList() { + public java.util.List getAllowAddressPairsList() { return allowAddressPairs_; } /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public java.util.List + public java.util.List getAllowAddressPairsOrBuilderList() { return allowAddressPairs_; } @@ -2970,29 +2970,29 @@ public int getAllowAddressPairsCount() { /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index) { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index) { return allowAddressPairs_.get(index); } /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( int index) { return allowAddressPairs_.get(index); } public static final int EXTRA_DHCP_OPTIONS_FIELD_NUMBER = 9; - private java.util.List extraDhcpOptions_; + private java.util.List extraDhcpOptions_; /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public java.util.List getExtraDhcpOptionsList() { + public java.util.List getExtraDhcpOptionsList() { return extraDhcpOptions_; } /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public java.util.List + public java.util.List getExtraDhcpOptionsOrBuilderList() { return extraDhcpOptions_; } @@ -3005,13 +3005,13 @@ public int getExtraDhcpOptionsCount() { /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index) { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index) { return extraDhcpOptions_.get(index); } /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( int index) { return extraDhcpOptions_.get(index); } @@ -3104,10 +3104,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.portstate.PortConfiguration)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration)) { return super.equals(obj); } - com.futurewei.alioth.controller.portstate.PortConfiguration other = (com.futurewei.alioth.controller.portstate.PortConfiguration) obj; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration other = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration) obj; boolean result = true; result = result && getProjectId() @@ -3170,58 +3170,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration 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 com.futurewei.alioth.controller.portstate.PortConfiguration parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration 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 com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3233,7 +3233,7 @@ public static com.futurewei.alioth.controller.portstate.PortConfiguration parseF public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.portstate.PortConfiguration prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.portstate.PortConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -3253,20 +3253,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration) - com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder { + com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.portstate.PortConfiguration.class, com.futurewei.alioth.controller.portstate.PortConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder.class); } - // Construct using com.futurewei.alioth.controller.portstate.PortConfiguration.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.portstate.PortConfiguration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3326,23 +3326,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_descriptor; } - public com.futurewei.alioth.controller.portstate.PortConfiguration getDefaultInstanceForType() { - return com.futurewei.alioth.controller.portstate.PortConfiguration.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.portstate.PortConfiguration.getDefaultInstance(); } - public com.futurewei.alioth.controller.portstate.PortConfiguration build() { - com.futurewei.alioth.controller.portstate.PortConfiguration result = buildPartial(); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration build() { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.portstate.PortConfiguration buildPartial() { - com.futurewei.alioth.controller.portstate.PortConfiguration result = new com.futurewei.alioth.controller.portstate.PortConfiguration(this); + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration buildPartial() { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration result = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.projectId_ = projectId_; @@ -3418,16 +3418,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.portstate.PortConfiguration) { - return mergeFrom((com.futurewei.alioth.controller.portstate.PortConfiguration)other); + if (other instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration) { + return mergeFrom((com.futurewei.alioth.controller.schema.portstate.PortConfiguration)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.portstate.PortConfiguration other) { - if (other == com.futurewei.alioth.controller.portstate.PortConfiguration.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.portstate.PortConfiguration other) { + if (other == com.futurewei.alioth.controller.schema.portstate.PortConfiguration.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -3563,11 +3563,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.portstate.PortConfiguration parsedMessage = null; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.portstate.PortConfiguration) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3880,22 +3880,22 @@ public Builder clearAdminStateUp() { return this; } - private java.util.List fixedIps_ = + private java.util.List fixedIps_ = java.util.Collections.emptyList(); private void ensureFixedIpsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { - fixedIps_ = new java.util.ArrayList(fixedIps_); + fixedIps_ = new java.util.ArrayList(fixedIps_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder> fixedIpsBuilder_; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder> fixedIpsBuilder_; /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public java.util.List getFixedIpsList() { + public java.util.List getFixedIpsList() { if (fixedIpsBuilder_ == null) { return java.util.Collections.unmodifiableList(fixedIps_); } else { @@ -3915,7 +3915,7 @@ public int getFixedIpsCount() { /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getFixedIps(int index) { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp getFixedIps(int index) { if (fixedIpsBuilder_ == null) { return fixedIps_.get(index); } else { @@ -3926,7 +3926,7 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp getFi * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ public Builder setFixedIps( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp value) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp value) { if (fixedIpsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3943,7 +3943,7 @@ public Builder setFixedIps( * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ public Builder setFixedIps( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder builderForValue) { if (fixedIpsBuilder_ == null) { ensureFixedIpsIsMutable(); fixedIps_.set(index, builderForValue.build()); @@ -3956,7 +3956,7 @@ public Builder setFixedIps( /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public Builder addFixedIps(com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp value) { + public Builder addFixedIps(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp value) { if (fixedIpsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3973,7 +3973,7 @@ public Builder addFixedIps(com.futurewei.alioth.controller.portstate.PortConfigu * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ public Builder addFixedIps( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp value) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp value) { if (fixedIpsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3990,7 +3990,7 @@ public Builder addFixedIps( * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ public Builder addFixedIps( - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder builderForValue) { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder builderForValue) { if (fixedIpsBuilder_ == null) { ensureFixedIpsIsMutable(); fixedIps_.add(builderForValue.build()); @@ -4004,7 +4004,7 @@ public Builder addFixedIps( * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ public Builder addFixedIps( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder builderForValue) { if (fixedIpsBuilder_ == null) { ensureFixedIpsIsMutable(); fixedIps_.add(index, builderForValue.build()); @@ -4018,7 +4018,7 @@ public Builder addFixedIps( * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ public Builder addAllFixedIps( - java.lang.Iterable values) { + java.lang.Iterable values) { if (fixedIpsBuilder_ == null) { ensureFixedIpsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -4058,14 +4058,14 @@ public Builder removeFixedIps(int index) { /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder getFixedIpsBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder getFixedIpsBuilder( int index) { return getFixedIpsFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( int index) { if (fixedIpsBuilder_ == null) { return fixedIps_.get(index); } else { @@ -4075,7 +4075,7 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuil /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public java.util.List + public java.util.List getFixedIpsOrBuilderList() { if (fixedIpsBuilder_ != null) { return fixedIpsBuilder_.getMessageOrBuilderList(); @@ -4086,31 +4086,31 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuil /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder addFixedIpsBuilder() { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder addFixedIpsBuilder() { return getFixedIpsFieldBuilder().addBuilder( - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.getDefaultInstance()); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder addFixedIpsBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder addFixedIpsBuilder( int index) { return getFixedIpsFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public java.util.List + public java.util.List getFixedIpsBuilderList() { return getFixedIpsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder> + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder> getFixedIpsFieldBuilder() { if (fixedIpsBuilder_ == null) { fixedIpsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIpOrBuilder>( + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder>( fixedIps_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), @@ -4120,22 +4120,22 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.FixedIp.Build return fixedIpsBuilder_; } - private java.util.List securityGroupIds_ = + private java.util.List securityGroupIds_ = java.util.Collections.emptyList(); private void ensureSecurityGroupIdsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { - securityGroupIds_ = new java.util.ArrayList(securityGroupIds_); + securityGroupIds_ = new java.util.ArrayList(securityGroupIds_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder> securityGroupIdsBuilder_; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder> securityGroupIdsBuilder_; /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public java.util.List getSecurityGroupIdsList() { + public java.util.List getSecurityGroupIdsList() { if (securityGroupIdsBuilder_ == null) { return java.util.Collections.unmodifiableList(securityGroupIds_); } else { @@ -4155,7 +4155,7 @@ public int getSecurityGroupIdsCount() { /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index) { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index) { if (securityGroupIdsBuilder_ == null) { return securityGroupIds_.get(index); } else { @@ -4166,7 +4166,7 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroup * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ public Builder setSecurityGroupIds( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId value) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId value) { if (securityGroupIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4183,7 +4183,7 @@ public Builder setSecurityGroupIds( * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ public Builder setSecurityGroupIds( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder builderForValue) { if (securityGroupIdsBuilder_ == null) { ensureSecurityGroupIdsIsMutable(); securityGroupIds_.set(index, builderForValue.build()); @@ -4196,7 +4196,7 @@ public Builder setSecurityGroupIds( /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public Builder addSecurityGroupIds(com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId value) { + public Builder addSecurityGroupIds(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId value) { if (securityGroupIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4213,7 +4213,7 @@ public Builder addSecurityGroupIds(com.futurewei.alioth.controller.portstate.Por * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ public Builder addSecurityGroupIds( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId value) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId value) { if (securityGroupIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4230,7 +4230,7 @@ public Builder addSecurityGroupIds( * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ public Builder addSecurityGroupIds( - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder builderForValue) { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder builderForValue) { if (securityGroupIdsBuilder_ == null) { ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(builderForValue.build()); @@ -4244,7 +4244,7 @@ public Builder addSecurityGroupIds( * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ public Builder addSecurityGroupIds( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder builderForValue) { if (securityGroupIdsBuilder_ == null) { ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(index, builderForValue.build()); @@ -4258,7 +4258,7 @@ public Builder addSecurityGroupIds( * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ public Builder addAllSecurityGroupIds( - java.lang.Iterable values) { + java.lang.Iterable values) { if (securityGroupIdsBuilder_ == null) { ensureSecurityGroupIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -4298,14 +4298,14 @@ public Builder removeSecurityGroupIds(int index) { /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder getSecurityGroupIdsBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder getSecurityGroupIdsBuilder( int index) { return getSecurityGroupIdsFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( int index) { if (securityGroupIdsBuilder_ == null) { return securityGroupIds_.get(index); } else { @@ -4315,7 +4315,7 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroup /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public java.util.List + public java.util.List getSecurityGroupIdsOrBuilderList() { if (securityGroupIdsBuilder_ != null) { return securityGroupIdsBuilder_.getMessageOrBuilderList(); @@ -4326,31 +4326,31 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroup /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder addSecurityGroupIdsBuilder() { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder addSecurityGroupIdsBuilder() { return getSecurityGroupIdsFieldBuilder().addBuilder( - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance()); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder addSecurityGroupIdsBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder addSecurityGroupIdsBuilder( int index) { return getSecurityGroupIdsFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public java.util.List + public java.util.List getSecurityGroupIdsBuilderList() { return getSecurityGroupIdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder> + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder> getSecurityGroupIdsFieldBuilder() { if (securityGroupIdsBuilder_ == null) { securityGroupIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroupIdOrBuilder>( + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder>( securityGroupIds_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), @@ -4360,22 +4360,22 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.SecurityGroup return securityGroupIdsBuilder_; } - private java.util.List allowAddressPairs_ = + private java.util.List allowAddressPairs_ = java.util.Collections.emptyList(); private void ensureAllowAddressPairsIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { - allowAddressPairs_ = new java.util.ArrayList(allowAddressPairs_); + allowAddressPairs_ = new java.util.ArrayList(allowAddressPairs_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder> allowAddressPairsBuilder_; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder> allowAddressPairsBuilder_; /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public java.util.List getAllowAddressPairsList() { + public java.util.List getAllowAddressPairsList() { if (allowAddressPairsBuilder_ == null) { return java.util.Collections.unmodifiableList(allowAddressPairs_); } else { @@ -4395,7 +4395,7 @@ public int getAllowAddressPairsCount() { /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index) { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index) { if (allowAddressPairsBuilder_ == null) { return allowAddressPairs_.get(index); } else { @@ -4406,7 +4406,7 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressP * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ public Builder setAllowAddressPairs( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair value) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair value) { if (allowAddressPairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4423,7 +4423,7 @@ public Builder setAllowAddressPairs( * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ public Builder setAllowAddressPairs( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder builderForValue) { if (allowAddressPairsBuilder_ == null) { ensureAllowAddressPairsIsMutable(); allowAddressPairs_.set(index, builderForValue.build()); @@ -4436,7 +4436,7 @@ public Builder setAllowAddressPairs( /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public Builder addAllowAddressPairs(com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair value) { + public Builder addAllowAddressPairs(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair value) { if (allowAddressPairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4453,7 +4453,7 @@ public Builder addAllowAddressPairs(com.futurewei.alioth.controller.portstate.Po * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ public Builder addAllowAddressPairs( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair value) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair value) { if (allowAddressPairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4470,7 +4470,7 @@ public Builder addAllowAddressPairs( * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ public Builder addAllowAddressPairs( - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder builderForValue) { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder builderForValue) { if (allowAddressPairsBuilder_ == null) { ensureAllowAddressPairsIsMutable(); allowAddressPairs_.add(builderForValue.build()); @@ -4484,7 +4484,7 @@ public Builder addAllowAddressPairs( * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ public Builder addAllowAddressPairs( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder builderForValue) { if (allowAddressPairsBuilder_ == null) { ensureAllowAddressPairsIsMutable(); allowAddressPairs_.add(index, builderForValue.build()); @@ -4498,7 +4498,7 @@ public Builder addAllowAddressPairs( * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ public Builder addAllAllowAddressPairs( - java.lang.Iterable values) { + java.lang.Iterable values) { if (allowAddressPairsBuilder_ == null) { ensureAllowAddressPairsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -4538,14 +4538,14 @@ public Builder removeAllowAddressPairs(int index) { /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder getAllowAddressPairsBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder getAllowAddressPairsBuilder( int index) { return getAllowAddressPairsFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( int index) { if (allowAddressPairsBuilder_ == null) { return allowAddressPairs_.get(index); } else { @@ -4555,7 +4555,7 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressP /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public java.util.List + public java.util.List getAllowAddressPairsOrBuilderList() { if (allowAddressPairsBuilder_ != null) { return allowAddressPairsBuilder_.getMessageOrBuilderList(); @@ -4566,31 +4566,31 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressP /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder addAllowAddressPairsBuilder() { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder addAllowAddressPairsBuilder() { return getAllowAddressPairsFieldBuilder().addBuilder( - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance()); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder addAllowAddressPairsBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder addAllowAddressPairsBuilder( int index) { return getAllowAddressPairsFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public java.util.List + public java.util.List getAllowAddressPairsBuilderList() { return getAllowAddressPairsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder> + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder> getAllowAddressPairsFieldBuilder() { if (allowAddressPairsBuilder_ == null) { allowAddressPairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressPairOrBuilder>( + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder>( allowAddressPairs_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), @@ -4600,22 +4600,22 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.AllowAddressP return allowAddressPairsBuilder_; } - private java.util.List extraDhcpOptions_ = + private java.util.List extraDhcpOptions_ = java.util.Collections.emptyList(); private void ensureExtraDhcpOptionsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { - extraDhcpOptions_ = new java.util.ArrayList(extraDhcpOptions_); + extraDhcpOptions_ = new java.util.ArrayList(extraDhcpOptions_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder> extraDhcpOptionsBuilder_; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder> extraDhcpOptionsBuilder_; /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public java.util.List getExtraDhcpOptionsList() { + public java.util.List getExtraDhcpOptionsList() { if (extraDhcpOptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(extraDhcpOptions_); } else { @@ -4635,7 +4635,7 @@ public int getExtraDhcpOptionsCount() { /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index) { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index) { if (extraDhcpOptionsBuilder_ == null) { return extraDhcpOptions_.get(index); } else { @@ -4646,7 +4646,7 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOpti * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ public Builder setExtraDhcpOptions( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption value) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption value) { if (extraDhcpOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4663,7 +4663,7 @@ public Builder setExtraDhcpOptions( * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ public Builder setExtraDhcpOptions( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { if (extraDhcpOptionsBuilder_ == null) { ensureExtraDhcpOptionsIsMutable(); extraDhcpOptions_.set(index, builderForValue.build()); @@ -4676,7 +4676,7 @@ public Builder setExtraDhcpOptions( /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public Builder addExtraDhcpOptions(com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption value) { + public Builder addExtraDhcpOptions(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption value) { if (extraDhcpOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4693,7 +4693,7 @@ public Builder addExtraDhcpOptions(com.futurewei.alioth.controller.portstate.Por * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ public Builder addExtraDhcpOptions( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption value) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption value) { if (extraDhcpOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4710,7 +4710,7 @@ public Builder addExtraDhcpOptions( * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ public Builder addExtraDhcpOptions( - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { if (extraDhcpOptionsBuilder_ == null) { ensureExtraDhcpOptionsIsMutable(); extraDhcpOptions_.add(builderForValue.build()); @@ -4724,7 +4724,7 @@ public Builder addExtraDhcpOptions( * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ public Builder addExtraDhcpOptions( - int index, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { if (extraDhcpOptionsBuilder_ == null) { ensureExtraDhcpOptionsIsMutable(); extraDhcpOptions_.add(index, builderForValue.build()); @@ -4738,7 +4738,7 @@ public Builder addExtraDhcpOptions( * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ public Builder addAllExtraDhcpOptions( - java.lang.Iterable values) { + java.lang.Iterable values) { if (extraDhcpOptionsBuilder_ == null) { ensureExtraDhcpOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -4778,14 +4778,14 @@ public Builder removeExtraDhcpOptions(int index) { /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder getExtraDhcpOptionsBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder getExtraDhcpOptionsBuilder( int index) { return getExtraDhcpOptionsFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( int index) { if (extraDhcpOptionsBuilder_ == null) { return extraDhcpOptions_.get(index); } else { @@ -4795,7 +4795,7 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOpti /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public java.util.List + public java.util.List getExtraDhcpOptionsOrBuilderList() { if (extraDhcpOptionsBuilder_ != null) { return extraDhcpOptionsBuilder_.getMessageOrBuilderList(); @@ -4806,31 +4806,31 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOpti /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder addExtraDhcpOptionsBuilder() { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder addExtraDhcpOptionsBuilder() { return getExtraDhcpOptionsFieldBuilder().addBuilder( - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance()); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder addExtraDhcpOptionsBuilder( + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder addExtraDhcpOptionsBuilder( int index) { return getExtraDhcpOptionsFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public java.util.List + public java.util.List getExtraDhcpOptionsBuilderList() { return getExtraDhcpOptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder> + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder> getExtraDhcpOptionsFieldBuilder() { if (extraDhcpOptionsBuilder_ == null) { extraDhcpOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder>( + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder>( extraDhcpOptions_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), @@ -4854,12 +4854,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration) - private static final com.futurewei.alioth.controller.portstate.PortConfiguration DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.portstate.PortConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.portstate.PortConfiguration(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration(); } - public static com.futurewei.alioth.controller.portstate.PortConfiguration getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4882,7 +4882,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.portstate.PortConfiguration getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4899,7 +4899,7 @@ public interface PortStateOrBuilder extends /** * optional .aliothcontroller.OperationType operation_type = 1; */ - com.futurewei.alioth.controller.common.OperationType getOperationType(); + com.futurewei.alioth.controller.schema.common.OperationType getOperationType(); /** * optional .aliothcontroller.PortConfiguration configuration = 2; @@ -4908,11 +4908,11 @@ public interface PortStateOrBuilder extends /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - com.futurewei.alioth.controller.portstate.PortConfiguration getConfiguration(); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration getConfiguration(); /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder getConfigurationOrBuilder(); + com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder getConfigurationOrBuilder(); } /** * Protobuf type {@code aliothcontroller.PortState} @@ -4961,11 +4961,11 @@ private PortState( break; } case 18: { - com.futurewei.alioth.controller.portstate.PortConfiguration.Builder subBuilder = null; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder subBuilder = null; if (configuration_ != null) { subBuilder = configuration_.toBuilder(); } - configuration_ = input.readMessage(com.futurewei.alioth.controller.portstate.PortConfiguration.parser(), extensionRegistry); + configuration_ = input.readMessage(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configuration_); configuration_ = subBuilder.buildPartial(); @@ -4986,14 +4986,14 @@ private PortState( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortState_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.portstate.PortState.class, com.futurewei.alioth.controller.portstate.PortState.Builder.class); + com.futurewei.alioth.controller.schema.portstate.PortState.class, com.futurewei.alioth.controller.schema.portstate.PortState.Builder.class); } public static final int OPERATION_TYPE_FIELD_NUMBER = 1; @@ -5007,13 +5007,13 @@ public int getOperationTypeValue() { /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.common.OperationType getOperationType() { - com.futurewei.alioth.controller.common.OperationType result = com.futurewei.alioth.controller.common.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.common.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.common.OperationType result = com.futurewei.alioth.controller.schema.common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.common.OperationType.UNRECOGNIZED : result; } public static final int CONFIGURATION_FIELD_NUMBER = 2; - private com.futurewei.alioth.controller.portstate.PortConfiguration configuration_; + private com.futurewei.alioth.controller.schema.portstate.PortConfiguration configuration_; /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ @@ -5023,13 +5023,13 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration getConfiguration() { - return configuration_ == null ? com.futurewei.alioth.controller.portstate.PortConfiguration.getDefaultInstance() : configuration_; + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration getConfiguration() { + return configuration_ == null ? com.futurewei.alioth.controller.schema.portstate.PortConfiguration.getDefaultInstance() : configuration_; } /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder getConfigurationOrBuilder() { return getConfiguration(); } @@ -5045,7 +5045,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operationType_ != com.futurewei.alioth.controller.common.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.common.OperationType.CREATE.getNumber()) { output.writeEnum(1, operationType_); } if (configuration_ != null) { @@ -5058,7 +5058,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (operationType_ != com.futurewei.alioth.controller.common.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.common.OperationType.CREATE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, operationType_); } @@ -5076,10 +5076,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.portstate.PortState)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.portstate.PortState)) { return super.equals(obj); } - com.futurewei.alioth.controller.portstate.PortState other = (com.futurewei.alioth.controller.portstate.PortState) obj; + com.futurewei.alioth.controller.schema.portstate.PortState other = (com.futurewei.alioth.controller.schema.portstate.PortState) obj; boolean result = true; result = result && operationType_ == other.operationType_; @@ -5109,58 +5109,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.portstate.PortState parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.portstate.PortState parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.portstate.PortState parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.portstate.PortState parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.portstate.PortState parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortState parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortState 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 com.futurewei.alioth.controller.portstate.PortState parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.portstate.PortState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortState parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortState 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 com.futurewei.alioth.controller.portstate.PortState parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.portstate.PortState parseFrom( + public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5172,7 +5172,7 @@ public static com.futurewei.alioth.controller.portstate.PortState parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.portstate.PortState prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.portstate.PortState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -5192,20 +5192,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.PortState) - com.futurewei.alioth.controller.portstate.PortStateOrBuilder { + com.futurewei.alioth.controller.schema.portstate.PortStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortState_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.portstate.PortState.class, com.futurewei.alioth.controller.portstate.PortState.Builder.class); + com.futurewei.alioth.controller.schema.portstate.PortState.class, com.futurewei.alioth.controller.schema.portstate.PortState.Builder.class); } - // Construct using com.futurewei.alioth.controller.portstate.PortState.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.portstate.PortState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -5235,23 +5235,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.portstate.internal_static_aliothcontroller_PortState_descriptor; + return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortState_descriptor; } - public com.futurewei.alioth.controller.portstate.PortState getDefaultInstanceForType() { - return com.futurewei.alioth.controller.portstate.PortState.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.portstate.PortState getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.portstate.PortState.getDefaultInstance(); } - public com.futurewei.alioth.controller.portstate.PortState build() { - com.futurewei.alioth.controller.portstate.PortState result = buildPartial(); + public com.futurewei.alioth.controller.schema.portstate.PortState build() { + com.futurewei.alioth.controller.schema.portstate.PortState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.portstate.PortState buildPartial() { - com.futurewei.alioth.controller.portstate.PortState result = new com.futurewei.alioth.controller.portstate.PortState(this); + public com.futurewei.alioth.controller.schema.portstate.PortState buildPartial() { + com.futurewei.alioth.controller.schema.portstate.PortState result = new com.futurewei.alioth.controller.schema.portstate.PortState(this); result.operationType_ = operationType_; if (configurationBuilder_ == null) { result.configuration_ = configuration_; @@ -5289,16 +5289,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.portstate.PortState) { - return mergeFrom((com.futurewei.alioth.controller.portstate.PortState)other); + if (other instanceof com.futurewei.alioth.controller.schema.portstate.PortState) { + return mergeFrom((com.futurewei.alioth.controller.schema.portstate.PortState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.portstate.PortState other) { - if (other == com.futurewei.alioth.controller.portstate.PortState.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.portstate.PortState other) { + if (other == com.futurewei.alioth.controller.schema.portstate.PortState.getDefaultInstance()) return this; if (other.operationType_ != 0) { setOperationTypeValue(other.getOperationTypeValue()); } @@ -5317,11 +5317,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.portstate.PortState parsedMessage = null; + com.futurewei.alioth.controller.schema.portstate.PortState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.portstate.PortState) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.portstate.PortState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5349,14 +5349,14 @@ public Builder setOperationTypeValue(int value) { /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.common.OperationType getOperationType() { - com.futurewei.alioth.controller.common.OperationType result = com.futurewei.alioth.controller.common.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.common.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.common.OperationType result = com.futurewei.alioth.controller.schema.common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.common.OperationType.UNRECOGNIZED : result; } /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public Builder setOperationType(com.futurewei.alioth.controller.common.OperationType value) { + public Builder setOperationType(com.futurewei.alioth.controller.schema.common.OperationType value) { if (value == null) { throw new NullPointerException(); } @@ -5375,9 +5375,9 @@ public Builder clearOperationType() { return this; } - private com.futurewei.alioth.controller.portstate.PortConfiguration configuration_ = null; + private com.futurewei.alioth.controller.schema.portstate.PortConfiguration configuration_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration, com.futurewei.alioth.controller.portstate.PortConfiguration.Builder, com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder> configurationBuilder_; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder> configurationBuilder_; /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ @@ -5387,9 +5387,9 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration getConfiguration() { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration getConfiguration() { if (configurationBuilder_ == null) { - return configuration_ == null ? com.futurewei.alioth.controller.portstate.PortConfiguration.getDefaultInstance() : configuration_; + return configuration_ == null ? com.futurewei.alioth.controller.schema.portstate.PortConfiguration.getDefaultInstance() : configuration_; } else { return configurationBuilder_.getMessage(); } @@ -5397,7 +5397,7 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration getConfigurat /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public Builder setConfiguration(com.futurewei.alioth.controller.portstate.PortConfiguration value) { + public Builder setConfiguration(com.futurewei.alioth.controller.schema.portstate.PortConfiguration value) { if (configurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5414,7 +5414,7 @@ public Builder setConfiguration(com.futurewei.alioth.controller.portstate.PortCo * optional .aliothcontroller.PortConfiguration configuration = 2; */ public Builder setConfiguration( - com.futurewei.alioth.controller.portstate.PortConfiguration.Builder builderForValue) { + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder builderForValue) { if (configurationBuilder_ == null) { configuration_ = builderForValue.build(); onChanged(); @@ -5427,11 +5427,11 @@ public Builder setConfiguration( /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public Builder mergeConfiguration(com.futurewei.alioth.controller.portstate.PortConfiguration value) { + public Builder mergeConfiguration(com.futurewei.alioth.controller.schema.portstate.PortConfiguration value) { if (configurationBuilder_ == null) { if (configuration_ != null) { configuration_ = - com.futurewei.alioth.controller.portstate.PortConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); } else { configuration_ = value; } @@ -5459,7 +5459,7 @@ public Builder clearConfiguration() { /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.portstate.PortConfiguration.Builder getConfigurationBuilder() { + public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder getConfigurationBuilder() { onChanged(); return getConfigurationFieldBuilder().getBuilder(); @@ -5467,23 +5467,23 @@ public com.futurewei.alioth.controller.portstate.PortConfiguration.Builder getCo /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder getConfigurationOrBuilder() { if (configurationBuilder_ != null) { return configurationBuilder_.getMessageOrBuilder(); } else { return configuration_ == null ? - com.futurewei.alioth.controller.portstate.PortConfiguration.getDefaultInstance() : configuration_; + com.futurewei.alioth.controller.schema.portstate.PortConfiguration.getDefaultInstance() : configuration_; } } /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration, com.futurewei.alioth.controller.portstate.PortConfiguration.Builder, com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder> + com.futurewei.alioth.controller.schema.portstate.PortConfiguration, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder> getConfigurationFieldBuilder() { if (configurationBuilder_ == null) { configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.portstate.PortConfiguration, com.futurewei.alioth.controller.portstate.PortConfiguration.Builder, com.futurewei.alioth.controller.portstate.PortConfigurationOrBuilder>( + com.futurewei.alioth.controller.schema.portstate.PortConfiguration, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder>( getConfiguration(), getParentForChildren(), isClean()); @@ -5506,12 +5506,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.PortState) - private static final com.futurewei.alioth.controller.portstate.PortState DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.portstate.PortState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.portstate.PortState(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.portstate.PortState(); } - public static com.futurewei.alioth.controller.portstate.PortState getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.portstate.PortState getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -5534,7 +5534,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.portstate.PortState getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.portstate.PortState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -5598,9 +5598,9 @@ public com.futurewei.alioth.controller.portstate.PortState getDefaultInstanceFor "\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\200\001\n\tPortState\0227\n\016op" + "eration_type\030\001 \001(\0162\037.aliothcontroller.Op" + "erationType\022:\n\rconfiguration\030\002 \001(\0132#.ali" + - "othcontroller.PortConfigurationB,\n\037com.f", - "uturewei.alioth.controllerB\tportstateb\006p" + - "roto3" + "othcontroller.PortConfigurationB3\n&com.f", + "uturewei.alioth.controller.schemaB\tports" + + "tateb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -5613,7 +5613,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.futurewei.alioth.controller.common.getDescriptor(), + com.futurewei.alioth.controller.schema.common.getDescriptor(), }, assigner); internal_static_aliothcontroller_PortConfiguration_descriptor = getDescriptor().getMessageTypes().get(0); @@ -5651,7 +5651,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aliothcontroller_PortState_descriptor, new java.lang.String[] { "OperationType", "Configuration", }); - com.futurewei.alioth.controller.common.getDescriptor(); + com.futurewei.alioth.controller.schema.common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/com/futurewei/alioth/controller/securitygroupstate.java b/src/com/futurewei/alioth/controller/schema/securitygroupstate.java similarity index 79% rename from src/com/futurewei/alioth/controller/securitygroupstate.java rename to src/com/futurewei/alioth/controller/schema/securitygroupstate.java index bc10580c2..ba3584599 100644 --- a/src/com/futurewei/alioth/controller/securitygroupstate.java +++ b/src/com/futurewei/alioth/controller/schema/securitygroupstate.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: securitygroupstate.proto -package com.futurewei.alioth.controller; +package com.futurewei.alioth.controller.schema; public final class securitygroupstate { private securitygroupstate() {} @@ -51,12 +51,12 @@ public interface SecurityGroupConfigurationOrBuilder extends /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - java.util.List + java.util.List getSecurityGroupRulesList(); /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index); /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ @@ -64,12 +64,12 @@ public interface SecurityGroupConfigurationOrBuilder extends /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - java.util.List + java.util.List getSecurityGroupRulesOrBuilderList(); /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( int index); } /** @@ -135,11 +135,11 @@ private SecurityGroupConfiguration( } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - securityGroupRules_ = new java.util.ArrayList(); + securityGroupRules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } securityGroupRules_.add( - input.readMessage(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.parser(), extensionRegistry)); break; } } @@ -158,14 +158,14 @@ private SecurityGroupConfiguration( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.class, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.class, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder.class); } /** @@ -240,7 +240,7 @@ public Direction findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.getDescriptor().getEnumTypes().get(0); + return com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.getDescriptor().getEnumTypes().get(0); } private static final Direction[] VALUES = values(); @@ -297,7 +297,7 @@ public interface SecurityGroupRuleOrBuilder extends /** * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; */ - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction getDirection(); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction getDirection(); /** * optional .aliothcontroller.EtherType ethertype = 4; @@ -306,7 +306,7 @@ public interface SecurityGroupRuleOrBuilder extends /** * optional .aliothcontroller.EtherType ethertype = 4; */ - com.futurewei.alioth.controller.common.EtherType getEthertype(); + com.futurewei.alioth.controller.schema.common.EtherType getEthertype(); /** * optional .aliothcontroller.Protocol protocol = 5; @@ -315,7 +315,7 @@ public interface SecurityGroupRuleOrBuilder extends /** * optional .aliothcontroller.Protocol protocol = 5; */ - com.futurewei.alioth.controller.common.Protocol getProtocol(); + com.futurewei.alioth.controller.schema.common.Protocol getProtocol(); /** * optional int32 port_range_min = 6; @@ -460,14 +460,14 @@ private SecurityGroupRule( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_fieldAccessorTable + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.class, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder.class); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.class, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder.class); } public static final int SECURITY_GROUP_ID_FIELD_NUMBER = 1; @@ -549,9 +549,9 @@ public int getDirectionValue() { /** * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction getDirection() { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction result = com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction.valueOf(direction_); - return result == null ? com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction getDirection() { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction result = com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction.valueOf(direction_); + return result == null ? com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction.UNRECOGNIZED : result; } public static final int ETHERTYPE_FIELD_NUMBER = 4; @@ -565,9 +565,9 @@ public int getEthertypeValue() { /** * optional .aliothcontroller.EtherType ethertype = 4; */ - public com.futurewei.alioth.controller.common.EtherType getEthertype() { - com.futurewei.alioth.controller.common.EtherType result = com.futurewei.alioth.controller.common.EtherType.valueOf(ethertype_); - return result == null ? com.futurewei.alioth.controller.common.EtherType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.common.EtherType getEthertype() { + com.futurewei.alioth.controller.schema.common.EtherType result = com.futurewei.alioth.controller.schema.common.EtherType.valueOf(ethertype_); + return result == null ? com.futurewei.alioth.controller.schema.common.EtherType.UNRECOGNIZED : result; } public static final int PROTOCOL_FIELD_NUMBER = 5; @@ -581,9 +581,9 @@ public int getProtocolValue() { /** * optional .aliothcontroller.Protocol protocol = 5; */ - public com.futurewei.alioth.controller.common.Protocol getProtocol() { - com.futurewei.alioth.controller.common.Protocol result = com.futurewei.alioth.controller.common.Protocol.valueOf(protocol_); - return result == null ? com.futurewei.alioth.controller.common.Protocol.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.common.Protocol getProtocol() { + com.futurewei.alioth.controller.schema.common.Protocol result = com.futurewei.alioth.controller.schema.common.Protocol.valueOf(protocol_); + return result == null ? com.futurewei.alioth.controller.schema.common.Protocol.UNRECOGNIZED : result; } public static final int PORT_RANGE_MIN_FIELD_NUMBER = 6; @@ -690,13 +690,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } - if (direction_ != com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction.EGRESS.getNumber()) { + if (direction_ != com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction.EGRESS.getNumber()) { output.writeEnum(3, direction_); } - if (ethertype_ != com.futurewei.alioth.controller.common.EtherType.IPV4.getNumber()) { + if (ethertype_ != com.futurewei.alioth.controller.schema.common.EtherType.IPV4.getNumber()) { output.writeEnum(4, ethertype_); } - if (protocol_ != com.futurewei.alioth.controller.common.Protocol.TCP.getNumber()) { + if (protocol_ != com.futurewei.alioth.controller.schema.common.Protocol.TCP.getNumber()) { output.writeEnum(5, protocol_); } if (portRangeMin_ != 0) { @@ -724,15 +724,15 @@ public int getSerializedSize() { if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } - if (direction_ != com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction.EGRESS.getNumber()) { + if (direction_ != com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction.EGRESS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, direction_); } - if (ethertype_ != com.futurewei.alioth.controller.common.EtherType.IPV4.getNumber()) { + if (ethertype_ != com.futurewei.alioth.controller.schema.common.EtherType.IPV4.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, ethertype_); } - if (protocol_ != com.futurewei.alioth.controller.common.Protocol.TCP.getNumber()) { + if (protocol_ != com.futurewei.alioth.controller.schema.common.Protocol.TCP.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, protocol_); } @@ -760,10 +760,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule)) { return super.equals(obj); } - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule other = (com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule) obj; + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule other = (com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule) obj; boolean result = true; result = result && getSecurityGroupId() @@ -814,58 +814,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule 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 com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule 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 com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -877,7 +877,7 @@ public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupCo public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -897,20 +897,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule) - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_fieldAccessorTable + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.class, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder.class); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.class, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder.class); } - // Construct using com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -950,23 +950,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; } - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstanceForType() { - return com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance(); } - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule build() { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule result = buildPartial(); + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule build() { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule buildPartial() { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule result = new com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule(this); + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule buildPartial() { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule result = new com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule(this); result.securityGroupId_ = securityGroupId_; result.id_ = id_; result.direction_ = direction_; @@ -1007,16 +1007,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule) { - return mergeFrom((com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule)other); + if (other instanceof com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule) { + return mergeFrom((com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule other) { - if (other == com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule other) { + if (other == com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()) return this; if (!other.getSecurityGroupId().isEmpty()) { securityGroupId_ = other.securityGroupId_; onChanged(); @@ -1060,11 +1060,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parsedMessage = null; + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1230,14 +1230,14 @@ public Builder setDirectionValue(int value) { /** * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction getDirection() { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction result = com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction.valueOf(direction_); - return result == null ? com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction getDirection() { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction result = com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction.valueOf(direction_); + return result == null ? com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction.UNRECOGNIZED : result; } /** * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; */ - public Builder setDirection(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Direction value) { + public Builder setDirection(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction value) { if (value == null) { throw new NullPointerException(); } @@ -1274,14 +1274,14 @@ public Builder setEthertypeValue(int value) { /** * optional .aliothcontroller.EtherType ethertype = 4; */ - public com.futurewei.alioth.controller.common.EtherType getEthertype() { - com.futurewei.alioth.controller.common.EtherType result = com.futurewei.alioth.controller.common.EtherType.valueOf(ethertype_); - return result == null ? com.futurewei.alioth.controller.common.EtherType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.common.EtherType getEthertype() { + com.futurewei.alioth.controller.schema.common.EtherType result = com.futurewei.alioth.controller.schema.common.EtherType.valueOf(ethertype_); + return result == null ? com.futurewei.alioth.controller.schema.common.EtherType.UNRECOGNIZED : result; } /** * optional .aliothcontroller.EtherType ethertype = 4; */ - public Builder setEthertype(com.futurewei.alioth.controller.common.EtherType value) { + public Builder setEthertype(com.futurewei.alioth.controller.schema.common.EtherType value) { if (value == null) { throw new NullPointerException(); } @@ -1318,14 +1318,14 @@ public Builder setProtocolValue(int value) { /** * optional .aliothcontroller.Protocol protocol = 5; */ - public com.futurewei.alioth.controller.common.Protocol getProtocol() { - com.futurewei.alioth.controller.common.Protocol result = com.futurewei.alioth.controller.common.Protocol.valueOf(protocol_); - return result == null ? com.futurewei.alioth.controller.common.Protocol.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.common.Protocol getProtocol() { + com.futurewei.alioth.controller.schema.common.Protocol result = com.futurewei.alioth.controller.schema.common.Protocol.valueOf(protocol_); + return result == null ? com.futurewei.alioth.controller.schema.common.Protocol.UNRECOGNIZED : result; } /** * optional .aliothcontroller.Protocol protocol = 5; */ - public Builder setProtocol(com.futurewei.alioth.controller.common.Protocol value) { + public Builder setProtocol(com.futurewei.alioth.controller.schema.common.Protocol value) { if (value == null) { throw new NullPointerException(); } @@ -1548,12 +1548,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule) - private static final com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule(); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1576,7 +1576,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1686,17 +1686,17 @@ public java.lang.String getName() { } public static final int SECURITY_GROUP_RULES_FIELD_NUMBER = 4; - private java.util.List securityGroupRules_; + private java.util.List securityGroupRules_; /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public java.util.List getSecurityGroupRulesList() { + public java.util.List getSecurityGroupRulesList() { return securityGroupRules_; } /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public java.util.List + public java.util.List getSecurityGroupRulesOrBuilderList() { return securityGroupRules_; } @@ -1709,13 +1709,13 @@ public int getSecurityGroupRulesCount() { /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index) { + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index) { return securityGroupRules_.get(index); } /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( int index) { return securityGroupRules_.get(index); } @@ -1774,10 +1774,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration)) { return super.equals(obj); } - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration other = (com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration) obj; + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration other = (com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration) obj; boolean result = true; result = result && getProjectId() @@ -1813,58 +1813,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration 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 com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration 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 com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1876,7 +1876,7 @@ public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupCo public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1896,20 +1896,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SecurityGroupConfiguration) - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.class, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.class, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder.class); } - // Construct using com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1944,23 +1944,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; } - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration getDefaultInstanceForType() { - return com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance(); } - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration build() { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration result = buildPartial(); + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration build() { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration buildPartial() { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration result = new com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration(this); + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration buildPartial() { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration result = new com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.projectId_ = projectId_; @@ -2007,16 +2007,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration) { - return mergeFrom((com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration)other); + if (other instanceof com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration) { + return mergeFrom((com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration other) { - if (other == com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration other) { + if (other == com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -2067,11 +2067,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration parsedMessage = null; + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2289,22 +2289,22 @@ public Builder setNameBytes( return this; } - private java.util.List securityGroupRules_ = + private java.util.List securityGroupRules_ = java.util.Collections.emptyList(); private void ensureSecurityGroupRulesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { - securityGroupRules_ = new java.util.ArrayList(securityGroupRules_); + securityGroupRules_ = new java.util.ArrayList(securityGroupRules_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder> securityGroupRulesBuilder_; + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder> securityGroupRulesBuilder_; /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public java.util.List getSecurityGroupRulesList() { + public java.util.List getSecurityGroupRulesList() { if (securityGroupRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(securityGroupRules_); } else { @@ -2324,7 +2324,7 @@ public int getSecurityGroupRulesCount() { /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index) { + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index) { if (securityGroupRulesBuilder_ == null) { return securityGroupRules_.get(index); } else { @@ -2335,7 +2335,7 @@ public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigura * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ public Builder setSecurityGroupRules( - int index, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule value) { + int index, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule value) { if (securityGroupRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2352,7 +2352,7 @@ public Builder setSecurityGroupRules( * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ public Builder setSecurityGroupRules( - int index, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { if (securityGroupRulesBuilder_ == null) { ensureSecurityGroupRulesIsMutable(); securityGroupRules_.set(index, builderForValue.build()); @@ -2365,7 +2365,7 @@ public Builder setSecurityGroupRules( /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public Builder addSecurityGroupRules(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule value) { + public Builder addSecurityGroupRules(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule value) { if (securityGroupRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2382,7 +2382,7 @@ public Builder addSecurityGroupRules(com.futurewei.alioth.controller.securitygro * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ public Builder addSecurityGroupRules( - int index, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule value) { + int index, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule value) { if (securityGroupRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2399,7 +2399,7 @@ public Builder addSecurityGroupRules( * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ public Builder addSecurityGroupRules( - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { if (securityGroupRulesBuilder_ == null) { ensureSecurityGroupRulesIsMutable(); securityGroupRules_.add(builderForValue.build()); @@ -2413,7 +2413,7 @@ public Builder addSecurityGroupRules( * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ public Builder addSecurityGroupRules( - int index, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { if (securityGroupRulesBuilder_ == null) { ensureSecurityGroupRulesIsMutable(); securityGroupRules_.add(index, builderForValue.build()); @@ -2427,7 +2427,7 @@ public Builder addSecurityGroupRules( * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ public Builder addAllSecurityGroupRules( - java.lang.Iterable values) { + java.lang.Iterable values) { if (securityGroupRulesBuilder_ == null) { ensureSecurityGroupRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2467,14 +2467,14 @@ public Builder removeSecurityGroupRules(int index) { /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder getSecurityGroupRulesBuilder( + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder getSecurityGroupRulesBuilder( int index) { return getSecurityGroupRulesFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( int index) { if (securityGroupRulesBuilder_ == null) { return securityGroupRules_.get(index); } else { @@ -2484,7 +2484,7 @@ public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigura /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public java.util.List + public java.util.List getSecurityGroupRulesOrBuilderList() { if (securityGroupRulesBuilder_ != null) { return securityGroupRulesBuilder_.getMessageOrBuilderList(); @@ -2495,31 +2495,31 @@ public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigura /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder addSecurityGroupRulesBuilder() { + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder addSecurityGroupRulesBuilder() { return getSecurityGroupRulesFieldBuilder().addBuilder( - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()); } /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder addSecurityGroupRulesBuilder( + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder addSecurityGroupRulesBuilder( int index) { return getSecurityGroupRulesFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()); } /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public java.util.List + public java.util.List getSecurityGroupRulesBuilderList() { return getSecurityGroupRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder> + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder> getSecurityGroupRulesFieldBuilder() { if (securityGroupRulesBuilder_ == null) { securityGroupRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder>( + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder>( securityGroupRules_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), @@ -2543,12 +2543,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SecurityGroupConfiguration) - private static final com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration(); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2571,7 +2571,7 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2588,7 +2588,7 @@ public interface SecurityGroupStateOrBuilder extends /** * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; */ - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType getOperationType(); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType getOperationType(); /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; @@ -2597,11 +2597,11 @@ public interface SecurityGroupStateOrBuilder extends /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration getConfiguration(); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration getConfiguration(); /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder(); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder(); } /** * Protobuf type {@code aliothcontroller.SecurityGroupState} @@ -2650,11 +2650,11 @@ private SecurityGroupState( break; } case 18: { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder subBuilder = null; + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder subBuilder = null; if (configuration_ != null) { subBuilder = configuration_.toBuilder(); } - configuration_ = input.readMessage(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.parser(), extensionRegistry); + configuration_ = input.readMessage(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configuration_); configuration_ = subBuilder.buildPartial(); @@ -2675,14 +2675,14 @@ private SecurityGroupState( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_descriptor; + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.class, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.Builder.class); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.class, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.Builder.class); } /** @@ -2775,7 +2775,7 @@ public OperationType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.getDescriptor().getEnumTypes().get(0); + return com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.getDescriptor().getEnumTypes().get(0); } private static final OperationType[] VALUES = values(); @@ -2812,13 +2812,13 @@ public int getOperationTypeValue() { /** * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType getOperationType() { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType result = com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType result = com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType.UNRECOGNIZED : result; } public static final int CONFIGURATION_FIELD_NUMBER = 2; - private com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration configuration_; + private com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration configuration_; /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ @@ -2828,13 +2828,13 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration getConfiguration() { - return configuration_ == null ? com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance() : configuration_; + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration getConfiguration() { + return configuration_ == null ? com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance() : configuration_; } /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder() { return getConfiguration(); } @@ -2850,7 +2850,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operationType_ != com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType.CREATE.getNumber()) { output.writeEnum(1, operationType_); } if (configuration_ != null) { @@ -2863,7 +2863,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (operationType_ != com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType.CREATE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, operationType_); } @@ -2881,10 +2881,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState)) { return super.equals(obj); } - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState other = (com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState) obj; + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState other = (com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState) obj; boolean result = true; result = result && operationType_ == other.operationType_; @@ -2914,58 +2914,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState 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 com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState 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 com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parseFrom( + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2977,7 +2977,7 @@ public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupSt public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -2997,20 +2997,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SecurityGroupState) - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupStateOrBuilder { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_descriptor; + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.class, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.Builder.class); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.class, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.Builder.class); } - // Construct using com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3040,23 +3040,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_descriptor; + return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_descriptor; } - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState getDefaultInstanceForType() { - return com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.getDefaultInstance(); } - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState build() { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState result = buildPartial(); + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState build() { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState buildPartial() { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState result = new com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState(this); + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState buildPartial() { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState result = new com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState(this); result.operationType_ = operationType_; if (configurationBuilder_ == null) { result.configuration_ = configuration_; @@ -3094,16 +3094,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState) { - return mergeFrom((com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState)other); + if (other instanceof com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState) { + return mergeFrom((com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState other) { - if (other == com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState other) { + if (other == com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.getDefaultInstance()) return this; if (other.operationType_ != 0) { setOperationTypeValue(other.getOperationTypeValue()); } @@ -3122,11 +3122,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState parsedMessage = null; + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3154,14 +3154,14 @@ public Builder setOperationTypeValue(int value) { /** * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType getOperationType() { - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType result = com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType result = com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType.UNRECOGNIZED : result; } /** * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; */ - public Builder setOperationType(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState.OperationType value) { + public Builder setOperationType(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType value) { if (value == null) { throw new NullPointerException(); } @@ -3180,9 +3180,9 @@ public Builder clearOperationType() { return this; } - private com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration configuration_ = null; + private com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration configuration_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder> configurationBuilder_; + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder> configurationBuilder_; /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ @@ -3192,9 +3192,9 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration getConfiguration() { + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration getConfiguration() { if (configurationBuilder_ == null) { - return configuration_ == null ? com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance() : configuration_; + return configuration_ == null ? com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance() : configuration_; } else { return configurationBuilder_.getMessage(); } @@ -3202,7 +3202,7 @@ public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigura /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public Builder setConfiguration(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration value) { + public Builder setConfiguration(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration value) { if (configurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3219,7 +3219,7 @@ public Builder setConfiguration(com.futurewei.alioth.controller.securitygroupsta * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ public Builder setConfiguration( - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder builderForValue) { + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder builderForValue) { if (configurationBuilder_ == null) { configuration_ = builderForValue.build(); onChanged(); @@ -3232,11 +3232,11 @@ public Builder setConfiguration( /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public Builder mergeConfiguration(com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration value) { + public Builder mergeConfiguration(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration value) { if (configurationBuilder_ == null) { if (configuration_ != null) { configuration_ = - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); } else { configuration_ = value; } @@ -3264,7 +3264,7 @@ public Builder clearConfiguration() { /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder getConfigurationBuilder() { + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder getConfigurationBuilder() { onChanged(); return getConfigurationFieldBuilder().getBuilder(); @@ -3272,23 +3272,23 @@ public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigura /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder() { if (configurationBuilder_ != null) { return configurationBuilder_.getMessageOrBuilder(); } else { return configuration_ == null ? - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance() : configuration_; + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance() : configuration_; } } /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder> + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder> getConfigurationFieldBuilder() { if (configurationBuilder_ == null) { configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.securitygroupstate.SecurityGroupConfigurationOrBuilder>( + com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder>( getConfiguration(), getParentForChildren(), isClean()); @@ -3311,12 +3311,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SecurityGroupState) - private static final com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState(); } - public static com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3339,7 +3339,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3389,9 +3389,9 @@ public com.futurewei.alioth.controller.securitygroupstate.SecurityGroupState get "State.OperationType\022C\n\rconfiguration\030\002 \001" + "(\0132,.aliothcontroller.SecurityGroupConfi" + "guration\"<\n\rOperationType\022\n\n\006CREATE\020\000\022\n\n", - "\006UPDATE\020\001\022\007\n\003GET\020\002\022\n\n\006DELETE\020\003B5\n\037com.fu" + - "turewei.alioth.controllerB\022securitygroup" + - "stateb\006proto3" + "\006UPDATE\020\001\022\007\n\003GET\020\002\022\n\n\006DELETE\020\003B<\n&com.fu" + + "turewei.alioth.controller.schemaB\022securi" + + "tygroupstateb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3404,7 +3404,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.futurewei.alioth.controller.common.getDescriptor(), + com.futurewei.alioth.controller.schema.common.getDescriptor(), }, assigner); internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor = getDescriptor().getMessageTypes().get(0); @@ -3424,7 +3424,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aliothcontroller_SecurityGroupState_descriptor, new java.lang.String[] { "OperationType", "Configuration", }); - com.futurewei.alioth.controller.common.getDescriptor(); + com.futurewei.alioth.controller.schema.common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/com/futurewei/alioth/controller/subnetstate.java b/src/com/futurewei/alioth/controller/schema/subnetstate.java similarity index 80% rename from src/com/futurewei/alioth/controller/subnetstate.java rename to src/com/futurewei/alioth/controller/schema/subnetstate.java index 342a0c7e4..2ee93241a 100644 --- a/src/com/futurewei/alioth/controller/subnetstate.java +++ b/src/com/futurewei/alioth/controller/schema/subnetstate.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: subnetstate.proto -package com.futurewei.alioth.controller; +package com.futurewei.alioth.controller.schema; public final class subnetstate { private subnetstate() {} @@ -106,12 +106,12 @@ public interface SubnetConfigurationOrBuilder extends /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - java.util.List + java.util.List getDnsListList(); /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry getDnsList(int index); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry getDnsList(int index); /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ @@ -119,12 +119,12 @@ public interface SubnetConfigurationOrBuilder extends /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - java.util.List + java.util.List getDnsListOrBuilderList(); /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( int index); /** @@ -144,11 +144,11 @@ com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilde /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId getSecurityGroupIds(); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId getSecurityGroupIds(); /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder(); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder(); } /** * Protobuf type {@code aliothcontroller.SubnetConfiguration} @@ -255,11 +255,11 @@ private SubnetConfiguration( } case 82: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - dnsList_ = new java.util.ArrayList(); + dnsList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } dnsList_.add( - input.readMessage(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.parser(), extensionRegistry)); break; } case 90: { @@ -269,11 +269,11 @@ private SubnetConfiguration( break; } case 98: { - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder subBuilder = null; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder subBuilder = null; if (securityGroupIds_ != null) { subBuilder = securityGroupIds_.toBuilder(); } - securityGroupIds_ = input.readMessage(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.parser(), extensionRegistry); + securityGroupIds_ = input.readMessage(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(securityGroupIds_); securityGroupIds_ = subBuilder.buildPartial(); @@ -297,14 +297,14 @@ private SubnetConfiguration( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.class, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder.class); } public interface DnsEntryOrBuilder extends @@ -380,14 +380,14 @@ private DnsEntry( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_fieldAccessorTable + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.class, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder.class); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder.class); } public static final int ENTRY_FIELD_NUMBER = 1; @@ -459,10 +459,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry)) { return super.equals(obj); } - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry other = (com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry) obj; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry other = (com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry) obj; boolean result = true; result = result && getEntry() @@ -484,58 +484,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry 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 com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry 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 com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -547,7 +547,7 @@ public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Dn public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -567,20 +567,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SubnetConfiguration.DnsEntry) - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder { + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_fieldAccessorTable + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.class, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder.class); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder.class); } - // Construct using com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -604,23 +604,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; } - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry getDefaultInstanceForType() { - return com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance(); } - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry build() { - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry result = buildPartial(); + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry build() { + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry buildPartial() { - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry result = new com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry(this); + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry buildPartial() { + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry result = new com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry(this); result.entry_ = entry_; onBuilt(); return result; @@ -653,16 +653,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry) { - return mergeFrom((com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry)other); + if (other instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry) { + return mergeFrom((com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry other) { - if (other == com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry other) { + if (other == com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance()) return this; if (!other.getEntry().isEmpty()) { entry_ = other.entry_; onChanged(); @@ -679,11 +679,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry parsedMessage = null; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -776,12 +776,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SubnetConfiguration.DnsEntry) - private static final com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry(); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -804,7 +804,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -883,14 +883,14 @@ private SecurityGroupId( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_fieldAccessorTable + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder.class); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @@ -962,10 +962,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId)) { return super.equals(obj); } - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId other = (com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId) obj; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId other = (com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId) obj; boolean result = true; result = result && getId() @@ -987,58 +987,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId 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 com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId 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 com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1050,7 +1050,7 @@ public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Se public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1070,20 +1070,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SubnetConfiguration.SecurityGroupId) - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder { + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_fieldAccessorTable + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder.class); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder.class); } - // Construct using com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1107,23 +1107,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; } - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId getDefaultInstanceForType() { - return com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance(); } - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId build() { - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId result = buildPartial(); + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId build() { + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId buildPartial() { - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId result = new com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId(this); + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId buildPartial() { + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId result = new com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId(this); result.id_ = id_; onBuilt(); return result; @@ -1156,16 +1156,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId) { - return mergeFrom((com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId)other); + if (other instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId) { + return mergeFrom((com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId other) { - if (other == com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId other) { + if (other == com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -1182,11 +1182,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId parsedMessage = null; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1279,12 +1279,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SubnetConfiguration.SecurityGroupId) - private static final com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId(); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1307,7 +1307,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1596,17 +1596,17 @@ public java.lang.String getSecondaryDns() { } public static final int DNS_LIST_FIELD_NUMBER = 10; - private java.util.List dnsList_; + private java.util.List dnsList_; /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public java.util.List getDnsListList() { + public java.util.List getDnsListList() { return dnsList_; } /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public java.util.List + public java.util.List getDnsListOrBuilderList() { return dnsList_; } @@ -1619,13 +1619,13 @@ public int getDnsListCount() { /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry getDnsList(int index) { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry getDnsList(int index) { return dnsList_.get(index); } /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( int index) { return dnsList_.get(index); } @@ -1665,7 +1665,7 @@ public java.lang.String getAvailabilityZone() { } public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 12; - private com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId securityGroupIds_; + private com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId securityGroupIds_; /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ @@ -1675,13 +1675,13 @@ public boolean hasSecurityGroupIds() { /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId getSecurityGroupIds() { - return securityGroupIds_ == null ? com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId getSecurityGroupIds() { + return securityGroupIds_ == null ? com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; } /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder() { return getSecurityGroupIds(); } @@ -1789,10 +1789,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.subnetstate.SubnetConfiguration)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration)) { return super.equals(obj); } - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration other = (com.futurewei.alioth.controller.subnetstate.SubnetConfiguration) obj; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration other = (com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration) obj; boolean result = true; result = result && getProjectId() @@ -1866,58 +1866,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration 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 com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration 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 com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1929,7 +1929,7 @@ public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration pa public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1949,20 +1949,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SubnetConfiguration) - com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder { + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.class, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder.class); } - // Construct using com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2017,23 +2017,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_descriptor; } - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getDefaultInstanceForType() { - return com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.getDefaultInstance(); } - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration build() { - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration result = buildPartial(); + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration build() { + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration buildPartial() { - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration result = new com.futurewei.alioth.controller.subnetstate.SubnetConfiguration(this); + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration buildPartial() { + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration result = new com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.projectId_ = projectId_; @@ -2092,16 +2092,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.subnetstate.SubnetConfiguration) { - return mergeFrom((com.futurewei.alioth.controller.subnetstate.SubnetConfiguration)other); + if (other instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration) { + return mergeFrom((com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration other) { - if (other == com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration other) { + if (other == com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -2182,11 +2182,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration parsedMessage = null; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.subnetstate.SubnetConfiguration) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2775,22 +2775,22 @@ public Builder setSecondaryDnsBytes( return this; } - private java.util.List dnsList_ = + private java.util.List dnsList_ = java.util.Collections.emptyList(); private void ensureDnsListIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { - dnsList_ = new java.util.ArrayList(dnsList_); + dnsList_ = new java.util.ArrayList(dnsList_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder> dnsListBuilder_; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder> dnsListBuilder_; /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public java.util.List getDnsListList() { + public java.util.List getDnsListList() { if (dnsListBuilder_ == null) { return java.util.Collections.unmodifiableList(dnsList_); } else { @@ -2810,7 +2810,7 @@ public int getDnsListCount() { /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry getDnsList(int index) { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry getDnsList(int index) { if (dnsListBuilder_ == null) { return dnsList_.get(index); } else { @@ -2821,7 +2821,7 @@ public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ public Builder setDnsList( - int index, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry value) { + int index, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry value) { if (dnsListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2838,7 +2838,7 @@ public Builder setDnsList( * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ public Builder setDnsList( - int index, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder builderForValue) { if (dnsListBuilder_ == null) { ensureDnsListIsMutable(); dnsList_.set(index, builderForValue.build()); @@ -2851,7 +2851,7 @@ public Builder setDnsList( /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public Builder addDnsList(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry value) { + public Builder addDnsList(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry value) { if (dnsListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2868,7 +2868,7 @@ public Builder addDnsList(com.futurewei.alioth.controller.subnetstate.SubnetConf * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ public Builder addDnsList( - int index, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry value) { + int index, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry value) { if (dnsListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2885,7 +2885,7 @@ public Builder addDnsList( * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ public Builder addDnsList( - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder builderForValue) { + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder builderForValue) { if (dnsListBuilder_ == null) { ensureDnsListIsMutable(); dnsList_.add(builderForValue.build()); @@ -2899,7 +2899,7 @@ public Builder addDnsList( * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ public Builder addDnsList( - int index, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder builderForValue) { if (dnsListBuilder_ == null) { ensureDnsListIsMutable(); dnsList_.add(index, builderForValue.build()); @@ -2913,7 +2913,7 @@ public Builder addDnsList( * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ public Builder addAllDnsList( - java.lang.Iterable values) { + java.lang.Iterable values) { if (dnsListBuilder_ == null) { ensureDnsListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2953,14 +2953,14 @@ public Builder removeDnsList(int index) { /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder getDnsListBuilder( + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder getDnsListBuilder( int index) { return getDnsListFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( int index) { if (dnsListBuilder_ == null) { return dnsList_.get(index); } else { @@ -2970,7 +2970,7 @@ public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryO /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public java.util.List + public java.util.List getDnsListOrBuilderList() { if (dnsListBuilder_ != null) { return dnsListBuilder_.getMessageOrBuilderList(); @@ -2981,31 +2981,31 @@ public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryO /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder addDnsListBuilder() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder addDnsListBuilder() { return getDnsListFieldBuilder().addBuilder( - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance()); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance()); } /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder addDnsListBuilder( + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder addDnsListBuilder( int index) { return getDnsListFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance()); } /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public java.util.List + public java.util.List getDnsListBuilderList() { return getDnsListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder> + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder> getDnsListFieldBuilder() { if (dnsListBuilder_ == null) { dnsListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.DnsEntryOrBuilder>( + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder>( dnsList_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), @@ -3084,9 +3084,9 @@ public Builder setAvailabilityZoneBytes( return this; } - private com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId securityGroupIds_ = null; + private com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId securityGroupIds_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder> securityGroupIdsBuilder_; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder> securityGroupIdsBuilder_; /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ @@ -3096,9 +3096,9 @@ public boolean hasSecurityGroupIds() { /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId getSecurityGroupIds() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId getSecurityGroupIds() { if (securityGroupIdsBuilder_ == null) { - return securityGroupIds_ == null ? com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; + return securityGroupIds_ == null ? com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; } else { return securityGroupIdsBuilder_.getMessage(); } @@ -3106,7 +3106,7 @@ public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityG /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public Builder setSecurityGroupIds(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId value) { + public Builder setSecurityGroupIds(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId value) { if (securityGroupIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3123,7 +3123,7 @@ public Builder setSecurityGroupIds(com.futurewei.alioth.controller.subnetstate.S * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ public Builder setSecurityGroupIds( - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder builderForValue) { + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder builderForValue) { if (securityGroupIdsBuilder_ == null) { securityGroupIds_ = builderForValue.build(); onChanged(); @@ -3136,11 +3136,11 @@ public Builder setSecurityGroupIds( /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public Builder mergeSecurityGroupIds(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId value) { + public Builder mergeSecurityGroupIds(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId value) { if (securityGroupIdsBuilder_ == null) { if (securityGroupIds_ != null) { securityGroupIds_ = - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.newBuilder(securityGroupIds_).mergeFrom(value).buildPartial(); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.newBuilder(securityGroupIds_).mergeFrom(value).buildPartial(); } else { securityGroupIds_ = value; } @@ -3168,7 +3168,7 @@ public Builder clearSecurityGroupIds() { /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder getSecurityGroupIdsBuilder() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder getSecurityGroupIdsBuilder() { onChanged(); return getSecurityGroupIdsFieldBuilder().getBuilder(); @@ -3176,23 +3176,23 @@ public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityG /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder() { if (securityGroupIdsBuilder_ != null) { return securityGroupIdsBuilder_.getMessageOrBuilder(); } else { return securityGroupIds_ == null ? - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; } } /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder> + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder> getSecurityGroupIdsFieldBuilder() { if (securityGroupIdsBuilder_ == null) { securityGroupIdsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder>( + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder>( getSecurityGroupIds(), getParentForChildren(), isClean()); @@ -3215,12 +3215,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SubnetConfiguration) - private static final com.futurewei.alioth.controller.subnetstate.SubnetConfiguration DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.subnetstate.SubnetConfiguration(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration(); } - public static com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3243,7 +3243,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3260,7 +3260,7 @@ public interface SubnetStateOrBuilder extends /** * optional .aliothcontroller.OperationType operation_type = 1; */ - com.futurewei.alioth.controller.common.OperationType getOperationType(); + com.futurewei.alioth.controller.schema.common.OperationType getOperationType(); /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; @@ -3269,11 +3269,11 @@ public interface SubnetStateOrBuilder extends /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getConfiguration(); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration getConfiguration(); /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder getConfigurationOrBuilder(); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder getConfigurationOrBuilder(); } /** * Protobuf type {@code aliothcontroller.SubnetState} @@ -3322,11 +3322,11 @@ private SubnetState( break; } case 18: { - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder subBuilder = null; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder subBuilder = null; if (configuration_ != null) { subBuilder = configuration_.toBuilder(); } - configuration_ = input.readMessage(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.parser(), extensionRegistry); + configuration_ = input.readMessage(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configuration_); configuration_ = subBuilder.buildPartial(); @@ -3347,14 +3347,14 @@ private SubnetState( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetState_descriptor; + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.subnetstate.SubnetState.class, com.futurewei.alioth.controller.subnetstate.SubnetState.Builder.class); + com.futurewei.alioth.controller.schema.subnetstate.SubnetState.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetState.Builder.class); } public static final int OPERATION_TYPE_FIELD_NUMBER = 1; @@ -3368,13 +3368,13 @@ public int getOperationTypeValue() { /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.common.OperationType getOperationType() { - com.futurewei.alioth.controller.common.OperationType result = com.futurewei.alioth.controller.common.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.common.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.common.OperationType result = com.futurewei.alioth.controller.schema.common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.common.OperationType.UNRECOGNIZED : result; } public static final int CONFIGURATION_FIELD_NUMBER = 2; - private com.futurewei.alioth.controller.subnetstate.SubnetConfiguration configuration_; + private com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration configuration_; /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ @@ -3384,13 +3384,13 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getConfiguration() { - return configuration_ == null ? com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.getDefaultInstance() : configuration_; + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration getConfiguration() { + return configuration_ == null ? com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.getDefaultInstance() : configuration_; } /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder getConfigurationOrBuilder() { return getConfiguration(); } @@ -3406,7 +3406,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operationType_ != com.futurewei.alioth.controller.common.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.common.OperationType.CREATE.getNumber()) { output.writeEnum(1, operationType_); } if (configuration_ != null) { @@ -3419,7 +3419,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (operationType_ != com.futurewei.alioth.controller.common.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.common.OperationType.CREATE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, operationType_); } @@ -3437,10 +3437,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.subnetstate.SubnetState)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetState)) { return super.equals(obj); } - com.futurewei.alioth.controller.subnetstate.SubnetState other = (com.futurewei.alioth.controller.subnetstate.SubnetState) obj; + com.futurewei.alioth.controller.schema.subnetstate.SubnetState other = (com.futurewei.alioth.controller.schema.subnetstate.SubnetState) obj; boolean result = true; result = result && operationType_ == other.operationType_; @@ -3470,58 +3470,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState 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 com.futurewei.alioth.controller.subnetstate.SubnetState parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.subnetstate.SubnetState parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState 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 com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom( + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3533,7 +3533,7 @@ public static com.futurewei.alioth.controller.subnetstate.SubnetState parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.subnetstate.SubnetState prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.subnetstate.SubnetState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -3553,20 +3553,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SubnetState) - com.futurewei.alioth.controller.subnetstate.SubnetStateOrBuilder { + com.futurewei.alioth.controller.schema.subnetstate.SubnetStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetState_descriptor; + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.subnetstate.SubnetState.class, com.futurewei.alioth.controller.subnetstate.SubnetState.Builder.class); + com.futurewei.alioth.controller.schema.subnetstate.SubnetState.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetState.Builder.class); } - // Construct using com.futurewei.alioth.controller.subnetstate.SubnetState.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.subnetstate.SubnetState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3596,23 +3596,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.subnetstate.internal_static_aliothcontroller_SubnetState_descriptor; + return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetState_descriptor; } - public com.futurewei.alioth.controller.subnetstate.SubnetState getDefaultInstanceForType() { - return com.futurewei.alioth.controller.subnetstate.SubnetState.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.subnetstate.SubnetState getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.subnetstate.SubnetState.getDefaultInstance(); } - public com.futurewei.alioth.controller.subnetstate.SubnetState build() { - com.futurewei.alioth.controller.subnetstate.SubnetState result = buildPartial(); + public com.futurewei.alioth.controller.schema.subnetstate.SubnetState build() { + com.futurewei.alioth.controller.schema.subnetstate.SubnetState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.subnetstate.SubnetState buildPartial() { - com.futurewei.alioth.controller.subnetstate.SubnetState result = new com.futurewei.alioth.controller.subnetstate.SubnetState(this); + public com.futurewei.alioth.controller.schema.subnetstate.SubnetState buildPartial() { + com.futurewei.alioth.controller.schema.subnetstate.SubnetState result = new com.futurewei.alioth.controller.schema.subnetstate.SubnetState(this); result.operationType_ = operationType_; if (configurationBuilder_ == null) { result.configuration_ = configuration_; @@ -3650,16 +3650,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.subnetstate.SubnetState) { - return mergeFrom((com.futurewei.alioth.controller.subnetstate.SubnetState)other); + if (other instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetState) { + return mergeFrom((com.futurewei.alioth.controller.schema.subnetstate.SubnetState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.subnetstate.SubnetState other) { - if (other == com.futurewei.alioth.controller.subnetstate.SubnetState.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.subnetstate.SubnetState other) { + if (other == com.futurewei.alioth.controller.schema.subnetstate.SubnetState.getDefaultInstance()) return this; if (other.operationType_ != 0) { setOperationTypeValue(other.getOperationTypeValue()); } @@ -3678,11 +3678,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.subnetstate.SubnetState parsedMessage = null; + com.futurewei.alioth.controller.schema.subnetstate.SubnetState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.subnetstate.SubnetState) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.subnetstate.SubnetState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3710,14 +3710,14 @@ public Builder setOperationTypeValue(int value) { /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.common.OperationType getOperationType() { - com.futurewei.alioth.controller.common.OperationType result = com.futurewei.alioth.controller.common.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.common.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.common.OperationType result = com.futurewei.alioth.controller.schema.common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.common.OperationType.UNRECOGNIZED : result; } /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public Builder setOperationType(com.futurewei.alioth.controller.common.OperationType value) { + public Builder setOperationType(com.futurewei.alioth.controller.schema.common.OperationType value) { if (value == null) { throw new NullPointerException(); } @@ -3736,9 +3736,9 @@ public Builder clearOperationType() { return this; } - private com.futurewei.alioth.controller.subnetstate.SubnetConfiguration configuration_ = null; + private com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration configuration_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder> configurationBuilder_; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder> configurationBuilder_; /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ @@ -3748,9 +3748,9 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getConfiguration() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration getConfiguration() { if (configurationBuilder_ == null) { - return configuration_ == null ? com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.getDefaultInstance() : configuration_; + return configuration_ == null ? com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.getDefaultInstance() : configuration_; } else { return configurationBuilder_.getMessage(); } @@ -3758,7 +3758,7 @@ public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration getConfig /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public Builder setConfiguration(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration value) { + public Builder setConfiguration(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration value) { if (configurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3775,7 +3775,7 @@ public Builder setConfiguration(com.futurewei.alioth.controller.subnetstate.Subn * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ public Builder setConfiguration( - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder builderForValue) { + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder builderForValue) { if (configurationBuilder_ == null) { configuration_ = builderForValue.build(); onChanged(); @@ -3788,11 +3788,11 @@ public Builder setConfiguration( /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public Builder mergeConfiguration(com.futurewei.alioth.controller.subnetstate.SubnetConfiguration value) { + public Builder mergeConfiguration(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration value) { if (configurationBuilder_ == null) { if (configuration_ != null) { configuration_ = - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); } else { configuration_ = value; } @@ -3820,7 +3820,7 @@ public Builder clearConfiguration() { /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder getConfigurationBuilder() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder getConfigurationBuilder() { onChanged(); return getConfigurationFieldBuilder().getBuilder(); @@ -3828,23 +3828,23 @@ public com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder g /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder getConfigurationOrBuilder() { if (configurationBuilder_ != null) { return configurationBuilder_.getMessageOrBuilder(); } else { return configuration_ == null ? - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.getDefaultInstance() : configuration_; + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.getDefaultInstance() : configuration_; } } /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder> + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder> getConfigurationFieldBuilder() { if (configurationBuilder_ == null) { configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.subnetstate.SubnetConfiguration, com.futurewei.alioth.controller.subnetstate.SubnetConfiguration.Builder, com.futurewei.alioth.controller.subnetstate.SubnetConfigurationOrBuilder>( + com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder>( getConfiguration(), getParentForChildren(), isClean()); @@ -3867,12 +3867,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SubnetState) - private static final com.futurewei.alioth.controller.subnetstate.SubnetState DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.subnetstate.SubnetState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.subnetstate.SubnetState(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.subnetstate.SubnetState(); } - public static com.futurewei.alioth.controller.subnetstate.SubnetState getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3895,7 +3895,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.subnetstate.SubnetState getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.subnetstate.SubnetState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3945,8 +3945,8 @@ public com.futurewei.alioth.controller.subnetstate.SubnetState getDefaultInstanc "tState\0227\n\016operation_type\030\001 \001(\0162\037.aliothc" + "ontroller.OperationType\022<\n\rconfiguration" + "\030\002 \001(\0132%.aliothcontroller.SubnetConfigur" + - "ationB.\n\037com.futurewei.alioth.controller" + - "B\013subnetstateb\006proto3" + "ationB5\n&com.futurewei.alioth.controller" + + ".schemaB\013subnetstateb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3959,7 +3959,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.futurewei.alioth.controller.common.getDescriptor(), + com.futurewei.alioth.controller.schema.common.getDescriptor(), }, assigner); internal_static_aliothcontroller_SubnetConfiguration_descriptor = getDescriptor().getMessageTypes().get(0); @@ -3985,7 +3985,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aliothcontroller_SubnetState_descriptor, new java.lang.String[] { "OperationType", "Configuration", }); - com.futurewei.alioth.controller.common.getDescriptor(); + com.futurewei.alioth.controller.schema.common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/com/futurewei/alioth/controller/vpcstate.java b/src/com/futurewei/alioth/controller/schema/vpcstate.java similarity index 79% rename from src/com/futurewei/alioth/controller/vpcstate.java rename to src/com/futurewei/alioth/controller/schema/vpcstate.java index 47d7dffeb..c9d809e95 100644 --- a/src/com/futurewei/alioth/controller/vpcstate.java +++ b/src/com/futurewei/alioth/controller/schema/vpcstate.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: vpcstate.proto -package com.futurewei.alioth.controller; +package com.futurewei.alioth.controller.schema; public final class vpcstate { private vpcstate() {} @@ -61,12 +61,12 @@ public interface VpcConfigurationOrBuilder extends /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - java.util.List + java.util.List getSubnetIdsList(); /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getSubnetIds(int index); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId getSubnetIds(int index); /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ @@ -74,23 +74,23 @@ public interface VpcConfigurationOrBuilder extends /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - java.util.List + java.util.List getSubnetIdsOrBuilderList(); /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( int index); /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - java.util.List + java.util.List getRoutesList(); /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getRoutes(int index); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route getRoutes(int index); /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ @@ -98,12 +98,12 @@ com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder getS /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - java.util.List + java.util.List getRoutesOrBuilderList(); /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( int index); } /** @@ -177,20 +177,20 @@ private VpcConfiguration( } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - subnetIds_ = new java.util.ArrayList(); + subnetIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } subnetIds_.add( - input.readMessage(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.parser(), extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - routes_ = new java.util.ArrayList(); + routes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } routes_.add( - input.readMessage(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.parser(), extensionRegistry)); break; } } @@ -212,14 +212,14 @@ private VpcConfiguration( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.class, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.class, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder.class); } public interface SubnetIdOrBuilder extends @@ -295,14 +295,14 @@ private SubnetId( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_fieldAccessorTable + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.class, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder.class); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.class, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @@ -374,10 +374,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId)) { return super.equals(obj); } - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId other = (com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId) obj; + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId other = (com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId) obj; boolean result = true; result = result && getId() @@ -399,58 +399,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId 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 com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId 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 com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -462,7 +462,7 @@ public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -482,20 +482,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.VpcConfiguration.SubnetId) - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder { + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_fieldAccessorTable + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.class, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder.class); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.class, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder.class); } - // Construct using com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -519,23 +519,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; } - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getDefaultInstanceForType() { - return com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance(); } - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId build() { - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId result = buildPartial(); + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId build() { + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId buildPartial() { - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId result = new com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId(this); + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId buildPartial() { + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId result = new com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId(this); result.id_ = id_; onBuilt(); return result; @@ -568,16 +568,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId) { - return mergeFrom((com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId)other); + if (other instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId) { + return mergeFrom((com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId other) { - if (other == com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId other) { + if (other == com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -594,11 +594,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId parsedMessage = null; + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -691,12 +691,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.VpcConfiguration.SubnetId) - private static final com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId(); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -719,7 +719,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -815,14 +815,14 @@ private Route( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_fieldAccessorTable + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.class, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder.class); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.class, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder.class); } public static final int DESTINATION_FIELD_NUMBER = 1; @@ -934,10 +934,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route)) { return super.equals(obj); } - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route other = (com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route) obj; + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route other = (com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route) obj; boolean result = true; result = result && getDestination() @@ -963,58 +963,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route 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 com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route 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 com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1026,7 +1026,7 @@ public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route pa public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1046,20 +1046,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.VpcConfiguration.Route) - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder { + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_fieldAccessorTable + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.class, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder.class); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.class, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder.class); } - // Construct using com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1085,23 +1085,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; } - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getDefaultInstanceForType() { - return com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.getDefaultInstance(); } - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route build() { - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route result = buildPartial(); + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route build() { + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route buildPartial() { - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route result = new com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route(this); + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route buildPartial() { + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route result = new com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route(this); result.destination_ = destination_; result.nextHop_ = nextHop_; onBuilt(); @@ -1135,16 +1135,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route) { - return mergeFrom((com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route)other); + if (other instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route) { + return mergeFrom((com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route other) { - if (other == com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route other) { + if (other == com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.getDefaultInstance()) return this; if (!other.getDestination().isEmpty()) { destination_ = other.destination_; onChanged(); @@ -1165,11 +1165,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route parsedMessage = null; + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1331,12 +1331,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.VpcConfiguration.Route) - private static final com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route(); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1359,7 +1359,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1503,17 +1503,17 @@ public java.lang.String getCidr() { } public static final int SUBNET_IDS_FIELD_NUMBER = 5; - private java.util.List subnetIds_; + private java.util.List subnetIds_; /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public java.util.List getSubnetIdsList() { + public java.util.List getSubnetIdsList() { return subnetIds_; } /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public java.util.List + public java.util.List getSubnetIdsOrBuilderList() { return subnetIds_; } @@ -1526,29 +1526,29 @@ public int getSubnetIdsCount() { /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getSubnetIds(int index) { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId getSubnetIds(int index) { return subnetIds_.get(index); } /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( int index) { return subnetIds_.get(index); } public static final int ROUTES_FIELD_NUMBER = 6; - private java.util.List routes_; + private java.util.List routes_; /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public java.util.List getRoutesList() { + public java.util.List getRoutesList() { return routes_; } /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public java.util.List + public java.util.List getRoutesOrBuilderList() { return routes_; } @@ -1561,13 +1561,13 @@ public int getRoutesCount() { /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getRoutes(int index) { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route getRoutes(int index) { return routes_.get(index); } /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( int index) { return routes_.get(index); } @@ -1639,10 +1639,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.vpcstate.VpcConfiguration)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration)) { return super.equals(obj); } - com.futurewei.alioth.controller.vpcstate.VpcConfiguration other = (com.futurewei.alioth.controller.vpcstate.VpcConfiguration) obj; + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration other = (com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration) obj; boolean result = true; result = result && getProjectId() @@ -1688,58 +1688,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration 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 com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration 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 com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1751,7 +1751,7 @@ public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration parseFro public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.vpcstate.VpcConfiguration prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1771,20 +1771,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.VpcConfiguration) - com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder { + com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.class, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.class, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder.class); } - // Construct using com.futurewei.alioth.controller.vpcstate.VpcConfiguration.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1828,23 +1828,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_descriptor; } - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration getDefaultInstanceForType() { - return com.futurewei.alioth.controller.vpcstate.VpcConfiguration.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.getDefaultInstance(); } - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration build() { - com.futurewei.alioth.controller.vpcstate.VpcConfiguration result = buildPartial(); + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration build() { + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration buildPartial() { - com.futurewei.alioth.controller.vpcstate.VpcConfiguration result = new com.futurewei.alioth.controller.vpcstate.VpcConfiguration(this); + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration buildPartial() { + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration result = new com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.projectId_ = projectId_; @@ -1901,16 +1901,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.vpcstate.VpcConfiguration) { - return mergeFrom((com.futurewei.alioth.controller.vpcstate.VpcConfiguration)other); + if (other instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration) { + return mergeFrom((com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.vpcstate.VpcConfiguration other) { - if (other == com.futurewei.alioth.controller.vpcstate.VpcConfiguration.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration other) { + if (other == com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -1991,11 +1991,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.vpcstate.VpcConfiguration parsedMessage = null; + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.vpcstate.VpcConfiguration) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2282,22 +2282,22 @@ public Builder setCidrBytes( return this; } - private java.util.List subnetIds_ = + private java.util.List subnetIds_ = java.util.Collections.emptyList(); private void ensureSubnetIdsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { - subnetIds_ = new java.util.ArrayList(subnetIds_); + subnetIds_ = new java.util.ArrayList(subnetIds_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder> subnetIdsBuilder_; + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder> subnetIdsBuilder_; /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public java.util.List getSubnetIdsList() { + public java.util.List getSubnetIdsList() { if (subnetIdsBuilder_ == null) { return java.util.Collections.unmodifiableList(subnetIds_); } else { @@ -2317,7 +2317,7 @@ public int getSubnetIdsCount() { /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getSubnetIds(int index) { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId getSubnetIds(int index) { if (subnetIdsBuilder_ == null) { return subnetIds_.get(index); } else { @@ -2328,7 +2328,7 @@ public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId getSub * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ public Builder setSubnetIds( - int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId value) { + int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId value) { if (subnetIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2345,7 +2345,7 @@ public Builder setSubnetIds( * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ public Builder setSubnetIds( - int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder builderForValue) { if (subnetIdsBuilder_ == null) { ensureSubnetIdsIsMutable(); subnetIds_.set(index, builderForValue.build()); @@ -2358,7 +2358,7 @@ public Builder setSubnetIds( /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public Builder addSubnetIds(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId value) { + public Builder addSubnetIds(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId value) { if (subnetIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2375,7 +2375,7 @@ public Builder addSubnetIds(com.futurewei.alioth.controller.vpcstate.VpcConfigur * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ public Builder addSubnetIds( - int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId value) { + int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId value) { if (subnetIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2392,7 +2392,7 @@ public Builder addSubnetIds( * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ public Builder addSubnetIds( - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder builderForValue) { + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder builderForValue) { if (subnetIdsBuilder_ == null) { ensureSubnetIdsIsMutable(); subnetIds_.add(builderForValue.build()); @@ -2406,7 +2406,7 @@ public Builder addSubnetIds( * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ public Builder addSubnetIds( - int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder builderForValue) { if (subnetIdsBuilder_ == null) { ensureSubnetIdsIsMutable(); subnetIds_.add(index, builderForValue.build()); @@ -2420,7 +2420,7 @@ public Builder addSubnetIds( * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ public Builder addAllSubnetIds( - java.lang.Iterable values) { + java.lang.Iterable values) { if (subnetIdsBuilder_ == null) { ensureSubnetIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2460,14 +2460,14 @@ public Builder removeSubnetIds(int index) { /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder getSubnetIdsBuilder( + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder getSubnetIdsBuilder( int index) { return getSubnetIdsFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( int index) { if (subnetIdsBuilder_ == null) { return subnetIds_.get(index); } else { @@ -2477,7 +2477,7 @@ public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuild /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public java.util.List + public java.util.List getSubnetIdsOrBuilderList() { if (subnetIdsBuilder_ != null) { return subnetIdsBuilder_.getMessageOrBuilderList(); @@ -2488,31 +2488,31 @@ public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuild /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder addSubnetIdsBuilder() { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder addSubnetIdsBuilder() { return getSubnetIdsFieldBuilder().addBuilder( - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance()); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance()); } /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder addSubnetIdsBuilder( + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder addSubnetIdsBuilder( int index) { return getSubnetIdsFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance()); } /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public java.util.List + public java.util.List getSubnetIdsBuilderList() { return getSubnetIdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder> + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder> getSubnetIdsFieldBuilder() { if (subnetIdsBuilder_ == null) { subnetIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetIdOrBuilder>( + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder>( subnetIds_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), @@ -2522,22 +2522,22 @@ public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.SubnetId.Builde return subnetIdsBuilder_; } - private java.util.List routes_ = + private java.util.List routes_ = java.util.Collections.emptyList(); private void ensureRoutesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { - routes_ = new java.util.ArrayList(routes_); + routes_ = new java.util.ArrayList(routes_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder> routesBuilder_; + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder> routesBuilder_; /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public java.util.List getRoutesList() { + public java.util.List getRoutesList() { if (routesBuilder_ == null) { return java.util.Collections.unmodifiableList(routes_); } else { @@ -2557,7 +2557,7 @@ public int getRoutesCount() { /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getRoutes(int index) { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route getRoutes(int index) { if (routesBuilder_ == null) { return routes_.get(index); } else { @@ -2568,7 +2568,7 @@ public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route getRoutes * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ public Builder setRoutes( - int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route value) { + int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2585,7 +2585,7 @@ public Builder setRoutes( * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ public Builder setRoutes( - int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.set(index, builderForValue.build()); @@ -2598,7 +2598,7 @@ public Builder setRoutes( /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public Builder addRoutes(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route value) { + public Builder addRoutes(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2615,7 +2615,7 @@ public Builder addRoutes(com.futurewei.alioth.controller.vpcstate.VpcConfigurati * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ public Builder addRoutes( - int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route value) { + int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2632,7 +2632,7 @@ public Builder addRoutes( * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ public Builder addRoutes( - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder builderForValue) { + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.add(builderForValue.build()); @@ -2646,7 +2646,7 @@ public Builder addRoutes( * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ public Builder addRoutes( - int index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.add(index, builderForValue.build()); @@ -2660,7 +2660,7 @@ public Builder addRoutes( * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ public Builder addAllRoutes( - java.lang.Iterable values) { + java.lang.Iterable values) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2700,14 +2700,14 @@ public Builder removeRoutes(int index) { /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder getRoutesBuilder( + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder getRoutesBuilder( int index) { return getRoutesFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( int index) { if (routesBuilder_ == null) { return routes_.get(index); } else { @@ -2717,7 +2717,7 @@ public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public java.util.List + public java.util.List getRoutesOrBuilderList() { if (routesBuilder_ != null) { return routesBuilder_.getMessageOrBuilderList(); @@ -2728,31 +2728,31 @@ public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder addRoutesBuilder() { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder addRoutesBuilder() { return getRoutesFieldBuilder().addBuilder( - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.getDefaultInstance()); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.getDefaultInstance()); } /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder addRoutesBuilder( + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder addRoutesBuilder( int index) { return getRoutesFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.getDefaultInstance()); } /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public java.util.List + public java.util.List getRoutesBuilderList() { return getRoutesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder> + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder> getRoutesFieldBuilder() { if (routesBuilder_ == null) { routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.RouteOrBuilder>( + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder>( routes_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), @@ -2776,12 +2776,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.VpcConfiguration) - private static final com.futurewei.alioth.controller.vpcstate.VpcConfiguration DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.vpcstate.VpcConfiguration(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration(); } - public static com.futurewei.alioth.controller.vpcstate.VpcConfiguration getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2804,7 +2804,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2821,7 +2821,7 @@ public interface VpcStateOrBuilder extends /** * optional .aliothcontroller.OperationType operation_type = 1; */ - com.futurewei.alioth.controller.common.OperationType getOperationType(); + com.futurewei.alioth.controller.schema.common.OperationType getOperationType(); /** * optional .aliothcontroller.VpcConfiguration configuration = 2; @@ -2830,11 +2830,11 @@ public interface VpcStateOrBuilder extends /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - com.futurewei.alioth.controller.vpcstate.VpcConfiguration getConfiguration(); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getConfiguration(); /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder getConfigurationOrBuilder(); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder getConfigurationOrBuilder(); } /** * Protobuf type {@code aliothcontroller.VpcState} @@ -2883,11 +2883,11 @@ private VpcState( break; } case 18: { - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder subBuilder = null; + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder subBuilder = null; if (configuration_ != null) { subBuilder = configuration_.toBuilder(); } - configuration_ = input.readMessage(com.futurewei.alioth.controller.vpcstate.VpcConfiguration.parser(), extensionRegistry); + configuration_ = input.readMessage(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configuration_); configuration_ = subBuilder.buildPartial(); @@ -2908,14 +2908,14 @@ private VpcState( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcState_descriptor; + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.vpcstate.VpcState.class, com.futurewei.alioth.controller.vpcstate.VpcState.Builder.class); + com.futurewei.alioth.controller.schema.vpcstate.VpcState.class, com.futurewei.alioth.controller.schema.vpcstate.VpcState.Builder.class); } public static final int OPERATION_TYPE_FIELD_NUMBER = 1; @@ -2929,13 +2929,13 @@ public int getOperationTypeValue() { /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.common.OperationType getOperationType() { - com.futurewei.alioth.controller.common.OperationType result = com.futurewei.alioth.controller.common.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.common.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.common.OperationType result = com.futurewei.alioth.controller.schema.common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.common.OperationType.UNRECOGNIZED : result; } public static final int CONFIGURATION_FIELD_NUMBER = 2; - private com.futurewei.alioth.controller.vpcstate.VpcConfiguration configuration_; + private com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration configuration_; /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ @@ -2945,13 +2945,13 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration getConfiguration() { - return configuration_ == null ? com.futurewei.alioth.controller.vpcstate.VpcConfiguration.getDefaultInstance() : configuration_; + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getConfiguration() { + return configuration_ == null ? com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.getDefaultInstance() : configuration_; } /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder getConfigurationOrBuilder() { return getConfiguration(); } @@ -2967,7 +2967,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operationType_ != com.futurewei.alioth.controller.common.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.common.OperationType.CREATE.getNumber()) { output.writeEnum(1, operationType_); } if (configuration_ != null) { @@ -2980,7 +2980,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (operationType_ != com.futurewei.alioth.controller.common.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.common.OperationType.CREATE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, operationType_); } @@ -2998,10 +2998,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.vpcstate.VpcState)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcState)) { return super.equals(obj); } - com.futurewei.alioth.controller.vpcstate.VpcState other = (com.futurewei.alioth.controller.vpcstate.VpcState) obj; + com.futurewei.alioth.controller.schema.vpcstate.VpcState other = (com.futurewei.alioth.controller.schema.vpcstate.VpcState) obj; boolean result = true; result = result && operationType_ == other.operationType_; @@ -3031,58 +3031,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcState 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 com.futurewei.alioth.controller.vpcstate.VpcState parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.vpcstate.VpcState parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcState 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 com.futurewei.alioth.controller.vpcstate.VpcState parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom( + public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3094,7 +3094,7 @@ public static com.futurewei.alioth.controller.vpcstate.VpcState parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.vpcstate.VpcState prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.vpcstate.VpcState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -3114,20 +3114,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.VpcState) - com.futurewei.alioth.controller.vpcstate.VpcStateOrBuilder { + com.futurewei.alioth.controller.schema.vpcstate.VpcStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcState_descriptor; + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.vpcstate.VpcState.class, com.futurewei.alioth.controller.vpcstate.VpcState.Builder.class); + com.futurewei.alioth.controller.schema.vpcstate.VpcState.class, com.futurewei.alioth.controller.schema.vpcstate.VpcState.Builder.class); } - // Construct using com.futurewei.alioth.controller.vpcstate.VpcState.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.vpcstate.VpcState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3157,23 +3157,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.vpcstate.internal_static_aliothcontroller_VpcState_descriptor; + return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcState_descriptor; } - public com.futurewei.alioth.controller.vpcstate.VpcState getDefaultInstanceForType() { - return com.futurewei.alioth.controller.vpcstate.VpcState.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.vpcstate.VpcState getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.vpcstate.VpcState.getDefaultInstance(); } - public com.futurewei.alioth.controller.vpcstate.VpcState build() { - com.futurewei.alioth.controller.vpcstate.VpcState result = buildPartial(); + public com.futurewei.alioth.controller.schema.vpcstate.VpcState build() { + com.futurewei.alioth.controller.schema.vpcstate.VpcState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.vpcstate.VpcState buildPartial() { - com.futurewei.alioth.controller.vpcstate.VpcState result = new com.futurewei.alioth.controller.vpcstate.VpcState(this); + public com.futurewei.alioth.controller.schema.vpcstate.VpcState buildPartial() { + com.futurewei.alioth.controller.schema.vpcstate.VpcState result = new com.futurewei.alioth.controller.schema.vpcstate.VpcState(this); result.operationType_ = operationType_; if (configurationBuilder_ == null) { result.configuration_ = configuration_; @@ -3211,16 +3211,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.vpcstate.VpcState) { - return mergeFrom((com.futurewei.alioth.controller.vpcstate.VpcState)other); + if (other instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcState) { + return mergeFrom((com.futurewei.alioth.controller.schema.vpcstate.VpcState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.vpcstate.VpcState other) { - if (other == com.futurewei.alioth.controller.vpcstate.VpcState.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.vpcstate.VpcState other) { + if (other == com.futurewei.alioth.controller.schema.vpcstate.VpcState.getDefaultInstance()) return this; if (other.operationType_ != 0) { setOperationTypeValue(other.getOperationTypeValue()); } @@ -3239,11 +3239,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.vpcstate.VpcState parsedMessage = null; + com.futurewei.alioth.controller.schema.vpcstate.VpcState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.vpcstate.VpcState) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.vpcstate.VpcState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3271,14 +3271,14 @@ public Builder setOperationTypeValue(int value) { /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.common.OperationType getOperationType() { - com.futurewei.alioth.controller.common.OperationType result = com.futurewei.alioth.controller.common.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.common.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.common.OperationType result = com.futurewei.alioth.controller.schema.common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.common.OperationType.UNRECOGNIZED : result; } /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public Builder setOperationType(com.futurewei.alioth.controller.common.OperationType value) { + public Builder setOperationType(com.futurewei.alioth.controller.schema.common.OperationType value) { if (value == null) { throw new NullPointerException(); } @@ -3297,9 +3297,9 @@ public Builder clearOperationType() { return this; } - private com.futurewei.alioth.controller.vpcstate.VpcConfiguration configuration_ = null; + private com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration configuration_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.vpcstate.VpcConfiguration, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder> configurationBuilder_; + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder> configurationBuilder_; /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ @@ -3309,9 +3309,9 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration getConfiguration() { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getConfiguration() { if (configurationBuilder_ == null) { - return configuration_ == null ? com.futurewei.alioth.controller.vpcstate.VpcConfiguration.getDefaultInstance() : configuration_; + return configuration_ == null ? com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.getDefaultInstance() : configuration_; } else { return configurationBuilder_.getMessage(); } @@ -3319,7 +3319,7 @@ public com.futurewei.alioth.controller.vpcstate.VpcConfiguration getConfiguratio /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public Builder setConfiguration(com.futurewei.alioth.controller.vpcstate.VpcConfiguration value) { + public Builder setConfiguration(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration value) { if (configurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3336,7 +3336,7 @@ public Builder setConfiguration(com.futurewei.alioth.controller.vpcstate.VpcConf * optional .aliothcontroller.VpcConfiguration configuration = 2; */ public Builder setConfiguration( - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder builderForValue) { + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder builderForValue) { if (configurationBuilder_ == null) { configuration_ = builderForValue.build(); onChanged(); @@ -3349,11 +3349,11 @@ public Builder setConfiguration( /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public Builder mergeConfiguration(com.futurewei.alioth.controller.vpcstate.VpcConfiguration value) { + public Builder mergeConfiguration(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration value) { if (configurationBuilder_ == null) { if (configuration_ != null) { configuration_ = - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); } else { configuration_ = value; } @@ -3381,7 +3381,7 @@ public Builder clearConfiguration() { /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder getConfigurationBuilder() { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder getConfigurationBuilder() { onChanged(); return getConfigurationFieldBuilder().getBuilder(); @@ -3389,23 +3389,23 @@ public com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder getConf /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder getConfigurationOrBuilder() { if (configurationBuilder_ != null) { return configurationBuilder_.getMessageOrBuilder(); } else { return configuration_ == null ? - com.futurewei.alioth.controller.vpcstate.VpcConfiguration.getDefaultInstance() : configuration_; + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.getDefaultInstance() : configuration_; } } /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.vpcstate.VpcConfiguration, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder> + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder> getConfigurationFieldBuilder() { if (configurationBuilder_ == null) { configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.vpcstate.VpcConfiguration, com.futurewei.alioth.controller.vpcstate.VpcConfiguration.Builder, com.futurewei.alioth.controller.vpcstate.VpcConfigurationOrBuilder>( + com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder>( getConfiguration(), getParentForChildren(), isClean()); @@ -3428,12 +3428,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.VpcState) - private static final com.futurewei.alioth.controller.vpcstate.VpcState DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.vpcstate.VpcState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.vpcstate.VpcState(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.vpcstate.VpcState(); } - public static com.futurewei.alioth.controller.vpcstate.VpcState getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.vpcstate.VpcState getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3456,7 +3456,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.vpcstate.VpcState getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.vpcstate.VpcState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3502,8 +3502,8 @@ public com.futurewei.alioth.controller.vpcstate.VpcState getDefaultInstanceForTy " \001(\t\"~\n\010VpcState\0227\n\016operation_type\030\001 \001(\016" + "2\037.aliothcontroller.OperationType\0229\n\rcon", "figuration\030\002 \001(\0132\".aliothcontroller.VpcC" + - "onfigurationB+\n\037com.futurewei.alioth.con" + - "trollerB\010vpcstateb\006proto3" + "onfigurationB2\n&com.futurewei.alioth.con" + + "troller.schemaB\010vpcstateb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3516,7 +3516,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.futurewei.alioth.controller.common.getDescriptor(), + com.futurewei.alioth.controller.schema.common.getDescriptor(), }, assigner); internal_static_aliothcontroller_VpcConfiguration_descriptor = getDescriptor().getMessageTypes().get(0); @@ -3542,7 +3542,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aliothcontroller_VpcState_descriptor, new java.lang.String[] { "OperationType", "Configuration", }); - com.futurewei.alioth.controller.common.getDescriptor(); + com.futurewei.alioth.controller.schema.common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) From 155bac97339aa2242680c9c1bd31eb04c1b1cedc Mon Sep 17 00:00:00 2001 From: Liguang Xie Date: Tue, 16 Jul 2019 13:31:04 -0700 Subject: [PATCH 09/11] Rename schema proto and java files --- .../schema/{common.java => Common.java} | 24 +- .../schema/{portstate.java => Port.java} | 836 +++++++++--------- ...ritygroupstate.java => SecurityGroup.java} | 606 +++++-------- .../schema/{subnetstate.java => Subnet.java} | 518 +++++------ .../schema/{vpcstate.java => Vpc.java} | 534 +++++------ src/schema/proto3/common.proto | 2 +- .../proto3/{portstate.proto => port.proto} | 2 +- ...tygroupstate.proto => securitygroup.proto} | 9 +- .../{subnetstate.proto => subnet.proto} | 2 +- .../proto3/{vpcstate.proto => vpc.proto} | 2 +- 10 files changed, 1205 insertions(+), 1330 deletions(-) rename src/com/futurewei/alioth/controller/schema/{common.java => Common.java} (92%) rename src/com/futurewei/alioth/controller/schema/{portstate.java => Port.java} (80%) rename src/com/futurewei/alioth/controller/schema/{securitygroupstate.java => SecurityGroup.java} (76%) rename src/com/futurewei/alioth/controller/schema/{subnetstate.java => Subnet.java} (81%) rename src/com/futurewei/alioth/controller/schema/{vpcstate.java => Vpc.java} (80%) rename src/schema/proto3/{portstate.proto => port.proto} (95%) rename src/schema/proto3/{securitygroupstate.proto => securitygroup.proto} (84%) rename src/schema/proto3/{subnetstate.proto => subnet.proto} (93%) rename src/schema/proto3/{vpcstate.proto => vpc.proto} (92%) diff --git a/src/com/futurewei/alioth/controller/schema/common.java b/src/com/futurewei/alioth/controller/schema/Common.java similarity index 92% rename from src/com/futurewei/alioth/controller/schema/common.java rename to src/com/futurewei/alioth/controller/schema/Common.java index 8c6b63870..9281db232 100644 --- a/src/com/futurewei/alioth/controller/schema/common.java +++ b/src/com/futurewei/alioth/controller/schema/Common.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: schema/proto3/common.proto +// source: common.proto package com.futurewei.alioth.controller.schema; -public final class common { - private common() {} +public final class Common { + private Common() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -104,7 +104,7 @@ public OperationType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.common.getDescriptor().getEnumTypes().get(0); + return com.futurewei.alioth.controller.schema.Common.getDescriptor().getEnumTypes().get(0); } private static final OperationType[] VALUES = values(); @@ -202,7 +202,7 @@ public EtherType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.common.getDescriptor().getEnumTypes().get(1); + return com.futurewei.alioth.controller.schema.Common.getDescriptor().getEnumTypes().get(1); } private static final EtherType[] VALUES = values(); @@ -309,7 +309,7 @@ public Protocol findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.common.getDescriptor().getEnumTypes().get(2); + return com.futurewei.alioth.controller.schema.Common.getDescriptor().getEnumTypes().get(2); } private static final Protocol[] VALUES = values(); @@ -344,12 +344,12 @@ private Protocol(int value) { descriptor; static { java.lang.String[] descriptorData = { - "\n\032schema/proto3/common.proto\022\020aliothcont" + - "roller*<\n\rOperationType\022\n\n\006CREATE\020\000\022\n\n\006U" + - "PDATE\020\001\022\007\n\003GET\020\002\022\n\n\006DELETE\020\003*\037\n\tEtherTyp" + - "e\022\010\n\004IPV4\020\000\022\010\n\004IPV6\020\001*&\n\010Protocol\022\007\n\003TCP" + - "\020\000\022\007\n\003UDP\020\001\022\010\n\004ICMP\020\002B0\n&com.futurewei.a" + - "lioth.controller.schemaB\006commonb\006proto3" + "\n\014common.proto\022\020aliothcontroller*<\n\rOper" + + "ationType\022\n\n\006CREATE\020\000\022\n\n\006UPDATE\020\001\022\007\n\003GET" + + "\020\002\022\n\n\006DELETE\020\003*\037\n\tEtherType\022\010\n\004IPV4\020\000\022\010\n" + + "\004IPV6\020\001*&\n\010Protocol\022\007\n\003TCP\020\000\022\007\n\003UDP\020\001\022\010\n" + + "\004ICMP\020\002B0\n&com.futurewei.alioth.controll" + + "er.schemaB\006Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/src/com/futurewei/alioth/controller/schema/portstate.java b/src/com/futurewei/alioth/controller/schema/Port.java similarity index 80% rename from src/com/futurewei/alioth/controller/schema/portstate.java rename to src/com/futurewei/alioth/controller/schema/Port.java index 29f63e597..316fd1cc0 100644 --- a/src/com/futurewei/alioth/controller/schema/portstate.java +++ b/src/com/futurewei/alioth/controller/schema/Port.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: portstate.proto +// source: port.proto package com.futurewei.alioth.controller.schema; -public final class portstate { - private portstate() {} +public final class Port { + private Port() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -66,12 +66,12 @@ public interface PortConfigurationOrBuilder extends /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - java.util.List + java.util.List getFixedIpsList(); /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp getFixedIps(int index); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp getFixedIps(int index); /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ @@ -79,23 +79,23 @@ public interface PortConfigurationOrBuilder extends /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - java.util.List + java.util.List getFixedIpsOrBuilderList(); /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( int index); /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - java.util.List + java.util.List getSecurityGroupIdsList(); /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index); /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ @@ -103,23 +103,23 @@ com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuil /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - java.util.List + java.util.List getSecurityGroupIdsOrBuilderList(); /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( int index); /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - java.util.List + java.util.List getAllowAddressPairsList(); /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index); /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ @@ -127,23 +127,23 @@ com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroup /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - java.util.List + java.util.List getAllowAddressPairsOrBuilderList(); /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( int index); /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - java.util.List + java.util.List getExtraDhcpOptionsList(); /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index); /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ @@ -151,12 +151,12 @@ com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressP /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - java.util.List + java.util.List getExtraDhcpOptionsOrBuilderList(); /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( int index); } /** @@ -238,38 +238,38 @@ private PortConfiguration( } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - fixedIps_ = new java.util.ArrayList(); + fixedIps_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } fixedIps_.add( - input.readMessage(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.parser(), extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - securityGroupIds_ = new java.util.ArrayList(); + securityGroupIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } securityGroupIds_.add( - input.readMessage(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.parser(), extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - allowAddressPairs_ = new java.util.ArrayList(); + allowAddressPairs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } allowAddressPairs_.add( - input.readMessage(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.parser(), extensionRegistry)); break; } case 74: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - extraDhcpOptions_ = new java.util.ArrayList(); + extraDhcpOptions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } extraDhcpOptions_.add( - input.readMessage(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.parser(), extensionRegistry)); break; } } @@ -297,14 +297,14 @@ private PortConfiguration( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.class, com.futurewei.alioth.controller.schema.Port.PortConfiguration.Builder.class); } public interface FixedIpOrBuilder extends @@ -397,14 +397,14 @@ private FixedIp( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_FixedIp_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder.class); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.class, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.Builder.class); } public static final int SUBNET_ID_FIELD_NUMBER = 1; @@ -516,10 +516,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp other = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp) obj; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp other = (com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp) obj; boolean result = true; result = result && getSubnetId() @@ -545,58 +545,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp 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 com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp 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 com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -608,7 +608,7 @@ public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -628,20 +628,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration.FixedIp) - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_FixedIp_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder.class); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.class, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -667,23 +667,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_FixedIp_descriptor; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp build() { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp result = buildPartial(); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp build() { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp buildPartial() { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp result = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp(this); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp buildPartial() { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp result = new com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp(this); result.subnetId_ = subnetId_; result.ipAddress_ = ipAddress_; onBuilt(); @@ -717,16 +717,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp) { - return mergeFrom((com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp)other); + if (other instanceof com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp) { + return mergeFrom((com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp other) { - if (other == com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp other) { + if (other == com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.getDefaultInstance()) return this; if (!other.getSubnetId().isEmpty()) { subnetId_ = other.subnetId_; onChanged(); @@ -747,11 +747,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp parsedMessage = null; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -913,12 +913,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration.FixedIp) - private static final com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp(); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -941,7 +941,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1020,14 +1020,14 @@ private SecurityGroupId( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder.class); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @@ -1099,10 +1099,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId other = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId) obj; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId other = (com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId) obj; boolean result = true; result = result && getId() @@ -1124,58 +1124,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId 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 com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId 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 com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1187,7 +1187,7 @@ public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1207,20 +1207,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration.SecurityGroupId) - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder.class); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1244,23 +1244,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_SecurityGroupId_descriptor; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId build() { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId result = buildPartial(); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId build() { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId buildPartial() { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId result = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId(this); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId buildPartial() { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId result = new com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId(this); result.id_ = id_; onBuilt(); return result; @@ -1293,16 +1293,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId) { - return mergeFrom((com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId)other); + if (other instanceof com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId) { + return mergeFrom((com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId other) { - if (other == com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId other) { + if (other == com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -1319,11 +1319,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId parsedMessage = null; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1416,12 +1416,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration.SecurityGroupId) - private static final com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId(); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1444,7 +1444,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1540,14 +1540,14 @@ private AllowAddressPair( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder.class); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.class, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.Builder.class); } public static final int IP_ADDRESS_FIELD_NUMBER = 1; @@ -1659,10 +1659,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair other = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair) obj; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair other = (com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair) obj; boolean result = true; result = result && getIpAddress() @@ -1688,58 +1688,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair 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 com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair 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 com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1751,7 +1751,7 @@ public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1771,20 +1771,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration.AllowAddressPair) - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPairOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder.class); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.class, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1810,23 +1810,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_AllowAddressPair_descriptor; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair build() { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair result = buildPartial(); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair build() { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair buildPartial() { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair result = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair(this); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair buildPartial() { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair result = new com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair(this); result.ipAddress_ = ipAddress_; result.macAddress_ = macAddress_; onBuilt(); @@ -1860,16 +1860,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair) { - return mergeFrom((com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair)other); + if (other instanceof com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair) { + return mergeFrom((com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair other) { - if (other == com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair other) { + if (other == com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.getDefaultInstance()) return this; if (!other.getIpAddress().isEmpty()) { ipAddress_ = other.ipAddress_; onChanged(); @@ -1890,11 +1890,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair parsedMessage = null; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2056,12 +2056,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration.AllowAddressPair) - private static final com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair(); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2084,7 +2084,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2180,14 +2180,14 @@ private ExtraDhcpOption( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder.class); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.class, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -2299,10 +2299,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption other = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption) obj; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption other = (com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption) obj; boolean result = true; result = result && getName() @@ -2328,58 +2328,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption 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 com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption 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 com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2391,7 +2391,7 @@ public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -2411,20 +2411,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration.ExtraDhcpOption) - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder.class); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.class, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2450,23 +2450,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_ExtraDhcpOption_descriptor; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption build() { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption result = buildPartial(); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption build() { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption buildPartial() { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption result = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption(this); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption buildPartial() { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption result = new com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption(this); result.name_ = name_; result.value_ = value_; onBuilt(); @@ -2500,16 +2500,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption) { - return mergeFrom((com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption)other); + if (other instanceof com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption) { + return mergeFrom((com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption other) { - if (other == com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption other) { + if (other == com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -2530,11 +2530,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption parsedMessage = null; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2696,12 +2696,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration.ExtraDhcpOption) - private static final com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption(); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2724,7 +2724,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2877,17 +2877,17 @@ public boolean getAdminStateUp() { } public static final int FIXED_IPS_FIELD_NUMBER = 6; - private java.util.List fixedIps_; + private java.util.List fixedIps_; /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public java.util.List getFixedIpsList() { + public java.util.List getFixedIpsList() { return fixedIps_; } /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public java.util.List + public java.util.List getFixedIpsOrBuilderList() { return fixedIps_; } @@ -2900,29 +2900,29 @@ public int getFixedIpsCount() { /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp getFixedIps(int index) { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp getFixedIps(int index) { return fixedIps_.get(index); } /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( int index) { return fixedIps_.get(index); } public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 7; - private java.util.List securityGroupIds_; + private java.util.List securityGroupIds_; /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public java.util.List getSecurityGroupIdsList() { + public java.util.List getSecurityGroupIdsList() { return securityGroupIds_; } /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public java.util.List + public java.util.List getSecurityGroupIdsOrBuilderList() { return securityGroupIds_; } @@ -2935,29 +2935,29 @@ public int getSecurityGroupIdsCount() { /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index) { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( int index) { return securityGroupIds_.get(index); } public static final int ALLOW_ADDRESS_PAIRS_FIELD_NUMBER = 8; - private java.util.List allowAddressPairs_; + private java.util.List allowAddressPairs_; /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public java.util.List getAllowAddressPairsList() { + public java.util.List getAllowAddressPairsList() { return allowAddressPairs_; } /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public java.util.List + public java.util.List getAllowAddressPairsOrBuilderList() { return allowAddressPairs_; } @@ -2970,29 +2970,29 @@ public int getAllowAddressPairsCount() { /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index) { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index) { return allowAddressPairs_.get(index); } /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( int index) { return allowAddressPairs_.get(index); } public static final int EXTRA_DHCP_OPTIONS_FIELD_NUMBER = 9; - private java.util.List extraDhcpOptions_; + private java.util.List extraDhcpOptions_; /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public java.util.List getExtraDhcpOptionsList() { + public java.util.List getExtraDhcpOptionsList() { return extraDhcpOptions_; } /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public java.util.List + public java.util.List getExtraDhcpOptionsOrBuilderList() { return extraDhcpOptions_; } @@ -3005,13 +3005,13 @@ public int getExtraDhcpOptionsCount() { /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index) { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index) { return extraDhcpOptions_.get(index); } /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( int index) { return extraDhcpOptions_.get(index); } @@ -3104,10 +3104,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Port.PortConfiguration)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.portstate.PortConfiguration other = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration) obj; + com.futurewei.alioth.controller.schema.Port.PortConfiguration other = (com.futurewei.alioth.controller.schema.Port.PortConfiguration) obj; boolean result = true; result = result && getProjectId() @@ -3170,58 +3170,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration 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 com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration 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 com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3233,7 +3233,7 @@ public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.portstate.PortConfiguration prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Port.PortConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -3253,20 +3253,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.PortConfiguration) - com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder { + com.futurewei.alioth.controller.schema.Port.PortConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.class, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.class, com.futurewei.alioth.controller.schema.Port.PortConfiguration.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.portstate.PortConfiguration.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Port.PortConfiguration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3326,23 +3326,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortConfiguration_descriptor; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.portstate.PortConfiguration.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Port.PortConfiguration.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration build() { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration result = buildPartial(); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration build() { + com.futurewei.alioth.controller.schema.Port.PortConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration buildPartial() { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration result = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration(this); + public com.futurewei.alioth.controller.schema.Port.PortConfiguration buildPartial() { + com.futurewei.alioth.controller.schema.Port.PortConfiguration result = new com.futurewei.alioth.controller.schema.Port.PortConfiguration(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.projectId_ = projectId_; @@ -3418,16 +3418,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.portstate.PortConfiguration) { - return mergeFrom((com.futurewei.alioth.controller.schema.portstate.PortConfiguration)other); + if (other instanceof com.futurewei.alioth.controller.schema.Port.PortConfiguration) { + return mergeFrom((com.futurewei.alioth.controller.schema.Port.PortConfiguration)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.portstate.PortConfiguration other) { - if (other == com.futurewei.alioth.controller.schema.portstate.PortConfiguration.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Port.PortConfiguration other) { + if (other == com.futurewei.alioth.controller.schema.Port.PortConfiguration.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -3563,11 +3563,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration parsedMessage = null; + com.futurewei.alioth.controller.schema.Port.PortConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.portstate.PortConfiguration) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Port.PortConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3880,22 +3880,22 @@ public Builder clearAdminStateUp() { return this; } - private java.util.List fixedIps_ = + private java.util.List fixedIps_ = java.util.Collections.emptyList(); private void ensureFixedIpsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { - fixedIps_ = new java.util.ArrayList(fixedIps_); + fixedIps_ = new java.util.ArrayList(fixedIps_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder> fixedIpsBuilder_; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIpOrBuilder> fixedIpsBuilder_; /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public java.util.List getFixedIpsList() { + public java.util.List getFixedIpsList() { if (fixedIpsBuilder_ == null) { return java.util.Collections.unmodifiableList(fixedIps_); } else { @@ -3915,7 +3915,7 @@ public int getFixedIpsCount() { /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp getFixedIps(int index) { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp getFixedIps(int index) { if (fixedIpsBuilder_ == null) { return fixedIps_.get(index); } else { @@ -3926,7 +3926,7 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedI * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ public Builder setFixedIps( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp value) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp value) { if (fixedIpsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3943,7 +3943,7 @@ public Builder setFixedIps( * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ public Builder setFixedIps( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.Builder builderForValue) { if (fixedIpsBuilder_ == null) { ensureFixedIpsIsMutable(); fixedIps_.set(index, builderForValue.build()); @@ -3956,7 +3956,7 @@ public Builder setFixedIps( /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public Builder addFixedIps(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp value) { + public Builder addFixedIps(com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp value) { if (fixedIpsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3973,7 +3973,7 @@ public Builder addFixedIps(com.futurewei.alioth.controller.schema.portstate.Port * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ public Builder addFixedIps( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp value) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp value) { if (fixedIpsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3990,7 +3990,7 @@ public Builder addFixedIps( * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ public Builder addFixedIps( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder builderForValue) { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.Builder builderForValue) { if (fixedIpsBuilder_ == null) { ensureFixedIpsIsMutable(); fixedIps_.add(builderForValue.build()); @@ -4004,7 +4004,7 @@ public Builder addFixedIps( * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ public Builder addFixedIps( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.Builder builderForValue) { if (fixedIpsBuilder_ == null) { ensureFixedIpsIsMutable(); fixedIps_.add(index, builderForValue.build()); @@ -4018,7 +4018,7 @@ public Builder addFixedIps( * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ public Builder addAllFixedIps( - java.lang.Iterable values) { + java.lang.Iterable values) { if (fixedIpsBuilder_ == null) { ensureFixedIpsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -4058,14 +4058,14 @@ public Builder removeFixedIps(int index) { /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder getFixedIpsBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.Builder getFixedIpsBuilder( int index) { return getFixedIpsFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIpOrBuilder getFixedIpsOrBuilder( int index) { if (fixedIpsBuilder_ == null) { return fixedIps_.get(index); } else { @@ -4075,7 +4075,7 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedI /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public java.util.List + public java.util.List getFixedIpsOrBuilderList() { if (fixedIpsBuilder_ != null) { return fixedIpsBuilder_.getMessageOrBuilderList(); @@ -4086,31 +4086,31 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedI /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder addFixedIpsBuilder() { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.Builder addFixedIpsBuilder() { return getFixedIpsFieldBuilder().addBuilder( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.getDefaultInstance()); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder addFixedIpsBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.Builder addFixedIpsBuilder( int index) { return getFixedIpsFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.FixedIp fixed_ips = 6; */ - public java.util.List + public java.util.List getFixedIpsBuilderList() { return getFixedIpsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder> + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIpOrBuilder> getFixedIpsFieldBuilder() { if (fixedIpsBuilder_ == null) { fixedIpsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedIpOrBuilder>( + com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIp.Builder, com.futurewei.alioth.controller.schema.Port.PortConfiguration.FixedIpOrBuilder>( fixedIps_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), @@ -4120,22 +4120,22 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.FixedI return fixedIpsBuilder_; } - private java.util.List securityGroupIds_ = + private java.util.List securityGroupIds_ = java.util.Collections.emptyList(); private void ensureSecurityGroupIdsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { - securityGroupIds_ = new java.util.ArrayList(securityGroupIds_); + securityGroupIds_ = new java.util.ArrayList(securityGroupIds_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder> securityGroupIdsBuilder_; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupIdOrBuilder> securityGroupIdsBuilder_; /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public java.util.List getSecurityGroupIdsList() { + public java.util.List getSecurityGroupIdsList() { if (securityGroupIdsBuilder_ == null) { return java.util.Collections.unmodifiableList(securityGroupIds_); } else { @@ -4155,7 +4155,7 @@ public int getSecurityGroupIdsCount() { /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index) { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId getSecurityGroupIds(int index) { if (securityGroupIdsBuilder_ == null) { return securityGroupIds_.get(index); } else { @@ -4166,7 +4166,7 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Securi * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ public Builder setSecurityGroupIds( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId value) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId value) { if (securityGroupIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4183,7 +4183,7 @@ public Builder setSecurityGroupIds( * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ public Builder setSecurityGroupIds( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.Builder builderForValue) { if (securityGroupIdsBuilder_ == null) { ensureSecurityGroupIdsIsMutable(); securityGroupIds_.set(index, builderForValue.build()); @@ -4196,7 +4196,7 @@ public Builder setSecurityGroupIds( /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public Builder addSecurityGroupIds(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId value) { + public Builder addSecurityGroupIds(com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId value) { if (securityGroupIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4213,7 +4213,7 @@ public Builder addSecurityGroupIds(com.futurewei.alioth.controller.schema.portst * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ public Builder addSecurityGroupIds( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId value) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId value) { if (securityGroupIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4230,7 +4230,7 @@ public Builder addSecurityGroupIds( * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ public Builder addSecurityGroupIds( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder builderForValue) { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.Builder builderForValue) { if (securityGroupIdsBuilder_ == null) { ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(builderForValue.build()); @@ -4244,7 +4244,7 @@ public Builder addSecurityGroupIds( * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ public Builder addSecurityGroupIds( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.Builder builderForValue) { if (securityGroupIdsBuilder_ == null) { ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(index, builderForValue.build()); @@ -4258,7 +4258,7 @@ public Builder addSecurityGroupIds( * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ public Builder addAllSecurityGroupIds( - java.lang.Iterable values) { + java.lang.Iterable values) { if (securityGroupIdsBuilder_ == null) { ensureSecurityGroupIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -4298,14 +4298,14 @@ public Builder removeSecurityGroupIds(int index) { /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder getSecurityGroupIdsBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.Builder getSecurityGroupIdsBuilder( int index) { return getSecurityGroupIdsFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder( int index) { if (securityGroupIdsBuilder_ == null) { return securityGroupIds_.get(index); } else { @@ -4315,7 +4315,7 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Securi /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public java.util.List + public java.util.List getSecurityGroupIdsOrBuilderList() { if (securityGroupIdsBuilder_ != null) { return securityGroupIdsBuilder_.getMessageOrBuilderList(); @@ -4326,31 +4326,31 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Securi /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder addSecurityGroupIdsBuilder() { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.Builder addSecurityGroupIdsBuilder() { return getSecurityGroupIdsFieldBuilder().addBuilder( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance()); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder addSecurityGroupIdsBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.Builder addSecurityGroupIdsBuilder( int index) { return getSecurityGroupIdsFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.SecurityGroupId security_group_ids = 7; */ - public java.util.List + public java.util.List getSecurityGroupIdsBuilderList() { return getSecurityGroupIdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder> + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupIdOrBuilder> getSecurityGroupIdsFieldBuilder() { if (securityGroupIdsBuilder_ == null) { securityGroupIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.SecurityGroupIdOrBuilder>( + com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.Port.PortConfiguration.SecurityGroupIdOrBuilder>( securityGroupIds_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), @@ -4360,22 +4360,22 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Securi return securityGroupIdsBuilder_; } - private java.util.List allowAddressPairs_ = + private java.util.List allowAddressPairs_ = java.util.Collections.emptyList(); private void ensureAllowAddressPairsIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { - allowAddressPairs_ = new java.util.ArrayList(allowAddressPairs_); + allowAddressPairs_ = new java.util.ArrayList(allowAddressPairs_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder> allowAddressPairsBuilder_; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPairOrBuilder> allowAddressPairsBuilder_; /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public java.util.List getAllowAddressPairsList() { + public java.util.List getAllowAddressPairsList() { if (allowAddressPairsBuilder_ == null) { return java.util.Collections.unmodifiableList(allowAddressPairs_); } else { @@ -4395,7 +4395,7 @@ public int getAllowAddressPairsCount() { /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index) { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair getAllowAddressPairs(int index) { if (allowAddressPairsBuilder_ == null) { return allowAddressPairs_.get(index); } else { @@ -4406,7 +4406,7 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowA * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ public Builder setAllowAddressPairs( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair value) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair value) { if (allowAddressPairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4423,7 +4423,7 @@ public Builder setAllowAddressPairs( * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ public Builder setAllowAddressPairs( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.Builder builderForValue) { if (allowAddressPairsBuilder_ == null) { ensureAllowAddressPairsIsMutable(); allowAddressPairs_.set(index, builderForValue.build()); @@ -4436,7 +4436,7 @@ public Builder setAllowAddressPairs( /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public Builder addAllowAddressPairs(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair value) { + public Builder addAllowAddressPairs(com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair value) { if (allowAddressPairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4453,7 +4453,7 @@ public Builder addAllowAddressPairs(com.futurewei.alioth.controller.schema.ports * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ public Builder addAllowAddressPairs( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair value) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair value) { if (allowAddressPairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4470,7 +4470,7 @@ public Builder addAllowAddressPairs( * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ public Builder addAllowAddressPairs( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder builderForValue) { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.Builder builderForValue) { if (allowAddressPairsBuilder_ == null) { ensureAllowAddressPairsIsMutable(); allowAddressPairs_.add(builderForValue.build()); @@ -4484,7 +4484,7 @@ public Builder addAllowAddressPairs( * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ public Builder addAllowAddressPairs( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.Builder builderForValue) { if (allowAddressPairsBuilder_ == null) { ensureAllowAddressPairsIsMutable(); allowAddressPairs_.add(index, builderForValue.build()); @@ -4498,7 +4498,7 @@ public Builder addAllowAddressPairs( * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ public Builder addAllAllowAddressPairs( - java.lang.Iterable values) { + java.lang.Iterable values) { if (allowAddressPairsBuilder_ == null) { ensureAllowAddressPairsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -4538,14 +4538,14 @@ public Builder removeAllowAddressPairs(int index) { /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder getAllowAddressPairsBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.Builder getAllowAddressPairsBuilder( int index) { return getAllowAddressPairsFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPairOrBuilder getAllowAddressPairsOrBuilder( int index) { if (allowAddressPairsBuilder_ == null) { return allowAddressPairs_.get(index); } else { @@ -4555,7 +4555,7 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowA /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public java.util.List + public java.util.List getAllowAddressPairsOrBuilderList() { if (allowAddressPairsBuilder_ != null) { return allowAddressPairsBuilder_.getMessageOrBuilderList(); @@ -4566,31 +4566,31 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowA /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder addAllowAddressPairsBuilder() { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.Builder addAllowAddressPairsBuilder() { return getAllowAddressPairsFieldBuilder().addBuilder( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance()); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder addAllowAddressPairsBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.Builder addAllowAddressPairsBuilder( int index) { return getAllowAddressPairsFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.AllowAddressPair allow_address_pairs = 8; */ - public java.util.List + public java.util.List getAllowAddressPairsBuilderList() { return getAllowAddressPairsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder> + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPairOrBuilder> getAllowAddressPairsFieldBuilder() { if (allowAddressPairsBuilder_ == null) { allowAddressPairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowAddressPairOrBuilder>( + com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPair.Builder, com.futurewei.alioth.controller.schema.Port.PortConfiguration.AllowAddressPairOrBuilder>( allowAddressPairs_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), @@ -4600,22 +4600,22 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.AllowA return allowAddressPairsBuilder_; } - private java.util.List extraDhcpOptions_ = + private java.util.List extraDhcpOptions_ = java.util.Collections.emptyList(); private void ensureExtraDhcpOptionsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { - extraDhcpOptions_ = new java.util.ArrayList(extraDhcpOptions_); + extraDhcpOptions_ = new java.util.ArrayList(extraDhcpOptions_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder> extraDhcpOptionsBuilder_; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOptionOrBuilder> extraDhcpOptionsBuilder_; /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public java.util.List getExtraDhcpOptionsList() { + public java.util.List getExtraDhcpOptionsList() { if (extraDhcpOptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(extraDhcpOptions_); } else { @@ -4635,7 +4635,7 @@ public int getExtraDhcpOptionsCount() { /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index) { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption getExtraDhcpOptions(int index) { if (extraDhcpOptionsBuilder_ == null) { return extraDhcpOptions_.get(index); } else { @@ -4646,7 +4646,7 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraD * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ public Builder setExtraDhcpOptions( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption value) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption value) { if (extraDhcpOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4663,7 +4663,7 @@ public Builder setExtraDhcpOptions( * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ public Builder setExtraDhcpOptions( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { if (extraDhcpOptionsBuilder_ == null) { ensureExtraDhcpOptionsIsMutable(); extraDhcpOptions_.set(index, builderForValue.build()); @@ -4676,7 +4676,7 @@ public Builder setExtraDhcpOptions( /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public Builder addExtraDhcpOptions(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption value) { + public Builder addExtraDhcpOptions(com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption value) { if (extraDhcpOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4693,7 +4693,7 @@ public Builder addExtraDhcpOptions(com.futurewei.alioth.controller.schema.portst * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ public Builder addExtraDhcpOptions( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption value) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption value) { if (extraDhcpOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4710,7 +4710,7 @@ public Builder addExtraDhcpOptions( * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ public Builder addExtraDhcpOptions( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { if (extraDhcpOptionsBuilder_ == null) { ensureExtraDhcpOptionsIsMutable(); extraDhcpOptions_.add(builderForValue.build()); @@ -4724,7 +4724,7 @@ public Builder addExtraDhcpOptions( * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ public Builder addExtraDhcpOptions( - int index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.Builder builderForValue) { if (extraDhcpOptionsBuilder_ == null) { ensureExtraDhcpOptionsIsMutable(); extraDhcpOptions_.add(index, builderForValue.build()); @@ -4738,7 +4738,7 @@ public Builder addExtraDhcpOptions( * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ public Builder addAllExtraDhcpOptions( - java.lang.Iterable values) { + java.lang.Iterable values) { if (extraDhcpOptionsBuilder_ == null) { ensureExtraDhcpOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -4778,14 +4778,14 @@ public Builder removeExtraDhcpOptions(int index) { /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder getExtraDhcpOptionsBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.Builder getExtraDhcpOptionsBuilder( int index) { return getExtraDhcpOptionsFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOptionOrBuilder getExtraDhcpOptionsOrBuilder( int index) { if (extraDhcpOptionsBuilder_ == null) { return extraDhcpOptions_.get(index); } else { @@ -4795,7 +4795,7 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraD /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public java.util.List + public java.util.List getExtraDhcpOptionsOrBuilderList() { if (extraDhcpOptionsBuilder_ != null) { return extraDhcpOptionsBuilder_.getMessageOrBuilderList(); @@ -4806,31 +4806,31 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraD /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder addExtraDhcpOptionsBuilder() { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.Builder addExtraDhcpOptionsBuilder() { return getExtraDhcpOptionsFieldBuilder().addBuilder( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance()); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder addExtraDhcpOptionsBuilder( + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.Builder addExtraDhcpOptionsBuilder( int index) { return getExtraDhcpOptionsFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.getDefaultInstance()); } /** * repeated .aliothcontroller.PortConfiguration.ExtraDhcpOption extra_dhcp_options = 9; */ - public java.util.List + public java.util.List getExtraDhcpOptionsBuilderList() { return getExtraDhcpOptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder> + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOptionOrBuilder> getExtraDhcpOptionsFieldBuilder() { if (extraDhcpOptionsBuilder_ == null) { extraDhcpOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.ExtraDhcpOptionOrBuilder>( + com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOption.Builder, com.futurewei.alioth.controller.schema.Port.PortConfiguration.ExtraDhcpOptionOrBuilder>( extraDhcpOptions_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), @@ -4854,12 +4854,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.PortConfiguration) - private static final com.futurewei.alioth.controller.schema.portstate.PortConfiguration DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Port.PortConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.portstate.PortConfiguration(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Port.PortConfiguration(); } - public static com.futurewei.alioth.controller.schema.portstate.PortConfiguration getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Port.PortConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4882,7 +4882,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4899,7 +4899,7 @@ public interface PortStateOrBuilder extends /** * optional .aliothcontroller.OperationType operation_type = 1; */ - com.futurewei.alioth.controller.schema.common.OperationType getOperationType(); + com.futurewei.alioth.controller.schema.Common.OperationType getOperationType(); /** * optional .aliothcontroller.PortConfiguration configuration = 2; @@ -4908,11 +4908,11 @@ public interface PortStateOrBuilder extends /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - com.futurewei.alioth.controller.schema.portstate.PortConfiguration getConfiguration(); + com.futurewei.alioth.controller.schema.Port.PortConfiguration getConfiguration(); /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder getConfigurationOrBuilder(); + com.futurewei.alioth.controller.schema.Port.PortConfigurationOrBuilder getConfigurationOrBuilder(); } /** * Protobuf type {@code aliothcontroller.PortState} @@ -4961,11 +4961,11 @@ private PortState( break; } case 18: { - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder subBuilder = null; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.Builder subBuilder = null; if (configuration_ != null) { subBuilder = configuration_.toBuilder(); } - configuration_ = input.readMessage(com.futurewei.alioth.controller.schema.portstate.PortConfiguration.parser(), extensionRegistry); + configuration_ = input.readMessage(com.futurewei.alioth.controller.schema.Port.PortConfiguration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configuration_); configuration_ = subBuilder.buildPartial(); @@ -4986,14 +4986,14 @@ private PortState( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortState_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.portstate.PortState.class, com.futurewei.alioth.controller.schema.portstate.PortState.Builder.class); + com.futurewei.alioth.controller.schema.Port.PortState.class, com.futurewei.alioth.controller.schema.Port.PortState.Builder.class); } public static final int OPERATION_TYPE_FIELD_NUMBER = 1; @@ -5007,13 +5007,13 @@ public int getOperationTypeValue() { /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.schema.common.OperationType getOperationType() { - com.futurewei.alioth.controller.schema.common.OperationType result = com.futurewei.alioth.controller.schema.common.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.schema.common.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.Common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.Common.OperationType result = com.futurewei.alioth.controller.schema.Common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.Common.OperationType.UNRECOGNIZED : result; } public static final int CONFIGURATION_FIELD_NUMBER = 2; - private com.futurewei.alioth.controller.schema.portstate.PortConfiguration configuration_; + private com.futurewei.alioth.controller.schema.Port.PortConfiguration configuration_; /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ @@ -5023,13 +5023,13 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration getConfiguration() { - return configuration_ == null ? com.futurewei.alioth.controller.schema.portstate.PortConfiguration.getDefaultInstance() : configuration_; + public com.futurewei.alioth.controller.schema.Port.PortConfiguration getConfiguration() { + return configuration_ == null ? com.futurewei.alioth.controller.schema.Port.PortConfiguration.getDefaultInstance() : configuration_; } /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.Port.PortConfigurationOrBuilder getConfigurationOrBuilder() { return getConfiguration(); } @@ -5045,7 +5045,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operationType_ != com.futurewei.alioth.controller.schema.common.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.Common.OperationType.CREATE.getNumber()) { output.writeEnum(1, operationType_); } if (configuration_ != null) { @@ -5058,7 +5058,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (operationType_ != com.futurewei.alioth.controller.schema.common.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.Common.OperationType.CREATE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, operationType_); } @@ -5076,10 +5076,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.portstate.PortState)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Port.PortState)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.portstate.PortState other = (com.futurewei.alioth.controller.schema.portstate.PortState) obj; + com.futurewei.alioth.controller.schema.Port.PortState other = (com.futurewei.alioth.controller.schema.Port.PortState) obj; boolean result = true; result = result && operationType_ == other.operationType_; @@ -5109,58 +5109,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Port.PortState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Port.PortState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortState 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 com.futurewei.alioth.controller.schema.portstate.PortState parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Port.PortState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortState parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Port.PortState 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 com.futurewei.alioth.controller.schema.portstate.PortState parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.portstate.PortState parseFrom( + public static com.futurewei.alioth.controller.schema.Port.PortState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5172,7 +5172,7 @@ public static com.futurewei.alioth.controller.schema.portstate.PortState parseFr public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.portstate.PortState prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Port.PortState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -5192,20 +5192,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.PortState) - com.futurewei.alioth.controller.schema.portstate.PortStateOrBuilder { + com.futurewei.alioth.controller.schema.Port.PortStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortState_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.portstate.PortState.class, com.futurewei.alioth.controller.schema.portstate.PortState.Builder.class); + com.futurewei.alioth.controller.schema.Port.PortState.class, com.futurewei.alioth.controller.schema.Port.PortState.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.portstate.PortState.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Port.PortState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -5235,23 +5235,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.portstate.internal_static_aliothcontroller_PortState_descriptor; + return com.futurewei.alioth.controller.schema.Port.internal_static_aliothcontroller_PortState_descriptor; } - public com.futurewei.alioth.controller.schema.portstate.PortState getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.portstate.PortState.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Port.PortState getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Port.PortState.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.portstate.PortState build() { - com.futurewei.alioth.controller.schema.portstate.PortState result = buildPartial(); + public com.futurewei.alioth.controller.schema.Port.PortState build() { + com.futurewei.alioth.controller.schema.Port.PortState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.portstate.PortState buildPartial() { - com.futurewei.alioth.controller.schema.portstate.PortState result = new com.futurewei.alioth.controller.schema.portstate.PortState(this); + public com.futurewei.alioth.controller.schema.Port.PortState buildPartial() { + com.futurewei.alioth.controller.schema.Port.PortState result = new com.futurewei.alioth.controller.schema.Port.PortState(this); result.operationType_ = operationType_; if (configurationBuilder_ == null) { result.configuration_ = configuration_; @@ -5289,16 +5289,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.portstate.PortState) { - return mergeFrom((com.futurewei.alioth.controller.schema.portstate.PortState)other); + if (other instanceof com.futurewei.alioth.controller.schema.Port.PortState) { + return mergeFrom((com.futurewei.alioth.controller.schema.Port.PortState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.portstate.PortState other) { - if (other == com.futurewei.alioth.controller.schema.portstate.PortState.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Port.PortState other) { + if (other == com.futurewei.alioth.controller.schema.Port.PortState.getDefaultInstance()) return this; if (other.operationType_ != 0) { setOperationTypeValue(other.getOperationTypeValue()); } @@ -5317,11 +5317,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.portstate.PortState parsedMessage = null; + com.futurewei.alioth.controller.schema.Port.PortState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.portstate.PortState) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Port.PortState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5349,14 +5349,14 @@ public Builder setOperationTypeValue(int value) { /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.schema.common.OperationType getOperationType() { - com.futurewei.alioth.controller.schema.common.OperationType result = com.futurewei.alioth.controller.schema.common.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.schema.common.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.Common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.Common.OperationType result = com.futurewei.alioth.controller.schema.Common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.Common.OperationType.UNRECOGNIZED : result; } /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public Builder setOperationType(com.futurewei.alioth.controller.schema.common.OperationType value) { + public Builder setOperationType(com.futurewei.alioth.controller.schema.Common.OperationType value) { if (value == null) { throw new NullPointerException(); } @@ -5375,9 +5375,9 @@ public Builder clearOperationType() { return this; } - private com.futurewei.alioth.controller.schema.portstate.PortConfiguration configuration_ = null; + private com.futurewei.alioth.controller.schema.Port.PortConfiguration configuration_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder> configurationBuilder_; + com.futurewei.alioth.controller.schema.Port.PortConfiguration, com.futurewei.alioth.controller.schema.Port.PortConfiguration.Builder, com.futurewei.alioth.controller.schema.Port.PortConfigurationOrBuilder> configurationBuilder_; /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ @@ -5387,9 +5387,9 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration getConfiguration() { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration getConfiguration() { if (configurationBuilder_ == null) { - return configuration_ == null ? com.futurewei.alioth.controller.schema.portstate.PortConfiguration.getDefaultInstance() : configuration_; + return configuration_ == null ? com.futurewei.alioth.controller.schema.Port.PortConfiguration.getDefaultInstance() : configuration_; } else { return configurationBuilder_.getMessage(); } @@ -5397,7 +5397,7 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration getCon /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public Builder setConfiguration(com.futurewei.alioth.controller.schema.portstate.PortConfiguration value) { + public Builder setConfiguration(com.futurewei.alioth.controller.schema.Port.PortConfiguration value) { if (configurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5414,7 +5414,7 @@ public Builder setConfiguration(com.futurewei.alioth.controller.schema.portstate * optional .aliothcontroller.PortConfiguration configuration = 2; */ public Builder setConfiguration( - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder builderForValue) { + com.futurewei.alioth.controller.schema.Port.PortConfiguration.Builder builderForValue) { if (configurationBuilder_ == null) { configuration_ = builderForValue.build(); onChanged(); @@ -5427,11 +5427,11 @@ public Builder setConfiguration( /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public Builder mergeConfiguration(com.futurewei.alioth.controller.schema.portstate.PortConfiguration value) { + public Builder mergeConfiguration(com.futurewei.alioth.controller.schema.Port.PortConfiguration value) { if (configurationBuilder_ == null) { if (configuration_ != null) { configuration_ = - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + com.futurewei.alioth.controller.schema.Port.PortConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); } else { configuration_ = value; } @@ -5459,7 +5459,7 @@ public Builder clearConfiguration() { /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder getConfigurationBuilder() { + public com.futurewei.alioth.controller.schema.Port.PortConfiguration.Builder getConfigurationBuilder() { onChanged(); return getConfigurationFieldBuilder().getBuilder(); @@ -5467,23 +5467,23 @@ public com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builde /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.Port.PortConfigurationOrBuilder getConfigurationOrBuilder() { if (configurationBuilder_ != null) { return configurationBuilder_.getMessageOrBuilder(); } else { return configuration_ == null ? - com.futurewei.alioth.controller.schema.portstate.PortConfiguration.getDefaultInstance() : configuration_; + com.futurewei.alioth.controller.schema.Port.PortConfiguration.getDefaultInstance() : configuration_; } } /** * optional .aliothcontroller.PortConfiguration configuration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder> + com.futurewei.alioth.controller.schema.Port.PortConfiguration, com.futurewei.alioth.controller.schema.Port.PortConfiguration.Builder, com.futurewei.alioth.controller.schema.Port.PortConfigurationOrBuilder> getConfigurationFieldBuilder() { if (configurationBuilder_ == null) { configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.portstate.PortConfiguration, com.futurewei.alioth.controller.schema.portstate.PortConfiguration.Builder, com.futurewei.alioth.controller.schema.portstate.PortConfigurationOrBuilder>( + com.futurewei.alioth.controller.schema.Port.PortConfiguration, com.futurewei.alioth.controller.schema.Port.PortConfiguration.Builder, com.futurewei.alioth.controller.schema.Port.PortConfigurationOrBuilder>( getConfiguration(), getParentForChildren(), isClean()); @@ -5506,12 +5506,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.PortState) - private static final com.futurewei.alioth.controller.schema.portstate.PortState DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Port.PortState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.portstate.PortState(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Port.PortState(); } - public static com.futurewei.alioth.controller.schema.portstate.PortState getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Port.PortState getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -5534,7 +5534,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.portstate.PortState getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Port.PortState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -5579,28 +5579,28 @@ public com.futurewei.alioth.controller.schema.portstate.PortState getDefaultInst descriptor; static { java.lang.String[] descriptorData = { - "\n\017portstate.proto\022\020aliothcontroller\032\014com" + - "mon.proto\"\340\004\n\021PortConfiguration\022\022\n\nproje" + - "ct_id\030\001 \001(\t\022\022\n\nnetwork_id\030\002 \001(\t\022\n\n\002id\030\003 " + - "\001(\t\022\014\n\004name\030\004 \001(\t\022\026\n\016admin_state_up\030\005 \001(" + - "\010\022>\n\tfixed_ips\030\006 \003(\0132+.aliothcontroller." + - "PortConfiguration.FixedIp\022O\n\022security_gr" + - "oup_ids\030\007 \003(\01323.aliothcontroller.PortCon" + - "figuration.SecurityGroupId\022Q\n\023allow_addr" + - "ess_pairs\030\010 \003(\01324.aliothcontroller.PortC" + - "onfiguration.AllowAddressPair\022O\n\022extra_d", - "hcp_options\030\t \003(\01323.aliothcontroller.Por" + - "tConfiguration.ExtraDhcpOption\0320\n\007FixedI" + - "p\022\021\n\tsubnet_id\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t" + - "\032\035\n\017SecurityGroupId\022\n\n\002id\030\001 \001(\t\032;\n\020Allow" + - "AddressPair\022\022\n\nip_address\030\001 \001(\t\022\023\n\013mac_a" + - "ddress\030\002 \001(\t\032.\n\017ExtraDhcpOption\022\014\n\004name\030" + - "\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\200\001\n\tPortState\0227\n\016op" + - "eration_type\030\001 \001(\0162\037.aliothcontroller.Op" + - "erationType\022:\n\rconfiguration\030\002 \001(\0132#.ali" + - "othcontroller.PortConfigurationB3\n&com.f", - "uturewei.alioth.controller.schemaB\tports" + - "tateb\006proto3" + "\n\nport.proto\022\020aliothcontroller\032\014common.p" + + "roto\"\340\004\n\021PortConfiguration\022\022\n\nproject_id" + + "\030\001 \001(\t\022\022\n\nnetwork_id\030\002 \001(\t\022\n\n\002id\030\003 \001(\t\022\014" + + "\n\004name\030\004 \001(\t\022\026\n\016admin_state_up\030\005 \001(\010\022>\n\t" + + "fixed_ips\030\006 \003(\0132+.aliothcontroller.PortC" + + "onfiguration.FixedIp\022O\n\022security_group_i" + + "ds\030\007 \003(\01323.aliothcontroller.PortConfigur" + + "ation.SecurityGroupId\022Q\n\023allow_address_p" + + "airs\030\010 \003(\01324.aliothcontroller.PortConfig" + + "uration.AllowAddressPair\022O\n\022extra_dhcp_o", + "ptions\030\t \003(\01323.aliothcontroller.PortConf" + + "iguration.ExtraDhcpOption\0320\n\007FixedIp\022\021\n\t" + + "subnet_id\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\032\035\n\017S" + + "ecurityGroupId\022\n\n\002id\030\001 \001(\t\032;\n\020AllowAddre" + + "ssPair\022\022\n\nip_address\030\001 \001(\t\022\023\n\013mac_addres" + + "s\030\002 \001(\t\032.\n\017ExtraDhcpOption\022\014\n\004name\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t\"\200\001\n\tPortState\0227\n\016operati" + + "on_type\030\001 \001(\0162\037.aliothcontroller.Operati" + + "onType\022:\n\rconfiguration\030\002 \001(\0132#.aliothco" + + "ntroller.PortConfigurationB.\n&com.future", + "wei.alioth.controller.schemaB\004Portb\006prot" + + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -5613,7 +5613,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.futurewei.alioth.controller.schema.common.getDescriptor(), + com.futurewei.alioth.controller.schema.Common.getDescriptor(), }, assigner); internal_static_aliothcontroller_PortConfiguration_descriptor = getDescriptor().getMessageTypes().get(0); @@ -5651,7 +5651,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aliothcontroller_PortState_descriptor, new java.lang.String[] { "OperationType", "Configuration", }); - com.futurewei.alioth.controller.schema.common.getDescriptor(); + com.futurewei.alioth.controller.schema.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/com/futurewei/alioth/controller/schema/securitygroupstate.java b/src/com/futurewei/alioth/controller/schema/SecurityGroup.java similarity index 76% rename from src/com/futurewei/alioth/controller/schema/securitygroupstate.java rename to src/com/futurewei/alioth/controller/schema/SecurityGroup.java index ba3584599..579b5f103 100644 --- a/src/com/futurewei/alioth/controller/schema/securitygroupstate.java +++ b/src/com/futurewei/alioth/controller/schema/SecurityGroup.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: securitygroupstate.proto +// source: securitygroup.proto package com.futurewei.alioth.controller.schema; -public final class securitygroupstate { - private securitygroupstate() {} +public final class SecurityGroup { + private SecurityGroup() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -51,12 +51,12 @@ public interface SecurityGroupConfigurationOrBuilder extends /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - java.util.List + java.util.List getSecurityGroupRulesList(); /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index); + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index); /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ @@ -64,12 +64,12 @@ public interface SecurityGroupConfigurationOrBuilder extends /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - java.util.List + java.util.List getSecurityGroupRulesOrBuilderList(); /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( int index); } /** @@ -135,11 +135,11 @@ private SecurityGroupConfiguration( } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - securityGroupRules_ = new java.util.ArrayList(); + securityGroupRules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } securityGroupRules_.add( - input.readMessage(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.parser(), extensionRegistry)); break; } } @@ -158,14 +158,14 @@ private SecurityGroupConfiguration( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.class, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.class, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Builder.class); } /** @@ -240,7 +240,7 @@ public Direction findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.getDescriptor().getEnumTypes().get(0); + return com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.getDescriptor().getEnumTypes().get(0); } private static final Direction[] VALUES = values(); @@ -297,7 +297,7 @@ public interface SecurityGroupRuleOrBuilder extends /** * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; */ - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction getDirection(); + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Direction getDirection(); /** * optional .aliothcontroller.EtherType ethertype = 4; @@ -306,7 +306,7 @@ public interface SecurityGroupRuleOrBuilder extends /** * optional .aliothcontroller.EtherType ethertype = 4; */ - com.futurewei.alioth.controller.schema.common.EtherType getEthertype(); + com.futurewei.alioth.controller.schema.Common.EtherType getEthertype(); /** * optional .aliothcontroller.Protocol protocol = 5; @@ -315,7 +315,7 @@ public interface SecurityGroupRuleOrBuilder extends /** * optional .aliothcontroller.Protocol protocol = 5; */ - com.futurewei.alioth.controller.schema.common.Protocol getProtocol(); + com.futurewei.alioth.controller.schema.Common.Protocol getProtocol(); /** * optional int32 port_range_min = 6; @@ -460,14 +460,14 @@ private SecurityGroupRule( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_fieldAccessorTable + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.class, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder.class); + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.class, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.Builder.class); } public static final int SECURITY_GROUP_ID_FIELD_NUMBER = 1; @@ -549,9 +549,9 @@ public int getDirectionValue() { /** * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction getDirection() { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction result = com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction.valueOf(direction_); - return result == null ? com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Direction getDirection() { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Direction result = com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Direction.valueOf(direction_); + return result == null ? com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Direction.UNRECOGNIZED : result; } public static final int ETHERTYPE_FIELD_NUMBER = 4; @@ -565,9 +565,9 @@ public int getEthertypeValue() { /** * optional .aliothcontroller.EtherType ethertype = 4; */ - public com.futurewei.alioth.controller.schema.common.EtherType getEthertype() { - com.futurewei.alioth.controller.schema.common.EtherType result = com.futurewei.alioth.controller.schema.common.EtherType.valueOf(ethertype_); - return result == null ? com.futurewei.alioth.controller.schema.common.EtherType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.Common.EtherType getEthertype() { + com.futurewei.alioth.controller.schema.Common.EtherType result = com.futurewei.alioth.controller.schema.Common.EtherType.valueOf(ethertype_); + return result == null ? com.futurewei.alioth.controller.schema.Common.EtherType.UNRECOGNIZED : result; } public static final int PROTOCOL_FIELD_NUMBER = 5; @@ -581,9 +581,9 @@ public int getProtocolValue() { /** * optional .aliothcontroller.Protocol protocol = 5; */ - public com.futurewei.alioth.controller.schema.common.Protocol getProtocol() { - com.futurewei.alioth.controller.schema.common.Protocol result = com.futurewei.alioth.controller.schema.common.Protocol.valueOf(protocol_); - return result == null ? com.futurewei.alioth.controller.schema.common.Protocol.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.Common.Protocol getProtocol() { + com.futurewei.alioth.controller.schema.Common.Protocol result = com.futurewei.alioth.controller.schema.Common.Protocol.valueOf(protocol_); + return result == null ? com.futurewei.alioth.controller.schema.Common.Protocol.UNRECOGNIZED : result; } public static final int PORT_RANGE_MIN_FIELD_NUMBER = 6; @@ -690,13 +690,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } - if (direction_ != com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction.EGRESS.getNumber()) { + if (direction_ != com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Direction.EGRESS.getNumber()) { output.writeEnum(3, direction_); } - if (ethertype_ != com.futurewei.alioth.controller.schema.common.EtherType.IPV4.getNumber()) { + if (ethertype_ != com.futurewei.alioth.controller.schema.Common.EtherType.IPV4.getNumber()) { output.writeEnum(4, ethertype_); } - if (protocol_ != com.futurewei.alioth.controller.schema.common.Protocol.TCP.getNumber()) { + if (protocol_ != com.futurewei.alioth.controller.schema.Common.Protocol.TCP.getNumber()) { output.writeEnum(5, protocol_); } if (portRangeMin_ != 0) { @@ -724,15 +724,15 @@ public int getSerializedSize() { if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } - if (direction_ != com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction.EGRESS.getNumber()) { + if (direction_ != com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Direction.EGRESS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, direction_); } - if (ethertype_ != com.futurewei.alioth.controller.schema.common.EtherType.IPV4.getNumber()) { + if (ethertype_ != com.futurewei.alioth.controller.schema.Common.EtherType.IPV4.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, ethertype_); } - if (protocol_ != com.futurewei.alioth.controller.schema.common.Protocol.TCP.getNumber()) { + if (protocol_ != com.futurewei.alioth.controller.schema.Common.Protocol.TCP.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, protocol_); } @@ -760,10 +760,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule other = (com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule) obj; + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule other = (com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule) obj; boolean result = true; result = result && getSecurityGroupId() @@ -814,58 +814,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule 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 com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule 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 com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -877,7 +877,7 @@ public static com.futurewei.alioth.controller.schema.securitygroupstate.Security public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -897,20 +897,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule) - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_fieldAccessorTable + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.class, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder.class); + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.class, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -950,23 +950,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupConfiguration_SecurityGroupRule_descriptor; } - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule build() { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule result = buildPartial(); + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule build() { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule buildPartial() { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule result = new com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule(this); + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule buildPartial() { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule result = new com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule(this); result.securityGroupId_ = securityGroupId_; result.id_ = id_; result.direction_ = direction_; @@ -1007,16 +1007,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule) { - return mergeFrom((com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule)other); + if (other instanceof com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule) { + return mergeFrom((com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule other) { - if (other == com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule other) { + if (other == com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()) return this; if (!other.getSecurityGroupId().isEmpty()) { securityGroupId_ = other.securityGroupId_; onChanged(); @@ -1060,11 +1060,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule parsedMessage = null; + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1230,14 +1230,14 @@ public Builder setDirectionValue(int value) { /** * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction getDirection() { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction result = com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction.valueOf(direction_); - return result == null ? com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Direction getDirection() { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Direction result = com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Direction.valueOf(direction_); + return result == null ? com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Direction.UNRECOGNIZED : result; } /** * optional .aliothcontroller.SecurityGroupConfiguration.Direction direction = 3; */ - public Builder setDirection(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Direction value) { + public Builder setDirection(com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Direction value) { if (value == null) { throw new NullPointerException(); } @@ -1274,14 +1274,14 @@ public Builder setEthertypeValue(int value) { /** * optional .aliothcontroller.EtherType ethertype = 4; */ - public com.futurewei.alioth.controller.schema.common.EtherType getEthertype() { - com.futurewei.alioth.controller.schema.common.EtherType result = com.futurewei.alioth.controller.schema.common.EtherType.valueOf(ethertype_); - return result == null ? com.futurewei.alioth.controller.schema.common.EtherType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.Common.EtherType getEthertype() { + com.futurewei.alioth.controller.schema.Common.EtherType result = com.futurewei.alioth.controller.schema.Common.EtherType.valueOf(ethertype_); + return result == null ? com.futurewei.alioth.controller.schema.Common.EtherType.UNRECOGNIZED : result; } /** * optional .aliothcontroller.EtherType ethertype = 4; */ - public Builder setEthertype(com.futurewei.alioth.controller.schema.common.EtherType value) { + public Builder setEthertype(com.futurewei.alioth.controller.schema.Common.EtherType value) { if (value == null) { throw new NullPointerException(); } @@ -1318,14 +1318,14 @@ public Builder setProtocolValue(int value) { /** * optional .aliothcontroller.Protocol protocol = 5; */ - public com.futurewei.alioth.controller.schema.common.Protocol getProtocol() { - com.futurewei.alioth.controller.schema.common.Protocol result = com.futurewei.alioth.controller.schema.common.Protocol.valueOf(protocol_); - return result == null ? com.futurewei.alioth.controller.schema.common.Protocol.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.Common.Protocol getProtocol() { + com.futurewei.alioth.controller.schema.Common.Protocol result = com.futurewei.alioth.controller.schema.Common.Protocol.valueOf(protocol_); + return result == null ? com.futurewei.alioth.controller.schema.Common.Protocol.UNRECOGNIZED : result; } /** * optional .aliothcontroller.Protocol protocol = 5; */ - public Builder setProtocol(com.futurewei.alioth.controller.schema.common.Protocol value) { + public Builder setProtocol(com.futurewei.alioth.controller.schema.Common.Protocol value) { if (value == null) { throw new NullPointerException(); } @@ -1548,12 +1548,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule) - private static final com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule(); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1576,7 +1576,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1686,17 +1686,17 @@ public java.lang.String getName() { } public static final int SECURITY_GROUP_RULES_FIELD_NUMBER = 4; - private java.util.List securityGroupRules_; + private java.util.List securityGroupRules_; /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public java.util.List getSecurityGroupRulesList() { + public java.util.List getSecurityGroupRulesList() { return securityGroupRules_; } /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public java.util.List + public java.util.List getSecurityGroupRulesOrBuilderList() { return securityGroupRules_; } @@ -1709,13 +1709,13 @@ public int getSecurityGroupRulesCount() { /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index) { + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index) { return securityGroupRules_.get(index); } /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( int index) { return securityGroupRules_.get(index); } @@ -1774,10 +1774,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration other = (com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration) obj; + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration other = (com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration) obj; boolean result = true; result = result && getProjectId() @@ -1813,58 +1813,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration 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 com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration 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 com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1876,7 +1876,7 @@ public static com.futurewei.alioth.controller.schema.securitygroupstate.Security public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1896,20 +1896,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SecurityGroupConfiguration) - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.class, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.class, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1944,23 +1944,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor; } - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration build() { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration result = buildPartial(); + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration build() { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration buildPartial() { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration result = new com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration(this); + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration buildPartial() { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration result = new com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.projectId_ = projectId_; @@ -2007,16 +2007,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration) { - return mergeFrom((com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration)other); + if (other instanceof com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration) { + return mergeFrom((com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration other) { - if (other == com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration other) { + if (other == com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -2067,11 +2067,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration parsedMessage = null; + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2289,22 +2289,22 @@ public Builder setNameBytes( return this; } - private java.util.List securityGroupRules_ = + private java.util.List securityGroupRules_ = java.util.Collections.emptyList(); private void ensureSecurityGroupRulesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { - securityGroupRules_ = new java.util.ArrayList(securityGroupRules_); + securityGroupRules_ = new java.util.ArrayList(securityGroupRules_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder> securityGroupRulesBuilder_; + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder> securityGroupRulesBuilder_; /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public java.util.List getSecurityGroupRulesList() { + public java.util.List getSecurityGroupRulesList() { if (securityGroupRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(securityGroupRules_); } else { @@ -2324,7 +2324,7 @@ public int getSecurityGroupRulesCount() { /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index) { + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule getSecurityGroupRules(int index) { if (securityGroupRulesBuilder_ == null) { return securityGroupRules_.get(index); } else { @@ -2335,7 +2335,7 @@ public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupCo * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ public Builder setSecurityGroupRules( - int index, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule value) { + int index, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule value) { if (securityGroupRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2352,7 +2352,7 @@ public Builder setSecurityGroupRules( * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ public Builder setSecurityGroupRules( - int index, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { if (securityGroupRulesBuilder_ == null) { ensureSecurityGroupRulesIsMutable(); securityGroupRules_.set(index, builderForValue.build()); @@ -2365,7 +2365,7 @@ public Builder setSecurityGroupRules( /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public Builder addSecurityGroupRules(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule value) { + public Builder addSecurityGroupRules(com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule value) { if (securityGroupRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2382,7 +2382,7 @@ public Builder addSecurityGroupRules(com.futurewei.alioth.controller.schema.secu * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ public Builder addSecurityGroupRules( - int index, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule value) { + int index, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule value) { if (securityGroupRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2399,7 +2399,7 @@ public Builder addSecurityGroupRules( * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ public Builder addSecurityGroupRules( - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { if (securityGroupRulesBuilder_ == null) { ensureSecurityGroupRulesIsMutable(); securityGroupRules_.add(builderForValue.build()); @@ -2413,7 +2413,7 @@ public Builder addSecurityGroupRules( * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ public Builder addSecurityGroupRules( - int index, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.Builder builderForValue) { if (securityGroupRulesBuilder_ == null) { ensureSecurityGroupRulesIsMutable(); securityGroupRules_.add(index, builderForValue.build()); @@ -2427,7 +2427,7 @@ public Builder addSecurityGroupRules( * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ public Builder addAllSecurityGroupRules( - java.lang.Iterable values) { + java.lang.Iterable values) { if (securityGroupRulesBuilder_ == null) { ensureSecurityGroupRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2467,14 +2467,14 @@ public Builder removeSecurityGroupRules(int index) { /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder getSecurityGroupRulesBuilder( + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.Builder getSecurityGroupRulesBuilder( int index) { return getSecurityGroupRulesFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder getSecurityGroupRulesOrBuilder( int index) { if (securityGroupRulesBuilder_ == null) { return securityGroupRules_.get(index); } else { @@ -2484,7 +2484,7 @@ public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupCo /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public java.util.List + public java.util.List getSecurityGroupRulesOrBuilderList() { if (securityGroupRulesBuilder_ != null) { return securityGroupRulesBuilder_.getMessageOrBuilderList(); @@ -2495,31 +2495,31 @@ public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupCo /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder addSecurityGroupRulesBuilder() { + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.Builder addSecurityGroupRulesBuilder() { return getSecurityGroupRulesFieldBuilder().addBuilder( - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()); + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()); } /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder addSecurityGroupRulesBuilder( + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.Builder addSecurityGroupRulesBuilder( int index) { return getSecurityGroupRulesFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.getDefaultInstance()); } /** * repeated .aliothcontroller.SecurityGroupConfiguration.SecurityGroupRule security_group_rules = 4; */ - public java.util.List + public java.util.List getSecurityGroupRulesBuilderList() { return getSecurityGroupRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder> + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder> getSecurityGroupRulesFieldBuilder() { if (securityGroupRulesBuilder_ == null) { securityGroupRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder>( + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRule.Builder, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.SecurityGroupRuleOrBuilder>( securityGroupRules_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), @@ -2543,12 +2543,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SecurityGroupConfiguration) - private static final com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration(); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2571,7 +2571,7 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2582,13 +2582,13 @@ public interface SecurityGroupStateOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ int getOperationTypeValue(); /** - * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType getOperationType(); + com.futurewei.alioth.controller.schema.Common.OperationType getOperationType(); /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; @@ -2597,11 +2597,11 @@ public interface SecurityGroupStateOrBuilder extends /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration getConfiguration(); + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration getConfiguration(); /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder(); + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder(); } /** * Protobuf type {@code aliothcontroller.SecurityGroupState} @@ -2650,11 +2650,11 @@ private SecurityGroupState( break; } case 18: { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder subBuilder = null; + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Builder subBuilder = null; if (configuration_ != null) { subBuilder = configuration_.toBuilder(); } - configuration_ = input.readMessage(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.parser(), extensionRegistry); + configuration_ = input.readMessage(com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configuration_); configuration_ = subBuilder.buildPartial(); @@ -2675,150 +2675,34 @@ private SecurityGroupState( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_descriptor; + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.class, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.Builder.class); - } - - /** - * Protobuf enum {@code aliothcontroller.SecurityGroupState.OperationType} - */ - public enum OperationType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CREATE = 0; - */ - CREATE(0), - /** - * UPDATE = 1; - */ - UPDATE(1), - /** - * GET = 2; - */ - GET(2), - /** - * DELETE = 3; - */ - DELETE(3), - UNRECOGNIZED(-1), - ; - - /** - * CREATE = 0; - */ - public static final int CREATE_VALUE = 0; - /** - * UPDATE = 1; - */ - public static final int UPDATE_VALUE = 1; - /** - * GET = 2; - */ - public static final int GET_VALUE = 2; - /** - * DELETE = 3; - */ - public static final int DELETE_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OperationType valueOf(int value) { - return forNumber(value); - } - - public static OperationType forNumber(int value) { - switch (value) { - case 0: return CREATE; - case 1: return UPDATE; - case 2: return GET; - case 3: return DELETE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - OperationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OperationType findValueByNumber(int number) { - return OperationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.getDescriptor().getEnumTypes().get(0); - } - - private static final OperationType[] VALUES = values(); - - public static OperationType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private OperationType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:aliothcontroller.SecurityGroupState.OperationType) + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState.class, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState.Builder.class); } public static final int OPERATION_TYPE_FIELD_NUMBER = 1; private int operationType_; /** - * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ public int getOperationTypeValue() { return operationType_; } /** - * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType getOperationType() { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType result = com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.Common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.Common.OperationType result = com.futurewei.alioth.controller.schema.Common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.Common.OperationType.UNRECOGNIZED : result; } public static final int CONFIGURATION_FIELD_NUMBER = 2; - private com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration configuration_; + private com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration configuration_; /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ @@ -2828,13 +2712,13 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration getConfiguration() { - return configuration_ == null ? com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance() : configuration_; + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration getConfiguration() { + return configuration_ == null ? com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.getDefaultInstance() : configuration_; } /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder() { return getConfiguration(); } @@ -2850,7 +2734,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operationType_ != com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.Common.OperationType.CREATE.getNumber()) { output.writeEnum(1, operationType_); } if (configuration_ != null) { @@ -2863,7 +2747,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (operationType_ != com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.Common.OperationType.CREATE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, operationType_); } @@ -2881,10 +2765,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState other = (com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState) obj; + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState other = (com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState) obj; boolean result = true; result = result && operationType_ == other.operationType_; @@ -2914,58 +2798,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState 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 com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState 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 com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parseFrom( + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2977,7 +2861,7 @@ public static com.futurewei.alioth.controller.schema.securitygroupstate.Security public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -2997,20 +2881,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SecurityGroupState) - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupStateOrBuilder { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_descriptor; + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.class, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.Builder.class); + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState.class, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3040,23 +2924,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.securitygroupstate.internal_static_aliothcontroller_SecurityGroupState_descriptor; + return com.futurewei.alioth.controller.schema.SecurityGroup.internal_static_aliothcontroller_SecurityGroupState_descriptor; } - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState build() { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState result = buildPartial(); + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState build() { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState buildPartial() { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState result = new com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState(this); + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState buildPartial() { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState result = new com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState(this); result.operationType_ = operationType_; if (configurationBuilder_ == null) { result.configuration_ = configuration_; @@ -3094,16 +2978,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState) { - return mergeFrom((com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState)other); + if (other instanceof com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState) { + return mergeFrom((com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState other) { - if (other == com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState other) { + if (other == com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState.getDefaultInstance()) return this; if (other.operationType_ != 0) { setOperationTypeValue(other.getOperationTypeValue()); } @@ -3122,11 +3006,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState parsedMessage = null; + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3138,13 +3022,13 @@ public Builder mergeFrom( private int operationType_ = 0; /** - * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ public int getOperationTypeValue() { return operationType_; } /** - * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ public Builder setOperationTypeValue(int value) { operationType_ = value; @@ -3152,16 +3036,16 @@ public Builder setOperationTypeValue(int value) { return this; } /** - * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType getOperationType() { - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType result = com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.Common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.Common.OperationType result = com.futurewei.alioth.controller.schema.Common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.Common.OperationType.UNRECOGNIZED : result; } /** - * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ - public Builder setOperationType(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState.OperationType value) { + public Builder setOperationType(com.futurewei.alioth.controller.schema.Common.OperationType value) { if (value == null) { throw new NullPointerException(); } @@ -3171,7 +3055,7 @@ public Builder setOperationType(com.futurewei.alioth.controller.schema.securityg return this; } /** - * optional .aliothcontroller.SecurityGroupState.OperationType operation_type = 1; + * optional .aliothcontroller.OperationType operation_type = 1; */ public Builder clearOperationType() { @@ -3180,9 +3064,9 @@ public Builder clearOperationType() { return this; } - private com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration configuration_ = null; + private com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration configuration_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder> configurationBuilder_; + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfigurationOrBuilder> configurationBuilder_; /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ @@ -3192,9 +3076,9 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration getConfiguration() { + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration getConfiguration() { if (configurationBuilder_ == null) { - return configuration_ == null ? com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance() : configuration_; + return configuration_ == null ? com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.getDefaultInstance() : configuration_; } else { return configurationBuilder_.getMessage(); } @@ -3202,7 +3086,7 @@ public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupCo /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public Builder setConfiguration(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration value) { + public Builder setConfiguration(com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration value) { if (configurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3219,7 +3103,7 @@ public Builder setConfiguration(com.futurewei.alioth.controller.schema.securityg * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ public Builder setConfiguration( - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder builderForValue) { + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Builder builderForValue) { if (configurationBuilder_ == null) { configuration_ = builderForValue.build(); onChanged(); @@ -3232,11 +3116,11 @@ public Builder setConfiguration( /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public Builder mergeConfiguration(com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration value) { + public Builder mergeConfiguration(com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration value) { if (configurationBuilder_ == null) { if (configuration_ != null) { configuration_ = - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); } else { configuration_ = value; } @@ -3264,7 +3148,7 @@ public Builder clearConfiguration() { /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder getConfigurationBuilder() { + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Builder getConfigurationBuilder() { onChanged(); return getConfigurationFieldBuilder().getBuilder(); @@ -3272,23 +3156,23 @@ public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupCo /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfigurationOrBuilder getConfigurationOrBuilder() { if (configurationBuilder_ != null) { return configurationBuilder_.getMessageOrBuilder(); } else { return configuration_ == null ? - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.getDefaultInstance() : configuration_; + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.getDefaultInstance() : configuration_; } } /** * optional .aliothcontroller.SecurityGroupConfiguration configuration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder> + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfigurationOrBuilder> getConfigurationFieldBuilder() { if (configurationBuilder_ == null) { configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupConfigurationOrBuilder>( + com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfiguration.Builder, com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupConfigurationOrBuilder>( getConfiguration(), getParentForChildren(), isClean()); @@ -3311,12 +3195,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SecurityGroupState) - private static final com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState(); } - public static com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3339,7 +3223,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupState getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.SecurityGroup.SecurityGroupState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3369,29 +3253,27 @@ public com.futurewei.alioth.controller.schema.securitygroupstate.SecurityGroupSt descriptor; static { java.lang.String[] descriptorData = { - "\n\030securitygroupstate.proto\022\020aliothcontro" + - "ller\032\014common.proto\"\233\004\n\032SecurityGroupConf" + - "iguration\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006vpc_id\030" + - "\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\\\n\024security_group_ru" + - "les\030\004 \003(\0132>.aliothcontroller.SecurityGro" + - "upConfiguration.SecurityGroupRule\032\306\002\n\021Se" + - "curityGroupRule\022\031\n\021security_group_id\030\001 \001" + - "(\t\022\n\n\002id\030\002 \001(\t\022I\n\tdirection\030\003 \001(\01626.alio" + - "thcontroller.SecurityGroupConfiguration." + - "Direction\022.\n\tethertype\030\004 \001(\0162\033.aliothcon", - "troller.EtherType\022,\n\010protocol\030\005 \001(\0162\032.al" + - "iothcontroller.Protocol\022\026\n\016port_range_mi" + - "n\030\006 \001(\005\022\026\n\016port_range_max\030\007 \001(\005\022\030\n\020remot" + - "e_ip_prefix\030\010 \001(\t\022\027\n\017remote_group_id\030\t \001" + - "(\t\"$\n\tDirection\022\n\n\006EGRESS\020\000\022\013\n\007INGRESS\020\001" + - "\"\343\001\n\022SecurityGroupState\022J\n\016operation_typ" + - "e\030\001 \001(\01622.aliothcontroller.SecurityGroup" + - "State.OperationType\022C\n\rconfiguration\030\002 \001" + - "(\0132,.aliothcontroller.SecurityGroupConfi" + - "guration\"<\n\rOperationType\022\n\n\006CREATE\020\000\022\n\n", - "\006UPDATE\020\001\022\007\n\003GET\020\002\022\n\n\006DELETE\020\003B<\n&com.fu" + - "turewei.alioth.controller.schemaB\022securi" + - "tygroupstateb\006proto3" + "\n\023securitygroup.proto\022\020aliothcontroller\032" + + "\014common.proto\"\233\004\n\032SecurityGroupConfigura" + + "tion\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006vpc_id\030\002 \001(\t" + + "\022\014\n\004name\030\003 \001(\t\022\\\n\024security_group_rules\030\004" + + " \003(\0132>.aliothcontroller.SecurityGroupCon" + + "figuration.SecurityGroupRule\032\306\002\n\021Securit" + + "yGroupRule\022\031\n\021security_group_id\030\001 \001(\t\022\n\n" + + "\002id\030\002 \001(\t\022I\n\tdirection\030\003 \001(\01626.aliothcon" + + "troller.SecurityGroupConfiguration.Direc" + + "tion\022.\n\tethertype\030\004 \001(\0162\033.aliothcontroll", + "er.EtherType\022,\n\010protocol\030\005 \001(\0162\032.aliothc" + + "ontroller.Protocol\022\026\n\016port_range_min\030\006 \001" + + "(\005\022\026\n\016port_range_max\030\007 \001(\005\022\030\n\020remote_ip_" + + "prefix\030\010 \001(\t\022\027\n\017remote_group_id\030\t \001(\t\"$\n" + + "\tDirection\022\n\n\006EGRESS\020\000\022\013\n\007INGRESS\020\001\"\222\001\n\022" + + "SecurityGroupState\0227\n\016operation_type\030\001 \001" + + "(\0162\037.aliothcontroller.OperationType\022C\n\rc" + + "onfiguration\030\002 \001(\0132,.aliothcontroller.Se" + + "curityGroupConfigurationB7\n&com.futurewe" + + "i.alioth.controller.schemaB\rSecurityGrou", + "pb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3404,7 +3286,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.futurewei.alioth.controller.schema.common.getDescriptor(), + com.futurewei.alioth.controller.schema.Common.getDescriptor(), }, assigner); internal_static_aliothcontroller_SecurityGroupConfiguration_descriptor = getDescriptor().getMessageTypes().get(0); @@ -3424,7 +3306,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aliothcontroller_SecurityGroupState_descriptor, new java.lang.String[] { "OperationType", "Configuration", }); - com.futurewei.alioth.controller.schema.common.getDescriptor(); + com.futurewei.alioth.controller.schema.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/com/futurewei/alioth/controller/schema/subnetstate.java b/src/com/futurewei/alioth/controller/schema/Subnet.java similarity index 81% rename from src/com/futurewei/alioth/controller/schema/subnetstate.java rename to src/com/futurewei/alioth/controller/schema/Subnet.java index 2ee93241a..f33cf477f 100644 --- a/src/com/futurewei/alioth/controller/schema/subnetstate.java +++ b/src/com/futurewei/alioth/controller/schema/Subnet.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: subnetstate.proto +// source: subnet.proto package com.futurewei.alioth.controller.schema; -public final class subnetstate { - private subnetstate() {} +public final class Subnet { + private Subnet() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -106,12 +106,12 @@ public interface SubnetConfigurationOrBuilder extends /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - java.util.List + java.util.List getDnsListList(); /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry getDnsList(int index); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry getDnsList(int index); /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ @@ -119,12 +119,12 @@ public interface SubnetConfigurationOrBuilder extends /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - java.util.List + java.util.List getDnsListOrBuilderList(); /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( int index); /** @@ -144,11 +144,11 @@ com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryO /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId getSecurityGroupIds(); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId getSecurityGroupIds(); /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder(); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder(); } /** * Protobuf type {@code aliothcontroller.SubnetConfiguration} @@ -255,11 +255,11 @@ private SubnetConfiguration( } case 82: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - dnsList_ = new java.util.ArrayList(); + dnsList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } dnsList_.add( - input.readMessage(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.parser(), extensionRegistry)); break; } case 90: { @@ -269,11 +269,11 @@ private SubnetConfiguration( break; } case 98: { - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder subBuilder = null; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.Builder subBuilder = null; if (securityGroupIds_ != null) { subBuilder = securityGroupIds_.toBuilder(); } - securityGroupIds_ = input.readMessage(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.parser(), extensionRegistry); + securityGroupIds_ = input.readMessage(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(securityGroupIds_); securityGroupIds_ = subBuilder.buildPartial(); @@ -297,14 +297,14 @@ private SubnetConfiguration( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.class, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.Builder.class); } public interface DnsEntryOrBuilder extends @@ -380,14 +380,14 @@ private DnsEntry( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder.class); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.class, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.Builder.class); } public static final int ENTRY_FIELD_NUMBER = 1; @@ -459,10 +459,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry other = (com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry) obj; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry other = (com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry) obj; boolean result = true; result = result && getEntry() @@ -484,58 +484,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry 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 com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry 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 com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -547,7 +547,7 @@ public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigura public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -567,20 +567,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SubnetConfiguration.DnsEntry) - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder { + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder.class); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.class, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -604,23 +604,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_DnsEntry_descriptor; } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry build() { - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry result = buildPartial(); + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry build() { + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry buildPartial() { - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry result = new com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry(this); + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry buildPartial() { + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry result = new com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry(this); result.entry_ = entry_; onBuilt(); return result; @@ -653,16 +653,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry) { - return mergeFrom((com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry)other); + if (other instanceof com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry) { + return mergeFrom((com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry other) { - if (other == com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry other) { + if (other == com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.getDefaultInstance()) return this; if (!other.getEntry().isEmpty()) { entry_ = other.entry_; onChanged(); @@ -679,11 +679,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry parsedMessage = null; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -776,12 +776,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SubnetConfiguration.DnsEntry) - private static final com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry(); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -804,7 +804,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -883,14 +883,14 @@ private SecurityGroupId( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder.class); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @@ -962,10 +962,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId other = (com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId) obj; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId other = (com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId) obj; boolean result = true; result = result && getId() @@ -987,58 +987,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId 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 com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId 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 com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1050,7 +1050,7 @@ public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigura public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1070,20 +1070,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SubnetConfiguration.SecurityGroupId) - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder { + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder.class); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.class, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1107,23 +1107,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_SecurityGroupId_descriptor; } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId build() { - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId result = buildPartial(); + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId build() { + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId buildPartial() { - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId result = new com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId(this); + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId buildPartial() { + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId result = new com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId(this); result.id_ = id_; onBuilt(); return result; @@ -1156,16 +1156,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId) { - return mergeFrom((com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId)other); + if (other instanceof com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId) { + return mergeFrom((com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId other) { - if (other == com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId other) { + if (other == com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -1182,11 +1182,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId parsedMessage = null; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1279,12 +1279,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SubnetConfiguration.SecurityGroupId) - private static final com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId(); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1307,7 +1307,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1596,17 +1596,17 @@ public java.lang.String getSecondaryDns() { } public static final int DNS_LIST_FIELD_NUMBER = 10; - private java.util.List dnsList_; + private java.util.List dnsList_; /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public java.util.List getDnsListList() { + public java.util.List getDnsListList() { return dnsList_; } /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public java.util.List + public java.util.List getDnsListOrBuilderList() { return dnsList_; } @@ -1619,13 +1619,13 @@ public int getDnsListCount() { /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry getDnsList(int index) { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry getDnsList(int index) { return dnsList_.get(index); } /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( int index) { return dnsList_.get(index); } @@ -1665,7 +1665,7 @@ public java.lang.String getAvailabilityZone() { } public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 12; - private com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId securityGroupIds_; + private com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId securityGroupIds_; /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ @@ -1675,13 +1675,13 @@ public boolean hasSecurityGroupIds() { /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId getSecurityGroupIds() { - return securityGroupIds_ == null ? com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId getSecurityGroupIds() { + return securityGroupIds_ == null ? com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; } /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder() { return getSecurityGroupIds(); } @@ -1789,10 +1789,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration other = (com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration) obj; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration other = (com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration) obj; boolean result = true; result = result && getProjectId() @@ -1866,58 +1866,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration 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 com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration 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 com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1929,7 +1929,7 @@ public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigura public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1949,20 +1949,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SubnetConfiguration) - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder { + com.futurewei.alioth.controller.schema.Subnet.SubnetConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.class, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2017,23 +2017,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetConfiguration_descriptor; } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration build() { - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration result = buildPartial(); + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration build() { + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration buildPartial() { - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration result = new com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration(this); + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration buildPartial() { + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration result = new com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.projectId_ = projectId_; @@ -2092,16 +2092,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration) { - return mergeFrom((com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration)other); + if (other instanceof com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration) { + return mergeFrom((com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration other) { - if (other == com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration other) { + if (other == com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -2182,11 +2182,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration parsedMessage = null; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2775,22 +2775,22 @@ public Builder setSecondaryDnsBytes( return this; } - private java.util.List dnsList_ = + private java.util.List dnsList_ = java.util.Collections.emptyList(); private void ensureDnsListIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { - dnsList_ = new java.util.ArrayList(dnsList_); + dnsList_ = new java.util.ArrayList(dnsList_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder> dnsListBuilder_; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntryOrBuilder> dnsListBuilder_; /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public java.util.List getDnsListList() { + public java.util.List getDnsListList() { if (dnsListBuilder_ == null) { return java.util.Collections.unmodifiableList(dnsList_); } else { @@ -2810,7 +2810,7 @@ public int getDnsListCount() { /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry getDnsList(int index) { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry getDnsList(int index) { if (dnsListBuilder_ == null) { return dnsList_.get(index); } else { @@ -2821,7 +2821,7 @@ public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Dn * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ public Builder setDnsList( - int index, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry value) { + int index, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry value) { if (dnsListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2838,7 +2838,7 @@ public Builder setDnsList( * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ public Builder setDnsList( - int index, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.Builder builderForValue) { if (dnsListBuilder_ == null) { ensureDnsListIsMutable(); dnsList_.set(index, builderForValue.build()); @@ -2851,7 +2851,7 @@ public Builder setDnsList( /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public Builder addDnsList(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry value) { + public Builder addDnsList(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry value) { if (dnsListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2868,7 +2868,7 @@ public Builder addDnsList(com.futurewei.alioth.controller.schema.subnetstate.Sub * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ public Builder addDnsList( - int index, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry value) { + int index, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry value) { if (dnsListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2885,7 +2885,7 @@ public Builder addDnsList( * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ public Builder addDnsList( - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder builderForValue) { + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.Builder builderForValue) { if (dnsListBuilder_ == null) { ensureDnsListIsMutable(); dnsList_.add(builderForValue.build()); @@ -2899,7 +2899,7 @@ public Builder addDnsList( * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ public Builder addDnsList( - int index, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.Builder builderForValue) { if (dnsListBuilder_ == null) { ensureDnsListIsMutable(); dnsList_.add(index, builderForValue.build()); @@ -2913,7 +2913,7 @@ public Builder addDnsList( * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ public Builder addAllDnsList( - java.lang.Iterable values) { + java.lang.Iterable values) { if (dnsListBuilder_ == null) { ensureDnsListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2953,14 +2953,14 @@ public Builder removeDnsList(int index) { /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder getDnsListBuilder( + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.Builder getDnsListBuilder( int index) { return getDnsListFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntryOrBuilder getDnsListOrBuilder( int index) { if (dnsListBuilder_ == null) { return dnsList_.get(index); } else { @@ -2970,7 +2970,7 @@ public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Dn /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public java.util.List + public java.util.List getDnsListOrBuilderList() { if (dnsListBuilder_ != null) { return dnsListBuilder_.getMessageOrBuilderList(); @@ -2981,31 +2981,31 @@ public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Dn /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder addDnsListBuilder() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.Builder addDnsListBuilder() { return getDnsListFieldBuilder().addBuilder( - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance()); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.getDefaultInstance()); } /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder addDnsListBuilder( + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.Builder addDnsListBuilder( int index) { return getDnsListFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.getDefaultInstance()); } /** * repeated .aliothcontroller.SubnetConfiguration.DnsEntry dns_list = 10; */ - public java.util.List + public java.util.List getDnsListBuilderList() { return getDnsListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder> + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntryOrBuilder> getDnsListFieldBuilder() { if (dnsListBuilder_ == null) { dnsListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.DnsEntryOrBuilder>( + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntry.Builder, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.DnsEntryOrBuilder>( dnsList_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), @@ -3084,9 +3084,9 @@ public Builder setAvailabilityZoneBytes( return this; } - private com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId securityGroupIds_ = null; + private com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId securityGroupIds_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder> securityGroupIdsBuilder_; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupIdOrBuilder> securityGroupIdsBuilder_; /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ @@ -3096,9 +3096,9 @@ public boolean hasSecurityGroupIds() { /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId getSecurityGroupIds() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId getSecurityGroupIds() { if (securityGroupIdsBuilder_ == null) { - return securityGroupIds_ == null ? com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; + return securityGroupIds_ == null ? com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; } else { return securityGroupIdsBuilder_.getMessage(); } @@ -3106,7 +3106,7 @@ public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Se /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public Builder setSecurityGroupIds(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId value) { + public Builder setSecurityGroupIds(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId value) { if (securityGroupIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3123,7 +3123,7 @@ public Builder setSecurityGroupIds(com.futurewei.alioth.controller.schema.subnet * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ public Builder setSecurityGroupIds( - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder builderForValue) { + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.Builder builderForValue) { if (securityGroupIdsBuilder_ == null) { securityGroupIds_ = builderForValue.build(); onChanged(); @@ -3136,11 +3136,11 @@ public Builder setSecurityGroupIds( /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public Builder mergeSecurityGroupIds(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId value) { + public Builder mergeSecurityGroupIds(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId value) { if (securityGroupIdsBuilder_ == null) { if (securityGroupIds_ != null) { securityGroupIds_ = - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.newBuilder(securityGroupIds_).mergeFrom(value).buildPartial(); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.newBuilder(securityGroupIds_).mergeFrom(value).buildPartial(); } else { securityGroupIds_ = value; } @@ -3168,7 +3168,7 @@ public Builder clearSecurityGroupIds() { /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder getSecurityGroupIdsBuilder() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.Builder getSecurityGroupIdsBuilder() { onChanged(); return getSecurityGroupIdsFieldBuilder().getBuilder(); @@ -3176,23 +3176,23 @@ public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Se /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupIdOrBuilder getSecurityGroupIdsOrBuilder() { if (securityGroupIdsBuilder_ != null) { return securityGroupIdsBuilder_.getMessageOrBuilder(); } else { return securityGroupIds_ == null ? - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.getDefaultInstance() : securityGroupIds_; } } /** * optional .aliothcontroller.SubnetConfiguration.SecurityGroupId security_group_ids = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder> + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupIdOrBuilder> getSecurityGroupIdsFieldBuilder() { if (securityGroupIdsBuilder_ == null) { securityGroupIdsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.SecurityGroupIdOrBuilder>( + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupId.Builder, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.SecurityGroupIdOrBuilder>( getSecurityGroupIds(), getParentForChildren(), isClean()); @@ -3215,12 +3215,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SubnetConfiguration) - private static final com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration(); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3243,7 +3243,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3260,7 +3260,7 @@ public interface SubnetStateOrBuilder extends /** * optional .aliothcontroller.OperationType operation_type = 1; */ - com.futurewei.alioth.controller.schema.common.OperationType getOperationType(); + com.futurewei.alioth.controller.schema.Common.OperationType getOperationType(); /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; @@ -3269,11 +3269,11 @@ public interface SubnetStateOrBuilder extends /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration getConfiguration(); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration getConfiguration(); /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder getConfigurationOrBuilder(); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfigurationOrBuilder getConfigurationOrBuilder(); } /** * Protobuf type {@code aliothcontroller.SubnetState} @@ -3322,11 +3322,11 @@ private SubnetState( break; } case 18: { - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder subBuilder = null; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.Builder subBuilder = null; if (configuration_ != null) { subBuilder = configuration_.toBuilder(); } - configuration_ = input.readMessage(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.parser(), extensionRegistry); + configuration_ = input.readMessage(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configuration_); configuration_ = subBuilder.buildPartial(); @@ -3347,14 +3347,14 @@ private SubnetState( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetState_descriptor; + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.subnetstate.SubnetState.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetState.Builder.class); + com.futurewei.alioth.controller.schema.Subnet.SubnetState.class, com.futurewei.alioth.controller.schema.Subnet.SubnetState.Builder.class); } public static final int OPERATION_TYPE_FIELD_NUMBER = 1; @@ -3368,13 +3368,13 @@ public int getOperationTypeValue() { /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.schema.common.OperationType getOperationType() { - com.futurewei.alioth.controller.schema.common.OperationType result = com.futurewei.alioth.controller.schema.common.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.schema.common.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.Common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.Common.OperationType result = com.futurewei.alioth.controller.schema.Common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.Common.OperationType.UNRECOGNIZED : result; } public static final int CONFIGURATION_FIELD_NUMBER = 2; - private com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration configuration_; + private com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration configuration_; /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ @@ -3384,13 +3384,13 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration getConfiguration() { - return configuration_ == null ? com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.getDefaultInstance() : configuration_; + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration getConfiguration() { + return configuration_ == null ? com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.getDefaultInstance() : configuration_; } /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfigurationOrBuilder getConfigurationOrBuilder() { return getConfiguration(); } @@ -3406,7 +3406,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operationType_ != com.futurewei.alioth.controller.schema.common.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.Common.OperationType.CREATE.getNumber()) { output.writeEnum(1, operationType_); } if (configuration_ != null) { @@ -3419,7 +3419,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (operationType_ != com.futurewei.alioth.controller.schema.common.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.Common.OperationType.CREATE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, operationType_); } @@ -3437,10 +3437,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetState)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Subnet.SubnetState)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.subnetstate.SubnetState other = (com.futurewei.alioth.controller.schema.subnetstate.SubnetState) obj; + com.futurewei.alioth.controller.schema.Subnet.SubnetState other = (com.futurewei.alioth.controller.schema.Subnet.SubnetState) obj; boolean result = true; result = result && operationType_ == other.operationType_; @@ -3470,58 +3470,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Subnet.SubnetState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Subnet.SubnetState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetState 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 com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Subnet.SubnetState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetState 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 com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState parseFrom( + public static com.futurewei.alioth.controller.schema.Subnet.SubnetState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3533,7 +3533,7 @@ public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState par public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.subnetstate.SubnetState prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Subnet.SubnetState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -3553,20 +3553,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.SubnetState) - com.futurewei.alioth.controller.schema.subnetstate.SubnetStateOrBuilder { + com.futurewei.alioth.controller.schema.Subnet.SubnetStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetState_descriptor; + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.subnetstate.SubnetState.class, com.futurewei.alioth.controller.schema.subnetstate.SubnetState.Builder.class); + com.futurewei.alioth.controller.schema.Subnet.SubnetState.class, com.futurewei.alioth.controller.schema.Subnet.SubnetState.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.subnetstate.SubnetState.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Subnet.SubnetState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3596,23 +3596,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.subnetstate.internal_static_aliothcontroller_SubnetState_descriptor; + return com.futurewei.alioth.controller.schema.Subnet.internal_static_aliothcontroller_SubnetState_descriptor; } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetState getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.subnetstate.SubnetState.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Subnet.SubnetState getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Subnet.SubnetState.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetState build() { - com.futurewei.alioth.controller.schema.subnetstate.SubnetState result = buildPartial(); + public com.futurewei.alioth.controller.schema.Subnet.SubnetState build() { + com.futurewei.alioth.controller.schema.Subnet.SubnetState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetState buildPartial() { - com.futurewei.alioth.controller.schema.subnetstate.SubnetState result = new com.futurewei.alioth.controller.schema.subnetstate.SubnetState(this); + public com.futurewei.alioth.controller.schema.Subnet.SubnetState buildPartial() { + com.futurewei.alioth.controller.schema.Subnet.SubnetState result = new com.futurewei.alioth.controller.schema.Subnet.SubnetState(this); result.operationType_ = operationType_; if (configurationBuilder_ == null) { result.configuration_ = configuration_; @@ -3650,16 +3650,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.subnetstate.SubnetState) { - return mergeFrom((com.futurewei.alioth.controller.schema.subnetstate.SubnetState)other); + if (other instanceof com.futurewei.alioth.controller.schema.Subnet.SubnetState) { + return mergeFrom((com.futurewei.alioth.controller.schema.Subnet.SubnetState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.subnetstate.SubnetState other) { - if (other == com.futurewei.alioth.controller.schema.subnetstate.SubnetState.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Subnet.SubnetState other) { + if (other == com.futurewei.alioth.controller.schema.Subnet.SubnetState.getDefaultInstance()) return this; if (other.operationType_ != 0) { setOperationTypeValue(other.getOperationTypeValue()); } @@ -3678,11 +3678,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.subnetstate.SubnetState parsedMessage = null; + com.futurewei.alioth.controller.schema.Subnet.SubnetState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.subnetstate.SubnetState) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Subnet.SubnetState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3710,14 +3710,14 @@ public Builder setOperationTypeValue(int value) { /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.schema.common.OperationType getOperationType() { - com.futurewei.alioth.controller.schema.common.OperationType result = com.futurewei.alioth.controller.schema.common.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.schema.common.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.Common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.Common.OperationType result = com.futurewei.alioth.controller.schema.Common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.Common.OperationType.UNRECOGNIZED : result; } /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public Builder setOperationType(com.futurewei.alioth.controller.schema.common.OperationType value) { + public Builder setOperationType(com.futurewei.alioth.controller.schema.Common.OperationType value) { if (value == null) { throw new NullPointerException(); } @@ -3736,9 +3736,9 @@ public Builder clearOperationType() { return this; } - private com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration configuration_ = null; + private com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration configuration_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder> configurationBuilder_; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.Builder, com.futurewei.alioth.controller.schema.Subnet.SubnetConfigurationOrBuilder> configurationBuilder_; /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ @@ -3748,9 +3748,9 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration getConfiguration() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration getConfiguration() { if (configurationBuilder_ == null) { - return configuration_ == null ? com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.getDefaultInstance() : configuration_; + return configuration_ == null ? com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.getDefaultInstance() : configuration_; } else { return configurationBuilder_.getMessage(); } @@ -3758,7 +3758,7 @@ public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration ge /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public Builder setConfiguration(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration value) { + public Builder setConfiguration(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration value) { if (configurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3775,7 +3775,7 @@ public Builder setConfiguration(com.futurewei.alioth.controller.schema.subnetsta * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ public Builder setConfiguration( - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder builderForValue) { + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.Builder builderForValue) { if (configurationBuilder_ == null) { configuration_ = builderForValue.build(); onChanged(); @@ -3788,11 +3788,11 @@ public Builder setConfiguration( /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public Builder mergeConfiguration(com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration value) { + public Builder mergeConfiguration(com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration value) { if (configurationBuilder_ == null) { if (configuration_ != null) { configuration_ = - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); } else { configuration_ = value; } @@ -3820,7 +3820,7 @@ public Builder clearConfiguration() { /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder getConfigurationBuilder() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.Builder getConfigurationBuilder() { onChanged(); return getConfigurationFieldBuilder().getBuilder(); @@ -3828,23 +3828,23 @@ public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Bu /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetConfigurationOrBuilder getConfigurationOrBuilder() { if (configurationBuilder_ != null) { return configurationBuilder_.getMessageOrBuilder(); } else { return configuration_ == null ? - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.getDefaultInstance() : configuration_; + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.getDefaultInstance() : configuration_; } } /** * optional .aliothcontroller.SubnetConfiguration configuration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder> + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.Builder, com.futurewei.alioth.controller.schema.Subnet.SubnetConfigurationOrBuilder> getConfigurationFieldBuilder() { if (configurationBuilder_ == null) { configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfiguration.Builder, com.futurewei.alioth.controller.schema.subnetstate.SubnetConfigurationOrBuilder>( + com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration, com.futurewei.alioth.controller.schema.Subnet.SubnetConfiguration.Builder, com.futurewei.alioth.controller.schema.Subnet.SubnetConfigurationOrBuilder>( getConfiguration(), getParentForChildren(), isClean()); @@ -3867,12 +3867,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.SubnetState) - private static final com.futurewei.alioth.controller.schema.subnetstate.SubnetState DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Subnet.SubnetState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.subnetstate.SubnetState(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Subnet.SubnetState(); } - public static com.futurewei.alioth.controller.schema.subnetstate.SubnetState getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Subnet.SubnetState getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3895,7 +3895,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.subnetstate.SubnetState getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Subnet.SubnetState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3930,23 +3930,23 @@ public com.futurewei.alioth.controller.schema.subnetstate.SubnetState getDefault descriptor; static { java.lang.String[] descriptorData = { - "\n\021subnetstate.proto\022\020aliothcontroller\032\014c" + - "ommon.proto\"\240\003\n\023SubnetConfiguration\022\022\n\np" + - "roject_id\030\001 \001(\t\022\016\n\006vpc_id\030\002 \001(\t\022\n\n\002id\030\003 " + - "\001(\t\022\014\n\004name\030\004 \001(\t\022\014\n\004cidr\030\005 \001(\t\022\022\n\ngatew" + - "ay_ip\030\006 \001(\t\022\023\n\013dhcp_enable\030\007 \001(\010\022\023\n\013prim" + - "ary_dns\030\010 \001(\t\022\025\n\rsecondary_dns\030\t \001(\t\022@\n\010" + - "dns_list\030\n \003(\0132..aliothcontroller.Subnet" + - "Configuration.DnsEntry\022\031\n\021availability_z" + - "one\030\013 \001(\t\022Q\n\022security_group_ids\030\014 \001(\01325." + - "aliothcontroller.SubnetConfiguration.Sec", - "urityGroupId\032\031\n\010DnsEntry\022\r\n\005entry\030\001 \001(\t\032" + - "\035\n\017SecurityGroupId\022\n\n\002id\030\001 \001(\t\"\204\001\n\013Subne" + - "tState\0227\n\016operation_type\030\001 \001(\0162\037.aliothc" + - "ontroller.OperationType\022<\n\rconfiguration" + - "\030\002 \001(\0132%.aliothcontroller.SubnetConfigur" + - "ationB5\n&com.futurewei.alioth.controller" + - ".schemaB\013subnetstateb\006proto3" + "\n\014subnet.proto\022\020aliothcontroller\032\014common" + + ".proto\"\240\003\n\023SubnetConfiguration\022\022\n\nprojec" + + "t_id\030\001 \001(\t\022\016\n\006vpc_id\030\002 \001(\t\022\n\n\002id\030\003 \001(\t\022\014" + + "\n\004name\030\004 \001(\t\022\014\n\004cidr\030\005 \001(\t\022\022\n\ngateway_ip" + + "\030\006 \001(\t\022\023\n\013dhcp_enable\030\007 \001(\010\022\023\n\013primary_d" + + "ns\030\010 \001(\t\022\025\n\rsecondary_dns\030\t \001(\t\022@\n\010dns_l" + + "ist\030\n \003(\0132..aliothcontroller.SubnetConfi" + + "guration.DnsEntry\022\031\n\021availability_zone\030\013" + + " \001(\t\022Q\n\022security_group_ids\030\014 \001(\01325.aliot" + + "hcontroller.SubnetConfiguration.Security", + "GroupId\032\031\n\010DnsEntry\022\r\n\005entry\030\001 \001(\t\032\035\n\017Se" + + "curityGroupId\022\n\n\002id\030\001 \001(\t\"\204\001\n\013SubnetStat" + + "e\0227\n\016operation_type\030\001 \001(\0162\037.aliothcontro" + + "ller.OperationType\022<\n\rconfiguration\030\002 \001(" + + "\0132%.aliothcontroller.SubnetConfiguration" + + "B0\n&com.futurewei.alioth.controller.sche" + + "maB\006Subnetb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3959,7 +3959,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.futurewei.alioth.controller.schema.common.getDescriptor(), + com.futurewei.alioth.controller.schema.Common.getDescriptor(), }, assigner); internal_static_aliothcontroller_SubnetConfiguration_descriptor = getDescriptor().getMessageTypes().get(0); @@ -3985,7 +3985,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aliothcontroller_SubnetState_descriptor, new java.lang.String[] { "OperationType", "Configuration", }); - com.futurewei.alioth.controller.schema.common.getDescriptor(); + com.futurewei.alioth.controller.schema.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/com/futurewei/alioth/controller/schema/vpcstate.java b/src/com/futurewei/alioth/controller/schema/Vpc.java similarity index 80% rename from src/com/futurewei/alioth/controller/schema/vpcstate.java rename to src/com/futurewei/alioth/controller/schema/Vpc.java index c9d809e95..2da81d59e 100644 --- a/src/com/futurewei/alioth/controller/schema/vpcstate.java +++ b/src/com/futurewei/alioth/controller/schema/Vpc.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: vpcstate.proto +// source: vpc.proto package com.futurewei.alioth.controller.schema; -public final class vpcstate { - private vpcstate() {} +public final class Vpc { + private Vpc() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -61,12 +61,12 @@ public interface VpcConfigurationOrBuilder extends /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - java.util.List + java.util.List getSubnetIdsList(); /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId getSubnetIds(int index); + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId getSubnetIds(int index); /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ @@ -74,23 +74,23 @@ public interface VpcConfigurationOrBuilder extends /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - java.util.List + java.util.List getSubnetIdsOrBuilderList(); /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( int index); /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - java.util.List + java.util.List getRoutesList(); /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route getRoutes(int index); + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route getRoutes(int index); /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ @@ -98,12 +98,12 @@ com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuild /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - java.util.List + java.util.List getRoutesOrBuilderList(); /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( int index); } /** @@ -177,20 +177,20 @@ private VpcConfiguration( } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - subnetIds_ = new java.util.ArrayList(); + subnetIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } subnetIds_.add( - input.readMessage(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.parser(), extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - routes_ = new java.util.ArrayList(); + routes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } routes_.add( - input.readMessage(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.parser(), extensionRegistry)); + input.readMessage(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.parser(), extensionRegistry)); break; } } @@ -212,14 +212,14 @@ private VpcConfiguration( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.class, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.class, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Builder.class); } public interface SubnetIdOrBuilder extends @@ -295,14 +295,14 @@ private SubnetId( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_SubnetId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.class, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder.class); + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.class, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @@ -374,10 +374,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId other = (com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId) obj; + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId other = (com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId) obj; boolean result = true; result = result && getId() @@ -399,58 +399,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId 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 com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId 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 com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -462,7 +462,7 @@ public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.S public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -482,20 +482,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.VpcConfiguration.SubnetId) - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder { + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_SubnetId_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.class, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder.class); + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.class, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -519,23 +519,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_SubnetId_descriptor; } - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId build() { - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId result = buildPartial(); + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId build() { + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId buildPartial() { - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId result = new com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId(this); + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId buildPartial() { + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId result = new com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId(this); result.id_ = id_; onBuilt(); return result; @@ -568,16 +568,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId) { - return mergeFrom((com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId)other); + if (other instanceof com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId) { + return mergeFrom((com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId other) { - if (other == com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId other) { + if (other == com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -594,11 +594,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId parsedMessage = null; + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -691,12 +691,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.VpcConfiguration.SubnetId) - private static final com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId(); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -719,7 +719,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -815,14 +815,14 @@ private Route( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_Route_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.class, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder.class); + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.class, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.Builder.class); } public static final int DESTINATION_FIELD_NUMBER = 1; @@ -934,10 +934,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route other = (com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route) obj; + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route other = (com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route) obj; boolean result = true; result = result && getDestination() @@ -963,58 +963,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route 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 com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route 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 com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1026,7 +1026,7 @@ public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.R public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1046,20 +1046,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.VpcConfiguration.Route) - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder { + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.RouteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_Route_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.class, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder.class); + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.class, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1085,23 +1085,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_Route_descriptor; } - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route build() { - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route result = buildPartial(); + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route build() { + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route buildPartial() { - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route result = new com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route(this); + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route buildPartial() { + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route result = new com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route(this); result.destination_ = destination_; result.nextHop_ = nextHop_; onBuilt(); @@ -1135,16 +1135,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route) { - return mergeFrom((com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route)other); + if (other instanceof com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route) { + return mergeFrom((com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route other) { - if (other == com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route other) { + if (other == com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.getDefaultInstance()) return this; if (!other.getDestination().isEmpty()) { destination_ = other.destination_; onChanged(); @@ -1165,11 +1165,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route parsedMessage = null; + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1331,12 +1331,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.VpcConfiguration.Route) - private static final com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route(); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1359,7 +1359,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1503,17 +1503,17 @@ public java.lang.String getCidr() { } public static final int SUBNET_IDS_FIELD_NUMBER = 5; - private java.util.List subnetIds_; + private java.util.List subnetIds_; /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public java.util.List getSubnetIdsList() { + public java.util.List getSubnetIdsList() { return subnetIds_; } /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public java.util.List + public java.util.List getSubnetIdsOrBuilderList() { return subnetIds_; } @@ -1526,29 +1526,29 @@ public int getSubnetIdsCount() { /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId getSubnetIds(int index) { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId getSubnetIds(int index) { return subnetIds_.get(index); } /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( int index) { return subnetIds_.get(index); } public static final int ROUTES_FIELD_NUMBER = 6; - private java.util.List routes_; + private java.util.List routes_; /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public java.util.List getRoutesList() { + public java.util.List getRoutesList() { return routes_; } /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public java.util.List + public java.util.List getRoutesOrBuilderList() { return routes_; } @@ -1561,13 +1561,13 @@ public int getRoutesCount() { /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route getRoutes(int index) { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route getRoutes(int index) { return routes_.get(index); } /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( int index) { return routes_.get(index); } @@ -1639,10 +1639,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration other = (com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration) obj; + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration other = (com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration) obj; boolean result = true; result = result && getProjectId() @@ -1688,58 +1688,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration 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 com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration 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 com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1751,7 +1751,7 @@ public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration p public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -1771,20 +1771,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.VpcConfiguration) - com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder { + com.futurewei.alioth.controller.schema.Vpc.VpcConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.class, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder.class); + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.class, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1828,23 +1828,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcConfiguration_descriptor; + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcConfiguration_descriptor; } - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration build() { - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration result = buildPartial(); + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration build() { + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration buildPartial() { - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration result = new com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration(this); + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration buildPartial() { + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration result = new com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.projectId_ = projectId_; @@ -1901,16 +1901,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration) { - return mergeFrom((com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration)other); + if (other instanceof com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration) { + return mergeFrom((com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration other) { - if (other == com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration other) { + if (other == com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); @@ -1991,11 +1991,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration parsedMessage = null; + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2282,22 +2282,22 @@ public Builder setCidrBytes( return this; } - private java.util.List subnetIds_ = + private java.util.List subnetIds_ = java.util.Collections.emptyList(); private void ensureSubnetIdsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { - subnetIds_ = new java.util.ArrayList(subnetIds_); + subnetIds_ = new java.util.ArrayList(subnetIds_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder> subnetIdsBuilder_; + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetIdOrBuilder> subnetIdsBuilder_; /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public java.util.List getSubnetIdsList() { + public java.util.List getSubnetIdsList() { if (subnetIdsBuilder_ == null) { return java.util.Collections.unmodifiableList(subnetIds_); } else { @@ -2317,7 +2317,7 @@ public int getSubnetIdsCount() { /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId getSubnetIds(int index) { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId getSubnetIds(int index) { if (subnetIdsBuilder_ == null) { return subnetIds_.get(index); } else { @@ -2328,7 +2328,7 @@ public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ public Builder setSubnetIds( - int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId value) { + int index, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId value) { if (subnetIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2345,7 +2345,7 @@ public Builder setSubnetIds( * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ public Builder setSubnetIds( - int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.Builder builderForValue) { if (subnetIdsBuilder_ == null) { ensureSubnetIdsIsMutable(); subnetIds_.set(index, builderForValue.build()); @@ -2358,7 +2358,7 @@ public Builder setSubnetIds( /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public Builder addSubnetIds(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId value) { + public Builder addSubnetIds(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId value) { if (subnetIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2375,7 +2375,7 @@ public Builder addSubnetIds(com.futurewei.alioth.controller.schema.vpcstate.VpcC * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ public Builder addSubnetIds( - int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId value) { + int index, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId value) { if (subnetIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2392,7 +2392,7 @@ public Builder addSubnetIds( * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ public Builder addSubnetIds( - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder builderForValue) { + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.Builder builderForValue) { if (subnetIdsBuilder_ == null) { ensureSubnetIdsIsMutable(); subnetIds_.add(builderForValue.build()); @@ -2406,7 +2406,7 @@ public Builder addSubnetIds( * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ public Builder addSubnetIds( - int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.Builder builderForValue) { if (subnetIdsBuilder_ == null) { ensureSubnetIdsIsMutable(); subnetIds_.add(index, builderForValue.build()); @@ -2420,7 +2420,7 @@ public Builder addSubnetIds( * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ public Builder addAllSubnetIds( - java.lang.Iterable values) { + java.lang.Iterable values) { if (subnetIdsBuilder_ == null) { ensureSubnetIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2460,14 +2460,14 @@ public Builder removeSubnetIds(int index) { /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder getSubnetIdsBuilder( + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.Builder getSubnetIdsBuilder( int index) { return getSubnetIdsFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetIdOrBuilder getSubnetIdsOrBuilder( int index) { if (subnetIdsBuilder_ == null) { return subnetIds_.get(index); } else { @@ -2477,7 +2477,7 @@ public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public java.util.List + public java.util.List getSubnetIdsOrBuilderList() { if (subnetIdsBuilder_ != null) { return subnetIdsBuilder_.getMessageOrBuilderList(); @@ -2488,31 +2488,31 @@ public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder addSubnetIdsBuilder() { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.Builder addSubnetIdsBuilder() { return getSubnetIdsFieldBuilder().addBuilder( - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance()); + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.getDefaultInstance()); } /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder addSubnetIdsBuilder( + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.Builder addSubnetIdsBuilder( int index) { return getSubnetIdsFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.getDefaultInstance()); } /** * repeated .aliothcontroller.VpcConfiguration.SubnetId subnet_ids = 5; */ - public java.util.List + public java.util.List getSubnetIdsBuilderList() { return getSubnetIdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder> + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetIdOrBuilder> getSubnetIdsFieldBuilder() { if (subnetIdsBuilder_ == null) { subnetIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetIdOrBuilder>( + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetId.Builder, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.SubnetIdOrBuilder>( subnetIds_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), @@ -2522,22 +2522,22 @@ public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.SubnetId return subnetIdsBuilder_; } - private java.util.List routes_ = + private java.util.List routes_ = java.util.Collections.emptyList(); private void ensureRoutesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { - routes_ = new java.util.ArrayList(routes_); + routes_ = new java.util.ArrayList(routes_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder> routesBuilder_; + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.RouteOrBuilder> routesBuilder_; /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public java.util.List getRoutesList() { + public java.util.List getRoutesList() { if (routesBuilder_ == null) { return java.util.Collections.unmodifiableList(routes_); } else { @@ -2557,7 +2557,7 @@ public int getRoutesCount() { /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route getRoutes(int index) { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route getRoutes(int index) { if (routesBuilder_ == null) { return routes_.get(index); } else { @@ -2568,7 +2568,7 @@ public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route ge * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ public Builder setRoutes( - int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route value) { + int index, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2585,7 +2585,7 @@ public Builder setRoutes( * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ public Builder setRoutes( - int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.set(index, builderForValue.build()); @@ -2598,7 +2598,7 @@ public Builder setRoutes( /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public Builder addRoutes(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route value) { + public Builder addRoutes(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2615,7 +2615,7 @@ public Builder addRoutes(com.futurewei.alioth.controller.schema.vpcstate.VpcConf * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ public Builder addRoutes( - int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route value) { + int index, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2632,7 +2632,7 @@ public Builder addRoutes( * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ public Builder addRoutes( - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder builderForValue) { + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.add(builderForValue.build()); @@ -2646,7 +2646,7 @@ public Builder addRoutes( * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ public Builder addRoutes( - int index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder builderForValue) { + int index, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.add(index, builderForValue.build()); @@ -2660,7 +2660,7 @@ public Builder addRoutes( * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ public Builder addAllRoutes( - java.lang.Iterable values) { + java.lang.Iterable values) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2700,14 +2700,14 @@ public Builder removeRoutes(int index) { /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder getRoutesBuilder( + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.Builder getRoutesBuilder( int index) { return getRoutesFieldBuilder().getBuilder(index); } /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.RouteOrBuilder getRoutesOrBuilder( int index) { if (routesBuilder_ == null) { return routes_.get(index); } else { @@ -2717,7 +2717,7 @@ public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrB /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public java.util.List + public java.util.List getRoutesOrBuilderList() { if (routesBuilder_ != null) { return routesBuilder_.getMessageOrBuilderList(); @@ -2728,31 +2728,31 @@ public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrB /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder addRoutesBuilder() { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.Builder addRoutesBuilder() { return getRoutesFieldBuilder().addBuilder( - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.getDefaultInstance()); + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.getDefaultInstance()); } /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder addRoutesBuilder( + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.Builder addRoutesBuilder( int index) { return getRoutesFieldBuilder().addBuilder( - index, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.getDefaultInstance()); + index, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.getDefaultInstance()); } /** * repeated .aliothcontroller.VpcConfiguration.Route routes = 6; */ - public java.util.List + public java.util.List getRoutesBuilderList() { return getRoutesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder> + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.RouteOrBuilder> getRoutesFieldBuilder() { if (routesBuilder_ == null) { routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.RouteOrBuilder>( + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Route.Builder, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.RouteOrBuilder>( routes_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), @@ -2776,12 +2776,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.VpcConfiguration) - private static final com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration(); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2804,7 +2804,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2821,7 +2821,7 @@ public interface VpcStateOrBuilder extends /** * optional .aliothcontroller.OperationType operation_type = 1; */ - com.futurewei.alioth.controller.schema.common.OperationType getOperationType(); + com.futurewei.alioth.controller.schema.Common.OperationType getOperationType(); /** * optional .aliothcontroller.VpcConfiguration configuration = 2; @@ -2830,11 +2830,11 @@ public interface VpcStateOrBuilder extends /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getConfiguration(); + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration getConfiguration(); /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder getConfigurationOrBuilder(); + com.futurewei.alioth.controller.schema.Vpc.VpcConfigurationOrBuilder getConfigurationOrBuilder(); } /** * Protobuf type {@code aliothcontroller.VpcState} @@ -2883,11 +2883,11 @@ private VpcState( break; } case 18: { - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder subBuilder = null; + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Builder subBuilder = null; if (configuration_ != null) { subBuilder = configuration_.toBuilder(); } - configuration_ = input.readMessage(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.parser(), extensionRegistry); + configuration_ = input.readMessage(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configuration_); configuration_ = subBuilder.buildPartial(); @@ -2908,14 +2908,14 @@ private VpcState( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcState_descriptor; + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.vpcstate.VpcState.class, com.futurewei.alioth.controller.schema.vpcstate.VpcState.Builder.class); + com.futurewei.alioth.controller.schema.Vpc.VpcState.class, com.futurewei.alioth.controller.schema.Vpc.VpcState.Builder.class); } public static final int OPERATION_TYPE_FIELD_NUMBER = 1; @@ -2929,13 +2929,13 @@ public int getOperationTypeValue() { /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.schema.common.OperationType getOperationType() { - com.futurewei.alioth.controller.schema.common.OperationType result = com.futurewei.alioth.controller.schema.common.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.schema.common.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.Common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.Common.OperationType result = com.futurewei.alioth.controller.schema.Common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.Common.OperationType.UNRECOGNIZED : result; } public static final int CONFIGURATION_FIELD_NUMBER = 2; - private com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration configuration_; + private com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration configuration_; /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ @@ -2945,13 +2945,13 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getConfiguration() { - return configuration_ == null ? com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.getDefaultInstance() : configuration_; + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration getConfiguration() { + return configuration_ == null ? com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.getDefaultInstance() : configuration_; } /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfigurationOrBuilder getConfigurationOrBuilder() { return getConfiguration(); } @@ -2967,7 +2967,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operationType_ != com.futurewei.alioth.controller.schema.common.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.Common.OperationType.CREATE.getNumber()) { output.writeEnum(1, operationType_); } if (configuration_ != null) { @@ -2980,7 +2980,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (operationType_ != com.futurewei.alioth.controller.schema.common.OperationType.CREATE.getNumber()) { + if (operationType_ != com.futurewei.alioth.controller.schema.Common.OperationType.CREATE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, operationType_); } @@ -2998,10 +2998,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcState)) { + if (!(obj instanceof com.futurewei.alioth.controller.schema.Vpc.VpcState)) { return super.equals(obj); } - com.futurewei.alioth.controller.schema.vpcstate.VpcState other = (com.futurewei.alioth.controller.schema.vpcstate.VpcState) obj; + com.futurewei.alioth.controller.schema.Vpc.VpcState other = (com.futurewei.alioth.controller.schema.Vpc.VpcState) obj; boolean result = true; result = result && operationType_ == other.operationType_; @@ -3031,58 +3031,58 @@ public int hashCode() { return hash; } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom(byte[] data) + public static com.futurewei.alioth.controller.schema.Vpc.VpcState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Vpc.VpcState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcState 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 com.futurewei.alioth.controller.schema.vpcstate.VpcState parseDelimitedFrom(java.io.InputStream input) + public static com.futurewei.alioth.controller.schema.Vpc.VpcState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseDelimitedFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcState 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 com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom( + public static com.futurewei.alioth.controller.schema.Vpc.VpcState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3094,7 +3094,7 @@ public static com.futurewei.alioth.controller.schema.vpcstate.VpcState parseFrom public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.futurewei.alioth.controller.schema.vpcstate.VpcState prototype) { + public static Builder newBuilder(com.futurewei.alioth.controller.schema.Vpc.VpcState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -3114,20 +3114,20 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aliothcontroller.VpcState) - com.futurewei.alioth.controller.schema.vpcstate.VpcStateOrBuilder { + com.futurewei.alioth.controller.schema.Vpc.VpcStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcState_descriptor; + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcState_fieldAccessorTable + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.futurewei.alioth.controller.schema.vpcstate.VpcState.class, com.futurewei.alioth.controller.schema.vpcstate.VpcState.Builder.class); + com.futurewei.alioth.controller.schema.Vpc.VpcState.class, com.futurewei.alioth.controller.schema.Vpc.VpcState.Builder.class); } - // Construct using com.futurewei.alioth.controller.schema.vpcstate.VpcState.newBuilder() + // Construct using com.futurewei.alioth.controller.schema.Vpc.VpcState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3157,23 +3157,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.futurewei.alioth.controller.schema.vpcstate.internal_static_aliothcontroller_VpcState_descriptor; + return com.futurewei.alioth.controller.schema.Vpc.internal_static_aliothcontroller_VpcState_descriptor; } - public com.futurewei.alioth.controller.schema.vpcstate.VpcState getDefaultInstanceForType() { - return com.futurewei.alioth.controller.schema.vpcstate.VpcState.getDefaultInstance(); + public com.futurewei.alioth.controller.schema.Vpc.VpcState getDefaultInstanceForType() { + return com.futurewei.alioth.controller.schema.Vpc.VpcState.getDefaultInstance(); } - public com.futurewei.alioth.controller.schema.vpcstate.VpcState build() { - com.futurewei.alioth.controller.schema.vpcstate.VpcState result = buildPartial(); + public com.futurewei.alioth.controller.schema.Vpc.VpcState build() { + com.futurewei.alioth.controller.schema.Vpc.VpcState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.futurewei.alioth.controller.schema.vpcstate.VpcState buildPartial() { - com.futurewei.alioth.controller.schema.vpcstate.VpcState result = new com.futurewei.alioth.controller.schema.vpcstate.VpcState(this); + public com.futurewei.alioth.controller.schema.Vpc.VpcState buildPartial() { + com.futurewei.alioth.controller.schema.Vpc.VpcState result = new com.futurewei.alioth.controller.schema.Vpc.VpcState(this); result.operationType_ = operationType_; if (configurationBuilder_ == null) { result.configuration_ = configuration_; @@ -3211,16 +3211,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.futurewei.alioth.controller.schema.vpcstate.VpcState) { - return mergeFrom((com.futurewei.alioth.controller.schema.vpcstate.VpcState)other); + if (other instanceof com.futurewei.alioth.controller.schema.Vpc.VpcState) { + return mergeFrom((com.futurewei.alioth.controller.schema.Vpc.VpcState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.futurewei.alioth.controller.schema.vpcstate.VpcState other) { - if (other == com.futurewei.alioth.controller.schema.vpcstate.VpcState.getDefaultInstance()) return this; + public Builder mergeFrom(com.futurewei.alioth.controller.schema.Vpc.VpcState other) { + if (other == com.futurewei.alioth.controller.schema.Vpc.VpcState.getDefaultInstance()) return this; if (other.operationType_ != 0) { setOperationTypeValue(other.getOperationTypeValue()); } @@ -3239,11 +3239,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.futurewei.alioth.controller.schema.vpcstate.VpcState parsedMessage = null; + com.futurewei.alioth.controller.schema.Vpc.VpcState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.futurewei.alioth.controller.schema.vpcstate.VpcState) e.getUnfinishedMessage(); + parsedMessage = (com.futurewei.alioth.controller.schema.Vpc.VpcState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3271,14 +3271,14 @@ public Builder setOperationTypeValue(int value) { /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public com.futurewei.alioth.controller.schema.common.OperationType getOperationType() { - com.futurewei.alioth.controller.schema.common.OperationType result = com.futurewei.alioth.controller.schema.common.OperationType.valueOf(operationType_); - return result == null ? com.futurewei.alioth.controller.schema.common.OperationType.UNRECOGNIZED : result; + public com.futurewei.alioth.controller.schema.Common.OperationType getOperationType() { + com.futurewei.alioth.controller.schema.Common.OperationType result = com.futurewei.alioth.controller.schema.Common.OperationType.valueOf(operationType_); + return result == null ? com.futurewei.alioth.controller.schema.Common.OperationType.UNRECOGNIZED : result; } /** * optional .aliothcontroller.OperationType operation_type = 1; */ - public Builder setOperationType(com.futurewei.alioth.controller.schema.common.OperationType value) { + public Builder setOperationType(com.futurewei.alioth.controller.schema.Common.OperationType value) { if (value == null) { throw new NullPointerException(); } @@ -3297,9 +3297,9 @@ public Builder clearOperationType() { return this; } - private com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration configuration_ = null; + private com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration configuration_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder> configurationBuilder_; + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Builder, com.futurewei.alioth.controller.schema.Vpc.VpcConfigurationOrBuilder> configurationBuilder_; /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ @@ -3309,9 +3309,9 @@ public boolean hasConfiguration() { /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getConfiguration() { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration getConfiguration() { if (configurationBuilder_ == null) { - return configuration_ == null ? com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.getDefaultInstance() : configuration_; + return configuration_ == null ? com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.getDefaultInstance() : configuration_; } else { return configurationBuilder_.getMessage(); } @@ -3319,7 +3319,7 @@ public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration getConfi /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public Builder setConfiguration(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration value) { + public Builder setConfiguration(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration value) { if (configurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3336,7 +3336,7 @@ public Builder setConfiguration(com.futurewei.alioth.controller.schema.vpcstate. * optional .aliothcontroller.VpcConfiguration configuration = 2; */ public Builder setConfiguration( - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder builderForValue) { + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Builder builderForValue) { if (configurationBuilder_ == null) { configuration_ = builderForValue.build(); onChanged(); @@ -3349,11 +3349,11 @@ public Builder setConfiguration( /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public Builder mergeConfiguration(com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration value) { + public Builder mergeConfiguration(com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration value) { if (configurationBuilder_ == null) { if (configuration_ != null) { configuration_ = - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.newBuilder(configuration_).mergeFrom(value).buildPartial(); } else { configuration_ = value; } @@ -3381,7 +3381,7 @@ public Builder clearConfiguration() { /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder getConfigurationBuilder() { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Builder getConfigurationBuilder() { onChanged(); return getConfigurationFieldBuilder().getBuilder(); @@ -3389,23 +3389,23 @@ public com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ - public com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder getConfigurationOrBuilder() { + public com.futurewei.alioth.controller.schema.Vpc.VpcConfigurationOrBuilder getConfigurationOrBuilder() { if (configurationBuilder_ != null) { return configurationBuilder_.getMessageOrBuilder(); } else { return configuration_ == null ? - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.getDefaultInstance() : configuration_; + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.getDefaultInstance() : configuration_; } } /** * optional .aliothcontroller.VpcConfiguration configuration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder> + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Builder, com.futurewei.alioth.controller.schema.Vpc.VpcConfigurationOrBuilder> getConfigurationFieldBuilder() { if (configurationBuilder_ == null) { configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration, com.futurewei.alioth.controller.schema.vpcstate.VpcConfiguration.Builder, com.futurewei.alioth.controller.schema.vpcstate.VpcConfigurationOrBuilder>( + com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration, com.futurewei.alioth.controller.schema.Vpc.VpcConfiguration.Builder, com.futurewei.alioth.controller.schema.Vpc.VpcConfigurationOrBuilder>( getConfiguration(), getParentForChildren(), isClean()); @@ -3428,12 +3428,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:aliothcontroller.VpcState) - private static final com.futurewei.alioth.controller.schema.vpcstate.VpcState DEFAULT_INSTANCE; + private static final com.futurewei.alioth.controller.schema.Vpc.VpcState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.vpcstate.VpcState(); + DEFAULT_INSTANCE = new com.futurewei.alioth.controller.schema.Vpc.VpcState(); } - public static com.futurewei.alioth.controller.schema.vpcstate.VpcState getDefaultInstance() { + public static com.futurewei.alioth.controller.schema.Vpc.VpcState getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3456,7 +3456,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.futurewei.alioth.controller.schema.vpcstate.VpcState getDefaultInstanceForType() { + public com.futurewei.alioth.controller.schema.Vpc.VpcState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3491,19 +3491,19 @@ public com.futurewei.alioth.controller.schema.vpcstate.VpcState getDefaultInstan descriptor; static { java.lang.String[] descriptorData = { - "\n\016vpcstate.proto\022\020aliothcontroller\032\014comm" + - "on.proto\"\221\002\n\020VpcConfiguration\022\022\n\nproject" + - "_id\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\014\n\004c" + - "idr\030\004 \001(\t\022?\n\nsubnet_ids\030\005 \003(\0132+.aliothco" + - "ntroller.VpcConfiguration.SubnetId\0228\n\006ro" + - "utes\030\006 \003(\0132(.aliothcontroller.VpcConfigu" + - "ration.Route\032\026\n\010SubnetId\022\n\n\002id\030\001 \001(\t\032.\n\005" + - "Route\022\023\n\013destination\030\001 \001(\t\022\020\n\010next_hop\030\002" + - " \001(\t\"~\n\010VpcState\0227\n\016operation_type\030\001 \001(\016" + - "2\037.aliothcontroller.OperationType\0229\n\rcon", - "figuration\030\002 \001(\0132\".aliothcontroller.VpcC" + - "onfigurationB2\n&com.futurewei.alioth.con" + - "troller.schemaB\010vpcstateb\006proto3" + "\n\tvpc.proto\022\020aliothcontroller\032\014common.pr" + + "oto\"\221\002\n\020VpcConfiguration\022\022\n\nproject_id\030\001" + + " \001(\t\022\n\n\002id\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\014\n\004cidr\030\004" + + " \001(\t\022?\n\nsubnet_ids\030\005 \003(\0132+.aliothcontrol" + + "ler.VpcConfiguration.SubnetId\0228\n\006routes\030" + + "\006 \003(\0132(.aliothcontroller.VpcConfiguratio" + + "n.Route\032\026\n\010SubnetId\022\n\n\002id\030\001 \001(\t\032.\n\005Route" + + "\022\023\n\013destination\030\001 \001(\t\022\020\n\010next_hop\030\002 \001(\t\"" + + "~\n\010VpcState\0227\n\016operation_type\030\001 \001(\0162\037.al" + + "iothcontroller.OperationType\0229\n\rconfigur", + "ation\030\002 \001(\0132\".aliothcontroller.VpcConfig" + + "urationB-\n&com.futurewei.alioth.controll" + + "er.schemaB\003Vpcb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -3516,7 +3516,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.futurewei.alioth.controller.schema.common.getDescriptor(), + com.futurewei.alioth.controller.schema.Common.getDescriptor(), }, assigner); internal_static_aliothcontroller_VpcConfiguration_descriptor = getDescriptor().getMessageTypes().get(0); @@ -3542,7 +3542,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_aliothcontroller_VpcState_descriptor, new java.lang.String[] { "OperationType", "Configuration", }); - com.futurewei.alioth.controller.schema.common.getDescriptor(); + com.futurewei.alioth.controller.schema.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/schema/proto3/common.proto b/src/schema/proto3/common.proto index c1d30240a..2c5418ac0 100644 --- a/src/schema/proto3/common.proto +++ b/src/schema/proto3/common.proto @@ -3,7 +3,7 @@ syntax = "proto3"; package aliothcontroller; option java_package = "com.futurewei.alioth.controller.schema"; -option java_outer_classname = "common"; +option java_outer_classname = "Common"; enum OperationType { CREATE = 0; diff --git a/src/schema/proto3/portstate.proto b/src/schema/proto3/port.proto similarity index 95% rename from src/schema/proto3/portstate.proto rename to src/schema/proto3/port.proto index e2f6f1bcf..cb7b5df60 100644 --- a/src/schema/proto3/portstate.proto +++ b/src/schema/proto3/port.proto @@ -3,7 +3,7 @@ syntax = "proto3"; package aliothcontroller; option java_package = "com.futurewei.alioth.controller.schema"; -option java_outer_classname = "portstate"; +option java_outer_classname = "Port"; import "common.proto"; diff --git a/src/schema/proto3/securitygroupstate.proto b/src/schema/proto3/securitygroup.proto similarity index 84% rename from src/schema/proto3/securitygroupstate.proto rename to src/schema/proto3/securitygroup.proto index 56914fb25..db2b12ec8 100644 --- a/src/schema/proto3/securitygroupstate.proto +++ b/src/schema/proto3/securitygroup.proto @@ -3,7 +3,7 @@ syntax = "proto3"; package aliothcontroller; option java_package = "com.futurewei.alioth.controller.schema"; -option java_outer_classname = "securitygroupstate"; +option java_outer_classname = "SecurityGroup"; import "common.proto"; @@ -34,13 +34,6 @@ message SecurityGroupConfiguration { } message SecurityGroupState { - enum OperationType { - CREATE = 0; - UPDATE = 1; - GET = 2; - DELETE = 3; - } - OperationType operation_type = 1; SecurityGroupConfiguration configuration = 2; } diff --git a/src/schema/proto3/subnetstate.proto b/src/schema/proto3/subnet.proto similarity index 93% rename from src/schema/proto3/subnetstate.proto rename to src/schema/proto3/subnet.proto index c464a9547..162891712 100644 --- a/src/schema/proto3/subnetstate.proto +++ b/src/schema/proto3/subnet.proto @@ -3,7 +3,7 @@ syntax = "proto3"; package aliothcontroller; option java_package = "com.futurewei.alioth.controller.schema"; -option java_outer_classname = "subnetstate"; +option java_outer_classname = "Subnet"; import "common.proto"; diff --git a/src/schema/proto3/vpcstate.proto b/src/schema/proto3/vpc.proto similarity index 92% rename from src/schema/proto3/vpcstate.proto rename to src/schema/proto3/vpc.proto index 360aedfaf..9835a25d1 100644 --- a/src/schema/proto3/vpcstate.proto +++ b/src/schema/proto3/vpc.proto @@ -3,7 +3,7 @@ syntax = "proto3"; package aliothcontroller; option java_package = "com.futurewei.alioth.controller.schema"; -option java_outer_classname = "vpcstate"; +option java_outer_classname = "Vpc"; import "common.proto"; From f4bc00b13df6b83daf2e82451f7c25da9fd79b7f Mon Sep 17 00:00:00 2001 From: xieus Date: Tue, 16 Jul 2019 14:25:30 -0700 Subject: [PATCH 10/11] Add basic serialization verification UT for vpc --- .../alioth/controller/schema/VpcTest.java | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 test/com/futurewei/alioth/controller/schema/VpcTest.java diff --git a/test/com/futurewei/alioth/controller/schema/VpcTest.java b/test/com/futurewei/alioth/controller/schema/VpcTest.java new file mode 100644 index 000000000..f6d48f9d2 --- /dev/null +++ b/test/com/futurewei/alioth/controller/schema/VpcTest.java @@ -0,0 +1,39 @@ +package com.futurewei.alioth.controller.schema; + +import com.google.protobuf.InvalidProtocolBufferException; +import org.junit.Assert; +import org.junit.Test; + +public class VpcTest { + @Test + public void basicSerializationVerification() { + String project_id = "dbf72700-5106-4a7a-918f-a016853911f8"; + String vpc_id = "99d9d709-8478-4b46-9f3f-2206b1023fd3"; + String vpc_name = "SuperVpc"; + String cidr = "192.168.0.0/16"; + final Vpc.VpcConfiguration config = Vpc.VpcConfiguration.newBuilder() + .setProjectId(project_id) + .setId(vpc_id) + .setName(vpc_name) + .setCidr(cidr) + .build(); + final Vpc.VpcState state = Vpc.VpcState.newBuilder() + .setOperationType(Common.OperationType.CREATE) + .setConfiguration(config) + .build(); + final byte[] binaryState = state.toByteArray(); + + try { + final Vpc.VpcState deserializedObject = Vpc.VpcState.parseFrom(binaryState); + + Assert.assertEquals("operation type mismatched", Common.OperationType.CREATE, deserializedObject.getOperationType()); + + Assert.assertEquals("project id mismatched", project_id, deserializedObject.getConfiguration().getProjectId()); + Assert.assertEquals("vpc id mismatched", vpc_id, deserializedObject.getConfiguration().getId()); + Assert.assertEquals("vpc name mismatched", vpc_name, deserializedObject.getConfiguration().getName()); + Assert.assertEquals("cidr mismatched", cidr, deserializedObject.getConfiguration().getCidr()); + } catch(InvalidProtocolBufferException bf_exp) { + Assert.assertTrue(false); + } + } +} \ No newline at end of file From 151e309996e9a21670fbfae6a388484464bd4868 Mon Sep 17 00:00:00 2001 From: xieus Date: Tue, 16 Jul 2019 15:23:20 -0700 Subject: [PATCH 11/11] Add ByteString serialization UT --- .../alioth/controller/schema/VpcTest.java | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/test/com/futurewei/alioth/controller/schema/VpcTest.java b/test/com/futurewei/alioth/controller/schema/VpcTest.java index f6d48f9d2..16f91d559 100644 --- a/test/com/futurewei/alioth/controller/schema/VpcTest.java +++ b/test/com/futurewei/alioth/controller/schema/VpcTest.java @@ -1,5 +1,6 @@ package com.futurewei.alioth.controller.schema; +import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; import org.junit.Assert; import org.junit.Test; @@ -21,6 +22,7 @@ public void basicSerializationVerification() { .setOperationType(Common.OperationType.CREATE) .setConfiguration(config) .build(); + final byte[] binaryState = state.toByteArray(); try { @@ -36,4 +38,37 @@ public void basicSerializationVerification() { Assert.assertTrue(false); } } + + @Test + public void stringSerializationVerification() { + String project_id = "dbf72700-5106-4a7a-918f-a016853911f8"; + String vpc_id = "99d9d709-8478-4b46-9f3f-2206b1023fd3"; + String vpc_name = "SuperVpc"; + String cidr = "192.168.0.0/16"; + final Vpc.VpcConfiguration config = Vpc.VpcConfiguration.newBuilder() + .setProjectId(project_id) + .setId(vpc_id) + .setName(vpc_name) + .setCidr(cidr) + .build(); + final Vpc.VpcState state = Vpc.VpcState.newBuilder() + .setOperationType(Common.OperationType.CREATE) + .setConfiguration(config) + .build(); + + final ByteString byteStringState = state.toByteString(); + + try { + final Vpc.VpcState deserializedObject = Vpc.VpcState.parseFrom(byteStringState); + + Assert.assertEquals("operation type mismatched", Common.OperationType.CREATE, deserializedObject.getOperationType()); + + Assert.assertEquals("project id mismatched", project_id, deserializedObject.getConfiguration().getProjectId()); + Assert.assertEquals("vpc id mismatched", vpc_id, deserializedObject.getConfiguration().getId()); + Assert.assertEquals("vpc name mismatched", vpc_name, deserializedObject.getConfiguration().getName()); + Assert.assertEquals("cidr mismatched", cidr, deserializedObject.getConfiguration().getCidr()); + } catch (InvalidProtocolBufferException bf_exp) { + Assert.assertTrue(false); + } + } } \ No newline at end of file