diff --git a/chaos/chaos-api/pom.xml b/chaos/chaos-api/pom.xml
new file mode 100644
index 000000000..551a64cf6
--- /dev/null
+++ b/chaos/chaos-api/pom.xml
@@ -0,0 +1,20 @@
+
+
+ 4.0.0
+
+ run.mone
+ chaos
+ 1.4.0-jdk21-SNAPSHOT
+
+
+ chaos-api
+
+
+ 21
+ 21
+ UTF-8
+
+
+
\ No newline at end of file
diff --git a/chaos/chaos-service/pom.xml b/chaos/chaos-service/pom.xml
new file mode 100644
index 000000000..5259ed09b
--- /dev/null
+++ b/chaos/chaos-service/pom.xml
@@ -0,0 +1,224 @@
+
+
+ 4.0.0
+
+ run.mone
+ chaos
+ 1.4.0-jdk21-SNAPSHOT
+
+
+ chaos-service
+
+
+ 21
+ 21
+
+
+
+
+ io.grpc
+ grpc-netty
+ 1.60.0
+
+
+ io.grpc
+ grpc-protobuf
+ 1.60.0
+
+
+ io.grpc
+ grpc-stub
+ 1.60.0
+
+
+
+ org.apache.commons
+ commons-compress
+ 1.21
+
+
+
+ run.mone
+ docean
+ 1.5.0-jdk21-SNAPSHOT
+
+
+
+
+ run.mone
+ docean-plugin-k8s
+ 1.4-SNAPSHOT
+
+
+
+ run.mone
+ docean-plugin-configuration
+ 1.4-SNAPSHOT
+
+
+
+ run.mone
+ docean-plugin-dubbo
+
+
+
+ run.mone
+ dubbo
+
+
+
+ org.apache.commons
+ commons-lang3
+
+
+
+ mi-tpclogin-sdk
+ run.mone
+ 1.0.0-SNAPSHOT
+
+
+
+ run.mone
+ mi-tpc-api
+ 1.0.0
+
+
+
+ ch.qos.logback
+ logback-classic
+ 1.1.2
+
+
+
+ ch.qos.logback
+ logback-core
+ 1.1.2
+
+
+
+ org.projectlombok
+ lombok
+
+
+
+ run.mone
+ nacos
+ 1.4-SNAPSHOT
+
+
+ nacos-client
+ com.alibaba.nacos
+
+
+
+
+
+ run.mone
+ nacos-client
+ 1.2.1-mone-v3-SNAPSHOT
+
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+
+
+
+ dev.morphia.morphia
+ core
+ 1.6.1
+
+
+
+ junit
+ junit
+ 4.13.2
+ test
+
+
+
+ run.mone
+ docean-plugin-nacos
+
+
+
+ redis.clients
+ jedis
+
+
+
+ run.mone
+ log-common
+ 1.4.0-jdk21
+
+
+
+ com.squareup.okhttp3
+ okhttp
+
+
+
+
+
+
+
+
+
+
+
+ kr.motd.maven
+ os-maven-plugin
+ 1.5.0.Final
+
+
+
+
+
+
+ staging
+
+ staging
+
+
+
+ src/main/resources/config/staging.properties
+
+
+
+
+
+ dev
+
+ dev
+
+
+ true
+
+
+
+ src/main/resources/config/dev.properties
+
+
+
+
+
+ online
+
+ online
+
+
+
+ src/main/resources/config/online.properties
+
+
+
+
+
+
\ No newline at end of file
diff --git a/chaos/chaos-service/src/main/java/pb/ChaosDaemonGrpc.java b/chaos/chaos-service/src/main/java/pb/ChaosDaemonGrpc.java
new file mode 100644
index 000000000..9a12dc2b4
--- /dev/null
+++ b/chaos/chaos-service/src/main/java/pb/ChaosDaemonGrpc.java
@@ -0,0 +1,1401 @@
+/*
+ * Copyright 2020 Xiaomi
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package pb;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler (version 1.48.0)",
+ comments = "Source: chaosdaemon.proto")
+@io.grpc.stub.annotations.GrpcGenerated
+public final class ChaosDaemonGrpc {
+
+ private ChaosDaemonGrpc() {}
+
+ public static final String SERVICE_NAME = "pb.ChaosDaemon";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor getSetTcsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "SetTcs",
+ requestType = pb.Chaosdaemon.TcsRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getSetTcsMethod() {
+ io.grpc.MethodDescriptor getSetTcsMethod;
+ if ((getSetTcsMethod = ChaosDaemonGrpc.getSetTcsMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getSetTcsMethod = ChaosDaemonGrpc.getSetTcsMethod) == null) {
+ ChaosDaemonGrpc.getSetTcsMethod = getSetTcsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetTcs"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.TcsRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("SetTcs"))
+ .build();
+ }
+ }
+ }
+ return getSetTcsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getFlushIPSetsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "FlushIPSets",
+ requestType = pb.Chaosdaemon.IPSetsRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getFlushIPSetsMethod() {
+ io.grpc.MethodDescriptor getFlushIPSetsMethod;
+ if ((getFlushIPSetsMethod = ChaosDaemonGrpc.getFlushIPSetsMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getFlushIPSetsMethod = ChaosDaemonGrpc.getFlushIPSetsMethod) == null) {
+ ChaosDaemonGrpc.getFlushIPSetsMethod = getFlushIPSetsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FlushIPSets"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.IPSetsRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("FlushIPSets"))
+ .build();
+ }
+ }
+ }
+ return getFlushIPSetsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getSetIptablesChainsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "SetIptablesChains",
+ requestType = pb.Chaosdaemon.IptablesChainsRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getSetIptablesChainsMethod() {
+ io.grpc.MethodDescriptor getSetIptablesChainsMethod;
+ if ((getSetIptablesChainsMethod = ChaosDaemonGrpc.getSetIptablesChainsMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getSetIptablesChainsMethod = ChaosDaemonGrpc.getSetIptablesChainsMethod) == null) {
+ ChaosDaemonGrpc.getSetIptablesChainsMethod = getSetIptablesChainsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIptablesChains"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.IptablesChainsRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("SetIptablesChains"))
+ .build();
+ }
+ }
+ }
+ return getSetIptablesChainsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getSetTimeOffsetMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "SetTimeOffset",
+ requestType = pb.Chaosdaemon.TimeRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getSetTimeOffsetMethod() {
+ io.grpc.MethodDescriptor getSetTimeOffsetMethod;
+ if ((getSetTimeOffsetMethod = ChaosDaemonGrpc.getSetTimeOffsetMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getSetTimeOffsetMethod = ChaosDaemonGrpc.getSetTimeOffsetMethod) == null) {
+ ChaosDaemonGrpc.getSetTimeOffsetMethod = getSetTimeOffsetMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetTimeOffset"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.TimeRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("SetTimeOffset"))
+ .build();
+ }
+ }
+ }
+ return getSetTimeOffsetMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getRecoverTimeOffsetMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "RecoverTimeOffset",
+ requestType = pb.Chaosdaemon.TimeRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getRecoverTimeOffsetMethod() {
+ io.grpc.MethodDescriptor getRecoverTimeOffsetMethod;
+ if ((getRecoverTimeOffsetMethod = ChaosDaemonGrpc.getRecoverTimeOffsetMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getRecoverTimeOffsetMethod = ChaosDaemonGrpc.getRecoverTimeOffsetMethod) == null) {
+ ChaosDaemonGrpc.getRecoverTimeOffsetMethod = getRecoverTimeOffsetMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RecoverTimeOffset"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.TimeRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("RecoverTimeOffset"))
+ .build();
+ }
+ }
+ }
+ return getRecoverTimeOffsetMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getContainerKillMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ContainerKill",
+ requestType = pb.Chaosdaemon.ContainerRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getContainerKillMethod() {
+ io.grpc.MethodDescriptor getContainerKillMethod;
+ if ((getContainerKillMethod = ChaosDaemonGrpc.getContainerKillMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getContainerKillMethod = ChaosDaemonGrpc.getContainerKillMethod) == null) {
+ ChaosDaemonGrpc.getContainerKillMethod = getContainerKillMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ContainerKill"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.ContainerRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("ContainerKill"))
+ .build();
+ }
+ }
+ }
+ return getContainerKillMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getContainerGetPidMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ContainerGetPid",
+ requestType = pb.Chaosdaemon.ContainerRequest.class,
+ responseType = pb.Chaosdaemon.ContainerResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getContainerGetPidMethod() {
+ io.grpc.MethodDescriptor getContainerGetPidMethod;
+ if ((getContainerGetPidMethod = ChaosDaemonGrpc.getContainerGetPidMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getContainerGetPidMethod = ChaosDaemonGrpc.getContainerGetPidMethod) == null) {
+ ChaosDaemonGrpc.getContainerGetPidMethod = getContainerGetPidMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ContainerGetPid"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.ContainerRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.ContainerResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("ContainerGetPid"))
+ .build();
+ }
+ }
+ }
+ return getContainerGetPidMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getExecStressorsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ExecStressors",
+ requestType = pb.Chaosdaemon.ExecStressRequest.class,
+ responseType = pb.Chaosdaemon.ExecStressResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getExecStressorsMethod() {
+ io.grpc.MethodDescriptor getExecStressorsMethod;
+ if ((getExecStressorsMethod = ChaosDaemonGrpc.getExecStressorsMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getExecStressorsMethod = ChaosDaemonGrpc.getExecStressorsMethod) == null) {
+ ChaosDaemonGrpc.getExecStressorsMethod = getExecStressorsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExecStressors"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.ExecStressRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.ExecStressResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("ExecStressors"))
+ .build();
+ }
+ }
+ }
+ return getExecStressorsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getCancelStressorsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CancelStressors",
+ requestType = pb.Chaosdaemon.CancelStressRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getCancelStressorsMethod() {
+ io.grpc.MethodDescriptor getCancelStressorsMethod;
+ if ((getCancelStressorsMethod = ChaosDaemonGrpc.getCancelStressorsMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getCancelStressorsMethod = ChaosDaemonGrpc.getCancelStressorsMethod) == null) {
+ ChaosDaemonGrpc.getCancelStressorsMethod = getCancelStressorsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelStressors"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.CancelStressRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("CancelStressors"))
+ .build();
+ }
+ }
+ }
+ return getCancelStressorsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getApplyIOChaosMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ApplyIOChaos",
+ requestType = pb.Chaosdaemon.ApplyIOChaosRequest.class,
+ responseType = pb.Chaosdaemon.ApplyIOChaosResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getApplyIOChaosMethod() {
+ io.grpc.MethodDescriptor getApplyIOChaosMethod;
+ if ((getApplyIOChaosMethod = ChaosDaemonGrpc.getApplyIOChaosMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getApplyIOChaosMethod = ChaosDaemonGrpc.getApplyIOChaosMethod) == null) {
+ ChaosDaemonGrpc.getApplyIOChaosMethod = getApplyIOChaosMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyIOChaos"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.ApplyIOChaosRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.ApplyIOChaosResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("ApplyIOChaos"))
+ .build();
+ }
+ }
+ }
+ return getApplyIOChaosMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getApplyHttpChaosMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ApplyHttpChaos",
+ requestType = pb.Chaosdaemon.ApplyHttpChaosRequest.class,
+ responseType = pb.Chaosdaemon.ApplyHttpChaosResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getApplyHttpChaosMethod() {
+ io.grpc.MethodDescriptor getApplyHttpChaosMethod;
+ if ((getApplyHttpChaosMethod = ChaosDaemonGrpc.getApplyHttpChaosMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getApplyHttpChaosMethod = ChaosDaemonGrpc.getApplyHttpChaosMethod) == null) {
+ ChaosDaemonGrpc.getApplyHttpChaosMethod = getApplyHttpChaosMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyHttpChaos"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.ApplyHttpChaosRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.ApplyHttpChaosResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("ApplyHttpChaos"))
+ .build();
+ }
+ }
+ }
+ return getApplyHttpChaosMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getApplyBlockChaosMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ApplyBlockChaos",
+ requestType = pb.Chaosdaemon.ApplyBlockChaosRequest.class,
+ responseType = pb.Chaosdaemon.ApplyBlockChaosResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getApplyBlockChaosMethod() {
+ io.grpc.MethodDescriptor getApplyBlockChaosMethod;
+ if ((getApplyBlockChaosMethod = ChaosDaemonGrpc.getApplyBlockChaosMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getApplyBlockChaosMethod = ChaosDaemonGrpc.getApplyBlockChaosMethod) == null) {
+ ChaosDaemonGrpc.getApplyBlockChaosMethod = getApplyBlockChaosMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyBlockChaos"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.ApplyBlockChaosRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.ApplyBlockChaosResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("ApplyBlockChaos"))
+ .build();
+ }
+ }
+ }
+ return getApplyBlockChaosMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getRecoverBlockChaosMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "RecoverBlockChaos",
+ requestType = pb.Chaosdaemon.RecoverBlockChaosRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getRecoverBlockChaosMethod() {
+ io.grpc.MethodDescriptor getRecoverBlockChaosMethod;
+ if ((getRecoverBlockChaosMethod = ChaosDaemonGrpc.getRecoverBlockChaosMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getRecoverBlockChaosMethod = ChaosDaemonGrpc.getRecoverBlockChaosMethod) == null) {
+ ChaosDaemonGrpc.getRecoverBlockChaosMethod = getRecoverBlockChaosMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RecoverBlockChaos"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.RecoverBlockChaosRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("RecoverBlockChaos"))
+ .build();
+ }
+ }
+ }
+ return getRecoverBlockChaosMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getSetDNSServerMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "SetDNSServer",
+ requestType = pb.Chaosdaemon.SetDNSServerRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getSetDNSServerMethod() {
+ io.grpc.MethodDescriptor getSetDNSServerMethod;
+ if ((getSetDNSServerMethod = ChaosDaemonGrpc.getSetDNSServerMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getSetDNSServerMethod = ChaosDaemonGrpc.getSetDNSServerMethod) == null) {
+ ChaosDaemonGrpc.getSetDNSServerMethod = getSetDNSServerMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetDNSServer"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.SetDNSServerRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("SetDNSServer"))
+ .build();
+ }
+ }
+ }
+ return getSetDNSServerMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getInstallJVMRulesMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "InstallJVMRules",
+ requestType = pb.Chaosdaemon.InstallJVMRulesRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getInstallJVMRulesMethod() {
+ io.grpc.MethodDescriptor getInstallJVMRulesMethod;
+ if ((getInstallJVMRulesMethod = ChaosDaemonGrpc.getInstallJVMRulesMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getInstallJVMRulesMethod = ChaosDaemonGrpc.getInstallJVMRulesMethod) == null) {
+ ChaosDaemonGrpc.getInstallJVMRulesMethod = getInstallJVMRulesMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InstallJVMRules"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.InstallJVMRulesRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("InstallJVMRules"))
+ .build();
+ }
+ }
+ }
+ return getInstallJVMRulesMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getUninstallJVMRulesMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "UninstallJVMRules",
+ requestType = pb.Chaosdaemon.UninstallJVMRulesRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getUninstallJVMRulesMethod() {
+ io.grpc.MethodDescriptor getUninstallJVMRulesMethod;
+ if ((getUninstallJVMRulesMethod = ChaosDaemonGrpc.getUninstallJVMRulesMethod) == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ if ((getUninstallJVMRulesMethod = ChaosDaemonGrpc.getUninstallJVMRulesMethod) == null) {
+ ChaosDaemonGrpc.getUninstallJVMRulesMethod = getUninstallJVMRulesMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UninstallJVMRules"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ pb.Chaosdaemon.UninstallJVMRulesRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new ChaosDaemonMethodDescriptorSupplier("UninstallJVMRules"))
+ .build();
+ }
+ }
+ }
+ return getUninstallJVMRulesMethod;
+ }
+
+ /**
+ * Creates a new async stub that supports all call types for the service
+ */
+ public static ChaosDaemonStub newStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public ChaosDaemonStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ChaosDaemonStub(channel, callOptions);
+ }
+ };
+ return ChaosDaemonStub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new blocking-style stub that supports unary and streaming output calls on the service
+ */
+ public static ChaosDaemonBlockingStub newBlockingStub(
+ io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public ChaosDaemonBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ChaosDaemonBlockingStub(channel, callOptions);
+ }
+ };
+ return ChaosDaemonBlockingStub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new ListenableFuture-style stub that supports unary calls on the service
+ */
+ public static ChaosDaemonFutureStub newFutureStub(
+ io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public ChaosDaemonFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ChaosDaemonFutureStub(channel, callOptions);
+ }
+ };
+ return ChaosDaemonFutureStub.newStub(factory, channel);
+ }
+
+ /**
+ */
+ public static abstract class ChaosDaemonImplBase implements io.grpc.BindableService {
+
+ /**
+ */
+ public void setTcs(pb.Chaosdaemon.TcsRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetTcsMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void flushIPSets(pb.Chaosdaemon.IPSetsRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFlushIPSetsMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void setIptablesChains(pb.Chaosdaemon.IptablesChainsRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIptablesChainsMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void setTimeOffset(pb.Chaosdaemon.TimeRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetTimeOffsetMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void recoverTimeOffset(pb.Chaosdaemon.TimeRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecoverTimeOffsetMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void containerKill(pb.Chaosdaemon.ContainerRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getContainerKillMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void containerGetPid(pb.Chaosdaemon.ContainerRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getContainerGetPidMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void execStressors(pb.Chaosdaemon.ExecStressRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExecStressorsMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void cancelStressors(pb.Chaosdaemon.CancelStressRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelStressorsMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void applyIOChaos(pb.Chaosdaemon.ApplyIOChaosRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApplyIOChaosMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void applyHttpChaos(pb.Chaosdaemon.ApplyHttpChaosRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApplyHttpChaosMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void applyBlockChaos(pb.Chaosdaemon.ApplyBlockChaosRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApplyBlockChaosMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void recoverBlockChaos(pb.Chaosdaemon.RecoverBlockChaosRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecoverBlockChaosMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void setDNSServer(pb.Chaosdaemon.SetDNSServerRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetDNSServerMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void installJVMRules(pb.Chaosdaemon.InstallJVMRulesRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInstallJVMRulesMethod(), responseObserver);
+ }
+
+ /**
+ */
+ public void uninstallJVMRules(pb.Chaosdaemon.UninstallJVMRulesRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUninstallJVMRulesMethod(), responseObserver);
+ }
+
+ @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
+ return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+ .addMethod(
+ getSetTcsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.TcsRequest,
+ com.google.protobuf.Empty>(
+ this, METHODID_SET_TCS)))
+ .addMethod(
+ getFlushIPSetsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.IPSetsRequest,
+ com.google.protobuf.Empty>(
+ this, METHODID_FLUSH_IPSETS)))
+ .addMethod(
+ getSetIptablesChainsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.IptablesChainsRequest,
+ com.google.protobuf.Empty>(
+ this, METHODID_SET_IPTABLES_CHAINS)))
+ .addMethod(
+ getSetTimeOffsetMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.TimeRequest,
+ com.google.protobuf.Empty>(
+ this, METHODID_SET_TIME_OFFSET)))
+ .addMethod(
+ getRecoverTimeOffsetMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.TimeRequest,
+ com.google.protobuf.Empty>(
+ this, METHODID_RECOVER_TIME_OFFSET)))
+ .addMethod(
+ getContainerKillMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.ContainerRequest,
+ com.google.protobuf.Empty>(
+ this, METHODID_CONTAINER_KILL)))
+ .addMethod(
+ getContainerGetPidMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.ContainerRequest,
+ pb.Chaosdaemon.ContainerResponse>(
+ this, METHODID_CONTAINER_GET_PID)))
+ .addMethod(
+ getExecStressorsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.ExecStressRequest,
+ pb.Chaosdaemon.ExecStressResponse>(
+ this, METHODID_EXEC_STRESSORS)))
+ .addMethod(
+ getCancelStressorsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.CancelStressRequest,
+ com.google.protobuf.Empty>(
+ this, METHODID_CANCEL_STRESSORS)))
+ .addMethod(
+ getApplyIOChaosMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.ApplyIOChaosRequest,
+ pb.Chaosdaemon.ApplyIOChaosResponse>(
+ this, METHODID_APPLY_IOCHAOS)))
+ .addMethod(
+ getApplyHttpChaosMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.ApplyHttpChaosRequest,
+ pb.Chaosdaemon.ApplyHttpChaosResponse>(
+ this, METHODID_APPLY_HTTP_CHAOS)))
+ .addMethod(
+ getApplyBlockChaosMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.ApplyBlockChaosRequest,
+ pb.Chaosdaemon.ApplyBlockChaosResponse>(
+ this, METHODID_APPLY_BLOCK_CHAOS)))
+ .addMethod(
+ getRecoverBlockChaosMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.RecoverBlockChaosRequest,
+ com.google.protobuf.Empty>(
+ this, METHODID_RECOVER_BLOCK_CHAOS)))
+ .addMethod(
+ getSetDNSServerMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.SetDNSServerRequest,
+ com.google.protobuf.Empty>(
+ this, METHODID_SET_DNSSERVER)))
+ .addMethod(
+ getInstallJVMRulesMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.InstallJVMRulesRequest,
+ com.google.protobuf.Empty>(
+ this, METHODID_INSTALL_JVMRULES)))
+ .addMethod(
+ getUninstallJVMRulesMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ pb.Chaosdaemon.UninstallJVMRulesRequest,
+ com.google.protobuf.Empty>(
+ this, METHODID_UNINSTALL_JVMRULES)))
+ .build();
+ }
+ }
+
+ /**
+ */
+ public static final class ChaosDaemonStub extends io.grpc.stub.AbstractAsyncStub {
+ private ChaosDaemonStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected ChaosDaemonStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ChaosDaemonStub(channel, callOptions);
+ }
+
+ /**
+ */
+ public void setTcs(pb.Chaosdaemon.TcsRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getSetTcsMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void flushIPSets(pb.Chaosdaemon.IPSetsRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getFlushIPSetsMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void setIptablesChains(pb.Chaosdaemon.IptablesChainsRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getSetIptablesChainsMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void setTimeOffset(pb.Chaosdaemon.TimeRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getSetTimeOffsetMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void recoverTimeOffset(pb.Chaosdaemon.TimeRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getRecoverTimeOffsetMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void containerKill(pb.Chaosdaemon.ContainerRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getContainerKillMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void containerGetPid(pb.Chaosdaemon.ContainerRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getContainerGetPidMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void execStressors(pb.Chaosdaemon.ExecStressRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getExecStressorsMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void cancelStressors(pb.Chaosdaemon.CancelStressRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getCancelStressorsMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void applyIOChaos(pb.Chaosdaemon.ApplyIOChaosRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getApplyIOChaosMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void applyHttpChaos(pb.Chaosdaemon.ApplyHttpChaosRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getApplyHttpChaosMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void applyBlockChaos(pb.Chaosdaemon.ApplyBlockChaosRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getApplyBlockChaosMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void recoverBlockChaos(pb.Chaosdaemon.RecoverBlockChaosRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getRecoverBlockChaosMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void setDNSServer(pb.Chaosdaemon.SetDNSServerRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getSetDNSServerMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void installJVMRules(pb.Chaosdaemon.InstallJVMRulesRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getInstallJVMRulesMethod(), getCallOptions()), request, responseObserver);
+ }
+
+ /**
+ */
+ public void uninstallJVMRules(pb.Chaosdaemon.UninstallJVMRulesRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getUninstallJVMRulesMethod(), getCallOptions()), request, responseObserver);
+ }
+ }
+
+ /**
+ */
+ public static final class ChaosDaemonBlockingStub extends io.grpc.stub.AbstractBlockingStub {
+ private ChaosDaemonBlockingStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected ChaosDaemonBlockingStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ChaosDaemonBlockingStub(channel, callOptions);
+ }
+
+ /**
+ */
+ public com.google.protobuf.Empty setTcs(pb.Chaosdaemon.TcsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getSetTcsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public com.google.protobuf.Empty flushIPSets(pb.Chaosdaemon.IPSetsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getFlushIPSetsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public com.google.protobuf.Empty setIptablesChains(pb.Chaosdaemon.IptablesChainsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getSetIptablesChainsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public com.google.protobuf.Empty setTimeOffset(pb.Chaosdaemon.TimeRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getSetTimeOffsetMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public com.google.protobuf.Empty recoverTimeOffset(pb.Chaosdaemon.TimeRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getRecoverTimeOffsetMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public com.google.protobuf.Empty containerKill(pb.Chaosdaemon.ContainerRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getContainerKillMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public pb.Chaosdaemon.ContainerResponse containerGetPid(pb.Chaosdaemon.ContainerRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getContainerGetPidMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public pb.Chaosdaemon.ExecStressResponse execStressors(pb.Chaosdaemon.ExecStressRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getExecStressorsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public com.google.protobuf.Empty cancelStressors(pb.Chaosdaemon.CancelStressRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getCancelStressorsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public pb.Chaosdaemon.ApplyIOChaosResponse applyIOChaos(pb.Chaosdaemon.ApplyIOChaosRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getApplyIOChaosMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public pb.Chaosdaemon.ApplyHttpChaosResponse applyHttpChaos(pb.Chaosdaemon.ApplyHttpChaosRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getApplyHttpChaosMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public pb.Chaosdaemon.ApplyBlockChaosResponse applyBlockChaos(pb.Chaosdaemon.ApplyBlockChaosRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getApplyBlockChaosMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public com.google.protobuf.Empty recoverBlockChaos(pb.Chaosdaemon.RecoverBlockChaosRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getRecoverBlockChaosMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public com.google.protobuf.Empty setDNSServer(pb.Chaosdaemon.SetDNSServerRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getSetDNSServerMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public com.google.protobuf.Empty installJVMRules(pb.Chaosdaemon.InstallJVMRulesRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getInstallJVMRulesMethod(), getCallOptions(), request);
+ }
+
+ /**
+ */
+ public com.google.protobuf.Empty uninstallJVMRules(pb.Chaosdaemon.UninstallJVMRulesRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getUninstallJVMRulesMethod(), getCallOptions(), request);
+ }
+ }
+
+ /**
+ */
+ public static final class ChaosDaemonFutureStub extends io.grpc.stub.AbstractFutureStub {
+ private ChaosDaemonFutureStub(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ super(channel, callOptions);
+ }
+
+ @java.lang.Override
+ protected ChaosDaemonFutureStub build(
+ io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ChaosDaemonFutureStub(channel, callOptions);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture setTcs(
+ pb.Chaosdaemon.TcsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getSetTcsMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture flushIPSets(
+ pb.Chaosdaemon.IPSetsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getFlushIPSetsMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture setIptablesChains(
+ pb.Chaosdaemon.IptablesChainsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getSetIptablesChainsMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture setTimeOffset(
+ pb.Chaosdaemon.TimeRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getSetTimeOffsetMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture recoverTimeOffset(
+ pb.Chaosdaemon.TimeRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getRecoverTimeOffsetMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture containerKill(
+ pb.Chaosdaemon.ContainerRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getContainerKillMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture containerGetPid(
+ pb.Chaosdaemon.ContainerRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getContainerGetPidMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture execStressors(
+ pb.Chaosdaemon.ExecStressRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getExecStressorsMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture cancelStressors(
+ pb.Chaosdaemon.CancelStressRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getCancelStressorsMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture applyIOChaos(
+ pb.Chaosdaemon.ApplyIOChaosRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getApplyIOChaosMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture applyHttpChaos(
+ pb.Chaosdaemon.ApplyHttpChaosRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getApplyHttpChaosMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture applyBlockChaos(
+ pb.Chaosdaemon.ApplyBlockChaosRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getApplyBlockChaosMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture recoverBlockChaos(
+ pb.Chaosdaemon.RecoverBlockChaosRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getRecoverBlockChaosMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture setDNSServer(
+ pb.Chaosdaemon.SetDNSServerRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getSetDNSServerMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture installJVMRules(
+ pb.Chaosdaemon.InstallJVMRulesRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getInstallJVMRulesMethod(), getCallOptions()), request);
+ }
+
+ /**
+ */
+ public com.google.common.util.concurrent.ListenableFuture uninstallJVMRules(
+ pb.Chaosdaemon.UninstallJVMRulesRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getUninstallJVMRulesMethod(), getCallOptions()), request);
+ }
+ }
+
+ private static final int METHODID_SET_TCS = 0;
+ private static final int METHODID_FLUSH_IPSETS = 1;
+ private static final int METHODID_SET_IPTABLES_CHAINS = 2;
+ private static final int METHODID_SET_TIME_OFFSET = 3;
+ private static final int METHODID_RECOVER_TIME_OFFSET = 4;
+ private static final int METHODID_CONTAINER_KILL = 5;
+ private static final int METHODID_CONTAINER_GET_PID = 6;
+ private static final int METHODID_EXEC_STRESSORS = 7;
+ private static final int METHODID_CANCEL_STRESSORS = 8;
+ private static final int METHODID_APPLY_IOCHAOS = 9;
+ private static final int METHODID_APPLY_HTTP_CHAOS = 10;
+ private static final int METHODID_APPLY_BLOCK_CHAOS = 11;
+ private static final int METHODID_RECOVER_BLOCK_CHAOS = 12;
+ private static final int METHODID_SET_DNSSERVER = 13;
+ private static final int METHODID_INSTALL_JVMRULES = 14;
+ private static final int METHODID_UNINSTALL_JVMRULES = 15;
+
+ private static final class MethodHandlers implements
+ io.grpc.stub.ServerCalls.UnaryMethod,
+ io.grpc.stub.ServerCalls.ServerStreamingMethod,
+ io.grpc.stub.ServerCalls.ClientStreamingMethod,
+ io.grpc.stub.ServerCalls.BidiStreamingMethod {
+ private final ChaosDaemonImplBase serviceImpl;
+ private final int methodId;
+
+ MethodHandlers(ChaosDaemonImplBase serviceImpl, int methodId) {
+ this.serviceImpl = serviceImpl;
+ this.methodId = methodId;
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("unchecked")
+ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
+ switch (methodId) {
+ case METHODID_SET_TCS:
+ serviceImpl.setTcs((pb.Chaosdaemon.TcsRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_FLUSH_IPSETS:
+ serviceImpl.flushIPSets((pb.Chaosdaemon.IPSetsRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_SET_IPTABLES_CHAINS:
+ serviceImpl.setIptablesChains((pb.Chaosdaemon.IptablesChainsRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_SET_TIME_OFFSET:
+ serviceImpl.setTimeOffset((pb.Chaosdaemon.TimeRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_RECOVER_TIME_OFFSET:
+ serviceImpl.recoverTimeOffset((pb.Chaosdaemon.TimeRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_CONTAINER_KILL:
+ serviceImpl.containerKill((pb.Chaosdaemon.ContainerRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_CONTAINER_GET_PID:
+ serviceImpl.containerGetPid((pb.Chaosdaemon.ContainerRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_EXEC_STRESSORS:
+ serviceImpl.execStressors((pb.Chaosdaemon.ExecStressRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_CANCEL_STRESSORS:
+ serviceImpl.cancelStressors((pb.Chaosdaemon.CancelStressRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_APPLY_IOCHAOS:
+ serviceImpl.applyIOChaos((pb.Chaosdaemon.ApplyIOChaosRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_APPLY_HTTP_CHAOS:
+ serviceImpl.applyHttpChaos((pb.Chaosdaemon.ApplyHttpChaosRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_APPLY_BLOCK_CHAOS:
+ serviceImpl.applyBlockChaos((pb.Chaosdaemon.ApplyBlockChaosRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_RECOVER_BLOCK_CHAOS:
+ serviceImpl.recoverBlockChaos((pb.Chaosdaemon.RecoverBlockChaosRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_SET_DNSSERVER:
+ serviceImpl.setDNSServer((pb.Chaosdaemon.SetDNSServerRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_INSTALL_JVMRULES:
+ serviceImpl.installJVMRules((pb.Chaosdaemon.InstallJVMRulesRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ case METHODID_UNINSTALL_JVMRULES:
+ serviceImpl.uninstallJVMRules((pb.Chaosdaemon.UninstallJVMRulesRequest) request,
+ (io.grpc.stub.StreamObserver) responseObserver);
+ break;
+ default:
+ throw new AssertionError();
+ }
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("unchecked")
+ public io.grpc.stub.StreamObserver invoke(
+ io.grpc.stub.StreamObserver responseObserver) {
+ switch (methodId) {
+ default:
+ throw new AssertionError();
+ }
+ }
+ }
+
+ private static abstract class ChaosDaemonBaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+ ChaosDaemonBaseDescriptorSupplier() {}
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
+ return pb.Chaosdaemon.getDescriptor();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
+ return getFileDescriptor().findServiceByName("ChaosDaemon");
+ }
+ }
+
+ private static final class ChaosDaemonFileDescriptorSupplier
+ extends ChaosDaemonBaseDescriptorSupplier {
+ ChaosDaemonFileDescriptorSupplier() {}
+ }
+
+ private static final class ChaosDaemonMethodDescriptorSupplier
+ extends ChaosDaemonBaseDescriptorSupplier
+ implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
+ private final String methodName;
+
+ ChaosDaemonMethodDescriptorSupplier(String methodName) {
+ this.methodName = methodName;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
+ return getServiceDescriptor().findMethodByName(methodName);
+ }
+ }
+
+ private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
+
+ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
+ io.grpc.ServiceDescriptor result = serviceDescriptor;
+ if (result == null) {
+ synchronized (ChaosDaemonGrpc.class) {
+ result = serviceDescriptor;
+ if (result == null) {
+ serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+ .setSchemaDescriptor(new ChaosDaemonFileDescriptorSupplier())
+ .addMethod(getSetTcsMethod())
+ .addMethod(getFlushIPSetsMethod())
+ .addMethod(getSetIptablesChainsMethod())
+ .addMethod(getSetTimeOffsetMethod())
+ .addMethod(getRecoverTimeOffsetMethod())
+ .addMethod(getContainerKillMethod())
+ .addMethod(getContainerGetPidMethod())
+ .addMethod(getExecStressorsMethod())
+ .addMethod(getCancelStressorsMethod())
+ .addMethod(getApplyIOChaosMethod())
+ .addMethod(getApplyHttpChaosMethod())
+ .addMethod(getApplyBlockChaosMethod())
+ .addMethod(getRecoverBlockChaosMethod())
+ .addMethod(getSetDNSServerMethod())
+ .addMethod(getInstallJVMRulesMethod())
+ .addMethod(getUninstallJVMRulesMethod())
+ .build();
+ }
+ }
+ }
+ return result;
+ }
+}
diff --git a/chaos/chaos-service/src/main/java/pb/Chaosdaemon.java b/chaos/chaos-service/src/main/java/pb/Chaosdaemon.java
new file mode 100644
index 000000000..760949c38
--- /dev/null
+++ b/chaos/chaos-service/src/main/java/pb/Chaosdaemon.java
@@ -0,0 +1,36450 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: chaosdaemon.proto
+/*
+ * Copyright 2020 Xiaomi
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package pb;
+
+public final class Chaosdaemon {
+ private Chaosdaemon() {}
+ 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 TcHandleOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.TcHandle)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * uint32 major = 1;
+ * @return The major.
+ */
+ int getMajor();
+
+ /**
+ * uint32 minor = 2;
+ * @return The minor.
+ */
+ int getMinor();
+ }
+ /**
+ * Protobuf type {@code pb.TcHandle}
+ */
+ public static final class TcHandle extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.TcHandle)
+ TcHandleOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TcHandle.newBuilder() to construct.
+ private TcHandle(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TcHandle() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TcHandle();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TcHandle(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ major_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ minor_ = input.readUInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_TcHandle_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_TcHandle_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.TcHandle.class, pb.Chaosdaemon.TcHandle.Builder.class);
+ }
+
+ public static final int MAJOR_FIELD_NUMBER = 1;
+ private int major_;
+ /**
+ * uint32 major = 1;
+ * @return The major.
+ */
+ @java.lang.Override
+ public int getMajor() {
+ return major_;
+ }
+
+ public static final int MINOR_FIELD_NUMBER = 2;
+ private int minor_;
+ /**
+ * uint32 minor = 2;
+ * @return The minor.
+ */
+ @java.lang.Override
+ public int getMinor() {
+ return minor_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (major_ != 0) {
+ output.writeUInt32(1, major_);
+ }
+ if (minor_ != 0) {
+ output.writeUInt32(2, minor_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (major_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, major_);
+ }
+ if (minor_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, minor_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.TcHandle)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.TcHandle other = (pb.Chaosdaemon.TcHandle) obj;
+
+ if (getMajor()
+ != other.getMajor()) return false;
+ if (getMinor()
+ != other.getMinor()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MAJOR_FIELD_NUMBER;
+ hash = (53 * hash) + getMajor();
+ hash = (37 * hash) + MINOR_FIELD_NUMBER;
+ hash = (53 * hash) + getMinor();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.TcHandle parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.TcHandle parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.TcHandle parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.TcHandle parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.TcHandle parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.TcHandle parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.TcHandle parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.TcHandle 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 pb.Chaosdaemon.TcHandle parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.TcHandle 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 pb.Chaosdaemon.TcHandle parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.TcHandle parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.TcHandle prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.TcHandle}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.TcHandle)
+ pb.Chaosdaemon.TcHandleOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_TcHandle_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_TcHandle_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.TcHandle.class, pb.Chaosdaemon.TcHandle.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.TcHandle.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ major_ = 0;
+
+ minor_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_TcHandle_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle getDefaultInstanceForType() {
+ return pb.Chaosdaemon.TcHandle.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle build() {
+ pb.Chaosdaemon.TcHandle result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle buildPartial() {
+ pb.Chaosdaemon.TcHandle result = new pb.Chaosdaemon.TcHandle(this);
+ result.major_ = major_;
+ result.minor_ = minor_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.TcHandle) {
+ return mergeFrom((pb.Chaosdaemon.TcHandle)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.TcHandle other) {
+ if (other == pb.Chaosdaemon.TcHandle.getDefaultInstance()) return this;
+ if (other.getMajor() != 0) {
+ setMajor(other.getMajor());
+ }
+ if (other.getMinor() != 0) {
+ setMinor(other.getMinor());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.TcHandle parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.TcHandle) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int major_ ;
+ /**
+ * uint32 major = 1;
+ * @return The major.
+ */
+ @java.lang.Override
+ public int getMajor() {
+ return major_;
+ }
+ /**
+ * uint32 major = 1;
+ * @param value The major to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMajor(int value) {
+
+ major_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 major = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMajor() {
+
+ major_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int minor_ ;
+ /**
+ * uint32 minor = 2;
+ * @return The minor.
+ */
+ @java.lang.Override
+ public int getMinor() {
+ return minor_;
+ }
+ /**
+ * uint32 minor = 2;
+ * @param value The minor to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinor(int value) {
+
+ minor_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 minor = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMinor() {
+
+ minor_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.TcHandle)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.TcHandle)
+ private static final pb.Chaosdaemon.TcHandle DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.TcHandle();
+ }
+
+ public static pb.Chaosdaemon.TcHandle getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TcHandle parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new TcHandle(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ContainerRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.ContainerRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .pb.ContainerAction action = 1;
+ * @return Whether the action field is set.
+ */
+ boolean hasAction();
+ /**
+ * .pb.ContainerAction action = 1;
+ * @return The action.
+ */
+ pb.Chaosdaemon.ContainerAction getAction();
+ /**
+ * .pb.ContainerAction action = 1;
+ */
+ pb.Chaosdaemon.ContainerActionOrBuilder getActionOrBuilder();
+
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ java.lang.String getContainerId();
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ com.google.protobuf.ByteString
+ getContainerIdBytes();
+ }
+ /**
+ * Protobuf type {@code pb.ContainerRequest}
+ */
+ public static final class ContainerRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.ContainerRequest)
+ ContainerRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ContainerRequest.newBuilder() to construct.
+ private ContainerRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ContainerRequest() {
+ containerId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ContainerRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ContainerRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ pb.Chaosdaemon.ContainerAction.Builder subBuilder = null;
+ if (action_ != null) {
+ subBuilder = action_.toBuilder();
+ }
+ action_ = input.readMessage(pb.Chaosdaemon.ContainerAction.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(action_);
+ action_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ containerId_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_ContainerRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_ContainerRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.ContainerRequest.class, pb.Chaosdaemon.ContainerRequest.Builder.class);
+ }
+
+ public static final int ACTION_FIELD_NUMBER = 1;
+ private pb.Chaosdaemon.ContainerAction action_;
+ /**
+ * .pb.ContainerAction action = 1;
+ * @return Whether the action field is set.
+ */
+ @java.lang.Override
+ public boolean hasAction() {
+ return action_ != null;
+ }
+ /**
+ * .pb.ContainerAction action = 1;
+ * @return The action.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.ContainerAction getAction() {
+ return action_ == null ? pb.Chaosdaemon.ContainerAction.getDefaultInstance() : action_;
+ }
+ /**
+ * .pb.ContainerAction action = 1;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.ContainerActionOrBuilder getActionOrBuilder() {
+ return getAction();
+ }
+
+ public static final int CONTAINER_ID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object containerId_;
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ @java.lang.Override
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ 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();
+ containerId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (action_ != null) {
+ output.writeMessage(1, getAction());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (action_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getAction());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerId_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.ContainerRequest)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.ContainerRequest other = (pb.Chaosdaemon.ContainerRequest) obj;
+
+ if (hasAction() != other.hasAction()) return false;
+ if (hasAction()) {
+ if (!getAction()
+ .equals(other.getAction())) return false;
+ }
+ if (!getContainerId()
+ .equals(other.getContainerId())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasAction()) {
+ hash = (37 * hash) + ACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getAction().hashCode();
+ }
+ hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getContainerId().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.ContainerRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.ContainerRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.ContainerRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.ContainerRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.ContainerRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.ContainerRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.ContainerRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.ContainerRequest 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 pb.Chaosdaemon.ContainerRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.ContainerRequest 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 pb.Chaosdaemon.ContainerRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.ContainerRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.ContainerRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.ContainerRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.ContainerRequest)
+ pb.Chaosdaemon.ContainerRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_ContainerRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_ContainerRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.ContainerRequest.class, pb.Chaosdaemon.ContainerRequest.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.ContainerRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (actionBuilder_ == null) {
+ action_ = null;
+ } else {
+ action_ = null;
+ actionBuilder_ = null;
+ }
+ containerId_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_ContainerRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.ContainerRequest getDefaultInstanceForType() {
+ return pb.Chaosdaemon.ContainerRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.ContainerRequest build() {
+ pb.Chaosdaemon.ContainerRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.ContainerRequest buildPartial() {
+ pb.Chaosdaemon.ContainerRequest result = new pb.Chaosdaemon.ContainerRequest(this);
+ if (actionBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = actionBuilder_.build();
+ }
+ result.containerId_ = containerId_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.ContainerRequest) {
+ return mergeFrom((pb.Chaosdaemon.ContainerRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.ContainerRequest other) {
+ if (other == pb.Chaosdaemon.ContainerRequest.getDefaultInstance()) return this;
+ if (other.hasAction()) {
+ mergeAction(other.getAction());
+ }
+ if (!other.getContainerId().isEmpty()) {
+ containerId_ = other.containerId_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.ContainerRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.ContainerRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private pb.Chaosdaemon.ContainerAction action_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.ContainerAction, pb.Chaosdaemon.ContainerAction.Builder, pb.Chaosdaemon.ContainerActionOrBuilder> actionBuilder_;
+ /**
+ * .pb.ContainerAction action = 1;
+ * @return Whether the action field is set.
+ */
+ public boolean hasAction() {
+ return actionBuilder_ != null || action_ != null;
+ }
+ /**
+ * .pb.ContainerAction action = 1;
+ * @return The action.
+ */
+ public pb.Chaosdaemon.ContainerAction getAction() {
+ if (actionBuilder_ == null) {
+ return action_ == null ? pb.Chaosdaemon.ContainerAction.getDefaultInstance() : action_;
+ } else {
+ return actionBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.ContainerAction action = 1;
+ */
+ public Builder setAction(pb.Chaosdaemon.ContainerAction value) {
+ if (actionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ actionBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.ContainerAction action = 1;
+ */
+ public Builder setAction(
+ pb.Chaosdaemon.ContainerAction.Builder builderForValue) {
+ if (actionBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ actionBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.ContainerAction action = 1;
+ */
+ public Builder mergeAction(pb.Chaosdaemon.ContainerAction value) {
+ if (actionBuilder_ == null) {
+ if (action_ != null) {
+ action_ =
+ pb.Chaosdaemon.ContainerAction.newBuilder(action_).mergeFrom(value).buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ actionBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.ContainerAction action = 1;
+ */
+ public Builder clearAction() {
+ if (actionBuilder_ == null) {
+ action_ = null;
+ onChanged();
+ } else {
+ action_ = null;
+ actionBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.ContainerAction action = 1;
+ */
+ public pb.Chaosdaemon.ContainerAction.Builder getActionBuilder() {
+
+ onChanged();
+ return getActionFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.ContainerAction action = 1;
+ */
+ public pb.Chaosdaemon.ContainerActionOrBuilder getActionOrBuilder() {
+ if (actionBuilder_ != null) {
+ return actionBuilder_.getMessageOrBuilder();
+ } else {
+ return action_ == null ?
+ pb.Chaosdaemon.ContainerAction.getDefaultInstance() : action_;
+ }
+ }
+ /**
+ * .pb.ContainerAction action = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.ContainerAction, pb.Chaosdaemon.ContainerAction.Builder, pb.Chaosdaemon.ContainerActionOrBuilder>
+ getActionFieldBuilder() {
+ if (actionBuilder_ == null) {
+ actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.ContainerAction, pb.Chaosdaemon.ContainerAction.Builder, pb.Chaosdaemon.ContainerActionOrBuilder>(
+ getAction(),
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ return actionBuilder_;
+ }
+
+ private java.lang.Object containerId_ = "";
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ containerId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @param value The containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearContainerId() {
+
+ containerId_ = getDefaultInstance().getContainerId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @param value The bytes for containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.ContainerRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.ContainerRequest)
+ private static final pb.Chaosdaemon.ContainerRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.ContainerRequest();
+ }
+
+ public static pb.Chaosdaemon.ContainerRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ContainerRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ContainerRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.ContainerRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ContainerResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.ContainerResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * uint32 pid = 1;
+ * @return The pid.
+ */
+ int getPid();
+ }
+ /**
+ * Protobuf type {@code pb.ContainerResponse}
+ */
+ public static final class ContainerResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.ContainerResponse)
+ ContainerResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ContainerResponse.newBuilder() to construct.
+ private ContainerResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ContainerResponse() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ContainerResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ContainerResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ pid_ = input.readUInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_ContainerResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_ContainerResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.ContainerResponse.class, pb.Chaosdaemon.ContainerResponse.Builder.class);
+ }
+
+ public static final int PID_FIELD_NUMBER = 1;
+ private int pid_;
+ /**
+ * uint32 pid = 1;
+ * @return The pid.
+ */
+ @java.lang.Override
+ public int getPid() {
+ return pid_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (pid_ != 0) {
+ output.writeUInt32(1, pid_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (pid_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, pid_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.ContainerResponse)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.ContainerResponse other = (pb.Chaosdaemon.ContainerResponse) obj;
+
+ if (getPid()
+ != other.getPid()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PID_FIELD_NUMBER;
+ hash = (53 * hash) + getPid();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.ContainerResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.ContainerResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.ContainerResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.ContainerResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.ContainerResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.ContainerResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.ContainerResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.ContainerResponse 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 pb.Chaosdaemon.ContainerResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.ContainerResponse 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 pb.Chaosdaemon.ContainerResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.ContainerResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.ContainerResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.ContainerResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.ContainerResponse)
+ pb.Chaosdaemon.ContainerResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_ContainerResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_ContainerResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.ContainerResponse.class, pb.Chaosdaemon.ContainerResponse.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.ContainerResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ pid_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_ContainerResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.ContainerResponse getDefaultInstanceForType() {
+ return pb.Chaosdaemon.ContainerResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.ContainerResponse build() {
+ pb.Chaosdaemon.ContainerResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.ContainerResponse buildPartial() {
+ pb.Chaosdaemon.ContainerResponse result = new pb.Chaosdaemon.ContainerResponse(this);
+ result.pid_ = pid_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.ContainerResponse) {
+ return mergeFrom((pb.Chaosdaemon.ContainerResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.ContainerResponse other) {
+ if (other == pb.Chaosdaemon.ContainerResponse.getDefaultInstance()) return this;
+ if (other.getPid() != 0) {
+ setPid(other.getPid());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.ContainerResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.ContainerResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int pid_ ;
+ /**
+ * uint32 pid = 1;
+ * @return The pid.
+ */
+ @java.lang.Override
+ public int getPid() {
+ return pid_;
+ }
+ /**
+ * uint32 pid = 1;
+ * @param value The pid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPid(int value) {
+
+ pid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 pid = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearPid() {
+
+ pid_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.ContainerResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.ContainerResponse)
+ private static final pb.Chaosdaemon.ContainerResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.ContainerResponse();
+ }
+
+ public static pb.Chaosdaemon.ContainerResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ContainerResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ContainerResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.ContainerResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface NetemRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.NetemRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .pb.Netem netem = 1;
+ * @return Whether the netem field is set.
+ */
+ boolean hasNetem();
+ /**
+ * .pb.Netem netem = 1;
+ * @return The netem.
+ */
+ pb.Chaosdaemon.Netem getNetem();
+ /**
+ * .pb.Netem netem = 1;
+ */
+ pb.Chaosdaemon.NetemOrBuilder getNetemOrBuilder();
+
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ java.lang.String getContainerId();
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ com.google.protobuf.ByteString
+ getContainerIdBytes();
+
+ /**
+ * .pb.TcHandle handle = 3;
+ * @return Whether the handle field is set.
+ */
+ boolean hasHandle();
+ /**
+ * .pb.TcHandle handle = 3;
+ * @return The handle.
+ */
+ pb.Chaosdaemon.TcHandle getHandle();
+ /**
+ * .pb.TcHandle handle = 3;
+ */
+ pb.Chaosdaemon.TcHandleOrBuilder getHandleOrBuilder();
+
+ /**
+ * .pb.TcHandle parent = 4;
+ * @return Whether the parent field is set.
+ */
+ boolean hasParent();
+ /**
+ * .pb.TcHandle parent = 4;
+ * @return The parent.
+ */
+ pb.Chaosdaemon.TcHandle getParent();
+ /**
+ * .pb.TcHandle parent = 4;
+ */
+ pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder();
+ }
+ /**
+ * Protobuf type {@code pb.NetemRequest}
+ */
+ public static final class NetemRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.NetemRequest)
+ NetemRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use NetemRequest.newBuilder() to construct.
+ private NetemRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private NetemRequest() {
+ containerId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new NetemRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private NetemRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ pb.Chaosdaemon.Netem.Builder subBuilder = null;
+ if (netem_ != null) {
+ subBuilder = netem_.toBuilder();
+ }
+ netem_ = input.readMessage(pb.Chaosdaemon.Netem.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(netem_);
+ netem_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ containerId_ = s;
+ break;
+ }
+ case 26: {
+ pb.Chaosdaemon.TcHandle.Builder subBuilder = null;
+ if (handle_ != null) {
+ subBuilder = handle_.toBuilder();
+ }
+ handle_ = input.readMessage(pb.Chaosdaemon.TcHandle.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(handle_);
+ handle_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 34: {
+ pb.Chaosdaemon.TcHandle.Builder subBuilder = null;
+ if (parent_ != null) {
+ subBuilder = parent_.toBuilder();
+ }
+ parent_ = input.readMessage(pb.Chaosdaemon.TcHandle.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(parent_);
+ parent_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_NetemRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_NetemRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.NetemRequest.class, pb.Chaosdaemon.NetemRequest.Builder.class);
+ }
+
+ public static final int NETEM_FIELD_NUMBER = 1;
+ private pb.Chaosdaemon.Netem netem_;
+ /**
+ * .pb.Netem netem = 1;
+ * @return Whether the netem field is set.
+ */
+ @java.lang.Override
+ public boolean hasNetem() {
+ return netem_ != null;
+ }
+ /**
+ * .pb.Netem netem = 1;
+ * @return The netem.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.Netem getNetem() {
+ return netem_ == null ? pb.Chaosdaemon.Netem.getDefaultInstance() : netem_;
+ }
+ /**
+ * .pb.Netem netem = 1;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.NetemOrBuilder getNetemOrBuilder() {
+ return getNetem();
+ }
+
+ public static final int CONTAINER_ID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object containerId_;
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ @java.lang.Override
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ 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();
+ containerId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HANDLE_FIELD_NUMBER = 3;
+ private pb.Chaosdaemon.TcHandle handle_;
+ /**
+ * .pb.TcHandle handle = 3;
+ * @return Whether the handle field is set.
+ */
+ @java.lang.Override
+ public boolean hasHandle() {
+ return handle_ != null;
+ }
+ /**
+ * .pb.TcHandle handle = 3;
+ * @return The handle.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle getHandle() {
+ return handle_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : handle_;
+ }
+ /**
+ * .pb.TcHandle handle = 3;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandleOrBuilder getHandleOrBuilder() {
+ return getHandle();
+ }
+
+ public static final int PARENT_FIELD_NUMBER = 4;
+ private pb.Chaosdaemon.TcHandle parent_;
+ /**
+ * .pb.TcHandle parent = 4;
+ * @return Whether the parent field is set.
+ */
+ @java.lang.Override
+ public boolean hasParent() {
+ return parent_ != null;
+ }
+ /**
+ * .pb.TcHandle parent = 4;
+ * @return The parent.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle getParent() {
+ return parent_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ }
+ /**
+ * .pb.TcHandle parent = 4;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder() {
+ return getParent();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (netem_ != null) {
+ output.writeMessage(1, getNetem());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerId_);
+ }
+ if (handle_ != null) {
+ output.writeMessage(3, getHandle());
+ }
+ if (parent_ != null) {
+ output.writeMessage(4, getParent());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (netem_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getNetem());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerId_);
+ }
+ if (handle_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getHandle());
+ }
+ if (parent_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getParent());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.NetemRequest)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.NetemRequest other = (pb.Chaosdaemon.NetemRequest) obj;
+
+ if (hasNetem() != other.hasNetem()) return false;
+ if (hasNetem()) {
+ if (!getNetem()
+ .equals(other.getNetem())) return false;
+ }
+ if (!getContainerId()
+ .equals(other.getContainerId())) return false;
+ if (hasHandle() != other.hasHandle()) return false;
+ if (hasHandle()) {
+ if (!getHandle()
+ .equals(other.getHandle())) return false;
+ }
+ if (hasParent() != other.hasParent()) return false;
+ if (hasParent()) {
+ if (!getParent()
+ .equals(other.getParent())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasNetem()) {
+ hash = (37 * hash) + NETEM_FIELD_NUMBER;
+ hash = (53 * hash) + getNetem().hashCode();
+ }
+ hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getContainerId().hashCode();
+ if (hasHandle()) {
+ hash = (37 * hash) + HANDLE_FIELD_NUMBER;
+ hash = (53 * hash) + getHandle().hashCode();
+ }
+ if (hasParent()) {
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.NetemRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.NetemRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.NetemRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.NetemRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.NetemRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.NetemRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.NetemRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.NetemRequest 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 pb.Chaosdaemon.NetemRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.NetemRequest 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 pb.Chaosdaemon.NetemRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.NetemRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.NetemRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.NetemRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.NetemRequest)
+ pb.Chaosdaemon.NetemRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_NetemRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_NetemRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.NetemRequest.class, pb.Chaosdaemon.NetemRequest.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.NetemRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (netemBuilder_ == null) {
+ netem_ = null;
+ } else {
+ netem_ = null;
+ netemBuilder_ = null;
+ }
+ containerId_ = "";
+
+ if (handleBuilder_ == null) {
+ handle_ = null;
+ } else {
+ handle_ = null;
+ handleBuilder_ = null;
+ }
+ if (parentBuilder_ == null) {
+ parent_ = null;
+ } else {
+ parent_ = null;
+ parentBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_NetemRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.NetemRequest getDefaultInstanceForType() {
+ return pb.Chaosdaemon.NetemRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.NetemRequest build() {
+ pb.Chaosdaemon.NetemRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.NetemRequest buildPartial() {
+ pb.Chaosdaemon.NetemRequest result = new pb.Chaosdaemon.NetemRequest(this);
+ if (netemBuilder_ == null) {
+ result.netem_ = netem_;
+ } else {
+ result.netem_ = netemBuilder_.build();
+ }
+ result.containerId_ = containerId_;
+ if (handleBuilder_ == null) {
+ result.handle_ = handle_;
+ } else {
+ result.handle_ = handleBuilder_.build();
+ }
+ if (parentBuilder_ == null) {
+ result.parent_ = parent_;
+ } else {
+ result.parent_ = parentBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.NetemRequest) {
+ return mergeFrom((pb.Chaosdaemon.NetemRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.NetemRequest other) {
+ if (other == pb.Chaosdaemon.NetemRequest.getDefaultInstance()) return this;
+ if (other.hasNetem()) {
+ mergeNetem(other.getNetem());
+ }
+ if (!other.getContainerId().isEmpty()) {
+ containerId_ = other.containerId_;
+ onChanged();
+ }
+ if (other.hasHandle()) {
+ mergeHandle(other.getHandle());
+ }
+ if (other.hasParent()) {
+ mergeParent(other.getParent());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.NetemRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.NetemRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private pb.Chaosdaemon.Netem netem_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.Netem, pb.Chaosdaemon.Netem.Builder, pb.Chaosdaemon.NetemOrBuilder> netemBuilder_;
+ /**
+ * .pb.Netem netem = 1;
+ * @return Whether the netem field is set.
+ */
+ public boolean hasNetem() {
+ return netemBuilder_ != null || netem_ != null;
+ }
+ /**
+ * .pb.Netem netem = 1;
+ * @return The netem.
+ */
+ public pb.Chaosdaemon.Netem getNetem() {
+ if (netemBuilder_ == null) {
+ return netem_ == null ? pb.Chaosdaemon.Netem.getDefaultInstance() : netem_;
+ } else {
+ return netemBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.Netem netem = 1;
+ */
+ public Builder setNetem(pb.Chaosdaemon.Netem value) {
+ if (netemBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ netem_ = value;
+ onChanged();
+ } else {
+ netemBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.Netem netem = 1;
+ */
+ public Builder setNetem(
+ pb.Chaosdaemon.Netem.Builder builderForValue) {
+ if (netemBuilder_ == null) {
+ netem_ = builderForValue.build();
+ onChanged();
+ } else {
+ netemBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.Netem netem = 1;
+ */
+ public Builder mergeNetem(pb.Chaosdaemon.Netem value) {
+ if (netemBuilder_ == null) {
+ if (netem_ != null) {
+ netem_ =
+ pb.Chaosdaemon.Netem.newBuilder(netem_).mergeFrom(value).buildPartial();
+ } else {
+ netem_ = value;
+ }
+ onChanged();
+ } else {
+ netemBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.Netem netem = 1;
+ */
+ public Builder clearNetem() {
+ if (netemBuilder_ == null) {
+ netem_ = null;
+ onChanged();
+ } else {
+ netem_ = null;
+ netemBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.Netem netem = 1;
+ */
+ public pb.Chaosdaemon.Netem.Builder getNetemBuilder() {
+
+ onChanged();
+ return getNetemFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.Netem netem = 1;
+ */
+ public pb.Chaosdaemon.NetemOrBuilder getNetemOrBuilder() {
+ if (netemBuilder_ != null) {
+ return netemBuilder_.getMessageOrBuilder();
+ } else {
+ return netem_ == null ?
+ pb.Chaosdaemon.Netem.getDefaultInstance() : netem_;
+ }
+ }
+ /**
+ * .pb.Netem netem = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.Netem, pb.Chaosdaemon.Netem.Builder, pb.Chaosdaemon.NetemOrBuilder>
+ getNetemFieldBuilder() {
+ if (netemBuilder_ == null) {
+ netemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.Netem, pb.Chaosdaemon.Netem.Builder, pb.Chaosdaemon.NetemOrBuilder>(
+ getNetem(),
+ getParentForChildren(),
+ isClean());
+ netem_ = null;
+ }
+ return netemBuilder_;
+ }
+
+ private java.lang.Object containerId_ = "";
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ containerId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @param value The containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearContainerId() {
+
+ containerId_ = getDefaultInstance().getContainerId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @param value The bytes for containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private pb.Chaosdaemon.TcHandle handle_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder> handleBuilder_;
+ /**
+ * .pb.TcHandle handle = 3;
+ * @return Whether the handle field is set.
+ */
+ public boolean hasHandle() {
+ return handleBuilder_ != null || handle_ != null;
+ }
+ /**
+ * .pb.TcHandle handle = 3;
+ * @return The handle.
+ */
+ public pb.Chaosdaemon.TcHandle getHandle() {
+ if (handleBuilder_ == null) {
+ return handle_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : handle_;
+ } else {
+ return handleBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.TcHandle handle = 3;
+ */
+ public Builder setHandle(pb.Chaosdaemon.TcHandle value) {
+ if (handleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ handle_ = value;
+ onChanged();
+ } else {
+ handleBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle handle = 3;
+ */
+ public Builder setHandle(
+ pb.Chaosdaemon.TcHandle.Builder builderForValue) {
+ if (handleBuilder_ == null) {
+ handle_ = builderForValue.build();
+ onChanged();
+ } else {
+ handleBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle handle = 3;
+ */
+ public Builder mergeHandle(pb.Chaosdaemon.TcHandle value) {
+ if (handleBuilder_ == null) {
+ if (handle_ != null) {
+ handle_ =
+ pb.Chaosdaemon.TcHandle.newBuilder(handle_).mergeFrom(value).buildPartial();
+ } else {
+ handle_ = value;
+ }
+ onChanged();
+ } else {
+ handleBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle handle = 3;
+ */
+ public Builder clearHandle() {
+ if (handleBuilder_ == null) {
+ handle_ = null;
+ onChanged();
+ } else {
+ handle_ = null;
+ handleBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle handle = 3;
+ */
+ public pb.Chaosdaemon.TcHandle.Builder getHandleBuilder() {
+
+ onChanged();
+ return getHandleFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.TcHandle handle = 3;
+ */
+ public pb.Chaosdaemon.TcHandleOrBuilder getHandleOrBuilder() {
+ if (handleBuilder_ != null) {
+ return handleBuilder_.getMessageOrBuilder();
+ } else {
+ return handle_ == null ?
+ pb.Chaosdaemon.TcHandle.getDefaultInstance() : handle_;
+ }
+ }
+ /**
+ * .pb.TcHandle handle = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>
+ getHandleFieldBuilder() {
+ if (handleBuilder_ == null) {
+ handleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>(
+ getHandle(),
+ getParentForChildren(),
+ isClean());
+ handle_ = null;
+ }
+ return handleBuilder_;
+ }
+
+ private pb.Chaosdaemon.TcHandle parent_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder> parentBuilder_;
+ /**
+ * .pb.TcHandle parent = 4;
+ * @return Whether the parent field is set.
+ */
+ public boolean hasParent() {
+ return parentBuilder_ != null || parent_ != null;
+ }
+ /**
+ * .pb.TcHandle parent = 4;
+ * @return The parent.
+ */
+ public pb.Chaosdaemon.TcHandle getParent() {
+ if (parentBuilder_ == null) {
+ return parent_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ } else {
+ return parentBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.TcHandle parent = 4;
+ */
+ public Builder setParent(pb.Chaosdaemon.TcHandle value) {
+ if (parentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ onChanged();
+ } else {
+ parentBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 4;
+ */
+ public Builder setParent(
+ pb.Chaosdaemon.TcHandle.Builder builderForValue) {
+ if (parentBuilder_ == null) {
+ parent_ = builderForValue.build();
+ onChanged();
+ } else {
+ parentBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 4;
+ */
+ public Builder mergeParent(pb.Chaosdaemon.TcHandle value) {
+ if (parentBuilder_ == null) {
+ if (parent_ != null) {
+ parent_ =
+ pb.Chaosdaemon.TcHandle.newBuilder(parent_).mergeFrom(value).buildPartial();
+ } else {
+ parent_ = value;
+ }
+ onChanged();
+ } else {
+ parentBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 4;
+ */
+ public Builder clearParent() {
+ if (parentBuilder_ == null) {
+ parent_ = null;
+ onChanged();
+ } else {
+ parent_ = null;
+ parentBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 4;
+ */
+ public pb.Chaosdaemon.TcHandle.Builder getParentBuilder() {
+
+ onChanged();
+ return getParentFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.TcHandle parent = 4;
+ */
+ public pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder() {
+ if (parentBuilder_ != null) {
+ return parentBuilder_.getMessageOrBuilder();
+ } else {
+ return parent_ == null ?
+ pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ }
+ }
+ /**
+ * .pb.TcHandle parent = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>
+ getParentFieldBuilder() {
+ if (parentBuilder_ == null) {
+ parentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>(
+ getParent(),
+ getParentForChildren(),
+ isClean());
+ parent_ = null;
+ }
+ return parentBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.NetemRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.NetemRequest)
+ private static final pb.Chaosdaemon.NetemRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.NetemRequest();
+ }
+
+ public static pb.Chaosdaemon.NetemRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public NetemRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new NetemRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.NetemRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface NetemOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.Netem)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * uint32 time = 1;
+ * @return The time.
+ */
+ int getTime();
+
+ /**
+ * uint32 jitter = 2;
+ * @return The jitter.
+ */
+ int getJitter();
+
+ /**
+ * float delay_corr = 3;
+ * @return The delayCorr.
+ */
+ float getDelayCorr();
+
+ /**
+ * uint32 limit = 4;
+ * @return The limit.
+ */
+ int getLimit();
+
+ /**
+ * float loss = 5;
+ * @return The loss.
+ */
+ float getLoss();
+
+ /**
+ * float loss_corr = 6;
+ * @return The lossCorr.
+ */
+ float getLossCorr();
+
+ /**
+ * uint32 gap = 7;
+ * @return The gap.
+ */
+ int getGap();
+
+ /**
+ * float duplicate = 8;
+ * @return The duplicate.
+ */
+ float getDuplicate();
+
+ /**
+ * float duplicate_corr = 9;
+ * @return The duplicateCorr.
+ */
+ float getDuplicateCorr();
+
+ /**
+ * float reorder = 10;
+ * @return The reorder.
+ */
+ float getReorder();
+
+ /**
+ * float reorder_corr = 11;
+ * @return The reorderCorr.
+ */
+ float getReorderCorr();
+
+ /**
+ * float corrupt = 12;
+ * @return The corrupt.
+ */
+ float getCorrupt();
+
+ /**
+ * float corrupt_corr = 13;
+ * @return The corruptCorr.
+ */
+ float getCorruptCorr();
+
+ /**
+ * .pb.TcHandle parent = 14;
+ * @return Whether the parent field is set.
+ */
+ boolean hasParent();
+ /**
+ * .pb.TcHandle parent = 14;
+ * @return The parent.
+ */
+ pb.Chaosdaemon.TcHandle getParent();
+ /**
+ * .pb.TcHandle parent = 14;
+ */
+ pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder();
+
+ /**
+ * .pb.TcHandle handle = 15;
+ * @return Whether the handle field is set.
+ */
+ boolean hasHandle();
+ /**
+ * .pb.TcHandle handle = 15;
+ * @return The handle.
+ */
+ pb.Chaosdaemon.TcHandle getHandle();
+ /**
+ * .pb.TcHandle handle = 15;
+ */
+ pb.Chaosdaemon.TcHandleOrBuilder getHandleOrBuilder();
+ }
+ /**
+ * Protobuf type {@code pb.Netem}
+ */
+ public static final class Netem extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.Netem)
+ NetemOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Netem.newBuilder() to construct.
+ private Netem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Netem() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Netem();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Netem(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ time_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ jitter_ = input.readUInt32();
+ break;
+ }
+ case 29: {
+
+ delayCorr_ = input.readFloat();
+ break;
+ }
+ case 32: {
+
+ limit_ = input.readUInt32();
+ break;
+ }
+ case 45: {
+
+ loss_ = input.readFloat();
+ break;
+ }
+ case 53: {
+
+ lossCorr_ = input.readFloat();
+ break;
+ }
+ case 56: {
+
+ gap_ = input.readUInt32();
+ break;
+ }
+ case 69: {
+
+ duplicate_ = input.readFloat();
+ break;
+ }
+ case 77: {
+
+ duplicateCorr_ = input.readFloat();
+ break;
+ }
+ case 85: {
+
+ reorder_ = input.readFloat();
+ break;
+ }
+ case 93: {
+
+ reorderCorr_ = input.readFloat();
+ break;
+ }
+ case 101: {
+
+ corrupt_ = input.readFloat();
+ break;
+ }
+ case 109: {
+
+ corruptCorr_ = input.readFloat();
+ break;
+ }
+ case 114: {
+ pb.Chaosdaemon.TcHandle.Builder subBuilder = null;
+ if (parent_ != null) {
+ subBuilder = parent_.toBuilder();
+ }
+ parent_ = input.readMessage(pb.Chaosdaemon.TcHandle.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(parent_);
+ parent_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 122: {
+ pb.Chaosdaemon.TcHandle.Builder subBuilder = null;
+ if (handle_ != null) {
+ subBuilder = handle_.toBuilder();
+ }
+ handle_ = input.readMessage(pb.Chaosdaemon.TcHandle.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(handle_);
+ handle_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_Netem_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_Netem_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.Netem.class, pb.Chaosdaemon.Netem.Builder.class);
+ }
+
+ public static final int TIME_FIELD_NUMBER = 1;
+ private int time_;
+ /**
+ * uint32 time = 1;
+ * @return The time.
+ */
+ @java.lang.Override
+ public int getTime() {
+ return time_;
+ }
+
+ public static final int JITTER_FIELD_NUMBER = 2;
+ private int jitter_;
+ /**
+ * uint32 jitter = 2;
+ * @return The jitter.
+ */
+ @java.lang.Override
+ public int getJitter() {
+ return jitter_;
+ }
+
+ public static final int DELAY_CORR_FIELD_NUMBER = 3;
+ private float delayCorr_;
+ /**
+ * float delay_corr = 3;
+ * @return The delayCorr.
+ */
+ @java.lang.Override
+ public float getDelayCorr() {
+ return delayCorr_;
+ }
+
+ public static final int LIMIT_FIELD_NUMBER = 4;
+ private int limit_;
+ /**
+ * uint32 limit = 4;
+ * @return The limit.
+ */
+ @java.lang.Override
+ public int getLimit() {
+ return limit_;
+ }
+
+ public static final int LOSS_FIELD_NUMBER = 5;
+ private float loss_;
+ /**
+ * float loss = 5;
+ * @return The loss.
+ */
+ @java.lang.Override
+ public float getLoss() {
+ return loss_;
+ }
+
+ public static final int LOSS_CORR_FIELD_NUMBER = 6;
+ private float lossCorr_;
+ /**
+ * float loss_corr = 6;
+ * @return The lossCorr.
+ */
+ @java.lang.Override
+ public float getLossCorr() {
+ return lossCorr_;
+ }
+
+ public static final int GAP_FIELD_NUMBER = 7;
+ private int gap_;
+ /**
+ * uint32 gap = 7;
+ * @return The gap.
+ */
+ @java.lang.Override
+ public int getGap() {
+ return gap_;
+ }
+
+ public static final int DUPLICATE_FIELD_NUMBER = 8;
+ private float duplicate_;
+ /**
+ * float duplicate = 8;
+ * @return The duplicate.
+ */
+ @java.lang.Override
+ public float getDuplicate() {
+ return duplicate_;
+ }
+
+ public static final int DUPLICATE_CORR_FIELD_NUMBER = 9;
+ private float duplicateCorr_;
+ /**
+ * float duplicate_corr = 9;
+ * @return The duplicateCorr.
+ */
+ @java.lang.Override
+ public float getDuplicateCorr() {
+ return duplicateCorr_;
+ }
+
+ public static final int REORDER_FIELD_NUMBER = 10;
+ private float reorder_;
+ /**
+ * float reorder = 10;
+ * @return The reorder.
+ */
+ @java.lang.Override
+ public float getReorder() {
+ return reorder_;
+ }
+
+ public static final int REORDER_CORR_FIELD_NUMBER = 11;
+ private float reorderCorr_;
+ /**
+ * float reorder_corr = 11;
+ * @return The reorderCorr.
+ */
+ @java.lang.Override
+ public float getReorderCorr() {
+ return reorderCorr_;
+ }
+
+ public static final int CORRUPT_FIELD_NUMBER = 12;
+ private float corrupt_;
+ /**
+ * float corrupt = 12;
+ * @return The corrupt.
+ */
+ @java.lang.Override
+ public float getCorrupt() {
+ return corrupt_;
+ }
+
+ public static final int CORRUPT_CORR_FIELD_NUMBER = 13;
+ private float corruptCorr_;
+ /**
+ * float corrupt_corr = 13;
+ * @return The corruptCorr.
+ */
+ @java.lang.Override
+ public float getCorruptCorr() {
+ return corruptCorr_;
+ }
+
+ public static final int PARENT_FIELD_NUMBER = 14;
+ private pb.Chaosdaemon.TcHandle parent_;
+ /**
+ * .pb.TcHandle parent = 14;
+ * @return Whether the parent field is set.
+ */
+ @java.lang.Override
+ public boolean hasParent() {
+ return parent_ != null;
+ }
+ /**
+ * .pb.TcHandle parent = 14;
+ * @return The parent.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle getParent() {
+ return parent_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ }
+ /**
+ * .pb.TcHandle parent = 14;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder() {
+ return getParent();
+ }
+
+ public static final int HANDLE_FIELD_NUMBER = 15;
+ private pb.Chaosdaemon.TcHandle handle_;
+ /**
+ * .pb.TcHandle handle = 15;
+ * @return Whether the handle field is set.
+ */
+ @java.lang.Override
+ public boolean hasHandle() {
+ return handle_ != null;
+ }
+ /**
+ * .pb.TcHandle handle = 15;
+ * @return The handle.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle getHandle() {
+ return handle_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : handle_;
+ }
+ /**
+ * .pb.TcHandle handle = 15;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandleOrBuilder getHandleOrBuilder() {
+ return getHandle();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (time_ != 0) {
+ output.writeUInt32(1, time_);
+ }
+ if (jitter_ != 0) {
+ output.writeUInt32(2, jitter_);
+ }
+ if (java.lang.Float.floatToRawIntBits(delayCorr_) != 0) {
+ output.writeFloat(3, delayCorr_);
+ }
+ if (limit_ != 0) {
+ output.writeUInt32(4, limit_);
+ }
+ if (java.lang.Float.floatToRawIntBits(loss_) != 0) {
+ output.writeFloat(5, loss_);
+ }
+ if (java.lang.Float.floatToRawIntBits(lossCorr_) != 0) {
+ output.writeFloat(6, lossCorr_);
+ }
+ if (gap_ != 0) {
+ output.writeUInt32(7, gap_);
+ }
+ if (java.lang.Float.floatToRawIntBits(duplicate_) != 0) {
+ output.writeFloat(8, duplicate_);
+ }
+ if (java.lang.Float.floatToRawIntBits(duplicateCorr_) != 0) {
+ output.writeFloat(9, duplicateCorr_);
+ }
+ if (java.lang.Float.floatToRawIntBits(reorder_) != 0) {
+ output.writeFloat(10, reorder_);
+ }
+ if (java.lang.Float.floatToRawIntBits(reorderCorr_) != 0) {
+ output.writeFloat(11, reorderCorr_);
+ }
+ if (java.lang.Float.floatToRawIntBits(corrupt_) != 0) {
+ output.writeFloat(12, corrupt_);
+ }
+ if (java.lang.Float.floatToRawIntBits(corruptCorr_) != 0) {
+ output.writeFloat(13, corruptCorr_);
+ }
+ if (parent_ != null) {
+ output.writeMessage(14, getParent());
+ }
+ if (handle_ != null) {
+ output.writeMessage(15, getHandle());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (time_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, time_);
+ }
+ if (jitter_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, jitter_);
+ }
+ if (java.lang.Float.floatToRawIntBits(delayCorr_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(3, delayCorr_);
+ }
+ if (limit_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(4, limit_);
+ }
+ if (java.lang.Float.floatToRawIntBits(loss_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(5, loss_);
+ }
+ if (java.lang.Float.floatToRawIntBits(lossCorr_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(6, lossCorr_);
+ }
+ if (gap_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(7, gap_);
+ }
+ if (java.lang.Float.floatToRawIntBits(duplicate_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(8, duplicate_);
+ }
+ if (java.lang.Float.floatToRawIntBits(duplicateCorr_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(9, duplicateCorr_);
+ }
+ if (java.lang.Float.floatToRawIntBits(reorder_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(10, reorder_);
+ }
+ if (java.lang.Float.floatToRawIntBits(reorderCorr_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(11, reorderCorr_);
+ }
+ if (java.lang.Float.floatToRawIntBits(corrupt_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(12, corrupt_);
+ }
+ if (java.lang.Float.floatToRawIntBits(corruptCorr_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(13, corruptCorr_);
+ }
+ if (parent_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(14, getParent());
+ }
+ if (handle_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(15, getHandle());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.Netem)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.Netem other = (pb.Chaosdaemon.Netem) obj;
+
+ if (getTime()
+ != other.getTime()) return false;
+ if (getJitter()
+ != other.getJitter()) return false;
+ if (java.lang.Float.floatToIntBits(getDelayCorr())
+ != java.lang.Float.floatToIntBits(
+ other.getDelayCorr())) return false;
+ if (getLimit()
+ != other.getLimit()) return false;
+ if (java.lang.Float.floatToIntBits(getLoss())
+ != java.lang.Float.floatToIntBits(
+ other.getLoss())) return false;
+ if (java.lang.Float.floatToIntBits(getLossCorr())
+ != java.lang.Float.floatToIntBits(
+ other.getLossCorr())) return false;
+ if (getGap()
+ != other.getGap()) return false;
+ if (java.lang.Float.floatToIntBits(getDuplicate())
+ != java.lang.Float.floatToIntBits(
+ other.getDuplicate())) return false;
+ if (java.lang.Float.floatToIntBits(getDuplicateCorr())
+ != java.lang.Float.floatToIntBits(
+ other.getDuplicateCorr())) return false;
+ if (java.lang.Float.floatToIntBits(getReorder())
+ != java.lang.Float.floatToIntBits(
+ other.getReorder())) return false;
+ if (java.lang.Float.floatToIntBits(getReorderCorr())
+ != java.lang.Float.floatToIntBits(
+ other.getReorderCorr())) return false;
+ if (java.lang.Float.floatToIntBits(getCorrupt())
+ != java.lang.Float.floatToIntBits(
+ other.getCorrupt())) return false;
+ if (java.lang.Float.floatToIntBits(getCorruptCorr())
+ != java.lang.Float.floatToIntBits(
+ other.getCorruptCorr())) return false;
+ if (hasParent() != other.hasParent()) return false;
+ if (hasParent()) {
+ if (!getParent()
+ .equals(other.getParent())) return false;
+ }
+ if (hasHandle() != other.hasHandle()) return false;
+ if (hasHandle()) {
+ if (!getHandle()
+ .equals(other.getHandle())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getTime();
+ hash = (37 * hash) + JITTER_FIELD_NUMBER;
+ hash = (53 * hash) + getJitter();
+ hash = (37 * hash) + DELAY_CORR_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getDelayCorr());
+ hash = (37 * hash) + LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + getLimit();
+ hash = (37 * hash) + LOSS_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getLoss());
+ hash = (37 * hash) + LOSS_CORR_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getLossCorr());
+ hash = (37 * hash) + GAP_FIELD_NUMBER;
+ hash = (53 * hash) + getGap();
+ hash = (37 * hash) + DUPLICATE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getDuplicate());
+ hash = (37 * hash) + DUPLICATE_CORR_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getDuplicateCorr());
+ hash = (37 * hash) + REORDER_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getReorder());
+ hash = (37 * hash) + REORDER_CORR_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getReorderCorr());
+ hash = (37 * hash) + CORRUPT_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getCorrupt());
+ hash = (37 * hash) + CORRUPT_CORR_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getCorruptCorr());
+ if (hasParent()) {
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ }
+ if (hasHandle()) {
+ hash = (37 * hash) + HANDLE_FIELD_NUMBER;
+ hash = (53 * hash) + getHandle().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.Netem parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.Netem parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.Netem parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.Netem parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.Netem parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.Netem parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.Netem parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.Netem 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 pb.Chaosdaemon.Netem parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.Netem 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 pb.Chaosdaemon.Netem parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.Netem parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.Netem prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.Netem}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.Netem)
+ pb.Chaosdaemon.NetemOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_Netem_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_Netem_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.Netem.class, pb.Chaosdaemon.Netem.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.Netem.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ time_ = 0;
+
+ jitter_ = 0;
+
+ delayCorr_ = 0F;
+
+ limit_ = 0;
+
+ loss_ = 0F;
+
+ lossCorr_ = 0F;
+
+ gap_ = 0;
+
+ duplicate_ = 0F;
+
+ duplicateCorr_ = 0F;
+
+ reorder_ = 0F;
+
+ reorderCorr_ = 0F;
+
+ corrupt_ = 0F;
+
+ corruptCorr_ = 0F;
+
+ if (parentBuilder_ == null) {
+ parent_ = null;
+ } else {
+ parent_ = null;
+ parentBuilder_ = null;
+ }
+ if (handleBuilder_ == null) {
+ handle_ = null;
+ } else {
+ handle_ = null;
+ handleBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_Netem_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.Netem getDefaultInstanceForType() {
+ return pb.Chaosdaemon.Netem.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.Netem build() {
+ pb.Chaosdaemon.Netem result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.Netem buildPartial() {
+ pb.Chaosdaemon.Netem result = new pb.Chaosdaemon.Netem(this);
+ result.time_ = time_;
+ result.jitter_ = jitter_;
+ result.delayCorr_ = delayCorr_;
+ result.limit_ = limit_;
+ result.loss_ = loss_;
+ result.lossCorr_ = lossCorr_;
+ result.gap_ = gap_;
+ result.duplicate_ = duplicate_;
+ result.duplicateCorr_ = duplicateCorr_;
+ result.reorder_ = reorder_;
+ result.reorderCorr_ = reorderCorr_;
+ result.corrupt_ = corrupt_;
+ result.corruptCorr_ = corruptCorr_;
+ if (parentBuilder_ == null) {
+ result.parent_ = parent_;
+ } else {
+ result.parent_ = parentBuilder_.build();
+ }
+ if (handleBuilder_ == null) {
+ result.handle_ = handle_;
+ } else {
+ result.handle_ = handleBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.Netem) {
+ return mergeFrom((pb.Chaosdaemon.Netem)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.Netem other) {
+ if (other == pb.Chaosdaemon.Netem.getDefaultInstance()) return this;
+ if (other.getTime() != 0) {
+ setTime(other.getTime());
+ }
+ if (other.getJitter() != 0) {
+ setJitter(other.getJitter());
+ }
+ if (other.getDelayCorr() != 0F) {
+ setDelayCorr(other.getDelayCorr());
+ }
+ if (other.getLimit() != 0) {
+ setLimit(other.getLimit());
+ }
+ if (other.getLoss() != 0F) {
+ setLoss(other.getLoss());
+ }
+ if (other.getLossCorr() != 0F) {
+ setLossCorr(other.getLossCorr());
+ }
+ if (other.getGap() != 0) {
+ setGap(other.getGap());
+ }
+ if (other.getDuplicate() != 0F) {
+ setDuplicate(other.getDuplicate());
+ }
+ if (other.getDuplicateCorr() != 0F) {
+ setDuplicateCorr(other.getDuplicateCorr());
+ }
+ if (other.getReorder() != 0F) {
+ setReorder(other.getReorder());
+ }
+ if (other.getReorderCorr() != 0F) {
+ setReorderCorr(other.getReorderCorr());
+ }
+ if (other.getCorrupt() != 0F) {
+ setCorrupt(other.getCorrupt());
+ }
+ if (other.getCorruptCorr() != 0F) {
+ setCorruptCorr(other.getCorruptCorr());
+ }
+ if (other.hasParent()) {
+ mergeParent(other.getParent());
+ }
+ if (other.hasHandle()) {
+ mergeHandle(other.getHandle());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.Netem parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.Netem) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int time_ ;
+ /**
+ * uint32 time = 1;
+ * @return The time.
+ */
+ @java.lang.Override
+ public int getTime() {
+ return time_;
+ }
+ /**
+ * uint32 time = 1;
+ * @param value The time to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTime(int value) {
+
+ time_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 time = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearTime() {
+
+ time_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int jitter_ ;
+ /**
+ * uint32 jitter = 2;
+ * @return The jitter.
+ */
+ @java.lang.Override
+ public int getJitter() {
+ return jitter_;
+ }
+ /**
+ * uint32 jitter = 2;
+ * @param value The jitter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setJitter(int value) {
+
+ jitter_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 jitter = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearJitter() {
+
+ jitter_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private float delayCorr_ ;
+ /**
+ * float delay_corr = 3;
+ * @return The delayCorr.
+ */
+ @java.lang.Override
+ public float getDelayCorr() {
+ return delayCorr_;
+ }
+ /**
+ * float delay_corr = 3;
+ * @param value The delayCorr to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDelayCorr(float value) {
+
+ delayCorr_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * float delay_corr = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearDelayCorr() {
+
+ delayCorr_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private int limit_ ;
+ /**
+ * uint32 limit = 4;
+ * @return The limit.
+ */
+ @java.lang.Override
+ public int getLimit() {
+ return limit_;
+ }
+ /**
+ * uint32 limit = 4;
+ * @param value The limit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLimit(int value) {
+
+ limit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 limit = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearLimit() {
+
+ limit_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private float loss_ ;
+ /**
+ * float loss = 5;
+ * @return The loss.
+ */
+ @java.lang.Override
+ public float getLoss() {
+ return loss_;
+ }
+ /**
+ * float loss = 5;
+ * @param value The loss to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLoss(float value) {
+
+ loss_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * float loss = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearLoss() {
+
+ loss_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private float lossCorr_ ;
+ /**
+ * float loss_corr = 6;
+ * @return The lossCorr.
+ */
+ @java.lang.Override
+ public float getLossCorr() {
+ return lossCorr_;
+ }
+ /**
+ * float loss_corr = 6;
+ * @param value The lossCorr to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLossCorr(float value) {
+
+ lossCorr_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * float loss_corr = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearLossCorr() {
+
+ lossCorr_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private int gap_ ;
+ /**
+ * uint32 gap = 7;
+ * @return The gap.
+ */
+ @java.lang.Override
+ public int getGap() {
+ return gap_;
+ }
+ /**
+ * uint32 gap = 7;
+ * @param value The gap to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGap(int value) {
+
+ gap_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 gap = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearGap() {
+
+ gap_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private float duplicate_ ;
+ /**
+ * float duplicate = 8;
+ * @return The duplicate.
+ */
+ @java.lang.Override
+ public float getDuplicate() {
+ return duplicate_;
+ }
+ /**
+ * float duplicate = 8;
+ * @param value The duplicate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDuplicate(float value) {
+
+ duplicate_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * float duplicate = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearDuplicate() {
+
+ duplicate_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private float duplicateCorr_ ;
+ /**
+ * float duplicate_corr = 9;
+ * @return The duplicateCorr.
+ */
+ @java.lang.Override
+ public float getDuplicateCorr() {
+ return duplicateCorr_;
+ }
+ /**
+ * float duplicate_corr = 9;
+ * @param value The duplicateCorr to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDuplicateCorr(float value) {
+
+ duplicateCorr_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * float duplicate_corr = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearDuplicateCorr() {
+
+ duplicateCorr_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private float reorder_ ;
+ /**
+ * float reorder = 10;
+ * @return The reorder.
+ */
+ @java.lang.Override
+ public float getReorder() {
+ return reorder_;
+ }
+ /**
+ * float reorder = 10;
+ * @param value The reorder to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReorder(float value) {
+
+ reorder_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * float reorder = 10;
+ * @return This builder for chaining.
+ */
+ public Builder clearReorder() {
+
+ reorder_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private float reorderCorr_ ;
+ /**
+ * float reorder_corr = 11;
+ * @return The reorderCorr.
+ */
+ @java.lang.Override
+ public float getReorderCorr() {
+ return reorderCorr_;
+ }
+ /**
+ * float reorder_corr = 11;
+ * @param value The reorderCorr to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReorderCorr(float value) {
+
+ reorderCorr_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * float reorder_corr = 11;
+ * @return This builder for chaining.
+ */
+ public Builder clearReorderCorr() {
+
+ reorderCorr_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private float corrupt_ ;
+ /**
+ * float corrupt = 12;
+ * @return The corrupt.
+ */
+ @java.lang.Override
+ public float getCorrupt() {
+ return corrupt_;
+ }
+ /**
+ * float corrupt = 12;
+ * @param value The corrupt to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCorrupt(float value) {
+
+ corrupt_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * float corrupt = 12;
+ * @return This builder for chaining.
+ */
+ public Builder clearCorrupt() {
+
+ corrupt_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private float corruptCorr_ ;
+ /**
+ * float corrupt_corr = 13;
+ * @return The corruptCorr.
+ */
+ @java.lang.Override
+ public float getCorruptCorr() {
+ return corruptCorr_;
+ }
+ /**
+ * float corrupt_corr = 13;
+ * @param value The corruptCorr to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCorruptCorr(float value) {
+
+ corruptCorr_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * float corrupt_corr = 13;
+ * @return This builder for chaining.
+ */
+ public Builder clearCorruptCorr() {
+
+ corruptCorr_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private pb.Chaosdaemon.TcHandle parent_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder> parentBuilder_;
+ /**
+ * .pb.TcHandle parent = 14;
+ * @return Whether the parent field is set.
+ */
+ public boolean hasParent() {
+ return parentBuilder_ != null || parent_ != null;
+ }
+ /**
+ * .pb.TcHandle parent = 14;
+ * @return The parent.
+ */
+ public pb.Chaosdaemon.TcHandle getParent() {
+ if (parentBuilder_ == null) {
+ return parent_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ } else {
+ return parentBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.TcHandle parent = 14;
+ */
+ public Builder setParent(pb.Chaosdaemon.TcHandle value) {
+ if (parentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ onChanged();
+ } else {
+ parentBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 14;
+ */
+ public Builder setParent(
+ pb.Chaosdaemon.TcHandle.Builder builderForValue) {
+ if (parentBuilder_ == null) {
+ parent_ = builderForValue.build();
+ onChanged();
+ } else {
+ parentBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 14;
+ */
+ public Builder mergeParent(pb.Chaosdaemon.TcHandle value) {
+ if (parentBuilder_ == null) {
+ if (parent_ != null) {
+ parent_ =
+ pb.Chaosdaemon.TcHandle.newBuilder(parent_).mergeFrom(value).buildPartial();
+ } else {
+ parent_ = value;
+ }
+ onChanged();
+ } else {
+ parentBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 14;
+ */
+ public Builder clearParent() {
+ if (parentBuilder_ == null) {
+ parent_ = null;
+ onChanged();
+ } else {
+ parent_ = null;
+ parentBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 14;
+ */
+ public pb.Chaosdaemon.TcHandle.Builder getParentBuilder() {
+
+ onChanged();
+ return getParentFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.TcHandle parent = 14;
+ */
+ public pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder() {
+ if (parentBuilder_ != null) {
+ return parentBuilder_.getMessageOrBuilder();
+ } else {
+ return parent_ == null ?
+ pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ }
+ }
+ /**
+ * .pb.TcHandle parent = 14;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>
+ getParentFieldBuilder() {
+ if (parentBuilder_ == null) {
+ parentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>(
+ getParent(),
+ getParentForChildren(),
+ isClean());
+ parent_ = null;
+ }
+ return parentBuilder_;
+ }
+
+ private pb.Chaosdaemon.TcHandle handle_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder> handleBuilder_;
+ /**
+ * .pb.TcHandle handle = 15;
+ * @return Whether the handle field is set.
+ */
+ public boolean hasHandle() {
+ return handleBuilder_ != null || handle_ != null;
+ }
+ /**
+ * .pb.TcHandle handle = 15;
+ * @return The handle.
+ */
+ public pb.Chaosdaemon.TcHandle getHandle() {
+ if (handleBuilder_ == null) {
+ return handle_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : handle_;
+ } else {
+ return handleBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.TcHandle handle = 15;
+ */
+ public Builder setHandle(pb.Chaosdaemon.TcHandle value) {
+ if (handleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ handle_ = value;
+ onChanged();
+ } else {
+ handleBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle handle = 15;
+ */
+ public Builder setHandle(
+ pb.Chaosdaemon.TcHandle.Builder builderForValue) {
+ if (handleBuilder_ == null) {
+ handle_ = builderForValue.build();
+ onChanged();
+ } else {
+ handleBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle handle = 15;
+ */
+ public Builder mergeHandle(pb.Chaosdaemon.TcHandle value) {
+ if (handleBuilder_ == null) {
+ if (handle_ != null) {
+ handle_ =
+ pb.Chaosdaemon.TcHandle.newBuilder(handle_).mergeFrom(value).buildPartial();
+ } else {
+ handle_ = value;
+ }
+ onChanged();
+ } else {
+ handleBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle handle = 15;
+ */
+ public Builder clearHandle() {
+ if (handleBuilder_ == null) {
+ handle_ = null;
+ onChanged();
+ } else {
+ handle_ = null;
+ handleBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle handle = 15;
+ */
+ public pb.Chaosdaemon.TcHandle.Builder getHandleBuilder() {
+
+ onChanged();
+ return getHandleFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.TcHandle handle = 15;
+ */
+ public pb.Chaosdaemon.TcHandleOrBuilder getHandleOrBuilder() {
+ if (handleBuilder_ != null) {
+ return handleBuilder_.getMessageOrBuilder();
+ } else {
+ return handle_ == null ?
+ pb.Chaosdaemon.TcHandle.getDefaultInstance() : handle_;
+ }
+ }
+ /**
+ * .pb.TcHandle handle = 15;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>
+ getHandleFieldBuilder() {
+ if (handleBuilder_ == null) {
+ handleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>(
+ getHandle(),
+ getParentForChildren(),
+ isClean());
+ handle_ = null;
+ }
+ return handleBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.Netem)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.Netem)
+ private static final pb.Chaosdaemon.Netem DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.Netem();
+ }
+
+ public static pb.Chaosdaemon.Netem getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Netem parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Netem(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.Netem getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface TbfRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.TbfRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .pb.Tbf tbf = 1;
+ * @return Whether the tbf field is set.
+ */
+ boolean hasTbf();
+ /**
+ * .pb.Tbf tbf = 1;
+ * @return The tbf.
+ */
+ pb.Chaosdaemon.Tbf getTbf();
+ /**
+ * .pb.Tbf tbf = 1;
+ */
+ pb.Chaosdaemon.TbfOrBuilder getTbfOrBuilder();
+
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ java.lang.String getContainerId();
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ com.google.protobuf.ByteString
+ getContainerIdBytes();
+ }
+ /**
+ * Protobuf type {@code pb.TbfRequest}
+ */
+ public static final class TbfRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.TbfRequest)
+ TbfRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TbfRequest.newBuilder() to construct.
+ private TbfRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TbfRequest() {
+ containerId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TbfRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TbfRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ pb.Chaosdaemon.Tbf.Builder subBuilder = null;
+ if (tbf_ != null) {
+ subBuilder = tbf_.toBuilder();
+ }
+ tbf_ = input.readMessage(pb.Chaosdaemon.Tbf.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(tbf_);
+ tbf_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ containerId_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_TbfRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_TbfRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.TbfRequest.class, pb.Chaosdaemon.TbfRequest.Builder.class);
+ }
+
+ public static final int TBF_FIELD_NUMBER = 1;
+ private pb.Chaosdaemon.Tbf tbf_;
+ /**
+ * .pb.Tbf tbf = 1;
+ * @return Whether the tbf field is set.
+ */
+ @java.lang.Override
+ public boolean hasTbf() {
+ return tbf_ != null;
+ }
+ /**
+ * .pb.Tbf tbf = 1;
+ * @return The tbf.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.Tbf getTbf() {
+ return tbf_ == null ? pb.Chaosdaemon.Tbf.getDefaultInstance() : tbf_;
+ }
+ /**
+ * .pb.Tbf tbf = 1;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TbfOrBuilder getTbfOrBuilder() {
+ return getTbf();
+ }
+
+ public static final int CONTAINER_ID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object containerId_;
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ @java.lang.Override
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ 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();
+ containerId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (tbf_ != null) {
+ output.writeMessage(1, getTbf());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (tbf_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getTbf());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerId_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.TbfRequest)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.TbfRequest other = (pb.Chaosdaemon.TbfRequest) obj;
+
+ if (hasTbf() != other.hasTbf()) return false;
+ if (hasTbf()) {
+ if (!getTbf()
+ .equals(other.getTbf())) return false;
+ }
+ if (!getContainerId()
+ .equals(other.getContainerId())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTbf()) {
+ hash = (37 * hash) + TBF_FIELD_NUMBER;
+ hash = (53 * hash) + getTbf().hashCode();
+ }
+ hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getContainerId().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.TbfRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.TbfRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.TbfRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.TbfRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.TbfRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.TbfRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.TbfRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.TbfRequest 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 pb.Chaosdaemon.TbfRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.TbfRequest 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 pb.Chaosdaemon.TbfRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.TbfRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.TbfRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.TbfRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.TbfRequest)
+ pb.Chaosdaemon.TbfRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_TbfRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_TbfRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.TbfRequest.class, pb.Chaosdaemon.TbfRequest.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.TbfRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (tbfBuilder_ == null) {
+ tbf_ = null;
+ } else {
+ tbf_ = null;
+ tbfBuilder_ = null;
+ }
+ containerId_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_TbfRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TbfRequest getDefaultInstanceForType() {
+ return pb.Chaosdaemon.TbfRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TbfRequest build() {
+ pb.Chaosdaemon.TbfRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TbfRequest buildPartial() {
+ pb.Chaosdaemon.TbfRequest result = new pb.Chaosdaemon.TbfRequest(this);
+ if (tbfBuilder_ == null) {
+ result.tbf_ = tbf_;
+ } else {
+ result.tbf_ = tbfBuilder_.build();
+ }
+ result.containerId_ = containerId_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.TbfRequest) {
+ return mergeFrom((pb.Chaosdaemon.TbfRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.TbfRequest other) {
+ if (other == pb.Chaosdaemon.TbfRequest.getDefaultInstance()) return this;
+ if (other.hasTbf()) {
+ mergeTbf(other.getTbf());
+ }
+ if (!other.getContainerId().isEmpty()) {
+ containerId_ = other.containerId_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.TbfRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.TbfRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private pb.Chaosdaemon.Tbf tbf_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.Tbf, pb.Chaosdaemon.Tbf.Builder, pb.Chaosdaemon.TbfOrBuilder> tbfBuilder_;
+ /**
+ * .pb.Tbf tbf = 1;
+ * @return Whether the tbf field is set.
+ */
+ public boolean hasTbf() {
+ return tbfBuilder_ != null || tbf_ != null;
+ }
+ /**
+ * .pb.Tbf tbf = 1;
+ * @return The tbf.
+ */
+ public pb.Chaosdaemon.Tbf getTbf() {
+ if (tbfBuilder_ == null) {
+ return tbf_ == null ? pb.Chaosdaemon.Tbf.getDefaultInstance() : tbf_;
+ } else {
+ return tbfBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.Tbf tbf = 1;
+ */
+ public Builder setTbf(pb.Chaosdaemon.Tbf value) {
+ if (tbfBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tbf_ = value;
+ onChanged();
+ } else {
+ tbfBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.Tbf tbf = 1;
+ */
+ public Builder setTbf(
+ pb.Chaosdaemon.Tbf.Builder builderForValue) {
+ if (tbfBuilder_ == null) {
+ tbf_ = builderForValue.build();
+ onChanged();
+ } else {
+ tbfBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.Tbf tbf = 1;
+ */
+ public Builder mergeTbf(pb.Chaosdaemon.Tbf value) {
+ if (tbfBuilder_ == null) {
+ if (tbf_ != null) {
+ tbf_ =
+ pb.Chaosdaemon.Tbf.newBuilder(tbf_).mergeFrom(value).buildPartial();
+ } else {
+ tbf_ = value;
+ }
+ onChanged();
+ } else {
+ tbfBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.Tbf tbf = 1;
+ */
+ public Builder clearTbf() {
+ if (tbfBuilder_ == null) {
+ tbf_ = null;
+ onChanged();
+ } else {
+ tbf_ = null;
+ tbfBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.Tbf tbf = 1;
+ */
+ public pb.Chaosdaemon.Tbf.Builder getTbfBuilder() {
+
+ onChanged();
+ return getTbfFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.Tbf tbf = 1;
+ */
+ public pb.Chaosdaemon.TbfOrBuilder getTbfOrBuilder() {
+ if (tbfBuilder_ != null) {
+ return tbfBuilder_.getMessageOrBuilder();
+ } else {
+ return tbf_ == null ?
+ pb.Chaosdaemon.Tbf.getDefaultInstance() : tbf_;
+ }
+ }
+ /**
+ * .pb.Tbf tbf = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.Tbf, pb.Chaosdaemon.Tbf.Builder, pb.Chaosdaemon.TbfOrBuilder>
+ getTbfFieldBuilder() {
+ if (tbfBuilder_ == null) {
+ tbfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.Tbf, pb.Chaosdaemon.Tbf.Builder, pb.Chaosdaemon.TbfOrBuilder>(
+ getTbf(),
+ getParentForChildren(),
+ isClean());
+ tbf_ = null;
+ }
+ return tbfBuilder_;
+ }
+
+ private java.lang.Object containerId_ = "";
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ containerId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @param value The containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearContainerId() {
+
+ containerId_ = getDefaultInstance().getContainerId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @param value The bytes for containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.TbfRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.TbfRequest)
+ private static final pb.Chaosdaemon.TbfRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.TbfRequest();
+ }
+
+ public static pb.Chaosdaemon.TbfRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TbfRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new TbfRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TbfRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface TbfOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.Tbf)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * uint64 rate = 1;
+ * @return The rate.
+ */
+ long getRate();
+
+ /**
+ * uint32 limit = 2;
+ * @return The limit.
+ */
+ int getLimit();
+
+ /**
+ * uint32 buffer = 3;
+ * @return The buffer.
+ */
+ int getBuffer();
+
+ /**
+ * uint64 peak_rate = 4;
+ * @return The peakRate.
+ */
+ long getPeakRate();
+
+ /**
+ * uint32 min_burst = 5;
+ * @return The minBurst.
+ */
+ int getMinBurst();
+ }
+ /**
+ * Protobuf type {@code pb.Tbf}
+ */
+ public static final class Tbf extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.Tbf)
+ TbfOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Tbf.newBuilder() to construct.
+ private Tbf(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Tbf() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Tbf();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Tbf(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ rate_ = input.readUInt64();
+ break;
+ }
+ case 16: {
+
+ limit_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ buffer_ = input.readUInt32();
+ break;
+ }
+ case 32: {
+
+ peakRate_ = input.readUInt64();
+ break;
+ }
+ case 40: {
+
+ minBurst_ = input.readUInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_Tbf_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_Tbf_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.Tbf.class, pb.Chaosdaemon.Tbf.Builder.class);
+ }
+
+ public static final int RATE_FIELD_NUMBER = 1;
+ private long rate_;
+ /**
+ * uint64 rate = 1;
+ * @return The rate.
+ */
+ @java.lang.Override
+ public long getRate() {
+ return rate_;
+ }
+
+ public static final int LIMIT_FIELD_NUMBER = 2;
+ private int limit_;
+ /**
+ * uint32 limit = 2;
+ * @return The limit.
+ */
+ @java.lang.Override
+ public int getLimit() {
+ return limit_;
+ }
+
+ public static final int BUFFER_FIELD_NUMBER = 3;
+ private int buffer_;
+ /**
+ * uint32 buffer = 3;
+ * @return The buffer.
+ */
+ @java.lang.Override
+ public int getBuffer() {
+ return buffer_;
+ }
+
+ public static final int PEAK_RATE_FIELD_NUMBER = 4;
+ private long peakRate_;
+ /**
+ * uint64 peak_rate = 4;
+ * @return The peakRate.
+ */
+ @java.lang.Override
+ public long getPeakRate() {
+ return peakRate_;
+ }
+
+ public static final int MIN_BURST_FIELD_NUMBER = 5;
+ private int minBurst_;
+ /**
+ * uint32 min_burst = 5;
+ * @return The minBurst.
+ */
+ @java.lang.Override
+ public int getMinBurst() {
+ return minBurst_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (rate_ != 0L) {
+ output.writeUInt64(1, rate_);
+ }
+ if (limit_ != 0) {
+ output.writeUInt32(2, limit_);
+ }
+ if (buffer_ != 0) {
+ output.writeUInt32(3, buffer_);
+ }
+ if (peakRate_ != 0L) {
+ output.writeUInt64(4, peakRate_);
+ }
+ if (minBurst_ != 0) {
+ output.writeUInt32(5, minBurst_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (rate_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, rate_);
+ }
+ if (limit_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, limit_);
+ }
+ if (buffer_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(3, buffer_);
+ }
+ if (peakRate_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(4, peakRate_);
+ }
+ if (minBurst_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(5, minBurst_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.Tbf)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.Tbf other = (pb.Chaosdaemon.Tbf) obj;
+
+ if (getRate()
+ != other.getRate()) return false;
+ if (getLimit()
+ != other.getLimit()) return false;
+ if (getBuffer()
+ != other.getBuffer()) return false;
+ if (getPeakRate()
+ != other.getPeakRate()) return false;
+ if (getMinBurst()
+ != other.getMinBurst()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RATE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRate());
+ hash = (37 * hash) + LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + getLimit();
+ hash = (37 * hash) + BUFFER_FIELD_NUMBER;
+ hash = (53 * hash) + getBuffer();
+ hash = (37 * hash) + PEAK_RATE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPeakRate());
+ hash = (37 * hash) + MIN_BURST_FIELD_NUMBER;
+ hash = (53 * hash) + getMinBurst();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.Tbf parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.Tbf parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.Tbf parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.Tbf parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.Tbf parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.Tbf parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.Tbf parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.Tbf 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 pb.Chaosdaemon.Tbf parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.Tbf 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 pb.Chaosdaemon.Tbf parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.Tbf parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.Tbf prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.Tbf}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.Tbf)
+ pb.Chaosdaemon.TbfOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_Tbf_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_Tbf_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.Tbf.class, pb.Chaosdaemon.Tbf.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.Tbf.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ rate_ = 0L;
+
+ limit_ = 0;
+
+ buffer_ = 0;
+
+ peakRate_ = 0L;
+
+ minBurst_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_Tbf_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.Tbf getDefaultInstanceForType() {
+ return pb.Chaosdaemon.Tbf.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.Tbf build() {
+ pb.Chaosdaemon.Tbf result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.Tbf buildPartial() {
+ pb.Chaosdaemon.Tbf result = new pb.Chaosdaemon.Tbf(this);
+ result.rate_ = rate_;
+ result.limit_ = limit_;
+ result.buffer_ = buffer_;
+ result.peakRate_ = peakRate_;
+ result.minBurst_ = minBurst_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.Tbf) {
+ return mergeFrom((pb.Chaosdaemon.Tbf)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.Tbf other) {
+ if (other == pb.Chaosdaemon.Tbf.getDefaultInstance()) return this;
+ if (other.getRate() != 0L) {
+ setRate(other.getRate());
+ }
+ if (other.getLimit() != 0) {
+ setLimit(other.getLimit());
+ }
+ if (other.getBuffer() != 0) {
+ setBuffer(other.getBuffer());
+ }
+ if (other.getPeakRate() != 0L) {
+ setPeakRate(other.getPeakRate());
+ }
+ if (other.getMinBurst() != 0) {
+ setMinBurst(other.getMinBurst());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.Tbf parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.Tbf) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private long rate_ ;
+ /**
+ * uint64 rate = 1;
+ * @return The rate.
+ */
+ @java.lang.Override
+ public long getRate() {
+ return rate_;
+ }
+ /**
+ * uint64 rate = 1;
+ * @param value The rate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRate(long value) {
+
+ rate_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint64 rate = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRate() {
+
+ rate_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private int limit_ ;
+ /**
+ * uint32 limit = 2;
+ * @return The limit.
+ */
+ @java.lang.Override
+ public int getLimit() {
+ return limit_;
+ }
+ /**
+ * uint32 limit = 2;
+ * @param value The limit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLimit(int value) {
+
+ limit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 limit = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearLimit() {
+
+ limit_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int buffer_ ;
+ /**
+ * uint32 buffer = 3;
+ * @return The buffer.
+ */
+ @java.lang.Override
+ public int getBuffer() {
+ return buffer_;
+ }
+ /**
+ * uint32 buffer = 3;
+ * @param value The buffer to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBuffer(int value) {
+
+ buffer_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 buffer = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearBuffer() {
+
+ buffer_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long peakRate_ ;
+ /**
+ * uint64 peak_rate = 4;
+ * @return The peakRate.
+ */
+ @java.lang.Override
+ public long getPeakRate() {
+ return peakRate_;
+ }
+ /**
+ * uint64 peak_rate = 4;
+ * @param value The peakRate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPeakRate(long value) {
+
+ peakRate_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint64 peak_rate = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearPeakRate() {
+
+ peakRate_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private int minBurst_ ;
+ /**
+ * uint32 min_burst = 5;
+ * @return The minBurst.
+ */
+ @java.lang.Override
+ public int getMinBurst() {
+ return minBurst_;
+ }
+ /**
+ * uint32 min_burst = 5;
+ * @param value The minBurst to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinBurst(int value) {
+
+ minBurst_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 min_burst = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearMinBurst() {
+
+ minBurst_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.Tbf)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.Tbf)
+ private static final pb.Chaosdaemon.Tbf DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.Tbf();
+ }
+
+ public static pb.Chaosdaemon.Tbf getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Tbf parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Tbf(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.Tbf getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface QdiscRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.QdiscRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .pb.Qdisc qdisc = 1;
+ * @return Whether the qdisc field is set.
+ */
+ boolean hasQdisc();
+ /**
+ * .pb.Qdisc qdisc = 1;
+ * @return The qdisc.
+ */
+ pb.Chaosdaemon.Qdisc getQdisc();
+ /**
+ * .pb.Qdisc qdisc = 1;
+ */
+ pb.Chaosdaemon.QdiscOrBuilder getQdiscOrBuilder();
+
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ java.lang.String getContainerId();
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ com.google.protobuf.ByteString
+ getContainerIdBytes();
+ }
+ /**
+ * Protobuf type {@code pb.QdiscRequest}
+ */
+ public static final class QdiscRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.QdiscRequest)
+ QdiscRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use QdiscRequest.newBuilder() to construct.
+ private QdiscRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private QdiscRequest() {
+ containerId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new QdiscRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private QdiscRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ pb.Chaosdaemon.Qdisc.Builder subBuilder = null;
+ if (qdisc_ != null) {
+ subBuilder = qdisc_.toBuilder();
+ }
+ qdisc_ = input.readMessage(pb.Chaosdaemon.Qdisc.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(qdisc_);
+ qdisc_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ containerId_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_QdiscRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_QdiscRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.QdiscRequest.class, pb.Chaosdaemon.QdiscRequest.Builder.class);
+ }
+
+ public static final int QDISC_FIELD_NUMBER = 1;
+ private pb.Chaosdaemon.Qdisc qdisc_;
+ /**
+ * .pb.Qdisc qdisc = 1;
+ * @return Whether the qdisc field is set.
+ */
+ @java.lang.Override
+ public boolean hasQdisc() {
+ return qdisc_ != null;
+ }
+ /**
+ * .pb.Qdisc qdisc = 1;
+ * @return The qdisc.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.Qdisc getQdisc() {
+ return qdisc_ == null ? pb.Chaosdaemon.Qdisc.getDefaultInstance() : qdisc_;
+ }
+ /**
+ * .pb.Qdisc qdisc = 1;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.QdiscOrBuilder getQdiscOrBuilder() {
+ return getQdisc();
+ }
+
+ public static final int CONTAINER_ID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object containerId_;
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ @java.lang.Override
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ 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();
+ containerId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (qdisc_ != null) {
+ output.writeMessage(1, getQdisc());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (qdisc_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getQdisc());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerId_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.QdiscRequest)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.QdiscRequest other = (pb.Chaosdaemon.QdiscRequest) obj;
+
+ if (hasQdisc() != other.hasQdisc()) return false;
+ if (hasQdisc()) {
+ if (!getQdisc()
+ .equals(other.getQdisc())) return false;
+ }
+ if (!getContainerId()
+ .equals(other.getContainerId())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasQdisc()) {
+ hash = (37 * hash) + QDISC_FIELD_NUMBER;
+ hash = (53 * hash) + getQdisc().hashCode();
+ }
+ hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getContainerId().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.QdiscRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.QdiscRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.QdiscRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.QdiscRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.QdiscRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.QdiscRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.QdiscRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.QdiscRequest 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 pb.Chaosdaemon.QdiscRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.QdiscRequest 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 pb.Chaosdaemon.QdiscRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.QdiscRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.QdiscRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.QdiscRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.QdiscRequest)
+ pb.Chaosdaemon.QdiscRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_QdiscRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_QdiscRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.QdiscRequest.class, pb.Chaosdaemon.QdiscRequest.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.QdiscRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (qdiscBuilder_ == null) {
+ qdisc_ = null;
+ } else {
+ qdisc_ = null;
+ qdiscBuilder_ = null;
+ }
+ containerId_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_QdiscRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.QdiscRequest getDefaultInstanceForType() {
+ return pb.Chaosdaemon.QdiscRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.QdiscRequest build() {
+ pb.Chaosdaemon.QdiscRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.QdiscRequest buildPartial() {
+ pb.Chaosdaemon.QdiscRequest result = new pb.Chaosdaemon.QdiscRequest(this);
+ if (qdiscBuilder_ == null) {
+ result.qdisc_ = qdisc_;
+ } else {
+ result.qdisc_ = qdiscBuilder_.build();
+ }
+ result.containerId_ = containerId_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.QdiscRequest) {
+ return mergeFrom((pb.Chaosdaemon.QdiscRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.QdiscRequest other) {
+ if (other == pb.Chaosdaemon.QdiscRequest.getDefaultInstance()) return this;
+ if (other.hasQdisc()) {
+ mergeQdisc(other.getQdisc());
+ }
+ if (!other.getContainerId().isEmpty()) {
+ containerId_ = other.containerId_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.QdiscRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.QdiscRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private pb.Chaosdaemon.Qdisc qdisc_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.Qdisc, pb.Chaosdaemon.Qdisc.Builder, pb.Chaosdaemon.QdiscOrBuilder> qdiscBuilder_;
+ /**
+ * .pb.Qdisc qdisc = 1;
+ * @return Whether the qdisc field is set.
+ */
+ public boolean hasQdisc() {
+ return qdiscBuilder_ != null || qdisc_ != null;
+ }
+ /**
+ * .pb.Qdisc qdisc = 1;
+ * @return The qdisc.
+ */
+ public pb.Chaosdaemon.Qdisc getQdisc() {
+ if (qdiscBuilder_ == null) {
+ return qdisc_ == null ? pb.Chaosdaemon.Qdisc.getDefaultInstance() : qdisc_;
+ } else {
+ return qdiscBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.Qdisc qdisc = 1;
+ */
+ public Builder setQdisc(pb.Chaosdaemon.Qdisc value) {
+ if (qdiscBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ qdisc_ = value;
+ onChanged();
+ } else {
+ qdiscBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.Qdisc qdisc = 1;
+ */
+ public Builder setQdisc(
+ pb.Chaosdaemon.Qdisc.Builder builderForValue) {
+ if (qdiscBuilder_ == null) {
+ qdisc_ = builderForValue.build();
+ onChanged();
+ } else {
+ qdiscBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.Qdisc qdisc = 1;
+ */
+ public Builder mergeQdisc(pb.Chaosdaemon.Qdisc value) {
+ if (qdiscBuilder_ == null) {
+ if (qdisc_ != null) {
+ qdisc_ =
+ pb.Chaosdaemon.Qdisc.newBuilder(qdisc_).mergeFrom(value).buildPartial();
+ } else {
+ qdisc_ = value;
+ }
+ onChanged();
+ } else {
+ qdiscBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.Qdisc qdisc = 1;
+ */
+ public Builder clearQdisc() {
+ if (qdiscBuilder_ == null) {
+ qdisc_ = null;
+ onChanged();
+ } else {
+ qdisc_ = null;
+ qdiscBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.Qdisc qdisc = 1;
+ */
+ public pb.Chaosdaemon.Qdisc.Builder getQdiscBuilder() {
+
+ onChanged();
+ return getQdiscFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.Qdisc qdisc = 1;
+ */
+ public pb.Chaosdaemon.QdiscOrBuilder getQdiscOrBuilder() {
+ if (qdiscBuilder_ != null) {
+ return qdiscBuilder_.getMessageOrBuilder();
+ } else {
+ return qdisc_ == null ?
+ pb.Chaosdaemon.Qdisc.getDefaultInstance() : qdisc_;
+ }
+ }
+ /**
+ * .pb.Qdisc qdisc = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.Qdisc, pb.Chaosdaemon.Qdisc.Builder, pb.Chaosdaemon.QdiscOrBuilder>
+ getQdiscFieldBuilder() {
+ if (qdiscBuilder_ == null) {
+ qdiscBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.Qdisc, pb.Chaosdaemon.Qdisc.Builder, pb.Chaosdaemon.QdiscOrBuilder>(
+ getQdisc(),
+ getParentForChildren(),
+ isClean());
+ qdisc_ = null;
+ }
+ return qdiscBuilder_;
+ }
+
+ private java.lang.Object containerId_ = "";
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ containerId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @param value The containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearContainerId() {
+
+ containerId_ = getDefaultInstance().getContainerId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @param value The bytes for containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.QdiscRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.QdiscRequest)
+ private static final pb.Chaosdaemon.QdiscRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.QdiscRequest();
+ }
+
+ public static pb.Chaosdaemon.QdiscRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public QdiscRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new QdiscRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.QdiscRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface QdiscOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.Qdisc)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .pb.TcHandle parent = 1;
+ * @return Whether the parent field is set.
+ */
+ boolean hasParent();
+ /**
+ * .pb.TcHandle parent = 1;
+ * @return The parent.
+ */
+ pb.Chaosdaemon.TcHandle getParent();
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder();
+
+ /**
+ * .pb.TcHandle handle = 2;
+ * @return Whether the handle field is set.
+ */
+ boolean hasHandle();
+ /**
+ * .pb.TcHandle handle = 2;
+ * @return The handle.
+ */
+ pb.Chaosdaemon.TcHandle getHandle();
+ /**
+ * .pb.TcHandle handle = 2;
+ */
+ pb.Chaosdaemon.TcHandleOrBuilder getHandleOrBuilder();
+
+ /**
+ * string type = 3;
+ * @return The type.
+ */
+ java.lang.String getType();
+ /**
+ * string type = 3;
+ * @return The bytes for type.
+ */
+ com.google.protobuf.ByteString
+ getTypeBytes();
+
+ /**
+ * repeated string args = 4;
+ * @return A list containing the args.
+ */
+ java.util.List
+ getArgsList();
+ /**
+ * repeated string args = 4;
+ * @return The count of args.
+ */
+ int getArgsCount();
+ /**
+ * repeated string args = 4;
+ * @param index The index of the element to return.
+ * @return The args at the given index.
+ */
+ java.lang.String getArgs(int index);
+ /**
+ * repeated string args = 4;
+ * @param index The index of the value to return.
+ * @return The bytes of the args at the given index.
+ */
+ com.google.protobuf.ByteString
+ getArgsBytes(int index);
+ }
+ /**
+ * Protobuf type {@code pb.Qdisc}
+ */
+ public static final class Qdisc extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.Qdisc)
+ QdiscOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Qdisc.newBuilder() to construct.
+ private Qdisc(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Qdisc() {
+ type_ = "";
+ args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Qdisc();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Qdisc(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ pb.Chaosdaemon.TcHandle.Builder subBuilder = null;
+ if (parent_ != null) {
+ subBuilder = parent_.toBuilder();
+ }
+ parent_ = input.readMessage(pb.Chaosdaemon.TcHandle.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(parent_);
+ parent_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ pb.Chaosdaemon.TcHandle.Builder subBuilder = null;
+ if (handle_ != null) {
+ subBuilder = handle_.toBuilder();
+ }
+ handle_ = input.readMessage(pb.Chaosdaemon.TcHandle.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(handle_);
+ handle_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ type_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ args_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ args_.add(s);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ args_ = args_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_Qdisc_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_Qdisc_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.Qdisc.class, pb.Chaosdaemon.Qdisc.Builder.class);
+ }
+
+ public static final int PARENT_FIELD_NUMBER = 1;
+ private pb.Chaosdaemon.TcHandle parent_;
+ /**
+ * .pb.TcHandle parent = 1;
+ * @return Whether the parent field is set.
+ */
+ @java.lang.Override
+ public boolean hasParent() {
+ return parent_ != null;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ * @return The parent.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle getParent() {
+ return parent_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder() {
+ return getParent();
+ }
+
+ public static final int HANDLE_FIELD_NUMBER = 2;
+ private pb.Chaosdaemon.TcHandle handle_;
+ /**
+ * .pb.TcHandle handle = 2;
+ * @return Whether the handle field is set.
+ */
+ @java.lang.Override
+ public boolean hasHandle() {
+ return handle_ != null;
+ }
+ /**
+ * .pb.TcHandle handle = 2;
+ * @return The handle.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle getHandle() {
+ return handle_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : handle_;
+ }
+ /**
+ * .pb.TcHandle handle = 2;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandleOrBuilder getHandleOrBuilder() {
+ return getHandle();
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object type_;
+ /**
+ * string type = 3;
+ * @return The type.
+ */
+ @java.lang.Override
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ 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();
+ type_ = s;
+ return s;
+ }
+ }
+ /**
+ * string type = 3;
+ * @return The bytes for type.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ARGS_FIELD_NUMBER = 4;
+ private com.google.protobuf.LazyStringList args_;
+ /**
+ * repeated string args = 4;
+ * @return A list containing the args.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getArgsList() {
+ return args_;
+ }
+ /**
+ * repeated string args = 4;
+ * @return The count of args.
+ */
+ public int getArgsCount() {
+ return args_.size();
+ }
+ /**
+ * repeated string args = 4;
+ * @param index The index of the element to return.
+ * @return The args at the given index.
+ */
+ public java.lang.String getArgs(int index) {
+ return args_.get(index);
+ }
+ /**
+ * repeated string args = 4;
+ * @param index The index of the value to return.
+ * @return The bytes of the args at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getArgsBytes(int index) {
+ return args_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (parent_ != null) {
+ output.writeMessage(1, getParent());
+ }
+ if (handle_ != null) {
+ output.writeMessage(2, getHandle());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_);
+ }
+ for (int i = 0; i < args_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, args_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (parent_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getParent());
+ }
+ if (handle_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getHandle());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < args_.size(); i++) {
+ dataSize += computeStringSizeNoTag(args_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getArgsList().size();
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.Qdisc)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.Qdisc other = (pb.Chaosdaemon.Qdisc) obj;
+
+ if (hasParent() != other.hasParent()) return false;
+ if (hasParent()) {
+ if (!getParent()
+ .equals(other.getParent())) return false;
+ }
+ if (hasHandle() != other.hasHandle()) return false;
+ if (hasHandle()) {
+ if (!getHandle()
+ .equals(other.getHandle())) return false;
+ }
+ if (!getType()
+ .equals(other.getType())) return false;
+ if (!getArgsList()
+ .equals(other.getArgsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasParent()) {
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ }
+ if (hasHandle()) {
+ hash = (37 * hash) + HANDLE_FIELD_NUMBER;
+ hash = (53 * hash) + getHandle().hashCode();
+ }
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getType().hashCode();
+ if (getArgsCount() > 0) {
+ hash = (37 * hash) + ARGS_FIELD_NUMBER;
+ hash = (53 * hash) + getArgsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.Qdisc parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.Qdisc parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.Qdisc parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.Qdisc parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.Qdisc parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.Qdisc parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.Qdisc parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.Qdisc 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 pb.Chaosdaemon.Qdisc parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.Qdisc 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 pb.Chaosdaemon.Qdisc parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.Qdisc parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.Qdisc prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.Qdisc}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.Qdisc)
+ pb.Chaosdaemon.QdiscOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_Qdisc_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_Qdisc_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.Qdisc.class, pb.Chaosdaemon.Qdisc.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.Qdisc.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (parentBuilder_ == null) {
+ parent_ = null;
+ } else {
+ parent_ = null;
+ parentBuilder_ = null;
+ }
+ if (handleBuilder_ == null) {
+ handle_ = null;
+ } else {
+ handle_ = null;
+ handleBuilder_ = null;
+ }
+ type_ = "";
+
+ args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_Qdisc_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.Qdisc getDefaultInstanceForType() {
+ return pb.Chaosdaemon.Qdisc.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.Qdisc build() {
+ pb.Chaosdaemon.Qdisc result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.Qdisc buildPartial() {
+ pb.Chaosdaemon.Qdisc result = new pb.Chaosdaemon.Qdisc(this);
+ int from_bitField0_ = bitField0_;
+ if (parentBuilder_ == null) {
+ result.parent_ = parent_;
+ } else {
+ result.parent_ = parentBuilder_.build();
+ }
+ if (handleBuilder_ == null) {
+ result.handle_ = handle_;
+ } else {
+ result.handle_ = handleBuilder_.build();
+ }
+ result.type_ = type_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ args_ = args_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.args_ = args_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.Qdisc) {
+ return mergeFrom((pb.Chaosdaemon.Qdisc)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.Qdisc other) {
+ if (other == pb.Chaosdaemon.Qdisc.getDefaultInstance()) return this;
+ if (other.hasParent()) {
+ mergeParent(other.getParent());
+ }
+ if (other.hasHandle()) {
+ mergeHandle(other.getHandle());
+ }
+ if (!other.getType().isEmpty()) {
+ type_ = other.type_;
+ onChanged();
+ }
+ if (!other.args_.isEmpty()) {
+ if (args_.isEmpty()) {
+ args_ = other.args_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureArgsIsMutable();
+ args_.addAll(other.args_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.Qdisc parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.Qdisc) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private pb.Chaosdaemon.TcHandle parent_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder> parentBuilder_;
+ /**
+ * .pb.TcHandle parent = 1;
+ * @return Whether the parent field is set.
+ */
+ public boolean hasParent() {
+ return parentBuilder_ != null || parent_ != null;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ * @return The parent.
+ */
+ public pb.Chaosdaemon.TcHandle getParent() {
+ if (parentBuilder_ == null) {
+ return parent_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ } else {
+ return parentBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ public Builder setParent(pb.Chaosdaemon.TcHandle value) {
+ if (parentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ onChanged();
+ } else {
+ parentBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ public Builder setParent(
+ pb.Chaosdaemon.TcHandle.Builder builderForValue) {
+ if (parentBuilder_ == null) {
+ parent_ = builderForValue.build();
+ onChanged();
+ } else {
+ parentBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ public Builder mergeParent(pb.Chaosdaemon.TcHandle value) {
+ if (parentBuilder_ == null) {
+ if (parent_ != null) {
+ parent_ =
+ pb.Chaosdaemon.TcHandle.newBuilder(parent_).mergeFrom(value).buildPartial();
+ } else {
+ parent_ = value;
+ }
+ onChanged();
+ } else {
+ parentBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ public Builder clearParent() {
+ if (parentBuilder_ == null) {
+ parent_ = null;
+ onChanged();
+ } else {
+ parent_ = null;
+ parentBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ public pb.Chaosdaemon.TcHandle.Builder getParentBuilder() {
+
+ onChanged();
+ return getParentFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ public pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder() {
+ if (parentBuilder_ != null) {
+ return parentBuilder_.getMessageOrBuilder();
+ } else {
+ return parent_ == null ?
+ pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ }
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>
+ getParentFieldBuilder() {
+ if (parentBuilder_ == null) {
+ parentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>(
+ getParent(),
+ getParentForChildren(),
+ isClean());
+ parent_ = null;
+ }
+ return parentBuilder_;
+ }
+
+ private pb.Chaosdaemon.TcHandle handle_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder> handleBuilder_;
+ /**
+ * .pb.TcHandle handle = 2;
+ * @return Whether the handle field is set.
+ */
+ public boolean hasHandle() {
+ return handleBuilder_ != null || handle_ != null;
+ }
+ /**
+ * .pb.TcHandle handle = 2;
+ * @return The handle.
+ */
+ public pb.Chaosdaemon.TcHandle getHandle() {
+ if (handleBuilder_ == null) {
+ return handle_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : handle_;
+ } else {
+ return handleBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.TcHandle handle = 2;
+ */
+ public Builder setHandle(pb.Chaosdaemon.TcHandle value) {
+ if (handleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ handle_ = value;
+ onChanged();
+ } else {
+ handleBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle handle = 2;
+ */
+ public Builder setHandle(
+ pb.Chaosdaemon.TcHandle.Builder builderForValue) {
+ if (handleBuilder_ == null) {
+ handle_ = builderForValue.build();
+ onChanged();
+ } else {
+ handleBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle handle = 2;
+ */
+ public Builder mergeHandle(pb.Chaosdaemon.TcHandle value) {
+ if (handleBuilder_ == null) {
+ if (handle_ != null) {
+ handle_ =
+ pb.Chaosdaemon.TcHandle.newBuilder(handle_).mergeFrom(value).buildPartial();
+ } else {
+ handle_ = value;
+ }
+ onChanged();
+ } else {
+ handleBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle handle = 2;
+ */
+ public Builder clearHandle() {
+ if (handleBuilder_ == null) {
+ handle_ = null;
+ onChanged();
+ } else {
+ handle_ = null;
+ handleBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle handle = 2;
+ */
+ public pb.Chaosdaemon.TcHandle.Builder getHandleBuilder() {
+
+ onChanged();
+ return getHandleFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.TcHandle handle = 2;
+ */
+ public pb.Chaosdaemon.TcHandleOrBuilder getHandleOrBuilder() {
+ if (handleBuilder_ != null) {
+ return handleBuilder_.getMessageOrBuilder();
+ } else {
+ return handle_ == null ?
+ pb.Chaosdaemon.TcHandle.getDefaultInstance() : handle_;
+ }
+ }
+ /**
+ * .pb.TcHandle handle = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>
+ getHandleFieldBuilder() {
+ if (handleBuilder_ == null) {
+ handleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>(
+ getHandle(),
+ getParentForChildren(),
+ isClean());
+ handle_ = null;
+ }
+ return handleBuilder_;
+ }
+
+ private java.lang.Object type_ = "";
+ /**
+ * string type = 3;
+ * @return The type.
+ */
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ type_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string type = 3;
+ * @return The bytes for type.
+ */
+ public com.google.protobuf.ByteString
+ getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string type = 3;
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ type_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string type = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+
+ type_ = getDefaultInstance().getType();
+ onChanged();
+ return this;
+ }
+ /**
+ * string type = 3;
+ * @param value The bytes for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ type_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureArgsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ args_ = new com.google.protobuf.LazyStringArrayList(args_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * repeated string args = 4;
+ * @return A list containing the args.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getArgsList() {
+ return args_.getUnmodifiableView();
+ }
+ /**
+ * repeated string args = 4;
+ * @return The count of args.
+ */
+ public int getArgsCount() {
+ return args_.size();
+ }
+ /**
+ * repeated string args = 4;
+ * @param index The index of the element to return.
+ * @return The args at the given index.
+ */
+ public java.lang.String getArgs(int index) {
+ return args_.get(index);
+ }
+ /**
+ * repeated string args = 4;
+ * @param index The index of the value to return.
+ * @return The bytes of the args at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getArgsBytes(int index) {
+ return args_.getByteString(index);
+ }
+ /**
+ * repeated string args = 4;
+ * @param index The index to set the value at.
+ * @param value The args to set.
+ * @return This builder for chaining.
+ */
+ public Builder setArgs(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgsIsMutable();
+ args_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string args = 4;
+ * @param value The args to add.
+ * @return This builder for chaining.
+ */
+ public Builder addArgs(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgsIsMutable();
+ args_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string args = 4;
+ * @param values The args to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllArgs(
+ java.lang.Iterable values) {
+ ensureArgsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, args_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string args = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearArgs() {
+ args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string args = 4;
+ * @param value The bytes of the args to add.
+ * @return This builder for chaining.
+ */
+ public Builder addArgsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureArgsIsMutable();
+ args_.add(value);
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.Qdisc)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.Qdisc)
+ private static final pb.Chaosdaemon.Qdisc DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.Qdisc();
+ }
+
+ public static pb.Chaosdaemon.Qdisc getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Qdisc parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Qdisc(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.Qdisc getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface EmatchFilterRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.EmatchFilterRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .pb.EmatchFilter filter = 1;
+ * @return Whether the filter field is set.
+ */
+ boolean hasFilter();
+ /**
+ * .pb.EmatchFilter filter = 1;
+ * @return The filter.
+ */
+ pb.Chaosdaemon.EmatchFilter getFilter();
+ /**
+ * .pb.EmatchFilter filter = 1;
+ */
+ pb.Chaosdaemon.EmatchFilterOrBuilder getFilterOrBuilder();
+
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ java.lang.String getContainerId();
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ com.google.protobuf.ByteString
+ getContainerIdBytes();
+ }
+ /**
+ * Protobuf type {@code pb.EmatchFilterRequest}
+ */
+ public static final class EmatchFilterRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.EmatchFilterRequest)
+ EmatchFilterRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use EmatchFilterRequest.newBuilder() to construct.
+ private EmatchFilterRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private EmatchFilterRequest() {
+ containerId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new EmatchFilterRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private EmatchFilterRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ pb.Chaosdaemon.EmatchFilter.Builder subBuilder = null;
+ if (filter_ != null) {
+ subBuilder = filter_.toBuilder();
+ }
+ filter_ = input.readMessage(pb.Chaosdaemon.EmatchFilter.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(filter_);
+ filter_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ containerId_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_EmatchFilterRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_EmatchFilterRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.EmatchFilterRequest.class, pb.Chaosdaemon.EmatchFilterRequest.Builder.class);
+ }
+
+ public static final int FILTER_FIELD_NUMBER = 1;
+ private pb.Chaosdaemon.EmatchFilter filter_;
+ /**
+ * .pb.EmatchFilter filter = 1;
+ * @return Whether the filter field is set.
+ */
+ @java.lang.Override
+ public boolean hasFilter() {
+ return filter_ != null;
+ }
+ /**
+ * .pb.EmatchFilter filter = 1;
+ * @return The filter.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.EmatchFilter getFilter() {
+ return filter_ == null ? pb.Chaosdaemon.EmatchFilter.getDefaultInstance() : filter_;
+ }
+ /**
+ * .pb.EmatchFilter filter = 1;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.EmatchFilterOrBuilder getFilterOrBuilder() {
+ return getFilter();
+ }
+
+ public static final int CONTAINER_ID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object containerId_;
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ @java.lang.Override
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ 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();
+ containerId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (filter_ != null) {
+ output.writeMessage(1, getFilter());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (filter_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getFilter());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerId_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.EmatchFilterRequest)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.EmatchFilterRequest other = (pb.Chaosdaemon.EmatchFilterRequest) obj;
+
+ if (hasFilter() != other.hasFilter()) return false;
+ if (hasFilter()) {
+ if (!getFilter()
+ .equals(other.getFilter())) return false;
+ }
+ if (!getContainerId()
+ .equals(other.getContainerId())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasFilter()) {
+ hash = (37 * hash) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
+ }
+ hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getContainerId().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.EmatchFilterRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.EmatchFilterRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.EmatchFilterRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.EmatchFilterRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.EmatchFilterRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.EmatchFilterRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.EmatchFilterRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.EmatchFilterRequest 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 pb.Chaosdaemon.EmatchFilterRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.EmatchFilterRequest 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 pb.Chaosdaemon.EmatchFilterRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.EmatchFilterRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.EmatchFilterRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.EmatchFilterRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.EmatchFilterRequest)
+ pb.Chaosdaemon.EmatchFilterRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_EmatchFilterRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_EmatchFilterRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.EmatchFilterRequest.class, pb.Chaosdaemon.EmatchFilterRequest.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.EmatchFilterRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (filterBuilder_ == null) {
+ filter_ = null;
+ } else {
+ filter_ = null;
+ filterBuilder_ = null;
+ }
+ containerId_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_EmatchFilterRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.EmatchFilterRequest getDefaultInstanceForType() {
+ return pb.Chaosdaemon.EmatchFilterRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.EmatchFilterRequest build() {
+ pb.Chaosdaemon.EmatchFilterRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.EmatchFilterRequest buildPartial() {
+ pb.Chaosdaemon.EmatchFilterRequest result = new pb.Chaosdaemon.EmatchFilterRequest(this);
+ if (filterBuilder_ == null) {
+ result.filter_ = filter_;
+ } else {
+ result.filter_ = filterBuilder_.build();
+ }
+ result.containerId_ = containerId_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.EmatchFilterRequest) {
+ return mergeFrom((pb.Chaosdaemon.EmatchFilterRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.EmatchFilterRequest other) {
+ if (other == pb.Chaosdaemon.EmatchFilterRequest.getDefaultInstance()) return this;
+ if (other.hasFilter()) {
+ mergeFilter(other.getFilter());
+ }
+ if (!other.getContainerId().isEmpty()) {
+ containerId_ = other.containerId_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.EmatchFilterRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.EmatchFilterRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private pb.Chaosdaemon.EmatchFilter filter_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.EmatchFilter, pb.Chaosdaemon.EmatchFilter.Builder, pb.Chaosdaemon.EmatchFilterOrBuilder> filterBuilder_;
+ /**
+ * .pb.EmatchFilter filter = 1;
+ * @return Whether the filter field is set.
+ */
+ public boolean hasFilter() {
+ return filterBuilder_ != null || filter_ != null;
+ }
+ /**
+ * .pb.EmatchFilter filter = 1;
+ * @return The filter.
+ */
+ public pb.Chaosdaemon.EmatchFilter getFilter() {
+ if (filterBuilder_ == null) {
+ return filter_ == null ? pb.Chaosdaemon.EmatchFilter.getDefaultInstance() : filter_;
+ } else {
+ return filterBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.EmatchFilter filter = 1;
+ */
+ public Builder setFilter(pb.Chaosdaemon.EmatchFilter value) {
+ if (filterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ filter_ = value;
+ onChanged();
+ } else {
+ filterBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.EmatchFilter filter = 1;
+ */
+ public Builder setFilter(
+ pb.Chaosdaemon.EmatchFilter.Builder builderForValue) {
+ if (filterBuilder_ == null) {
+ filter_ = builderForValue.build();
+ onChanged();
+ } else {
+ filterBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.EmatchFilter filter = 1;
+ */
+ public Builder mergeFilter(pb.Chaosdaemon.EmatchFilter value) {
+ if (filterBuilder_ == null) {
+ if (filter_ != null) {
+ filter_ =
+ pb.Chaosdaemon.EmatchFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
+ } else {
+ filter_ = value;
+ }
+ onChanged();
+ } else {
+ filterBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.EmatchFilter filter = 1;
+ */
+ public Builder clearFilter() {
+ if (filterBuilder_ == null) {
+ filter_ = null;
+ onChanged();
+ } else {
+ filter_ = null;
+ filterBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.EmatchFilter filter = 1;
+ */
+ public pb.Chaosdaemon.EmatchFilter.Builder getFilterBuilder() {
+
+ onChanged();
+ return getFilterFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.EmatchFilter filter = 1;
+ */
+ public pb.Chaosdaemon.EmatchFilterOrBuilder getFilterOrBuilder() {
+ if (filterBuilder_ != null) {
+ return filterBuilder_.getMessageOrBuilder();
+ } else {
+ return filter_ == null ?
+ pb.Chaosdaemon.EmatchFilter.getDefaultInstance() : filter_;
+ }
+ }
+ /**
+ * .pb.EmatchFilter filter = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.EmatchFilter, pb.Chaosdaemon.EmatchFilter.Builder, pb.Chaosdaemon.EmatchFilterOrBuilder>
+ getFilterFieldBuilder() {
+ if (filterBuilder_ == null) {
+ filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.EmatchFilter, pb.Chaosdaemon.EmatchFilter.Builder, pb.Chaosdaemon.EmatchFilterOrBuilder>(
+ getFilter(),
+ getParentForChildren(),
+ isClean());
+ filter_ = null;
+ }
+ return filterBuilder_;
+ }
+
+ private java.lang.Object containerId_ = "";
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ containerId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @param value The containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearContainerId() {
+
+ containerId_ = getDefaultInstance().getContainerId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @param value The bytes for containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.EmatchFilterRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.EmatchFilterRequest)
+ private static final pb.Chaosdaemon.EmatchFilterRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.EmatchFilterRequest();
+ }
+
+ public static pb.Chaosdaemon.EmatchFilterRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public EmatchFilterRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new EmatchFilterRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.EmatchFilterRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface EmatchFilterOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.EmatchFilter)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string match = 1;
+ * @return The match.
+ */
+ java.lang.String getMatch();
+ /**
+ * string match = 1;
+ * @return The bytes for match.
+ */
+ com.google.protobuf.ByteString
+ getMatchBytes();
+
+ /**
+ * .pb.TcHandle parent = 2;
+ * @return Whether the parent field is set.
+ */
+ boolean hasParent();
+ /**
+ * .pb.TcHandle parent = 2;
+ * @return The parent.
+ */
+ pb.Chaosdaemon.TcHandle getParent();
+ /**
+ * .pb.TcHandle parent = 2;
+ */
+ pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder();
+
+ /**
+ * .pb.TcHandle classid = 3;
+ * @return Whether the classid field is set.
+ */
+ boolean hasClassid();
+ /**
+ * .pb.TcHandle classid = 3;
+ * @return The classid.
+ */
+ pb.Chaosdaemon.TcHandle getClassid();
+ /**
+ * .pb.TcHandle classid = 3;
+ */
+ pb.Chaosdaemon.TcHandleOrBuilder getClassidOrBuilder();
+ }
+ /**
+ * Protobuf type {@code pb.EmatchFilter}
+ */
+ public static final class EmatchFilter extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.EmatchFilter)
+ EmatchFilterOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use EmatchFilter.newBuilder() to construct.
+ private EmatchFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private EmatchFilter() {
+ match_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new EmatchFilter();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private EmatchFilter(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ match_ = s;
+ break;
+ }
+ case 18: {
+ pb.Chaosdaemon.TcHandle.Builder subBuilder = null;
+ if (parent_ != null) {
+ subBuilder = parent_.toBuilder();
+ }
+ parent_ = input.readMessage(pb.Chaosdaemon.TcHandle.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(parent_);
+ parent_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26: {
+ pb.Chaosdaemon.TcHandle.Builder subBuilder = null;
+ if (classid_ != null) {
+ subBuilder = classid_.toBuilder();
+ }
+ classid_ = input.readMessage(pb.Chaosdaemon.TcHandle.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(classid_);
+ classid_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_EmatchFilter_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_EmatchFilter_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.EmatchFilter.class, pb.Chaosdaemon.EmatchFilter.Builder.class);
+ }
+
+ public static final int MATCH_FIELD_NUMBER = 1;
+ private volatile java.lang.Object match_;
+ /**
+ * string match = 1;
+ * @return The match.
+ */
+ @java.lang.Override
+ public java.lang.String getMatch() {
+ java.lang.Object ref = match_;
+ 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();
+ match_ = s;
+ return s;
+ }
+ }
+ /**
+ * string match = 1;
+ * @return The bytes for match.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMatchBytes() {
+ java.lang.Object ref = match_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ match_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARENT_FIELD_NUMBER = 2;
+ private pb.Chaosdaemon.TcHandle parent_;
+ /**
+ * .pb.TcHandle parent = 2;
+ * @return Whether the parent field is set.
+ */
+ @java.lang.Override
+ public boolean hasParent() {
+ return parent_ != null;
+ }
+ /**
+ * .pb.TcHandle parent = 2;
+ * @return The parent.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle getParent() {
+ return parent_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ }
+ /**
+ * .pb.TcHandle parent = 2;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder() {
+ return getParent();
+ }
+
+ public static final int CLASSID_FIELD_NUMBER = 3;
+ private pb.Chaosdaemon.TcHandle classid_;
+ /**
+ * .pb.TcHandle classid = 3;
+ * @return Whether the classid field is set.
+ */
+ @java.lang.Override
+ public boolean hasClassid() {
+ return classid_ != null;
+ }
+ /**
+ * .pb.TcHandle classid = 3;
+ * @return The classid.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle getClassid() {
+ return classid_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : classid_;
+ }
+ /**
+ * .pb.TcHandle classid = 3;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandleOrBuilder getClassidOrBuilder() {
+ return getClassid();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(match_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, match_);
+ }
+ if (parent_ != null) {
+ output.writeMessage(2, getParent());
+ }
+ if (classid_ != null) {
+ output.writeMessage(3, getClassid());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(match_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, match_);
+ }
+ if (parent_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getParent());
+ }
+ if (classid_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getClassid());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.EmatchFilter)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.EmatchFilter other = (pb.Chaosdaemon.EmatchFilter) obj;
+
+ if (!getMatch()
+ .equals(other.getMatch())) return false;
+ if (hasParent() != other.hasParent()) return false;
+ if (hasParent()) {
+ if (!getParent()
+ .equals(other.getParent())) return false;
+ }
+ if (hasClassid() != other.hasClassid()) return false;
+ if (hasClassid()) {
+ if (!getClassid()
+ .equals(other.getClassid())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MATCH_FIELD_NUMBER;
+ hash = (53 * hash) + getMatch().hashCode();
+ if (hasParent()) {
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ }
+ if (hasClassid()) {
+ hash = (37 * hash) + CLASSID_FIELD_NUMBER;
+ hash = (53 * hash) + getClassid().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.EmatchFilter parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.EmatchFilter parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.EmatchFilter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.EmatchFilter parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.EmatchFilter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.EmatchFilter parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.EmatchFilter parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.EmatchFilter 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 pb.Chaosdaemon.EmatchFilter parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.EmatchFilter 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 pb.Chaosdaemon.EmatchFilter parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.EmatchFilter parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.EmatchFilter prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.EmatchFilter}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.EmatchFilter)
+ pb.Chaosdaemon.EmatchFilterOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_EmatchFilter_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_EmatchFilter_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.EmatchFilter.class, pb.Chaosdaemon.EmatchFilter.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.EmatchFilter.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ match_ = "";
+
+ if (parentBuilder_ == null) {
+ parent_ = null;
+ } else {
+ parent_ = null;
+ parentBuilder_ = null;
+ }
+ if (classidBuilder_ == null) {
+ classid_ = null;
+ } else {
+ classid_ = null;
+ classidBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_EmatchFilter_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.EmatchFilter getDefaultInstanceForType() {
+ return pb.Chaosdaemon.EmatchFilter.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.EmatchFilter build() {
+ pb.Chaosdaemon.EmatchFilter result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.EmatchFilter buildPartial() {
+ pb.Chaosdaemon.EmatchFilter result = new pb.Chaosdaemon.EmatchFilter(this);
+ result.match_ = match_;
+ if (parentBuilder_ == null) {
+ result.parent_ = parent_;
+ } else {
+ result.parent_ = parentBuilder_.build();
+ }
+ if (classidBuilder_ == null) {
+ result.classid_ = classid_;
+ } else {
+ result.classid_ = classidBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.EmatchFilter) {
+ return mergeFrom((pb.Chaosdaemon.EmatchFilter)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.EmatchFilter other) {
+ if (other == pb.Chaosdaemon.EmatchFilter.getDefaultInstance()) return this;
+ if (!other.getMatch().isEmpty()) {
+ match_ = other.match_;
+ onChanged();
+ }
+ if (other.hasParent()) {
+ mergeParent(other.getParent());
+ }
+ if (other.hasClassid()) {
+ mergeClassid(other.getClassid());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.EmatchFilter parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.EmatchFilter) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object match_ = "";
+ /**
+ * string match = 1;
+ * @return The match.
+ */
+ public java.lang.String getMatch() {
+ java.lang.Object ref = match_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ match_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string match = 1;
+ * @return The bytes for match.
+ */
+ public com.google.protobuf.ByteString
+ getMatchBytes() {
+ java.lang.Object ref = match_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ match_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string match = 1;
+ * @param value The match to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMatch(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ match_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string match = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMatch() {
+
+ match_ = getDefaultInstance().getMatch();
+ onChanged();
+ return this;
+ }
+ /**
+ * string match = 1;
+ * @param value The bytes for match to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMatchBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ match_ = value;
+ onChanged();
+ return this;
+ }
+
+ private pb.Chaosdaemon.TcHandle parent_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder> parentBuilder_;
+ /**
+ * .pb.TcHandle parent = 2;
+ * @return Whether the parent field is set.
+ */
+ public boolean hasParent() {
+ return parentBuilder_ != null || parent_ != null;
+ }
+ /**
+ * .pb.TcHandle parent = 2;
+ * @return The parent.
+ */
+ public pb.Chaosdaemon.TcHandle getParent() {
+ if (parentBuilder_ == null) {
+ return parent_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ } else {
+ return parentBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.TcHandle parent = 2;
+ */
+ public Builder setParent(pb.Chaosdaemon.TcHandle value) {
+ if (parentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ onChanged();
+ } else {
+ parentBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 2;
+ */
+ public Builder setParent(
+ pb.Chaosdaemon.TcHandle.Builder builderForValue) {
+ if (parentBuilder_ == null) {
+ parent_ = builderForValue.build();
+ onChanged();
+ } else {
+ parentBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 2;
+ */
+ public Builder mergeParent(pb.Chaosdaemon.TcHandle value) {
+ if (parentBuilder_ == null) {
+ if (parent_ != null) {
+ parent_ =
+ pb.Chaosdaemon.TcHandle.newBuilder(parent_).mergeFrom(value).buildPartial();
+ } else {
+ parent_ = value;
+ }
+ onChanged();
+ } else {
+ parentBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 2;
+ */
+ public Builder clearParent() {
+ if (parentBuilder_ == null) {
+ parent_ = null;
+ onChanged();
+ } else {
+ parent_ = null;
+ parentBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 2;
+ */
+ public pb.Chaosdaemon.TcHandle.Builder getParentBuilder() {
+
+ onChanged();
+ return getParentFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.TcHandle parent = 2;
+ */
+ public pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder() {
+ if (parentBuilder_ != null) {
+ return parentBuilder_.getMessageOrBuilder();
+ } else {
+ return parent_ == null ?
+ pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ }
+ }
+ /**
+ * .pb.TcHandle parent = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>
+ getParentFieldBuilder() {
+ if (parentBuilder_ == null) {
+ parentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>(
+ getParent(),
+ getParentForChildren(),
+ isClean());
+ parent_ = null;
+ }
+ return parentBuilder_;
+ }
+
+ private pb.Chaosdaemon.TcHandle classid_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder> classidBuilder_;
+ /**
+ * .pb.TcHandle classid = 3;
+ * @return Whether the classid field is set.
+ */
+ public boolean hasClassid() {
+ return classidBuilder_ != null || classid_ != null;
+ }
+ /**
+ * .pb.TcHandle classid = 3;
+ * @return The classid.
+ */
+ public pb.Chaosdaemon.TcHandle getClassid() {
+ if (classidBuilder_ == null) {
+ return classid_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : classid_;
+ } else {
+ return classidBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.TcHandle classid = 3;
+ */
+ public Builder setClassid(pb.Chaosdaemon.TcHandle value) {
+ if (classidBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ classid_ = value;
+ onChanged();
+ } else {
+ classidBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle classid = 3;
+ */
+ public Builder setClassid(
+ pb.Chaosdaemon.TcHandle.Builder builderForValue) {
+ if (classidBuilder_ == null) {
+ classid_ = builderForValue.build();
+ onChanged();
+ } else {
+ classidBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle classid = 3;
+ */
+ public Builder mergeClassid(pb.Chaosdaemon.TcHandle value) {
+ if (classidBuilder_ == null) {
+ if (classid_ != null) {
+ classid_ =
+ pb.Chaosdaemon.TcHandle.newBuilder(classid_).mergeFrom(value).buildPartial();
+ } else {
+ classid_ = value;
+ }
+ onChanged();
+ } else {
+ classidBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle classid = 3;
+ */
+ public Builder clearClassid() {
+ if (classidBuilder_ == null) {
+ classid_ = null;
+ onChanged();
+ } else {
+ classid_ = null;
+ classidBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle classid = 3;
+ */
+ public pb.Chaosdaemon.TcHandle.Builder getClassidBuilder() {
+
+ onChanged();
+ return getClassidFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.TcHandle classid = 3;
+ */
+ public pb.Chaosdaemon.TcHandleOrBuilder getClassidOrBuilder() {
+ if (classidBuilder_ != null) {
+ return classidBuilder_.getMessageOrBuilder();
+ } else {
+ return classid_ == null ?
+ pb.Chaosdaemon.TcHandle.getDefaultInstance() : classid_;
+ }
+ }
+ /**
+ * .pb.TcHandle classid = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>
+ getClassidFieldBuilder() {
+ if (classidBuilder_ == null) {
+ classidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>(
+ getClassid(),
+ getParentForChildren(),
+ isClean());
+ classid_ = null;
+ }
+ return classidBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.EmatchFilter)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.EmatchFilter)
+ private static final pb.Chaosdaemon.EmatchFilter DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.EmatchFilter();
+ }
+
+ public static pb.Chaosdaemon.EmatchFilter getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public EmatchFilter parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new EmatchFilter(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.EmatchFilter getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface TcFilterRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.TcFilterRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .pb.TcFilter filter = 1;
+ * @return Whether the filter field is set.
+ */
+ boolean hasFilter();
+ /**
+ * .pb.TcFilter filter = 1;
+ * @return The filter.
+ */
+ pb.Chaosdaemon.TcFilter getFilter();
+ /**
+ * .pb.TcFilter filter = 1;
+ */
+ pb.Chaosdaemon.TcFilterOrBuilder getFilterOrBuilder();
+
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ java.lang.String getContainerId();
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ com.google.protobuf.ByteString
+ getContainerIdBytes();
+ }
+ /**
+ * Protobuf type {@code pb.TcFilterRequest}
+ */
+ public static final class TcFilterRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.TcFilterRequest)
+ TcFilterRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TcFilterRequest.newBuilder() to construct.
+ private TcFilterRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TcFilterRequest() {
+ containerId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TcFilterRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TcFilterRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ pb.Chaosdaemon.TcFilter.Builder subBuilder = null;
+ if (filter_ != null) {
+ subBuilder = filter_.toBuilder();
+ }
+ filter_ = input.readMessage(pb.Chaosdaemon.TcFilter.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(filter_);
+ filter_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ containerId_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_TcFilterRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_TcFilterRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.TcFilterRequest.class, pb.Chaosdaemon.TcFilterRequest.Builder.class);
+ }
+
+ public static final int FILTER_FIELD_NUMBER = 1;
+ private pb.Chaosdaemon.TcFilter filter_;
+ /**
+ * .pb.TcFilter filter = 1;
+ * @return Whether the filter field is set.
+ */
+ @java.lang.Override
+ public boolean hasFilter() {
+ return filter_ != null;
+ }
+ /**
+ * .pb.TcFilter filter = 1;
+ * @return The filter.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcFilter getFilter() {
+ return filter_ == null ? pb.Chaosdaemon.TcFilter.getDefaultInstance() : filter_;
+ }
+ /**
+ * .pb.TcFilter filter = 1;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcFilterOrBuilder getFilterOrBuilder() {
+ return getFilter();
+ }
+
+ public static final int CONTAINER_ID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object containerId_;
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ @java.lang.Override
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ 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();
+ containerId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (filter_ != null) {
+ output.writeMessage(1, getFilter());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (filter_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getFilter());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerId_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.TcFilterRequest)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.TcFilterRequest other = (pb.Chaosdaemon.TcFilterRequest) obj;
+
+ if (hasFilter() != other.hasFilter()) return false;
+ if (hasFilter()) {
+ if (!getFilter()
+ .equals(other.getFilter())) return false;
+ }
+ if (!getContainerId()
+ .equals(other.getContainerId())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasFilter()) {
+ hash = (37 * hash) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
+ }
+ hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getContainerId().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.TcFilterRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.TcFilterRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.TcFilterRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.TcFilterRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.TcFilterRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.TcFilterRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.TcFilterRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.TcFilterRequest 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 pb.Chaosdaemon.TcFilterRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.TcFilterRequest 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 pb.Chaosdaemon.TcFilterRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.TcFilterRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.TcFilterRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.TcFilterRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.TcFilterRequest)
+ pb.Chaosdaemon.TcFilterRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_TcFilterRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_TcFilterRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.TcFilterRequest.class, pb.Chaosdaemon.TcFilterRequest.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.TcFilterRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (filterBuilder_ == null) {
+ filter_ = null;
+ } else {
+ filter_ = null;
+ filterBuilder_ = null;
+ }
+ containerId_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_TcFilterRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TcFilterRequest getDefaultInstanceForType() {
+ return pb.Chaosdaemon.TcFilterRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TcFilterRequest build() {
+ pb.Chaosdaemon.TcFilterRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TcFilterRequest buildPartial() {
+ pb.Chaosdaemon.TcFilterRequest result = new pb.Chaosdaemon.TcFilterRequest(this);
+ if (filterBuilder_ == null) {
+ result.filter_ = filter_;
+ } else {
+ result.filter_ = filterBuilder_.build();
+ }
+ result.containerId_ = containerId_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.TcFilterRequest) {
+ return mergeFrom((pb.Chaosdaemon.TcFilterRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.TcFilterRequest other) {
+ if (other == pb.Chaosdaemon.TcFilterRequest.getDefaultInstance()) return this;
+ if (other.hasFilter()) {
+ mergeFilter(other.getFilter());
+ }
+ if (!other.getContainerId().isEmpty()) {
+ containerId_ = other.containerId_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.TcFilterRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.TcFilterRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private pb.Chaosdaemon.TcFilter filter_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcFilter, pb.Chaosdaemon.TcFilter.Builder, pb.Chaosdaemon.TcFilterOrBuilder> filterBuilder_;
+ /**
+ * .pb.TcFilter filter = 1;
+ * @return Whether the filter field is set.
+ */
+ public boolean hasFilter() {
+ return filterBuilder_ != null || filter_ != null;
+ }
+ /**
+ * .pb.TcFilter filter = 1;
+ * @return The filter.
+ */
+ public pb.Chaosdaemon.TcFilter getFilter() {
+ if (filterBuilder_ == null) {
+ return filter_ == null ? pb.Chaosdaemon.TcFilter.getDefaultInstance() : filter_;
+ } else {
+ return filterBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.TcFilter filter = 1;
+ */
+ public Builder setFilter(pb.Chaosdaemon.TcFilter value) {
+ if (filterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ filter_ = value;
+ onChanged();
+ } else {
+ filterBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcFilter filter = 1;
+ */
+ public Builder setFilter(
+ pb.Chaosdaemon.TcFilter.Builder builderForValue) {
+ if (filterBuilder_ == null) {
+ filter_ = builderForValue.build();
+ onChanged();
+ } else {
+ filterBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcFilter filter = 1;
+ */
+ public Builder mergeFilter(pb.Chaosdaemon.TcFilter value) {
+ if (filterBuilder_ == null) {
+ if (filter_ != null) {
+ filter_ =
+ pb.Chaosdaemon.TcFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
+ } else {
+ filter_ = value;
+ }
+ onChanged();
+ } else {
+ filterBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcFilter filter = 1;
+ */
+ public Builder clearFilter() {
+ if (filterBuilder_ == null) {
+ filter_ = null;
+ onChanged();
+ } else {
+ filter_ = null;
+ filterBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcFilter filter = 1;
+ */
+ public pb.Chaosdaemon.TcFilter.Builder getFilterBuilder() {
+
+ onChanged();
+ return getFilterFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.TcFilter filter = 1;
+ */
+ public pb.Chaosdaemon.TcFilterOrBuilder getFilterOrBuilder() {
+ if (filterBuilder_ != null) {
+ return filterBuilder_.getMessageOrBuilder();
+ } else {
+ return filter_ == null ?
+ pb.Chaosdaemon.TcFilter.getDefaultInstance() : filter_;
+ }
+ }
+ /**
+ * .pb.TcFilter filter = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcFilter, pb.Chaosdaemon.TcFilter.Builder, pb.Chaosdaemon.TcFilterOrBuilder>
+ getFilterFieldBuilder() {
+ if (filterBuilder_ == null) {
+ filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcFilter, pb.Chaosdaemon.TcFilter.Builder, pb.Chaosdaemon.TcFilterOrBuilder>(
+ getFilter(),
+ getParentForChildren(),
+ isClean());
+ filter_ = null;
+ }
+ return filterBuilder_;
+ }
+
+ private java.lang.Object containerId_ = "";
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ containerId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @param value The containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearContainerId() {
+
+ containerId_ = getDefaultInstance().getContainerId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @param value The bytes for containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.TcFilterRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.TcFilterRequest)
+ private static final pb.Chaosdaemon.TcFilterRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.TcFilterRequest();
+ }
+
+ public static pb.Chaosdaemon.TcFilterRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TcFilterRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new TcFilterRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TcFilterRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface TcFilterOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.TcFilter)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .pb.TcHandle parent = 1;
+ * @return Whether the parent field is set.
+ */
+ boolean hasParent();
+ /**
+ * .pb.TcHandle parent = 1;
+ * @return The parent.
+ */
+ pb.Chaosdaemon.TcHandle getParent();
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder();
+ }
+ /**
+ * Protobuf type {@code pb.TcFilter}
+ */
+ public static final class TcFilter extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.TcFilter)
+ TcFilterOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TcFilter.newBuilder() to construct.
+ private TcFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TcFilter() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TcFilter();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TcFilter(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ pb.Chaosdaemon.TcHandle.Builder subBuilder = null;
+ if (parent_ != null) {
+ subBuilder = parent_.toBuilder();
+ }
+ parent_ = input.readMessage(pb.Chaosdaemon.TcHandle.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(parent_);
+ parent_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_TcFilter_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_TcFilter_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.TcFilter.class, pb.Chaosdaemon.TcFilter.Builder.class);
+ }
+
+ public static final int PARENT_FIELD_NUMBER = 1;
+ private pb.Chaosdaemon.TcHandle parent_;
+ /**
+ * .pb.TcHandle parent = 1;
+ * @return Whether the parent field is set.
+ */
+ @java.lang.Override
+ public boolean hasParent() {
+ return parent_ != null;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ * @return The parent.
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandle getParent() {
+ return parent_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder() {
+ return getParent();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (parent_ != null) {
+ output.writeMessage(1, getParent());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (parent_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getParent());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.TcFilter)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.TcFilter other = (pb.Chaosdaemon.TcFilter) obj;
+
+ if (hasParent() != other.hasParent()) return false;
+ if (hasParent()) {
+ if (!getParent()
+ .equals(other.getParent())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasParent()) {
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.TcFilter parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.TcFilter parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.TcFilter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.TcFilter parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.TcFilter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.TcFilter parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.TcFilter parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.TcFilter 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 pb.Chaosdaemon.TcFilter parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.TcFilter 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 pb.Chaosdaemon.TcFilter parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.TcFilter parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.TcFilter prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.TcFilter}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.TcFilter)
+ pb.Chaosdaemon.TcFilterOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_TcFilter_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_TcFilter_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.TcFilter.class, pb.Chaosdaemon.TcFilter.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.TcFilter.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (parentBuilder_ == null) {
+ parent_ = null;
+ } else {
+ parent_ = null;
+ parentBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_TcFilter_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TcFilter getDefaultInstanceForType() {
+ return pb.Chaosdaemon.TcFilter.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TcFilter build() {
+ pb.Chaosdaemon.TcFilter result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TcFilter buildPartial() {
+ pb.Chaosdaemon.TcFilter result = new pb.Chaosdaemon.TcFilter(this);
+ if (parentBuilder_ == null) {
+ result.parent_ = parent_;
+ } else {
+ result.parent_ = parentBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.TcFilter) {
+ return mergeFrom((pb.Chaosdaemon.TcFilter)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.TcFilter other) {
+ if (other == pb.Chaosdaemon.TcFilter.getDefaultInstance()) return this;
+ if (other.hasParent()) {
+ mergeParent(other.getParent());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.TcFilter parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.TcFilter) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private pb.Chaosdaemon.TcHandle parent_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder> parentBuilder_;
+ /**
+ * .pb.TcHandle parent = 1;
+ * @return Whether the parent field is set.
+ */
+ public boolean hasParent() {
+ return parentBuilder_ != null || parent_ != null;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ * @return The parent.
+ */
+ public pb.Chaosdaemon.TcHandle getParent() {
+ if (parentBuilder_ == null) {
+ return parent_ == null ? pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ } else {
+ return parentBuilder_.getMessage();
+ }
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ public Builder setParent(pb.Chaosdaemon.TcHandle value) {
+ if (parentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parent_ = value;
+ onChanged();
+ } else {
+ parentBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ public Builder setParent(
+ pb.Chaosdaemon.TcHandle.Builder builderForValue) {
+ if (parentBuilder_ == null) {
+ parent_ = builderForValue.build();
+ onChanged();
+ } else {
+ parentBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ public Builder mergeParent(pb.Chaosdaemon.TcHandle value) {
+ if (parentBuilder_ == null) {
+ if (parent_ != null) {
+ parent_ =
+ pb.Chaosdaemon.TcHandle.newBuilder(parent_).mergeFrom(value).buildPartial();
+ } else {
+ parent_ = value;
+ }
+ onChanged();
+ } else {
+ parentBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ public Builder clearParent() {
+ if (parentBuilder_ == null) {
+ parent_ = null;
+ onChanged();
+ } else {
+ parent_ = null;
+ parentBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ public pb.Chaosdaemon.TcHandle.Builder getParentBuilder() {
+
+ onChanged();
+ return getParentFieldBuilder().getBuilder();
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ public pb.Chaosdaemon.TcHandleOrBuilder getParentOrBuilder() {
+ if (parentBuilder_ != null) {
+ return parentBuilder_.getMessageOrBuilder();
+ } else {
+ return parent_ == null ?
+ pb.Chaosdaemon.TcHandle.getDefaultInstance() : parent_;
+ }
+ }
+ /**
+ * .pb.TcHandle parent = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>
+ getParentFieldBuilder() {
+ if (parentBuilder_ == null) {
+ parentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ pb.Chaosdaemon.TcHandle, pb.Chaosdaemon.TcHandle.Builder, pb.Chaosdaemon.TcHandleOrBuilder>(
+ getParent(),
+ getParentForChildren(),
+ isClean());
+ parent_ = null;
+ }
+ return parentBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.TcFilter)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.TcFilter)
+ private static final pb.Chaosdaemon.TcFilter DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.TcFilter();
+ }
+
+ public static pb.Chaosdaemon.TcFilter getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TcFilter parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new TcFilter(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.TcFilter getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface IPSetsRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.IPSetsRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ java.util.List
+ getIpsetsList();
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ pb.Chaosdaemon.IPSet getIpsets(int index);
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ int getIpsetsCount();
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ java.util.List extends pb.Chaosdaemon.IPSetOrBuilder>
+ getIpsetsOrBuilderList();
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ pb.Chaosdaemon.IPSetOrBuilder getIpsetsOrBuilder(
+ int index);
+
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ java.lang.String getContainerId();
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ com.google.protobuf.ByteString
+ getContainerIdBytes();
+
+ /**
+ * bool enterNS = 3;
+ * @return The enterNS.
+ */
+ boolean getEnterNS();
+ }
+ /**
+ * Protobuf type {@code pb.IPSetsRequest}
+ */
+ public static final class IPSetsRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.IPSetsRequest)
+ IPSetsRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use IPSetsRequest.newBuilder() to construct.
+ private IPSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private IPSetsRequest() {
+ ipsets_ = java.util.Collections.emptyList();
+ containerId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new IPSetsRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private IPSetsRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ ipsets_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ ipsets_.add(
+ input.readMessage(pb.Chaosdaemon.IPSet.parser(), extensionRegistry));
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ containerId_ = s;
+ break;
+ }
+ case 24: {
+
+ enterNS_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ ipsets_ = java.util.Collections.unmodifiableList(ipsets_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_IPSetsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_IPSetsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.IPSetsRequest.class, pb.Chaosdaemon.IPSetsRequest.Builder.class);
+ }
+
+ public static final int IPSETS_FIELD_NUMBER = 1;
+ private java.util.List ipsets_;
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ @java.lang.Override
+ public java.util.List getIpsetsList() {
+ return ipsets_;
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends pb.Chaosdaemon.IPSetOrBuilder>
+ getIpsetsOrBuilderList() {
+ return ipsets_;
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ @java.lang.Override
+ public int getIpsetsCount() {
+ return ipsets_.size();
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.IPSet getIpsets(int index) {
+ return ipsets_.get(index);
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.IPSetOrBuilder getIpsetsOrBuilder(
+ int index) {
+ return ipsets_.get(index);
+ }
+
+ public static final int CONTAINER_ID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object containerId_;
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ @java.lang.Override
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ 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();
+ containerId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENTERNS_FIELD_NUMBER = 3;
+ private boolean enterNS_;
+ /**
+ * bool enterNS = 3;
+ * @return The enterNS.
+ */
+ @java.lang.Override
+ public boolean getEnterNS() {
+ return enterNS_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < ipsets_.size(); i++) {
+ output.writeMessage(1, ipsets_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerId_);
+ }
+ if (enterNS_ != false) {
+ output.writeBool(3, enterNS_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < ipsets_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, ipsets_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerId_);
+ }
+ if (enterNS_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, enterNS_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.IPSetsRequest)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.IPSetsRequest other = (pb.Chaosdaemon.IPSetsRequest) obj;
+
+ if (!getIpsetsList()
+ .equals(other.getIpsetsList())) return false;
+ if (!getContainerId()
+ .equals(other.getContainerId())) return false;
+ if (getEnterNS()
+ != other.getEnterNS()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getIpsetsCount() > 0) {
+ hash = (37 * hash) + IPSETS_FIELD_NUMBER;
+ hash = (53 * hash) + getIpsetsList().hashCode();
+ }
+ hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getContainerId().hashCode();
+ hash = (37 * hash) + ENTERNS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEnterNS());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.IPSetsRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.IPSetsRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.IPSetsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.IPSetsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.IPSetsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.IPSetsRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.IPSetsRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.IPSetsRequest 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 pb.Chaosdaemon.IPSetsRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.IPSetsRequest 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 pb.Chaosdaemon.IPSetsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.IPSetsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.IPSetsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.IPSetsRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.IPSetsRequest)
+ pb.Chaosdaemon.IPSetsRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_IPSetsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_IPSetsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.IPSetsRequest.class, pb.Chaosdaemon.IPSetsRequest.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.IPSetsRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getIpsetsFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (ipsetsBuilder_ == null) {
+ ipsets_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ipsetsBuilder_.clear();
+ }
+ containerId_ = "";
+
+ enterNS_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_IPSetsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.IPSetsRequest getDefaultInstanceForType() {
+ return pb.Chaosdaemon.IPSetsRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.IPSetsRequest build() {
+ pb.Chaosdaemon.IPSetsRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.IPSetsRequest buildPartial() {
+ pb.Chaosdaemon.IPSetsRequest result = new pb.Chaosdaemon.IPSetsRequest(this);
+ int from_bitField0_ = bitField0_;
+ if (ipsetsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ ipsets_ = java.util.Collections.unmodifiableList(ipsets_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.ipsets_ = ipsets_;
+ } else {
+ result.ipsets_ = ipsetsBuilder_.build();
+ }
+ result.containerId_ = containerId_;
+ result.enterNS_ = enterNS_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.IPSetsRequest) {
+ return mergeFrom((pb.Chaosdaemon.IPSetsRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.IPSetsRequest other) {
+ if (other == pb.Chaosdaemon.IPSetsRequest.getDefaultInstance()) return this;
+ if (ipsetsBuilder_ == null) {
+ if (!other.ipsets_.isEmpty()) {
+ if (ipsets_.isEmpty()) {
+ ipsets_ = other.ipsets_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureIpsetsIsMutable();
+ ipsets_.addAll(other.ipsets_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.ipsets_.isEmpty()) {
+ if (ipsetsBuilder_.isEmpty()) {
+ ipsetsBuilder_.dispose();
+ ipsetsBuilder_ = null;
+ ipsets_ = other.ipsets_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ipsetsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getIpsetsFieldBuilder() : null;
+ } else {
+ ipsetsBuilder_.addAllMessages(other.ipsets_);
+ }
+ }
+ }
+ if (!other.getContainerId().isEmpty()) {
+ containerId_ = other.containerId_;
+ onChanged();
+ }
+ if (other.getEnterNS() != false) {
+ setEnterNS(other.getEnterNS());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.IPSetsRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.IPSetsRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List ipsets_ =
+ java.util.Collections.emptyList();
+ private void ensureIpsetsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ ipsets_ = new java.util.ArrayList(ipsets_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ pb.Chaosdaemon.IPSet, pb.Chaosdaemon.IPSet.Builder, pb.Chaosdaemon.IPSetOrBuilder> ipsetsBuilder_;
+
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public java.util.List getIpsetsList() {
+ if (ipsetsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(ipsets_);
+ } else {
+ return ipsetsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public int getIpsetsCount() {
+ if (ipsetsBuilder_ == null) {
+ return ipsets_.size();
+ } else {
+ return ipsetsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public pb.Chaosdaemon.IPSet getIpsets(int index) {
+ if (ipsetsBuilder_ == null) {
+ return ipsets_.get(index);
+ } else {
+ return ipsetsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public Builder setIpsets(
+ int index, pb.Chaosdaemon.IPSet value) {
+ if (ipsetsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIpsetsIsMutable();
+ ipsets_.set(index, value);
+ onChanged();
+ } else {
+ ipsetsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public Builder setIpsets(
+ int index, pb.Chaosdaemon.IPSet.Builder builderForValue) {
+ if (ipsetsBuilder_ == null) {
+ ensureIpsetsIsMutable();
+ ipsets_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ ipsetsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public Builder addIpsets(pb.Chaosdaemon.IPSet value) {
+ if (ipsetsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIpsetsIsMutable();
+ ipsets_.add(value);
+ onChanged();
+ } else {
+ ipsetsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public Builder addIpsets(
+ int index, pb.Chaosdaemon.IPSet value) {
+ if (ipsetsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIpsetsIsMutable();
+ ipsets_.add(index, value);
+ onChanged();
+ } else {
+ ipsetsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public Builder addIpsets(
+ pb.Chaosdaemon.IPSet.Builder builderForValue) {
+ if (ipsetsBuilder_ == null) {
+ ensureIpsetsIsMutable();
+ ipsets_.add(builderForValue.build());
+ onChanged();
+ } else {
+ ipsetsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public Builder addIpsets(
+ int index, pb.Chaosdaemon.IPSet.Builder builderForValue) {
+ if (ipsetsBuilder_ == null) {
+ ensureIpsetsIsMutable();
+ ipsets_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ ipsetsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public Builder addAllIpsets(
+ java.lang.Iterable extends pb.Chaosdaemon.IPSet> values) {
+ if (ipsetsBuilder_ == null) {
+ ensureIpsetsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, ipsets_);
+ onChanged();
+ } else {
+ ipsetsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public Builder clearIpsets() {
+ if (ipsetsBuilder_ == null) {
+ ipsets_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ ipsetsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public Builder removeIpsets(int index) {
+ if (ipsetsBuilder_ == null) {
+ ensureIpsetsIsMutable();
+ ipsets_.remove(index);
+ onChanged();
+ } else {
+ ipsetsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public pb.Chaosdaemon.IPSet.Builder getIpsetsBuilder(
+ int index) {
+ return getIpsetsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public pb.Chaosdaemon.IPSetOrBuilder getIpsetsOrBuilder(
+ int index) {
+ if (ipsetsBuilder_ == null) {
+ return ipsets_.get(index); } else {
+ return ipsetsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public java.util.List extends pb.Chaosdaemon.IPSetOrBuilder>
+ getIpsetsOrBuilderList() {
+ if (ipsetsBuilder_ != null) {
+ return ipsetsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(ipsets_);
+ }
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public pb.Chaosdaemon.IPSet.Builder addIpsetsBuilder() {
+ return getIpsetsFieldBuilder().addBuilder(
+ pb.Chaosdaemon.IPSet.getDefaultInstance());
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public pb.Chaosdaemon.IPSet.Builder addIpsetsBuilder(
+ int index) {
+ return getIpsetsFieldBuilder().addBuilder(
+ index, pb.Chaosdaemon.IPSet.getDefaultInstance());
+ }
+ /**
+ * repeated .pb.IPSet ipsets = 1;
+ */
+ public java.util.List
+ getIpsetsBuilderList() {
+ return getIpsetsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ pb.Chaosdaemon.IPSet, pb.Chaosdaemon.IPSet.Builder, pb.Chaosdaemon.IPSetOrBuilder>
+ getIpsetsFieldBuilder() {
+ if (ipsetsBuilder_ == null) {
+ ipsetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ pb.Chaosdaemon.IPSet, pb.Chaosdaemon.IPSet.Builder, pb.Chaosdaemon.IPSetOrBuilder>(
+ ipsets_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ ipsets_ = null;
+ }
+ return ipsetsBuilder_;
+ }
+
+ private java.lang.Object containerId_ = "";
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ containerId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @param value The containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearContainerId() {
+
+ containerId_ = getDefaultInstance().getContainerId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string container_id = 2;
+ * @param value The bytes for containerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ containerId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean enterNS_ ;
+ /**
+ * bool enterNS = 3;
+ * @return The enterNS.
+ */
+ @java.lang.Override
+ public boolean getEnterNS() {
+ return enterNS_;
+ }
+ /**
+ * bool enterNS = 3;
+ * @param value The enterNS to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnterNS(boolean value) {
+
+ enterNS_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool enterNS = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearEnterNS() {
+
+ enterNS_ = false;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.IPSetsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.IPSetsRequest)
+ private static final pb.Chaosdaemon.IPSetsRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.IPSetsRequest();
+ }
+
+ public static pb.Chaosdaemon.IPSetsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public IPSetsRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new IPSetsRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.IPSetsRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface IPSetOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.IPSet)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string name = 1;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * repeated string cidrs = 2;
+ * @return A list containing the cidrs.
+ */
+ java.util.List
+ getCidrsList();
+ /**
+ * repeated string cidrs = 2;
+ * @return The count of cidrs.
+ */
+ int getCidrsCount();
+ /**
+ * repeated string cidrs = 2;
+ * @param index The index of the element to return.
+ * @return The cidrs at the given index.
+ */
+ java.lang.String getCidrs(int index);
+ /**
+ * repeated string cidrs = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the cidrs at the given index.
+ */
+ com.google.protobuf.ByteString
+ getCidrsBytes(int index);
+
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ java.util.List
+ getCidrAndPortsList();
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ pb.Chaosdaemon.CidrAndPort getCidrAndPorts(int index);
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ int getCidrAndPortsCount();
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ java.util.List extends pb.Chaosdaemon.CidrAndPortOrBuilder>
+ getCidrAndPortsOrBuilderList();
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ pb.Chaosdaemon.CidrAndPortOrBuilder getCidrAndPortsOrBuilder(
+ int index);
+
+ /**
+ * repeated string set_names = 4;
+ * @return A list containing the setNames.
+ */
+ java.util.List
+ getSetNamesList();
+ /**
+ * repeated string set_names = 4;
+ * @return The count of setNames.
+ */
+ int getSetNamesCount();
+ /**
+ * repeated string set_names = 4;
+ * @param index The index of the element to return.
+ * @return The setNames at the given index.
+ */
+ java.lang.String getSetNames(int index);
+ /**
+ * repeated string set_names = 4;
+ * @param index The index of the value to return.
+ * @return The bytes of the setNames at the given index.
+ */
+ com.google.protobuf.ByteString
+ getSetNamesBytes(int index);
+
+ /**
+ * string type = 5;
+ * @return The type.
+ */
+ java.lang.String getType();
+ /**
+ * string type = 5;
+ * @return The bytes for type.
+ */
+ com.google.protobuf.ByteString
+ getTypeBytes();
+ }
+ /**
+ * Protobuf type {@code pb.IPSet}
+ */
+ public static final class IPSet extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.IPSet)
+ IPSetOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use IPSet.newBuilder() to construct.
+ private IPSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private IPSet() {
+ name_ = "";
+ cidrs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ cidrAndPorts_ = java.util.Collections.emptyList();
+ setNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ type_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new IPSet();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private IPSet(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ cidrs_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ cidrs_.add(s);
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ cidrAndPorts_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ cidrAndPorts_.add(
+ input.readMessage(pb.Chaosdaemon.CidrAndPort.parser(), extensionRegistry));
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ setNames_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ setNames_.add(s);
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ type_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ cidrs_ = cidrs_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ cidrAndPorts_ = java.util.Collections.unmodifiableList(cidrAndPorts_);
+ }
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
+ setNames_ = setNames_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_IPSet_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_IPSet_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.IPSet.class, pb.Chaosdaemon.IPSet.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ * string name = 1;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CIDRS_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList cidrs_;
+ /**
+ * repeated string cidrs = 2;
+ * @return A list containing the cidrs.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getCidrsList() {
+ return cidrs_;
+ }
+ /**
+ * repeated string cidrs = 2;
+ * @return The count of cidrs.
+ */
+ public int getCidrsCount() {
+ return cidrs_.size();
+ }
+ /**
+ * repeated string cidrs = 2;
+ * @param index The index of the element to return.
+ * @return The cidrs at the given index.
+ */
+ public java.lang.String getCidrs(int index) {
+ return cidrs_.get(index);
+ }
+ /**
+ * repeated string cidrs = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the cidrs at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getCidrsBytes(int index) {
+ return cidrs_.getByteString(index);
+ }
+
+ public static final int CIDR_AND_PORTS_FIELD_NUMBER = 3;
+ private java.util.List cidrAndPorts_;
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ @java.lang.Override
+ public java.util.List getCidrAndPortsList() {
+ return cidrAndPorts_;
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends pb.Chaosdaemon.CidrAndPortOrBuilder>
+ getCidrAndPortsOrBuilderList() {
+ return cidrAndPorts_;
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ @java.lang.Override
+ public int getCidrAndPortsCount() {
+ return cidrAndPorts_.size();
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.CidrAndPort getCidrAndPorts(int index) {
+ return cidrAndPorts_.get(index);
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.CidrAndPortOrBuilder getCidrAndPortsOrBuilder(
+ int index) {
+ return cidrAndPorts_.get(index);
+ }
+
+ public static final int SET_NAMES_FIELD_NUMBER = 4;
+ private com.google.protobuf.LazyStringList setNames_;
+ /**
+ * repeated string set_names = 4;
+ * @return A list containing the setNames.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getSetNamesList() {
+ return setNames_;
+ }
+ /**
+ * repeated string set_names = 4;
+ * @return The count of setNames.
+ */
+ public int getSetNamesCount() {
+ return setNames_.size();
+ }
+ /**
+ * repeated string set_names = 4;
+ * @param index The index of the element to return.
+ * @return The setNames at the given index.
+ */
+ public java.lang.String getSetNames(int index) {
+ return setNames_.get(index);
+ }
+ /**
+ * repeated string set_names = 4;
+ * @param index The index of the value to return.
+ * @return The bytes of the setNames at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getSetNamesBytes(int index) {
+ return setNames_.getByteString(index);
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 5;
+ private volatile java.lang.Object type_;
+ /**
+ * string type = 5;
+ * @return The type.
+ */
+ @java.lang.Override
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ 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();
+ type_ = s;
+ return s;
+ }
+ }
+ /**
+ * string type = 5;
+ * @return The bytes for type.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ for (int i = 0; i < cidrs_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cidrs_.getRaw(i));
+ }
+ for (int i = 0; i < cidrAndPorts_.size(); i++) {
+ output.writeMessage(3, cidrAndPorts_.get(i));
+ }
+ for (int i = 0; i < setNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, setNames_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, type_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < cidrs_.size(); i++) {
+ dataSize += computeStringSizeNoTag(cidrs_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getCidrsList().size();
+ }
+ for (int i = 0; i < cidrAndPorts_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, cidrAndPorts_.get(i));
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < setNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(setNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getSetNamesList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, type_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.IPSet)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.IPSet other = (pb.Chaosdaemon.IPSet) obj;
+
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getCidrsList()
+ .equals(other.getCidrsList())) return false;
+ if (!getCidrAndPortsList()
+ .equals(other.getCidrAndPortsList())) return false;
+ if (!getSetNamesList()
+ .equals(other.getSetNamesList())) return false;
+ if (!getType()
+ .equals(other.getType())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ if (getCidrsCount() > 0) {
+ hash = (37 * hash) + CIDRS_FIELD_NUMBER;
+ hash = (53 * hash) + getCidrsList().hashCode();
+ }
+ if (getCidrAndPortsCount() > 0) {
+ hash = (37 * hash) + CIDR_AND_PORTS_FIELD_NUMBER;
+ hash = (53 * hash) + getCidrAndPortsList().hashCode();
+ }
+ if (getSetNamesCount() > 0) {
+ hash = (37 * hash) + SET_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getSetNamesList().hashCode();
+ }
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getType().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.IPSet parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.IPSet parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.IPSet parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.IPSet parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.IPSet parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.IPSet parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.IPSet parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.IPSet 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 pb.Chaosdaemon.IPSet parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.IPSet 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 pb.Chaosdaemon.IPSet parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.IPSet parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.IPSet prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.IPSet}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.IPSet)
+ pb.Chaosdaemon.IPSetOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_IPSet_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_IPSet_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.IPSet.class, pb.Chaosdaemon.IPSet.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.IPSet.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getCidrAndPortsFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ name_ = "";
+
+ cidrs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (cidrAndPortsBuilder_ == null) {
+ cidrAndPorts_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ cidrAndPortsBuilder_.clear();
+ }
+ setNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ type_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_IPSet_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.IPSet getDefaultInstanceForType() {
+ return pb.Chaosdaemon.IPSet.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.IPSet build() {
+ pb.Chaosdaemon.IPSet result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.IPSet buildPartial() {
+ pb.Chaosdaemon.IPSet result = new pb.Chaosdaemon.IPSet(this);
+ int from_bitField0_ = bitField0_;
+ result.name_ = name_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ cidrs_ = cidrs_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.cidrs_ = cidrs_;
+ if (cidrAndPortsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ cidrAndPorts_ = java.util.Collections.unmodifiableList(cidrAndPorts_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.cidrAndPorts_ = cidrAndPorts_;
+ } else {
+ result.cidrAndPorts_ = cidrAndPortsBuilder_.build();
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ setNames_ = setNames_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.setNames_ = setNames_;
+ result.type_ = type_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.IPSet) {
+ return mergeFrom((pb.Chaosdaemon.IPSet)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.IPSet other) {
+ if (other == pb.Chaosdaemon.IPSet.getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ onChanged();
+ }
+ if (!other.cidrs_.isEmpty()) {
+ if (cidrs_.isEmpty()) {
+ cidrs_ = other.cidrs_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureCidrsIsMutable();
+ cidrs_.addAll(other.cidrs_);
+ }
+ onChanged();
+ }
+ if (cidrAndPortsBuilder_ == null) {
+ if (!other.cidrAndPorts_.isEmpty()) {
+ if (cidrAndPorts_.isEmpty()) {
+ cidrAndPorts_ = other.cidrAndPorts_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureCidrAndPortsIsMutable();
+ cidrAndPorts_.addAll(other.cidrAndPorts_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.cidrAndPorts_.isEmpty()) {
+ if (cidrAndPortsBuilder_.isEmpty()) {
+ cidrAndPortsBuilder_.dispose();
+ cidrAndPortsBuilder_ = null;
+ cidrAndPorts_ = other.cidrAndPorts_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ cidrAndPortsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getCidrAndPortsFieldBuilder() : null;
+ } else {
+ cidrAndPortsBuilder_.addAllMessages(other.cidrAndPorts_);
+ }
+ }
+ }
+ if (!other.setNames_.isEmpty()) {
+ if (setNames_.isEmpty()) {
+ setNames_ = other.setNames_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureSetNamesIsMutable();
+ setNames_.addAll(other.setNames_);
+ }
+ onChanged();
+ }
+ if (!other.getType().isEmpty()) {
+ type_ = other.type_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.IPSet parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.IPSet) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object name_ = "";
+ /**
+ * string name = 1;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 1;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList cidrs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureCidrsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ cidrs_ = new com.google.protobuf.LazyStringArrayList(cidrs_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * repeated string cidrs = 2;
+ * @return A list containing the cidrs.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getCidrsList() {
+ return cidrs_.getUnmodifiableView();
+ }
+ /**
+ * repeated string cidrs = 2;
+ * @return The count of cidrs.
+ */
+ public int getCidrsCount() {
+ return cidrs_.size();
+ }
+ /**
+ * repeated string cidrs = 2;
+ * @param index The index of the element to return.
+ * @return The cidrs at the given index.
+ */
+ public java.lang.String getCidrs(int index) {
+ return cidrs_.get(index);
+ }
+ /**
+ * repeated string cidrs = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the cidrs at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getCidrsBytes(int index) {
+ return cidrs_.getByteString(index);
+ }
+ /**
+ * repeated string cidrs = 2;
+ * @param index The index to set the value at.
+ * @param value The cidrs to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCidrs(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCidrsIsMutable();
+ cidrs_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string cidrs = 2;
+ * @param value The cidrs to add.
+ * @return This builder for chaining.
+ */
+ public Builder addCidrs(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCidrsIsMutable();
+ cidrs_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string cidrs = 2;
+ * @param values The cidrs to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllCidrs(
+ java.lang.Iterable values) {
+ ensureCidrsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, cidrs_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string cidrs = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCidrs() {
+ cidrs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string cidrs = 2;
+ * @param value The bytes of the cidrs to add.
+ * @return This builder for chaining.
+ */
+ public Builder addCidrsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureCidrsIsMutable();
+ cidrs_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.util.List cidrAndPorts_ =
+ java.util.Collections.emptyList();
+ private void ensureCidrAndPortsIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ cidrAndPorts_ = new java.util.ArrayList(cidrAndPorts_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ pb.Chaosdaemon.CidrAndPort, pb.Chaosdaemon.CidrAndPort.Builder, pb.Chaosdaemon.CidrAndPortOrBuilder> cidrAndPortsBuilder_;
+
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public java.util.List getCidrAndPortsList() {
+ if (cidrAndPortsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(cidrAndPorts_);
+ } else {
+ return cidrAndPortsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public int getCidrAndPortsCount() {
+ if (cidrAndPortsBuilder_ == null) {
+ return cidrAndPorts_.size();
+ } else {
+ return cidrAndPortsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public pb.Chaosdaemon.CidrAndPort getCidrAndPorts(int index) {
+ if (cidrAndPortsBuilder_ == null) {
+ return cidrAndPorts_.get(index);
+ } else {
+ return cidrAndPortsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public Builder setCidrAndPorts(
+ int index, pb.Chaosdaemon.CidrAndPort value) {
+ if (cidrAndPortsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCidrAndPortsIsMutable();
+ cidrAndPorts_.set(index, value);
+ onChanged();
+ } else {
+ cidrAndPortsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public Builder setCidrAndPorts(
+ int index, pb.Chaosdaemon.CidrAndPort.Builder builderForValue) {
+ if (cidrAndPortsBuilder_ == null) {
+ ensureCidrAndPortsIsMutable();
+ cidrAndPorts_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ cidrAndPortsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public Builder addCidrAndPorts(pb.Chaosdaemon.CidrAndPort value) {
+ if (cidrAndPortsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCidrAndPortsIsMutable();
+ cidrAndPorts_.add(value);
+ onChanged();
+ } else {
+ cidrAndPortsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public Builder addCidrAndPorts(
+ int index, pb.Chaosdaemon.CidrAndPort value) {
+ if (cidrAndPortsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCidrAndPortsIsMutable();
+ cidrAndPorts_.add(index, value);
+ onChanged();
+ } else {
+ cidrAndPortsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public Builder addCidrAndPorts(
+ pb.Chaosdaemon.CidrAndPort.Builder builderForValue) {
+ if (cidrAndPortsBuilder_ == null) {
+ ensureCidrAndPortsIsMutable();
+ cidrAndPorts_.add(builderForValue.build());
+ onChanged();
+ } else {
+ cidrAndPortsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public Builder addCidrAndPorts(
+ int index, pb.Chaosdaemon.CidrAndPort.Builder builderForValue) {
+ if (cidrAndPortsBuilder_ == null) {
+ ensureCidrAndPortsIsMutable();
+ cidrAndPorts_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ cidrAndPortsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public Builder addAllCidrAndPorts(
+ java.lang.Iterable extends pb.Chaosdaemon.CidrAndPort> values) {
+ if (cidrAndPortsBuilder_ == null) {
+ ensureCidrAndPortsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, cidrAndPorts_);
+ onChanged();
+ } else {
+ cidrAndPortsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public Builder clearCidrAndPorts() {
+ if (cidrAndPortsBuilder_ == null) {
+ cidrAndPorts_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ cidrAndPortsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public Builder removeCidrAndPorts(int index) {
+ if (cidrAndPortsBuilder_ == null) {
+ ensureCidrAndPortsIsMutable();
+ cidrAndPorts_.remove(index);
+ onChanged();
+ } else {
+ cidrAndPortsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public pb.Chaosdaemon.CidrAndPort.Builder getCidrAndPortsBuilder(
+ int index) {
+ return getCidrAndPortsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public pb.Chaosdaemon.CidrAndPortOrBuilder getCidrAndPortsOrBuilder(
+ int index) {
+ if (cidrAndPortsBuilder_ == null) {
+ return cidrAndPorts_.get(index); } else {
+ return cidrAndPortsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public java.util.List extends pb.Chaosdaemon.CidrAndPortOrBuilder>
+ getCidrAndPortsOrBuilderList() {
+ if (cidrAndPortsBuilder_ != null) {
+ return cidrAndPortsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(cidrAndPorts_);
+ }
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public pb.Chaosdaemon.CidrAndPort.Builder addCidrAndPortsBuilder() {
+ return getCidrAndPortsFieldBuilder().addBuilder(
+ pb.Chaosdaemon.CidrAndPort.getDefaultInstance());
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public pb.Chaosdaemon.CidrAndPort.Builder addCidrAndPortsBuilder(
+ int index) {
+ return getCidrAndPortsFieldBuilder().addBuilder(
+ index, pb.Chaosdaemon.CidrAndPort.getDefaultInstance());
+ }
+ /**
+ * repeated .pb.CidrAndPort cidr_and_ports = 3;
+ */
+ public java.util.List
+ getCidrAndPortsBuilderList() {
+ return getCidrAndPortsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ pb.Chaosdaemon.CidrAndPort, pb.Chaosdaemon.CidrAndPort.Builder, pb.Chaosdaemon.CidrAndPortOrBuilder>
+ getCidrAndPortsFieldBuilder() {
+ if (cidrAndPortsBuilder_ == null) {
+ cidrAndPortsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ pb.Chaosdaemon.CidrAndPort, pb.Chaosdaemon.CidrAndPort.Builder, pb.Chaosdaemon.CidrAndPortOrBuilder>(
+ cidrAndPorts_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ cidrAndPorts_ = null;
+ }
+ return cidrAndPortsBuilder_;
+ }
+
+ private com.google.protobuf.LazyStringList setNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureSetNamesIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ setNames_ = new com.google.protobuf.LazyStringArrayList(setNames_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+ /**
+ * repeated string set_names = 4;
+ * @return A list containing the setNames.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getSetNamesList() {
+ return setNames_.getUnmodifiableView();
+ }
+ /**
+ * repeated string set_names = 4;
+ * @return The count of setNames.
+ */
+ public int getSetNamesCount() {
+ return setNames_.size();
+ }
+ /**
+ * repeated string set_names = 4;
+ * @param index The index of the element to return.
+ * @return The setNames at the given index.
+ */
+ public java.lang.String getSetNames(int index) {
+ return setNames_.get(index);
+ }
+ /**
+ * repeated string set_names = 4;
+ * @param index The index of the value to return.
+ * @return The bytes of the setNames at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getSetNamesBytes(int index) {
+ return setNames_.getByteString(index);
+ }
+ /**
+ * repeated string set_names = 4;
+ * @param index The index to set the value at.
+ * @param value The setNames to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSetNames(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSetNamesIsMutable();
+ setNames_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string set_names = 4;
+ * @param value The setNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSetNames(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSetNamesIsMutable();
+ setNames_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string set_names = 4;
+ * @param values The setNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllSetNames(
+ java.lang.Iterable values) {
+ ensureSetNamesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, setNames_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string set_names = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearSetNames() {
+ setNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string set_names = 4;
+ * @param value The bytes of the setNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSetNamesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureSetNamesIsMutable();
+ setNames_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object type_ = "";
+ /**
+ * string type = 5;
+ * @return The type.
+ */
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ type_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string type = 5;
+ * @return The bytes for type.
+ */
+ public com.google.protobuf.ByteString
+ getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string type = 5;
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ type_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string type = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+
+ type_ = getDefaultInstance().getType();
+ onChanged();
+ return this;
+ }
+ /**
+ * string type = 5;
+ * @param value The bytes for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ type_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.IPSet)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.IPSet)
+ private static final pb.Chaosdaemon.IPSet DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.IPSet();
+ }
+
+ public static pb.Chaosdaemon.IPSet getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public IPSet parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new IPSet(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.IPSet getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CidrAndPortOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.CidrAndPort)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string cidr = 1;
+ * @return The cidr.
+ */
+ java.lang.String getCidr();
+ /**
+ * string cidr = 1;
+ * @return The bytes for cidr.
+ */
+ com.google.protobuf.ByteString
+ getCidrBytes();
+
+ /**
+ * uint32 port = 2;
+ * @return The port.
+ */
+ int getPort();
+ }
+ /**
+ * Protobuf type {@code pb.CidrAndPort}
+ */
+ public static final class CidrAndPort extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.CidrAndPort)
+ CidrAndPortOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CidrAndPort.newBuilder() to construct.
+ private CidrAndPort(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private CidrAndPort() {
+ cidr_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CidrAndPort();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private CidrAndPort(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ cidr_ = s;
+ break;
+ }
+ case 16: {
+
+ port_ = input.readUInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_CidrAndPort_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_CidrAndPort_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.CidrAndPort.class, pb.Chaosdaemon.CidrAndPort.Builder.class);
+ }
+
+ public static final int CIDR_FIELD_NUMBER = 1;
+ private volatile java.lang.Object cidr_;
+ /**
+ * string cidr = 1;
+ * @return The cidr.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ * string cidr = 1;
+ * @return The bytes for cidr.
+ */
+ @java.lang.Override
+ 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 PORT_FIELD_NUMBER = 2;
+ private int port_;
+ /**
+ * uint32 port = 2;
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cidr_);
+ }
+ if (port_ != 0) {
+ output.writeUInt32(2, port_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidr_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cidr_);
+ }
+ if (port_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, port_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.CidrAndPort)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.CidrAndPort other = (pb.Chaosdaemon.CidrAndPort) obj;
+
+ if (!getCidr()
+ .equals(other.getCidr())) return false;
+ if (getPort()
+ != other.getPort()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CIDR_FIELD_NUMBER;
+ hash = (53 * hash) + getCidr().hashCode();
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.CidrAndPort parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.CidrAndPort parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.CidrAndPort parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.CidrAndPort parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.CidrAndPort parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.CidrAndPort parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.CidrAndPort parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.CidrAndPort 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 pb.Chaosdaemon.CidrAndPort parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.CidrAndPort 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 pb.Chaosdaemon.CidrAndPort parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.CidrAndPort parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.CidrAndPort prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.CidrAndPort}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.CidrAndPort)
+ pb.Chaosdaemon.CidrAndPortOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_CidrAndPort_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_CidrAndPort_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.CidrAndPort.class, pb.Chaosdaemon.CidrAndPort.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.CidrAndPort.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ cidr_ = "";
+
+ port_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_CidrAndPort_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.CidrAndPort getDefaultInstanceForType() {
+ return pb.Chaosdaemon.CidrAndPort.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.CidrAndPort build() {
+ pb.Chaosdaemon.CidrAndPort result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.CidrAndPort buildPartial() {
+ pb.Chaosdaemon.CidrAndPort result = new pb.Chaosdaemon.CidrAndPort(this);
+ result.cidr_ = cidr_;
+ result.port_ = port_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.CidrAndPort) {
+ return mergeFrom((pb.Chaosdaemon.CidrAndPort)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.CidrAndPort other) {
+ if (other == pb.Chaosdaemon.CidrAndPort.getDefaultInstance()) return this;
+ if (!other.getCidr().isEmpty()) {
+ cidr_ = other.cidr_;
+ onChanged();
+ }
+ if (other.getPort() != 0) {
+ setPort(other.getPort());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.CidrAndPort parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.CidrAndPort) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object cidr_ = "";
+ /**
+ * string cidr = 1;
+ * @return The cidr.
+ */
+ 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;
+ }
+ }
+ /**
+ * string cidr = 1;
+ * @return The bytes for cidr.
+ */
+ 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;
+ }
+ }
+ /**
+ * string cidr = 1;
+ * @param value The cidr to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCidr(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ cidr_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string cidr = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearCidr() {
+
+ cidr_ = getDefaultInstance().getCidr();
+ onChanged();
+ return this;
+ }
+ /**
+ * string cidr = 1;
+ * @param value The bytes for cidr to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCidrBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ cidr_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int port_ ;
+ /**
+ * uint32 port = 2;
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+ /**
+ * uint32 port = 2;
+ * @param value The port to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPort(int value) {
+
+ port_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 port = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearPort() {
+
+ port_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:pb.CidrAndPort)
+ }
+
+ // @@protoc_insertion_point(class_scope:pb.CidrAndPort)
+ private static final pb.Chaosdaemon.CidrAndPort DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new pb.Chaosdaemon.CidrAndPort();
+ }
+
+ public static pb.Chaosdaemon.CidrAndPort getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CidrAndPort parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CidrAndPort(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.CidrAndPort getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface IptablesChainsRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:pb.IptablesChainsRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .pb.Chain chains = 1;
+ */
+ java.util.List
+ getChainsList();
+ /**
+ * repeated .pb.Chain chains = 1;
+ */
+ pb.Chaosdaemon.Chain getChains(int index);
+ /**
+ * repeated .pb.Chain chains = 1;
+ */
+ int getChainsCount();
+ /**
+ * repeated .pb.Chain chains = 1;
+ */
+ java.util.List extends pb.Chaosdaemon.ChainOrBuilder>
+ getChainsOrBuilderList();
+ /**
+ * repeated .pb.Chain chains = 1;
+ */
+ pb.Chaosdaemon.ChainOrBuilder getChainsOrBuilder(
+ int index);
+
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ java.lang.String getContainerId();
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ com.google.protobuf.ByteString
+ getContainerIdBytes();
+
+ /**
+ * bool enterNS = 3;
+ * @return The enterNS.
+ */
+ boolean getEnterNS();
+ }
+ /**
+ * Protobuf type {@code pb.IptablesChainsRequest}
+ */
+ public static final class IptablesChainsRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:pb.IptablesChainsRequest)
+ IptablesChainsRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use IptablesChainsRequest.newBuilder() to construct.
+ private IptablesChainsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private IptablesChainsRequest() {
+ chains_ = java.util.Collections.emptyList();
+ containerId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new IptablesChainsRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private IptablesChainsRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ chains_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ chains_.add(
+ input.readMessage(pb.Chaosdaemon.Chain.parser(), extensionRegistry));
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ containerId_ = s;
+ break;
+ }
+ case 24: {
+
+ enterNS_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ chains_ = java.util.Collections.unmodifiableList(chains_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_IptablesChainsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_IptablesChainsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.IptablesChainsRequest.class, pb.Chaosdaemon.IptablesChainsRequest.Builder.class);
+ }
+
+ public static final int CHAINS_FIELD_NUMBER = 1;
+ private java.util.List chains_;
+ /**
+ * repeated .pb.Chain chains = 1;
+ */
+ @java.lang.Override
+ public java.util.List getChainsList() {
+ return chains_;
+ }
+ /**
+ * repeated .pb.Chain chains = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends pb.Chaosdaemon.ChainOrBuilder>
+ getChainsOrBuilderList() {
+ return chains_;
+ }
+ /**
+ * repeated .pb.Chain chains = 1;
+ */
+ @java.lang.Override
+ public int getChainsCount() {
+ return chains_.size();
+ }
+ /**
+ * repeated .pb.Chain chains = 1;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.Chain getChains(int index) {
+ return chains_.get(index);
+ }
+ /**
+ * repeated .pb.Chain chains = 1;
+ */
+ @java.lang.Override
+ public pb.Chaosdaemon.ChainOrBuilder getChainsOrBuilder(
+ int index) {
+ return chains_.get(index);
+ }
+
+ public static final int CONTAINER_ID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object containerId_;
+ /**
+ * string container_id = 2;
+ * @return The containerId.
+ */
+ @java.lang.Override
+ public java.lang.String getContainerId() {
+ java.lang.Object ref = containerId_;
+ 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();
+ containerId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string container_id = 2;
+ * @return The bytes for containerId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContainerIdBytes() {
+ java.lang.Object ref = containerId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ containerId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENTERNS_FIELD_NUMBER = 3;
+ private boolean enterNS_;
+ /**
+ * bool enterNS = 3;
+ * @return The enterNS.
+ */
+ @java.lang.Override
+ public boolean getEnterNS() {
+ return enterNS_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < chains_.size(); i++) {
+ output.writeMessage(1, chains_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerId_);
+ }
+ if (enterNS_ != false) {
+ output.writeBool(3, enterNS_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < chains_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, chains_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerId_);
+ }
+ if (enterNS_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, enterNS_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof pb.Chaosdaemon.IptablesChainsRequest)) {
+ return super.equals(obj);
+ }
+ pb.Chaosdaemon.IptablesChainsRequest other = (pb.Chaosdaemon.IptablesChainsRequest) obj;
+
+ if (!getChainsList()
+ .equals(other.getChainsList())) return false;
+ if (!getContainerId()
+ .equals(other.getContainerId())) return false;
+ if (getEnterNS()
+ != other.getEnterNS()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getChainsCount() > 0) {
+ hash = (37 * hash) + CHAINS_FIELD_NUMBER;
+ hash = (53 * hash) + getChainsList().hashCode();
+ }
+ hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getContainerId().hashCode();
+ hash = (37 * hash) + ENTERNS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEnterNS());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static pb.Chaosdaemon.IptablesChainsRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.IptablesChainsRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.IptablesChainsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.IptablesChainsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.IptablesChainsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static pb.Chaosdaemon.IptablesChainsRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static pb.Chaosdaemon.IptablesChainsRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.IptablesChainsRequest 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 pb.Chaosdaemon.IptablesChainsRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.IptablesChainsRequest 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 pb.Chaosdaemon.IptablesChainsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static pb.Chaosdaemon.IptablesChainsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(pb.Chaosdaemon.IptablesChainsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code pb.IptablesChainsRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:pb.IptablesChainsRequest)
+ pb.Chaosdaemon.IptablesChainsRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return pb.Chaosdaemon.internal_static_pb_IptablesChainsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return pb.Chaosdaemon.internal_static_pb_IptablesChainsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ pb.Chaosdaemon.IptablesChainsRequest.class, pb.Chaosdaemon.IptablesChainsRequest.Builder.class);
+ }
+
+ // Construct using pb.Chaosdaemon.IptablesChainsRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getChainsFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (chainsBuilder_ == null) {
+ chains_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ chainsBuilder_.clear();
+ }
+ containerId_ = "";
+
+ enterNS_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return pb.Chaosdaemon.internal_static_pb_IptablesChainsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.IptablesChainsRequest getDefaultInstanceForType() {
+ return pb.Chaosdaemon.IptablesChainsRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.IptablesChainsRequest build() {
+ pb.Chaosdaemon.IptablesChainsRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public pb.Chaosdaemon.IptablesChainsRequest buildPartial() {
+ pb.Chaosdaemon.IptablesChainsRequest result = new pb.Chaosdaemon.IptablesChainsRequest(this);
+ int from_bitField0_ = bitField0_;
+ if (chainsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ chains_ = java.util.Collections.unmodifiableList(chains_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.chains_ = chains_;
+ } else {
+ result.chains_ = chainsBuilder_.build();
+ }
+ result.containerId_ = containerId_;
+ result.enterNS_ = enterNS_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof pb.Chaosdaemon.IptablesChainsRequest) {
+ return mergeFrom((pb.Chaosdaemon.IptablesChainsRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(pb.Chaosdaemon.IptablesChainsRequest other) {
+ if (other == pb.Chaosdaemon.IptablesChainsRequest.getDefaultInstance()) return this;
+ if (chainsBuilder_ == null) {
+ if (!other.chains_.isEmpty()) {
+ if (chains_.isEmpty()) {
+ chains_ = other.chains_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureChainsIsMutable();
+ chains_.addAll(other.chains_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.chains_.isEmpty()) {
+ if (chainsBuilder_.isEmpty()) {
+ chainsBuilder_.dispose();
+ chainsBuilder_ = null;
+ chains_ = other.chains_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ chainsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getChainsFieldBuilder() : null;
+ } else {
+ chainsBuilder_.addAllMessages(other.chains_);
+ }
+ }
+ }
+ if (!other.getContainerId().isEmpty()) {
+ containerId_ = other.containerId_;
+ onChanged();
+ }
+ if (other.getEnterNS() != false) {
+ setEnterNS(other.getEnterNS());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ pb.Chaosdaemon.IptablesChainsRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (pb.Chaosdaemon.IptablesChainsRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List chains_ =
+ java.util.Collections.emptyList();
+ private void ensureChainsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ chains_ = new java.util.ArrayList(chains_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ pb.Chaosdaemon.Chain, pb.Chaosdaemon.Chain.Builder, pb.Chaosdaemon.ChainOrBuilder> chainsBuilder_;
+
+ /**
+ *