diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 4b79bcaefe..b0c867a92f 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -255,13 +255,13 @@ All wire protocol changes that may concern rolling upgrades should be documented
## Protobuf
-Akka includes a shaded version of protobuf `2.5.0` that is used for internal communication. To generate files
+Akka includes a shaded version of protobuf `3.9.0` that is used for internal communication. To generate files
run `protobufGenerate`. The generated files are put in the `src/main/java` of each project and need to be commited.
The generated files are automatically transformed to use the shaded version of protobuf.
-Generation depends on protoc `2.5.0` being on the path. Old versions of
+Generation depends on protoc `3.9.0` being on the path. Old versions of
protoc can be downloaded from the [protobuf release page](https://github.com/protocolbuffers/protobuf/releases) and built from
-source or downloaded from [maven central](http://repo1.maven.org/maven2/com/google/protobuf/protoc/2.5.0/). See
+source or downloaded from [maven central](http://repo1.maven.org/maven2/com/google/protobuf/protoc/3.9.0/). See
[Protobuf.scala](https://github.com/akka/akka/blob/master/project/Protobuf.scala) for details of how to override
the settings for generation.
diff --git a/akka-actor/src/main/scala/akka/serialization/Serialization.scala b/akka-actor/src/main/scala/akka/serialization/Serialization.scala
index a06118c917..8ea4845a71 100644
--- a/akka-actor/src/main/scala/akka/serialization/Serialization.scala
+++ b/akka-actor/src/main/scala/akka/serialization/Serialization.scala
@@ -434,7 +434,7 @@ class Serialization(val system: ExtendedActorSystem) extends Extension {
private[akka] val bindings: immutable.Seq[ClassSerializer] = {
val fromConfig = for {
(className: String, alias: String) <- settings.SerializationBindings
- if alias != "none" && checkGoogleProtobuf(className)
+ if alias != "none" && checkGoogleProtobuf(className) && checkAkkaProtobuf(className)
} yield (system.dynamicAccess.getClassFor[Any](className).get, serializers(alias))
val fromSettings = serializerDetails.flatMap { detail =>
@@ -469,8 +469,14 @@ class Serialization(val system: ExtendedActorSystem) extends Extension {
// i.e. com.google.protobuf dependency has been added in the application project.
// The reason for this special case is for backwards compatibility so that we still can
// include "com.google.protobuf.GeneratedMessage" = proto in configured serialization-bindings.
- private def checkGoogleProtobuf(className: String): Boolean =
- (!className.startsWith("com.google.protobuf") || system.dynamicAccess.getClassFor[Any](className).isSuccess)
+ private def checkGoogleProtobuf(className: String): Boolean = checkClass("com.google.protobuf", className)
+
+ // akka-protobuf is now not a dependency of remote so only load if user has explicitly added it
+ // remove in 2.7
+ private def checkAkkaProtobuf(className: String): Boolean = checkClass("akka.protobuf", className)
+
+ private def checkClass(prefix: String, className: String): Boolean =
+ !className.startsWith(prefix) || system.dynamicAccess.getClassFor[Any](className).isSuccess
/**
* Sort so that subtypes always precede their supertypes, but without
diff --git a/akka-cluster-metrics/src/main/java/akka/cluster/metrics/protobuf/msg/ClusterMetricsMessages.java b/akka-cluster-metrics/src/main/java/akka/cluster/metrics/protobuf/msg/ClusterMetricsMessages.java
index deb7cdfd12..bc4d193863 100644
--- a/akka-cluster-metrics/src/main/java/akka/cluster/metrics/protobuf/msg/ClusterMetricsMessages.java
+++ b/akka-cluster-metrics/src/main/java/akka/cluster/metrics/protobuf/msg/ClusterMetricsMessages.java
@@ -10,12 +10,18 @@ package akka.cluster.metrics.protobuf.msg;
public final class ClusterMetricsMessages {
private ClusterMetricsMessages() {}
public static void registerAllExtensions(
- akka.protobuf.ExtensionRegistry registry) {
+ akka.protobufv3.internal.ExtensionRegistryLite registry) {
}
- public interface MetricsGossipEnvelopeOrBuilder
- extends akka.protobuf.MessageOrBuilder {
- // required .Address from = 1;
+ public static void registerAllExtensions(
+ akka.protobufv3.internal.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (akka.protobufv3.internal.ExtensionRegistryLite) registry);
+ }
+ public interface MetricsGossipEnvelopeOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:MetricsGossipEnvelope)
+ akka.protobufv3.internal.MessageOrBuilder {
+
/**
* required .Address from = 1;
*/
@@ -29,7 +35,6 @@ public final class ClusterMetricsMessages {
*/
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AddressOrBuilder getFromOrBuilder();
- // required .MetricsGossip gossip = 2;
/**
* required .MetricsGossip gossip = 2;
*/
@@ -43,7 +48,6 @@ public final class ClusterMetricsMessages {
*/
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipOrBuilder getGossipOrBuilder();
- // required bool reply = 3;
/**
* required bool reply = 3;
*/
@@ -54,46 +58,48 @@ public final class ClusterMetricsMessages {
boolean getReply();
}
/**
- * Protobuf type {@code MetricsGossipEnvelope}
- *
*
**
* Metrics Gossip Envelope
*
+ *
+ * Protobuf type {@code MetricsGossipEnvelope}
*/
- public static final class MetricsGossipEnvelope extends
- akka.protobuf.GeneratedMessage
- implements MetricsGossipEnvelopeOrBuilder {
+ public static final class MetricsGossipEnvelope extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:MetricsGossipEnvelope)
+ MetricsGossipEnvelopeOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use MetricsGossipEnvelope.newBuilder() to construct.
- private MetricsGossipEnvelope(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private MetricsGossipEnvelope(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private MetricsGossipEnvelope(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final MetricsGossipEnvelope defaultInstance;
- public static MetricsGossipEnvelope getDefaultInstance() {
- return defaultInstance;
+ private MetricsGossipEnvelope() {
}
- public MetricsGossipEnvelope getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new MetricsGossipEnvelope();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private MetricsGossipEnvelope(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -102,16 +108,9 @@ public final class ClusterMetricsMessages {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = from_.toBuilder();
}
from_ = input.readMessage(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.PARSER, extensionRegistry);
@@ -124,7 +123,7 @@ public final class ClusterMetricsMessages {
}
case 18: {
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = gossip_.toBuilder();
}
gossip_ = input.readMessage(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.PARSER, extensionRegistry);
@@ -140,98 +139,88 @@ public final class ClusterMetricsMessages {
reply_ = input.readBool();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_MetricsGossipEnvelope_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_MetricsGossipEnvelope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope.class, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope.Builder.class);
}
- public static akka.protobuf.Parserrequired .Address from = 1;
*/
public boolean hasFrom() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .Address from = 1;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address getFrom() {
- return from_;
+ return from_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.getDefaultInstance() : from_;
}
/**
* required .Address from = 1;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AddressOrBuilder getFromOrBuilder() {
- return from_;
+ return from_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.getDefaultInstance() : from_;
}
- // required .MetricsGossip gossip = 2;
public static final int GOSSIP_FIELD_NUMBER = 2;
private akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip gossip_;
/**
* required .MetricsGossip gossip = 2;
*/
public boolean hasGossip() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .MetricsGossip gossip = 2;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip getGossip() {
- return gossip_;
+ return gossip_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.getDefaultInstance() : gossip_;
}
/**
* required .MetricsGossip gossip = 2;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipOrBuilder getGossipOrBuilder() {
- return gossip_;
+ return gossip_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.getDefaultInstance() : gossip_;
}
- // required bool reply = 3;
public static final int REPLY_FIELD_NUMBER = 3;
private boolean reply_;
/**
* required bool reply = 3;
*/
public boolean hasReply() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* required bool reply = 3;
@@ -240,15 +229,12 @@ public final class ClusterMetricsMessages {
return reply_;
}
- private void initFields() {
- from_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.getDefaultInstance();
- gossip_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.getDefaultInstance();
- reply_ = false;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasFrom()) {
memoizedIsInitialized = 0;
@@ -274,134 +260,207 @@ public final class ClusterMetricsMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, from_);
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getFrom());
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, gossip_);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getGossip());
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(3, reply_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeMessageSize(1, from_);
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
+ .computeMessageSize(1, getFrom());
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += akka.protobuf.CodedOutputStream
- .computeMessageSize(2, gossip_);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
+ .computeMessageSize(2, getGossip());
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeBoolSize(3, reply_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope)) {
+ return super.equals(obj);
+ }
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope other = (akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope) obj;
+
+ if (hasFrom() != other.hasFrom()) return false;
+ if (hasFrom()) {
+ if (!getFrom()
+ .equals(other.getFrom())) return false;
+ }
+ if (hasGossip() != other.hasGossip()) return false;
+ if (hasGossip()) {
+ if (!getGossip()
+ .equals(other.getGossip())) return false;
+ }
+ if (hasReply() != other.hasReply()) return false;
+ if (hasReply()) {
+ if (getReply()
+ != other.getReply()) 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 (hasFrom()) {
+ hash = (37 * hash) + FROM_FIELD_NUMBER;
+ hash = (53 * hash) + getFrom().hashCode();
+ }
+ if (hasGossip()) {
+ hash = (37 * hash) + GOSSIP_FIELD_NUMBER;
+ hash = (53 * hash) + getGossip().hashCode();
+ }
+ if (hasReply()) {
+ hash = (37 * hash) + REPLY_FIELD_NUMBER;
+ hash = (53 * hash) + akka.protobufv3.internal.Internal.hashBoolean(
+ getReply());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code MetricsGossipEnvelope}
- *
*
**
* Metrics Gossip Envelope
*
+ *
+ * Protobuf type {@code MetricsGossipEnvelope}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired .Address from = 1;
*/
public boolean hasFrom() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .Address from = 1;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address getFrom() {
if (fromBuilder_ == null) {
- return from_;
+ return from_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.getDefaultInstance() : from_;
} else {
return fromBuilder_.getMessage();
}
@@ -619,7 +706,8 @@ public final class ClusterMetricsMessages {
*/
public Builder mergeFrom(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address value) {
if (fromBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ if (((bitField0_ & 0x00000001) != 0) &&
+ from_ != null &&
from_ != akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.getDefaultInstance()) {
from_ =
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.newBuilder(from_).mergeFrom(value).buildPartial();
@@ -638,7 +726,7 @@ public final class ClusterMetricsMessages {
*/
public Builder clearFrom() {
if (fromBuilder_ == null) {
- from_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.getDefaultInstance();
+ from_ = null;
onChanged();
} else {
fromBuilder_.clear();
@@ -661,19 +749,20 @@ public final class ClusterMetricsMessages {
if (fromBuilder_ != null) {
return fromBuilder_.getMessageOrBuilder();
} else {
- return from_;
+ return from_ == null ?
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.getDefaultInstance() : from_;
}
}
/**
* required .Address from = 1;
*/
- private akka.protobuf.SingleFieldBuilder<
+ private akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AddressOrBuilder>
getFromFieldBuilder() {
if (fromBuilder_ == null) {
- fromBuilder_ = new akka.protobuf.SingleFieldBuilder<
+ fromBuilder_ = new akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AddressOrBuilder>(
- from_,
+ getFrom(),
getParentForChildren(),
isClean());
from_ = null;
@@ -681,22 +770,21 @@ public final class ClusterMetricsMessages {
return fromBuilder_;
}
- // required .MetricsGossip gossip = 2;
- private akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip gossip_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.getDefaultInstance();
- private akka.protobuf.SingleFieldBuilder<
+ private akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip gossip_;
+ private akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipOrBuilder> gossipBuilder_;
/**
* required .MetricsGossip gossip = 2;
*/
public boolean hasGossip() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .MetricsGossip gossip = 2;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip getGossip() {
if (gossipBuilder_ == null) {
- return gossip_;
+ return gossip_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.getDefaultInstance() : gossip_;
} else {
return gossipBuilder_.getMessage();
}
@@ -736,7 +824,8 @@ public final class ClusterMetricsMessages {
*/
public Builder mergeGossip(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip value) {
if (gossipBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ if (((bitField0_ & 0x00000002) != 0) &&
+ gossip_ != null &&
gossip_ != akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.getDefaultInstance()) {
gossip_ =
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.newBuilder(gossip_).mergeFrom(value).buildPartial();
@@ -755,7 +844,7 @@ public final class ClusterMetricsMessages {
*/
public Builder clearGossip() {
if (gossipBuilder_ == null) {
- gossip_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.getDefaultInstance();
+ gossip_ = null;
onChanged();
} else {
gossipBuilder_.clear();
@@ -778,19 +867,20 @@ public final class ClusterMetricsMessages {
if (gossipBuilder_ != null) {
return gossipBuilder_.getMessageOrBuilder();
} else {
- return gossip_;
+ return gossip_ == null ?
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.getDefaultInstance() : gossip_;
}
}
/**
* required .MetricsGossip gossip = 2;
*/
- private akka.protobuf.SingleFieldBuilder<
+ private akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipOrBuilder>
getGossipFieldBuilder() {
if (gossipBuilder_ == null) {
- gossipBuilder_ = new akka.protobuf.SingleFieldBuilder<
+ gossipBuilder_ = new akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossip.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipOrBuilder>(
- gossip_,
+ getGossip(),
getParentForChildren(),
isClean());
gossip_ = null;
@@ -798,13 +888,12 @@ public final class ClusterMetricsMessages {
return gossipBuilder_;
}
- // required bool reply = 3;
private boolean reply_ ;
/**
* required bool reply = 3;
*/
public boolean hasReply() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* required bool reply = 3;
@@ -830,22 +919,63 @@ public final class ClusterMetricsMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:MetricsGossipEnvelope)
}
+ // @@protoc_insertion_point(class_scope:MetricsGossipEnvelope)
+ private static final akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope DEFAULT_INSTANCE;
static {
- defaultInstance = new MetricsGossipEnvelope(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope();
+ }
+
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsGossipEnvelope getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrepeated .Address allAddresses = 1;
*/
@@ -870,12 +1000,11 @@ public final class ClusterMetricsMessages {
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AddressOrBuilder getAllAddressesOrBuilder(
int index);
- // repeated string allMetricNames = 2;
/**
* repeated string allMetricNames = 2;
*/
java.util.Listrepeated string allMetricNames = 2;
*/
@@ -887,10 +1016,9 @@ public final class ClusterMetricsMessages {
/**
* repeated string allMetricNames = 2;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getAllMetricNamesBytes(int index);
- // repeated .NodeMetrics nodeMetrics = 3;
/**
* repeated .NodeMetrics nodeMetrics = 3;
*/
@@ -916,46 +1044,51 @@ public final class ClusterMetricsMessages {
int index);
}
/**
- * Protobuf type {@code MetricsGossip}
- *
*
**
* Metrics Gossip
*
+ *
+ * Protobuf type {@code MetricsGossip}
*/
- public static final class MetricsGossip extends
- akka.protobuf.GeneratedMessage
- implements MetricsGossipOrBuilder {
+ public static final class MetricsGossip extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:MetricsGossip)
+ MetricsGossipOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use MetricsGossip.newBuilder() to construct.
- private MetricsGossip(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private MetricsGossip(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private MetricsGossip(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final MetricsGossip defaultInstance;
- public static MetricsGossip getDefaultInstance() {
- return defaultInstance;
+ private MetricsGossip() {
+ allAddresses_ = java.util.Collections.emptyList();
+ allMetricNames_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
+ nodeMetrics_ = java.util.Collections.emptyList();
}
- public MetricsGossip getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new MetricsGossip();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private MetricsGossip(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -964,86 +1097,74 @@ public final class ClusterMetricsMessages {
case 0:
done = true;
break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ allAddresses_ = new java.util.ArrayListrepeated string allMetricNames = 2;
*/
- public java.util.Listrepeated string allMetricNames = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getAllMetricNamesBytes(int index) {
return allMetricNames_.getByteString(index);
}
- // repeated .NodeMetrics nodeMetrics = 3;
public static final int NODEMETRICS_FIELD_NUMBER = 3;
private java.util.List
**
* Metrics Gossip
*
+ *
+ * Protobuf type {@code MetricsGossip}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrepeated string allMetricNames = 2;
*/
- public java.util.Listrepeated string allMetricNames = 2;
@@ -1783,7 +1991,7 @@ public final class ClusterMetricsMessages {
/**
* repeated string allMetricNames = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getAllMetricNamesBytes(int index) {
return allMetricNames_.getByteString(index);
}
@@ -1819,7 +2027,8 @@ public final class ClusterMetricsMessages {
public Builder addAllAllMetricNames(
java.lang.Iterablerepeated string allMetricNames = 2;
*/
public Builder clearAllMetricNames() {
- allMetricNames_ = akka.protobuf.LazyStringArrayList.EMPTY;
+ allMetricNames_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
@@ -1836,7 +2045,7 @@ public final class ClusterMetricsMessages {
* repeated string allMetricNames = 2;
*/
public Builder addAllMetricNamesBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -1846,17 +2055,16 @@ public final class ClusterMetricsMessages {
return this;
}
- // repeated .NodeMetrics nodeMetrics = 3;
private java.util.Listrequired int32 addressIndex = 1;
*/
@@ -2110,7 +2360,6 @@ public final class ClusterMetricsMessages {
*/
int getAddressIndex();
- // required int64 timestamp = 2;
/**
* required int64 timestamp = 2;
*/
@@ -2120,7 +2369,6 @@ public final class ClusterMetricsMessages {
*/
long getTimestamp();
- // repeated .NodeMetrics.Metric metrics = 3;
/**
* repeated .NodeMetrics.Metric metrics = 3;
*/
@@ -2146,46 +2394,49 @@ public final class ClusterMetricsMessages {
int index);
}
/**
- * Protobuf type {@code NodeMetrics}
- *
*
**
* Node Metrics
*
+ *
+ * Protobuf type {@code NodeMetrics}
*/
- public static final class NodeMetrics extends
- akka.protobuf.GeneratedMessage
- implements NodeMetricsOrBuilder {
+ public static final class NodeMetrics extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:NodeMetrics)
+ NodeMetricsOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use NodeMetrics.newBuilder() to construct.
- private NodeMetrics(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private NodeMetrics(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private NodeMetrics(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final NodeMetrics defaultInstance;
- public static NodeMetrics getDefaultInstance() {
- return defaultInstance;
+ private NodeMetrics() {
+ metrics_ = java.util.Collections.emptyList();
}
- public NodeMetrics getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new NodeMetrics();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private NodeMetrics(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -2194,13 +2445,6 @@ public final class ClusterMetricsMessages {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
addressIndex_ = input.readInt32();
@@ -2212,80 +2456,74 @@ public final class ClusterMetricsMessages {
break;
}
case 26: {
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
metrics_ = new java.util.ArrayListSerialized = 0;
*/
- Serialized(0, 0),
+ Serialized(0),
/**
* Double = 1;
*/
- Double(1, 1),
+ Double(1),
/**
* Float = 2;
*/
- Float(2, 2),
+ Float(2),
/**
* Integer = 3;
*/
- Integer(3, 3),
+ Integer(3),
/**
* Long = 4;
*/
- Long(4, 4),
+ Long(4),
;
/**
@@ -2310,9 +2548,19 @@ public final class ClusterMetricsMessages {
public static final int Long_VALUE = 4;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static NumberType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static NumberType forNumber(int value) {
switch (value) {
case 0: return Serialized;
case 1: return Double;
@@ -2323,27 +2571,27 @@ public final class ClusterMetricsMessages {
}
}
- public static akka.protobuf.Internal.EnumLiteMaprequired .NodeMetrics.NumberType type = 1;
*/
@@ -2383,7 +2629,6 @@ public final class ClusterMetricsMessages {
*/
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType getType();
- // optional uint32 value32 = 2;
/**
* optional uint32 value32 = 2;
*/
@@ -2393,7 +2638,6 @@ public final class ClusterMetricsMessages {
*/
int getValue32();
- // optional uint64 value64 = 3;
/**
* optional uint64 value64 = 3;
*/
@@ -2403,7 +2647,6 @@ public final class ClusterMetricsMessages {
*/
long getValue64();
- // optional bytes serialized = 4;
/**
* optional bytes serialized = 4;
*/
@@ -2411,44 +2654,48 @@ public final class ClusterMetricsMessages {
/**
* optional bytes serialized = 4;
*/
- akka.protobuf.ByteString getSerialized();
+ akka.protobufv3.internal.ByteString getSerialized();
}
/**
* Protobuf type {@code NodeMetrics.Number}
*/
- public static final class Number extends
- akka.protobuf.GeneratedMessage
- implements NumberOrBuilder {
+ public static final class Number extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:NodeMetrics.Number)
+ NumberOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use Number.newBuilder() to construct.
- private Number(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private Number(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Number(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Number defaultInstance;
- public static Number getDefaultInstance() {
- return defaultInstance;
+ private Number() {
+ type_ = 0;
+ serialized_ = akka.protobufv3.internal.ByteString.EMPTY;
}
- public Number getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new Number();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private Number(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -2457,21 +2704,15 @@ public final class ClusterMetricsMessages {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType value = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
- type_ = value;
+ type_ = rawValue;
}
break;
}
@@ -2490,70 +2731,63 @@ public final class ClusterMetricsMessages {
serialized_ = input.readBytes();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_NodeMetrics_Number_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_NodeMetrics_Number_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.class, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.Builder.class);
}
- public static akka.protobuf.Parserrequired .NodeMetrics.NumberType type = 1;
*/
public boolean hasType() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .NodeMetrics.NumberType type = 1;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType getType() {
- return type_;
+ @SuppressWarnings("deprecation")
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType result = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType.valueOf(type_);
+ return result == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType.Serialized : result;
}
- // optional uint32 value32 = 2;
public static final int VALUE32_FIELD_NUMBER = 2;
private int value32_;
/**
* optional uint32 value32 = 2;
*/
public boolean hasValue32() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 value32 = 2;
@@ -2562,14 +2796,13 @@ public final class ClusterMetricsMessages {
return value32_;
}
- // optional uint64 value64 = 3;
public static final int VALUE64_FIELD_NUMBER = 3;
private long value64_;
/**
* optional uint64 value64 = 3;
*/
public boolean hasValue64() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint64 value64 = 3;
@@ -2578,32 +2811,27 @@ public final class ClusterMetricsMessages {
return value64_;
}
- // optional bytes serialized = 4;
public static final int SERIALIZED_FIELD_NUMBER = 4;
- private akka.protobuf.ByteString serialized_;
+ private akka.protobufv3.internal.ByteString serialized_;
/**
* optional bytes serialized = 4;
*/
public boolean hasSerialized() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bytes serialized = 4;
*/
- public akka.protobuf.ByteString getSerialized() {
+ public akka.protobufv3.internal.ByteString getSerialized() {
return serialized_;
}
- private void initFields() {
- type_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType.Serialized;
- value32_ = 0;
- value64_ = 0L;
- serialized_ = akka.protobuf.ByteString.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasType()) {
memoizedIsInitialized = 0;
@@ -2613,121 +2841,200 @@ public final class ClusterMetricsMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, type_.getNumber());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(1, type_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, value32_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt64(3, value64_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeBytes(4, serialized_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeEnumSize(1, type_.getNumber());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
+ .computeEnumSize(1, type_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeUInt32Size(2, value32_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeUInt64Size(3, value64_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeBytesSize(4, serialized_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number)) {
+ return super.equals(obj);
+ }
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number other = (akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number) obj;
+
+ if (hasType() != other.hasType()) return false;
+ if (hasType()) {
+ if (type_ != other.type_) return false;
+ }
+ if (hasValue32() != other.hasValue32()) return false;
+ if (hasValue32()) {
+ if (getValue32()
+ != other.getValue32()) return false;
+ }
+ if (hasValue64() != other.hasValue64()) return false;
+ if (hasValue64()) {
+ if (getValue64()
+ != other.getValue64()) return false;
+ }
+ if (hasSerialized() != other.hasSerialized()) return false;
+ if (hasSerialized()) {
+ if (!getSerialized()
+ .equals(other.getSerialized())) 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 (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ }
+ if (hasValue32()) {
+ hash = (37 * hash) + VALUE32_FIELD_NUMBER;
+ hash = (53 * hash) + getValue32();
+ }
+ if (hasValue64()) {
+ hash = (37 * hash) + VALUE64_FIELD_NUMBER;
+ hash = (53 * hash) + akka.protobufv3.internal.Internal.hashLong(
+ getValue64());
+ }
+ if (hasSerialized()) {
+ hash = (37 * hash) + SERIALIZED_FIELD_NUMBER;
+ hash = (53 * hash) + getSerialized().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2735,14 +3042,16 @@ public final class ClusterMetricsMessages {
* Protobuf type {@code NodeMetrics.Number}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired .NodeMetrics.NumberType type = 1;
*/
public boolean hasType() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .NodeMetrics.NumberType type = 1;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType getType() {
- return type_;
+ @SuppressWarnings("deprecation")
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType result = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType.valueOf(type_);
+ return result == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType.Serialized : result;
}
/**
* required .NodeMetrics.NumberType type = 1;
@@ -2902,7 +3245,7 @@ public final class ClusterMetricsMessages {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- type_ = value;
+ type_ = value.getNumber();
onChanged();
return this;
}
@@ -2911,18 +3254,17 @@ public final class ClusterMetricsMessages {
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
- type_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberType.Serialized;
+ type_ = 0;
onChanged();
return this;
}
- // optional uint32 value32 = 2;
private int value32_ ;
/**
* optional uint32 value32 = 2;
*/
public boolean hasValue32() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 value32 = 2;
@@ -2949,13 +3291,12 @@ public final class ClusterMetricsMessages {
return this;
}
- // optional uint64 value64 = 3;
private long value64_ ;
/**
* optional uint64 value64 = 3;
*/
public boolean hasValue64() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint64 value64 = 3;
@@ -2982,24 +3323,23 @@ public final class ClusterMetricsMessages {
return this;
}
- // optional bytes serialized = 4;
- private akka.protobuf.ByteString serialized_ = akka.protobuf.ByteString.EMPTY;
+ private akka.protobufv3.internal.ByteString serialized_ = akka.protobufv3.internal.ByteString.EMPTY;
/**
* optional bytes serialized = 4;
*/
public boolean hasSerialized() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bytes serialized = 4;
*/
- public akka.protobuf.ByteString getSerialized() {
+ public akka.protobufv3.internal.ByteString getSerialized() {
return serialized_;
}
/**
* optional bytes serialized = 4;
*/
- public Builder setSerialized(akka.protobuf.ByteString value) {
+ public Builder setSerialized(akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -3017,22 +3357,63 @@ public final class ClusterMetricsMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:NodeMetrics.Number)
}
+ // @@protoc_insertion_point(class_scope:NodeMetrics.Number)
+ private static final akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number DEFAULT_INSTANCE;
static {
- defaultInstance = new Number(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number();
+ }
+
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrequired double value = 1;
*/
@@ -3042,7 +3423,6 @@ public final class ClusterMetricsMessages {
*/
double getValue();
- // required double alpha = 2;
/**
* required double alpha = 2;
*/
@@ -3055,39 +3435,41 @@ public final class ClusterMetricsMessages {
/**
* Protobuf type {@code NodeMetrics.EWMA}
*/
- public static final class EWMA extends
- akka.protobuf.GeneratedMessage
- implements EWMAOrBuilder {
+ public static final class EWMA extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:NodeMetrics.EWMA)
+ EWMAOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use EWMA.newBuilder() to construct.
- private EWMA(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private EWMA(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private EWMA(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final EWMA defaultInstance;
- public static EWMA getDefaultInstance() {
- return defaultInstance;
+ private EWMA() {
}
- public EWMA getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new EWMA();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private EWMA(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -3096,13 +3478,6 @@ public final class ClusterMetricsMessages {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 9: {
bitField0_ |= 0x00000001;
value_ = input.readDouble();
@@ -3113,54 +3488,46 @@ public final class ClusterMetricsMessages {
alpha_ = input.readDouble();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_NodeMetrics_EWMA_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_NodeMetrics_EWMA_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.class, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.Builder.class);
}
- public static akka.protobuf.Parserrequired double value = 1;
*/
public boolean hasValue() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required double value = 1;
@@ -3169,14 +3536,13 @@ public final class ClusterMetricsMessages {
return value_;
}
- // required double alpha = 2;
public static final int ALPHA_FIELD_NUMBER = 2;
private double alpha_;
/**
* required double alpha = 2;
*/
public boolean hasAlpha() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required double alpha = 2;
@@ -3185,14 +3551,12 @@ public final class ClusterMetricsMessages {
return alpha_;
}
- private void initFields() {
- value_ = 0D;
- alpha_ = 0D;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasValue()) {
memoizedIsInitialized = 0;
@@ -3206,107 +3570,172 @@ public final class ClusterMetricsMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeDouble(1, value_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, alpha_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeDoubleSize(1, value_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeDoubleSize(2, alpha_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA)) {
+ return super.equals(obj);
+ }
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA other = (akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA) obj;
+
+ if (hasValue() != other.hasValue()) return false;
+ if (hasValue()) {
+ if (java.lang.Double.doubleToLongBits(getValue())
+ != java.lang.Double.doubleToLongBits(
+ other.getValue())) return false;
+ }
+ if (hasAlpha() != other.hasAlpha()) return false;
+ if (hasAlpha()) {
+ if (java.lang.Double.doubleToLongBits(getAlpha())
+ != java.lang.Double.doubleToLongBits(
+ other.getAlpha())) 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 (hasValue()) {
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + akka.protobufv3.internal.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getValue()));
+ }
+ if (hasAlpha()) {
+ hash = (37 * hash) + ALPHA_FIELD_NUMBER;
+ hash = (53 * hash) + akka.protobufv3.internal.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getAlpha()));
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3314,14 +3743,16 @@ public final class ClusterMetricsMessages {
* Protobuf type {@code NodeMetrics.EWMA}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired double value = 1;
*/
public boolean hasValue() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required double value = 1;
@@ -3478,13 +3940,12 @@ public final class ClusterMetricsMessages {
return this;
}
- // required double alpha = 2;
private double alpha_ ;
/**
* required double alpha = 2;
*/
public boolean hasAlpha() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required double alpha = 2;
@@ -3510,22 +3971,63 @@ public final class ClusterMetricsMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:NodeMetrics.EWMA)
}
+ // @@protoc_insertion_point(class_scope:NodeMetrics.EWMA)
+ private static final akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA DEFAULT_INSTANCE;
static {
- defaultInstance = new EWMA(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA();
+ }
+
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrequired int32 nameIndex = 1;
*/
@@ -3535,7 +4037,6 @@ public final class ClusterMetricsMessages {
*/
int getNameIndex();
- // required .NodeMetrics.Number number = 2;
/**
* required .NodeMetrics.Number number = 2;
*/
@@ -3549,7 +4050,6 @@ public final class ClusterMetricsMessages {
*/
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberOrBuilder getNumberOrBuilder();
- // optional .NodeMetrics.EWMA ewma = 3;
/**
* optional .NodeMetrics.EWMA ewma = 3;
*/
@@ -3566,39 +4066,41 @@ public final class ClusterMetricsMessages {
/**
* Protobuf type {@code NodeMetrics.Metric}
*/
- public static final class Metric extends
- akka.protobuf.GeneratedMessage
- implements MetricOrBuilder {
+ public static final class Metric extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:NodeMetrics.Metric)
+ MetricOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use Metric.newBuilder() to construct.
- private Metric(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private Metric(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Metric(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Metric defaultInstance;
- public static Metric getDefaultInstance() {
- return defaultInstance;
+ private Metric() {
}
- public Metric getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new Metric();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private Metric(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -3607,13 +4109,6 @@ public final class ClusterMetricsMessages {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
nameIndex_ = input.readInt32();
@@ -3621,7 +4116,7 @@ public final class ClusterMetricsMessages {
}
case 18: {
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = number_.toBuilder();
}
number_ = input.readMessage(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.PARSER, extensionRegistry);
@@ -3634,7 +4129,7 @@ public final class ClusterMetricsMessages {
}
case 26: {
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.Builder subBuilder = null;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = ewma_.toBuilder();
}
ewma_ = input.readMessage(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.PARSER, extensionRegistry);
@@ -3645,54 +4140,46 @@ public final class ClusterMetricsMessages {
bitField0_ |= 0x00000004;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_NodeMetrics_Metric_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_NodeMetrics_Metric_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric.class, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric.Builder.class);
}
- public static akka.protobuf.Parserrequired int32 nameIndex = 1;
*/
public boolean hasNameIndex() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required int32 nameIndex = 1;
@@ -3701,59 +4188,54 @@ public final class ClusterMetricsMessages {
return nameIndex_;
}
- // required .NodeMetrics.Number number = 2;
public static final int NUMBER_FIELD_NUMBER = 2;
private akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number number_;
/**
* required .NodeMetrics.Number number = 2;
*/
public boolean hasNumber() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .NodeMetrics.Number number = 2;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number getNumber() {
- return number_;
+ return number_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.getDefaultInstance() : number_;
}
/**
* required .NodeMetrics.Number number = 2;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberOrBuilder getNumberOrBuilder() {
- return number_;
+ return number_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.getDefaultInstance() : number_;
}
- // optional .NodeMetrics.EWMA ewma = 3;
public static final int EWMA_FIELD_NUMBER = 3;
private akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA ewma_;
/**
* optional .NodeMetrics.EWMA ewma = 3;
*/
public boolean hasEwma() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .NodeMetrics.EWMA ewma = 3;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA getEwma() {
- return ewma_;
+ return ewma_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.getDefaultInstance() : ewma_;
}
/**
* optional .NodeMetrics.EWMA ewma = 3;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMAOrBuilder getEwmaOrBuilder() {
- return ewma_;
+ return ewma_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.getDefaultInstance() : ewma_;
}
- private void initFields() {
- nameIndex_ = 0;
- number_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.getDefaultInstance();
- ewma_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasNameIndex()) {
memoizedIsInitialized = 0;
@@ -3777,114 +4259,184 @@ public final class ClusterMetricsMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, nameIndex_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, number_);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getNumber());
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, ewma_);
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(3, getEwma());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeInt32Size(1, nameIndex_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += akka.protobuf.CodedOutputStream
- .computeMessageSize(2, number_);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
+ .computeMessageSize(2, getNumber());
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += akka.protobuf.CodedOutputStream
- .computeMessageSize(3, ewma_);
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
+ .computeMessageSize(3, getEwma());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric)) {
+ return super.equals(obj);
+ }
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric other = (akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric) obj;
+
+ if (hasNameIndex() != other.hasNameIndex()) return false;
+ if (hasNameIndex()) {
+ if (getNameIndex()
+ != other.getNameIndex()) return false;
+ }
+ if (hasNumber() != other.hasNumber()) return false;
+ if (hasNumber()) {
+ if (!getNumber()
+ .equals(other.getNumber())) return false;
+ }
+ if (hasEwma() != other.hasEwma()) return false;
+ if (hasEwma()) {
+ if (!getEwma()
+ .equals(other.getEwma())) 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 (hasNameIndex()) {
+ hash = (37 * hash) + NAMEINDEX_FIELD_NUMBER;
+ hash = (53 * hash) + getNameIndex();
+ }
+ if (hasNumber()) {
+ hash = (37 * hash) + NUMBER_FIELD_NUMBER;
+ hash = (53 * hash) + getNumber().hashCode();
+ }
+ if (hasEwma()) {
+ hash = (37 * hash) + EWMA_FIELD_NUMBER;
+ hash = (53 * hash) + getEwma().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3892,14 +4444,16 @@ public final class ClusterMetricsMessages {
* Protobuf type {@code NodeMetrics.Metric}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired int32 nameIndex = 1;
*/
public boolean hasNameIndex() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required int32 nameIndex = 1;
@@ -4093,22 +4676,21 @@ public final class ClusterMetricsMessages {
return this;
}
- // required .NodeMetrics.Number number = 2;
- private akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number number_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.getDefaultInstance();
- private akka.protobuf.SingleFieldBuilder<
+ private akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number number_;
+ private akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberOrBuilder> numberBuilder_;
/**
* required .NodeMetrics.Number number = 2;
*/
public boolean hasNumber() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .NodeMetrics.Number number = 2;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number getNumber() {
if (numberBuilder_ == null) {
- return number_;
+ return number_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.getDefaultInstance() : number_;
} else {
return numberBuilder_.getMessage();
}
@@ -4148,7 +4730,8 @@ public final class ClusterMetricsMessages {
*/
public Builder mergeNumber(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number value) {
if (numberBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ if (((bitField0_ & 0x00000002) != 0) &&
+ number_ != null &&
number_ != akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.getDefaultInstance()) {
number_ =
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.newBuilder(number_).mergeFrom(value).buildPartial();
@@ -4167,7 +4750,7 @@ public final class ClusterMetricsMessages {
*/
public Builder clearNumber() {
if (numberBuilder_ == null) {
- number_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.getDefaultInstance();
+ number_ = null;
onChanged();
} else {
numberBuilder_.clear();
@@ -4190,19 +4773,20 @@ public final class ClusterMetricsMessages {
if (numberBuilder_ != null) {
return numberBuilder_.getMessageOrBuilder();
} else {
- return number_;
+ return number_ == null ?
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.getDefaultInstance() : number_;
}
}
/**
* required .NodeMetrics.Number number = 2;
*/
- private akka.protobuf.SingleFieldBuilder<
+ private akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberOrBuilder>
getNumberFieldBuilder() {
if (numberBuilder_ == null) {
- numberBuilder_ = new akka.protobuf.SingleFieldBuilder<
+ numberBuilder_ = new akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Number.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.NumberOrBuilder>(
- number_,
+ getNumber(),
getParentForChildren(),
isClean());
number_ = null;
@@ -4210,22 +4794,21 @@ public final class ClusterMetricsMessages {
return numberBuilder_;
}
- // optional .NodeMetrics.EWMA ewma = 3;
- private akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA ewma_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.getDefaultInstance();
- private akka.protobuf.SingleFieldBuilder<
+ private akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA ewma_;
+ private akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMAOrBuilder> ewmaBuilder_;
/**
* optional .NodeMetrics.EWMA ewma = 3;
*/
public boolean hasEwma() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .NodeMetrics.EWMA ewma = 3;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA getEwma() {
if (ewmaBuilder_ == null) {
- return ewma_;
+ return ewma_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.getDefaultInstance() : ewma_;
} else {
return ewmaBuilder_.getMessage();
}
@@ -4265,7 +4848,8 @@ public final class ClusterMetricsMessages {
*/
public Builder mergeEwma(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA value) {
if (ewmaBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ if (((bitField0_ & 0x00000004) != 0) &&
+ ewma_ != null &&
ewma_ != akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.getDefaultInstance()) {
ewma_ =
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.newBuilder(ewma_).mergeFrom(value).buildPartial();
@@ -4284,7 +4868,7 @@ public final class ClusterMetricsMessages {
*/
public Builder clearEwma() {
if (ewmaBuilder_ == null) {
- ewma_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.getDefaultInstance();
+ ewma_ = null;
onChanged();
} else {
ewmaBuilder_.clear();
@@ -4307,46 +4891,87 @@ public final class ClusterMetricsMessages {
if (ewmaBuilder_ != null) {
return ewmaBuilder_.getMessageOrBuilder();
} else {
- return ewma_;
+ return ewma_ == null ?
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.getDefaultInstance() : ewma_;
}
}
/**
* optional .NodeMetrics.EWMA ewma = 3;
*/
- private akka.protobuf.SingleFieldBuilder<
+ private akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMAOrBuilder>
getEwmaFieldBuilder() {
if (ewmaBuilder_ == null) {
- ewmaBuilder_ = new akka.protobuf.SingleFieldBuilder<
+ ewmaBuilder_ = new akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMA.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.EWMAOrBuilder>(
- ewma_,
+ getEwma(),
getParentForChildren(),
isClean());
ewma_ = null;
}
return ewmaBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:NodeMetrics.Metric)
}
+ // @@protoc_insertion_point(class_scope:NodeMetrics.Metric)
+ private static final akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric DEFAULT_INSTANCE;
static {
- defaultInstance = new Metric(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric();
+ }
+
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.NodeMetrics.Metric getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrequired int32 addressIndex = 1;
*/
public boolean hasAddressIndex() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required int32 addressIndex = 1;
@@ -4355,14 +4980,13 @@ public final class ClusterMetricsMessages {
return addressIndex_;
}
- // required int64 timestamp = 2;
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private long timestamp_;
/**
* required int64 timestamp = 2;
*/
public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required int64 timestamp = 2;
@@ -4371,7 +4995,6 @@ public final class ClusterMetricsMessages {
return timestamp_;
}
- // repeated .NodeMetrics.Metric metrics = 3;
public static final int METRICS_FIELD_NUMBER = 3;
private java.util.List
**
* Node Metrics
*
+ *
+ * Protobuf type {@code NodeMetrics}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired int32 addressIndex = 1;
*/
public boolean hasAddressIndex() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required int32 addressIndex = 1;
@@ -4767,13 +5487,12 @@ public final class ClusterMetricsMessages {
return this;
}
- // required int64 timestamp = 2;
private long timestamp_ ;
/**
* required int64 timestamp = 2;
*/
public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required int64 timestamp = 2;
@@ -4800,17 +5519,16 @@ public final class ClusterMetricsMessages {
return this;
}
- // repeated .NodeMetrics.Metric metrics = 3;
private java.util.Listrequired string system = 1;
*/
@@ -5066,10 +5826,9 @@ public final class ClusterMetricsMessages {
/**
* required string system = 1;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getSystemBytes();
- // required string hostname = 2;
/**
* required string hostname = 2;
*/
@@ -5081,10 +5840,9 @@ public final class ClusterMetricsMessages {
/**
* required string hostname = 2;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getHostnameBytes();
- // required uint32 port = 3;
/**
* required uint32 port = 3;
*/
@@ -5094,7 +5852,6 @@ public final class ClusterMetricsMessages {
*/
int getPort();
- // optional string protocol = 4;
/**
* optional string protocol = 4;
*/
@@ -5106,50 +5863,55 @@ public final class ClusterMetricsMessages {
/**
* optional string protocol = 4;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getProtocolBytes();
}
/**
- * Protobuf type {@code Address}
- *
*
**
* Defines a remote address.
*
+ *
+ * Protobuf type {@code Address}
*/
- public static final class Address extends
- akka.protobuf.GeneratedMessage
- implements AddressOrBuilder {
+ public static final class Address extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Address)
+ AddressOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use Address.newBuilder() to construct.
- private Address(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private Address(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Address(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Address defaultInstance;
- public static Address getDefaultInstance() {
- return defaultInstance;
+ private Address() {
+ system_ = "";
+ hostname_ = "";
+ protocol_ = "";
}
- public Address getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new Address();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private Address(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -5158,21 +5920,16 @@ public final class ClusterMetricsMessages {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- system_ = input.readBytes();
+ system_ = bs;
break;
}
case 18: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- hostname_ = input.readBytes();
+ hostname_ = bs;
break;
}
case 24: {
@@ -5181,58 +5938,51 @@ public final class ClusterMetricsMessages {
break;
}
case 34: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
- protocol_ = input.readBytes();
+ protocol_ = bs;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_Address_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_Address_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.class, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address.Builder.class);
}
- public static akka.protobuf.Parser PARSER =
- new akka.protobuf.AbstractParser() {
- public Address parsePartialFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- return new Address(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public akka.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
- // required string system = 1;
public static final int SYSTEM_FIELD_NUMBER = 1;
- private java.lang.Object system_;
+ private volatile java.lang.Object system_;
/**
* required string system = 1;
*/
public boolean hasSystem() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string system = 1;
@@ -5242,8 +5992,8 @@ public final class ClusterMetricsMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
system_ = s;
@@ -5254,28 +6004,27 @@ public final class ClusterMetricsMessages {
/**
* required string system = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getSystemBytes() {
java.lang.Object ref = system_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
system_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- // required string hostname = 2;
public static final int HOSTNAME_FIELD_NUMBER = 2;
- private java.lang.Object hostname_;
+ private volatile java.lang.Object hostname_;
/**
* required string hostname = 2;
*/
public boolean hasHostname() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string hostname = 2;
@@ -5285,8 +6034,8 @@ public final class ClusterMetricsMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
hostname_ = s;
@@ -5297,28 +6046,27 @@ public final class ClusterMetricsMessages {
/**
* required string hostname = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- // required uint32 port = 3;
public static final int PORT_FIELD_NUMBER = 3;
private int port_;
/**
* required uint32 port = 3;
*/
public boolean hasPort() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* required uint32 port = 3;
@@ -5327,14 +6075,13 @@ public final class ClusterMetricsMessages {
return port_;
}
- // optional string protocol = 4;
public static final int PROTOCOL_FIELD_NUMBER = 4;
- private java.lang.Object protocol_;
+ private volatile java.lang.Object protocol_;
/**
* optional string protocol = 4;
*/
public boolean hasProtocol() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string protocol = 4;
@@ -5344,8 +6091,8 @@ public final class ClusterMetricsMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
protocol_ = s;
@@ -5356,30 +6103,26 @@ public final class ClusterMetricsMessages {
/**
* optional string protocol = 4;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getProtocolBytes() {
java.lang.Object ref = protocol_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
protocol_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- private void initFields() {
- system_ = "";
- hostname_ = "";
- port_ = 0;
- protocol_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasSystem()) {
memoizedIsInitialized = 0;
@@ -5397,141 +6140,219 @@ public final class ClusterMetricsMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getSystemBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, system_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getHostnameBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 2, hostname_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, port_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getProtocolBytes());
+ if (((bitField0_ & 0x00000008) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 4, protocol_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(1, getSystemBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(1, system_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(2, getHostnameBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(2, hostname_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeUInt32Size(3, port_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(4, getProtocolBytes());
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(4, protocol_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address)) {
+ return super.equals(obj);
+ }
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address other = (akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address) obj;
+
+ if (hasSystem() != other.hasSystem()) return false;
+ if (hasSystem()) {
+ if (!getSystem()
+ .equals(other.getSystem())) return false;
+ }
+ if (hasHostname() != other.hasHostname()) return false;
+ if (hasHostname()) {
+ if (!getHostname()
+ .equals(other.getHostname())) return false;
+ }
+ if (hasPort() != other.hasPort()) return false;
+ if (hasPort()) {
+ if (getPort()
+ != other.getPort()) return false;
+ }
+ if (hasProtocol() != other.hasProtocol()) return false;
+ if (hasProtocol()) {
+ if (!getProtocol()
+ .equals(other.getProtocol())) 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 (hasSystem()) {
+ hash = (37 * hash) + SYSTEM_FIELD_NUMBER;
+ hash = (53 * hash) + getSystem().hashCode();
+ }
+ if (hasHostname()) {
+ hash = (37 * hash) + HOSTNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getHostname().hashCode();
+ }
+ if (hasPort()) {
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ }
+ if (hasProtocol()) {
+ hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
+ hash = (53 * hash) + getProtocol().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code Address}
- *
*
**
* Defines a remote address.
*
+ *
+ * Protobuf type {@code Address}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired string system = 1;
*/
public boolean hasSystem() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string system = 1;
@@ -5697,9 +6548,12 @@ public final class ClusterMetricsMessages {
public java.lang.String getSystem() {
java.lang.Object ref = system_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- system_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ system_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5708,17 +6562,17 @@ public final class ClusterMetricsMessages {
/**
* required string system = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getSystemBytes() {
java.lang.Object ref = system_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
system_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -5747,7 +6601,7 @@ public final class ClusterMetricsMessages {
* required string system = 1;
*/
public Builder setSystemBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -5757,13 +6611,12 @@ public final class ClusterMetricsMessages {
return this;
}
- // required string hostname = 2;
private java.lang.Object hostname_ = "";
/**
* required string hostname = 2;
*/
public boolean hasHostname() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string hostname = 2;
@@ -5771,9 +6624,12 @@ public final class ClusterMetricsMessages {
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- hostname_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ hostname_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5782,17 +6638,17 @@ public final class ClusterMetricsMessages {
/**
* required string hostname = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -5821,7 +6677,7 @@ public final class ClusterMetricsMessages {
* required string hostname = 2;
*/
public Builder setHostnameBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -5831,13 +6687,12 @@ public final class ClusterMetricsMessages {
return this;
}
- // required uint32 port = 3;
private int port_ ;
/**
* required uint32 port = 3;
*/
public boolean hasPort() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* required uint32 port = 3;
@@ -5864,13 +6719,12 @@ public final class ClusterMetricsMessages {
return this;
}
- // optional string protocol = 4;
private java.lang.Object protocol_ = "";
/**
* optional string protocol = 4;
*/
public boolean hasProtocol() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string protocol = 4;
@@ -5878,9 +6732,12 @@ public final class ClusterMetricsMessages {
public java.lang.String getProtocol() {
java.lang.Object ref = protocol_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- protocol_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ protocol_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5889,17 +6746,17 @@ public final class ClusterMetricsMessages {
/**
* optional string protocol = 4;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getProtocolBytes() {
java.lang.Object ref = protocol_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
protocol_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -5928,7 +6785,7 @@ public final class ClusterMetricsMessages {
* optional string protocol = 4;
*/
public Builder setProtocolBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -5937,48 +6794,88 @@ public final class ClusterMetricsMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:Address)
}
+ // @@protoc_insertion_point(class_scope:Address)
+ private static final akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address DEFAULT_INSTANCE;
static {
- defaultInstance = new Address(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address();
+ }
+
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parser
+ PARSER = new akka.protobufv3.internal.AbstractParser() {
+ @java.lang.Override
+ public Address parsePartialFrom(
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return new Address(input, extensionRegistry);
+ }
+ };
+
+ public static akka.protobufv3.internal.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public akka.protobufv3.internal.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.Address getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:Address)
}
- public interface AdaptiveLoadBalancingPoolOrBuilder
- extends akka.protobuf.MessageOrBuilder {
+ public interface AdaptiveLoadBalancingPoolOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:AdaptiveLoadBalancingPool)
+ akka.protobufv3.internal.MessageOrBuilder {
- // optional .MetricsSelector metricsSelector = 1;
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
boolean hasMetricsSelector();
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector getMetricsSelector();
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelectorOrBuilder getMetricsSelectorOrBuilder();
- // required uint32 nrOfInstances = 2;
/**
* required uint32 nrOfInstances = 2;
*/
@@ -5988,34 +6885,32 @@ public final class ClusterMetricsMessages {
*/
int getNrOfInstances();
- // optional string routerDispatcher = 3;
/**
- * optional string routerDispatcher = 3;
- *
*
* omitted if default
*
+ *
+ * optional string routerDispatcher = 3;
*/
boolean hasRouterDispatcher();
/**
- * optional string routerDispatcher = 3;
- *
*
* omitted if default
*
+ *
+ * optional string routerDispatcher = 3;
*/
java.lang.String getRouterDispatcher();
/**
- * optional string routerDispatcher = 3;
- *
*
* omitted if default
*
+ *
+ * optional string routerDispatcher = 3;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getRouterDispatcherBytes();
- // required bool usePoolDispatcher = 4;
/**
* required bool usePoolDispatcher = 4;
*/
@@ -6028,39 +6923,42 @@ public final class ClusterMetricsMessages {
/**
* Protobuf type {@code AdaptiveLoadBalancingPool}
*/
- public static final class AdaptiveLoadBalancingPool extends
- akka.protobuf.GeneratedMessage
- implements AdaptiveLoadBalancingPoolOrBuilder {
+ public static final class AdaptiveLoadBalancingPool extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:AdaptiveLoadBalancingPool)
+ AdaptiveLoadBalancingPoolOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use AdaptiveLoadBalancingPool.newBuilder() to construct.
- private AdaptiveLoadBalancingPool(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private AdaptiveLoadBalancingPool(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private AdaptiveLoadBalancingPool(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final AdaptiveLoadBalancingPool defaultInstance;
- public static AdaptiveLoadBalancingPool getDefaultInstance() {
- return defaultInstance;
+ private AdaptiveLoadBalancingPool() {
+ routerDispatcher_ = "";
}
- public AdaptiveLoadBalancingPool getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new AdaptiveLoadBalancingPool();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private AdaptiveLoadBalancingPool(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -6069,16 +6967,9 @@ public final class ClusterMetricsMessages {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = metricsSelector_.toBuilder();
}
metricsSelector_ = input.readMessage(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.PARSER, extensionRegistry);
@@ -6095,8 +6986,9 @@ public final class ClusterMetricsMessages {
break;
}
case 26: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
- routerDispatcher_ = input.readBytes();
+ routerDispatcher_ = bs;
break;
}
case 32: {
@@ -6104,88 +6996,79 @@ public final class ClusterMetricsMessages {
usePoolDispatcher_ = input.readBool();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_AdaptiveLoadBalancingPool_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_AdaptiveLoadBalancingPool_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool.class, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool.Builder.class);
}
- public static akka.protobuf.Parseroptional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
public boolean hasMetricsSelector() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector getMetricsSelector() {
- return metricsSelector_;
+ return metricsSelector_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.getDefaultInstance() : metricsSelector_;
}
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelectorOrBuilder getMetricsSelectorOrBuilder() {
- return metricsSelector_;
+ return metricsSelector_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.getDefaultInstance() : metricsSelector_;
}
- // required uint32 nrOfInstances = 2;
public static final int NROFINSTANCES_FIELD_NUMBER = 2;
private int nrOfInstances_;
/**
* required uint32 nrOfInstances = 2;
*/
public boolean hasNrOfInstances() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required uint32 nrOfInstances = 2;
@@ -6194,33 +7077,32 @@ public final class ClusterMetricsMessages {
return nrOfInstances_;
}
- // optional string routerDispatcher = 3;
public static final int ROUTERDISPATCHER_FIELD_NUMBER = 3;
- private java.lang.Object routerDispatcher_;
+ private volatile java.lang.Object routerDispatcher_;
/**
- * optional string routerDispatcher = 3;
- *
*
* omitted if default
*
+ *
+ * optional string routerDispatcher = 3;
*/
public boolean hasRouterDispatcher() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
- * optional string routerDispatcher = 3;
- *
*
* omitted if default
*
+ *
+ * optional string routerDispatcher = 3;
*/
public java.lang.String getRouterDispatcher() {
java.lang.Object ref = routerDispatcher_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
routerDispatcher_ = s;
@@ -6229,34 +7111,33 @@ public final class ClusterMetricsMessages {
}
}
/**
- * optional string routerDispatcher = 3;
- *
*
* omitted if default
*
+ *
+ * optional string routerDispatcher = 3;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRouterDispatcherBytes() {
java.lang.Object ref = routerDispatcher_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
routerDispatcher_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- // required bool usePoolDispatcher = 4;
public static final int USEPOOLDISPATCHER_FIELD_NUMBER = 4;
private boolean usePoolDispatcher_;
/**
* required bool usePoolDispatcher = 4;
*/
public boolean hasUsePoolDispatcher() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* required bool usePoolDispatcher = 4;
@@ -6265,16 +7146,12 @@ public final class ClusterMetricsMessages {
return usePoolDispatcher_;
}
- private void initFields() {
- metricsSelector_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.getDefaultInstance();
- nrOfInstances_ = 0;
- routerDispatcher_ = "";
- usePoolDispatcher_ = false;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasNrOfInstances()) {
memoizedIsInitialized = 0;
@@ -6294,121 +7171,200 @@ public final class ClusterMetricsMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, metricsSelector_);
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getMetricsSelector());
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, nrOfInstances_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getRouterDispatcherBytes());
+ if (((bitField0_ & 0x00000004) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 3, routerDispatcher_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(4, usePoolDispatcher_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeMessageSize(1, metricsSelector_);
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
+ .computeMessageSize(1, getMetricsSelector());
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeUInt32Size(2, nrOfInstances_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(3, getRouterDispatcherBytes());
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(3, routerDispatcher_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeBoolSize(4, usePoolDispatcher_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool)) {
+ return super.equals(obj);
+ }
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool other = (akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool) obj;
+
+ if (hasMetricsSelector() != other.hasMetricsSelector()) return false;
+ if (hasMetricsSelector()) {
+ if (!getMetricsSelector()
+ .equals(other.getMetricsSelector())) return false;
+ }
+ if (hasNrOfInstances() != other.hasNrOfInstances()) return false;
+ if (hasNrOfInstances()) {
+ if (getNrOfInstances()
+ != other.getNrOfInstances()) return false;
+ }
+ if (hasRouterDispatcher() != other.hasRouterDispatcher()) return false;
+ if (hasRouterDispatcher()) {
+ if (!getRouterDispatcher()
+ .equals(other.getRouterDispatcher())) return false;
+ }
+ if (hasUsePoolDispatcher() != other.hasUsePoolDispatcher()) return false;
+ if (hasUsePoolDispatcher()) {
+ if (getUsePoolDispatcher()
+ != other.getUsePoolDispatcher()) 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 (hasMetricsSelector()) {
+ hash = (37 * hash) + METRICSSELECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getMetricsSelector().hashCode();
+ }
+ if (hasNrOfInstances()) {
+ hash = (37 * hash) + NROFINSTANCES_FIELD_NUMBER;
+ hash = (53 * hash) + getNrOfInstances();
+ }
+ if (hasRouterDispatcher()) {
+ hash = (37 * hash) + ROUTERDISPATCHER_FIELD_NUMBER;
+ hash = (53 * hash) + getRouterDispatcher().hashCode();
+ }
+ if (hasUsePoolDispatcher()) {
+ hash = (37 * hash) + USEPOOLDISPATCHER_FIELD_NUMBER;
+ hash = (53 * hash) + akka.protobufv3.internal.Internal.hashBoolean(
+ getUsePoolDispatcher());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -6416,14 +7372,16 @@ public final class ClusterMetricsMessages {
* Protobuf type {@code AdaptiveLoadBalancingPool}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderoptional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
public boolean hasMetricsSelector() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector getMetricsSelector() {
if (metricsSelectorBuilder_ == null) {
- return metricsSelector_;
+ return metricsSelector_ == null ? akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.getDefaultInstance() : metricsSelector_;
} else {
return metricsSelectorBuilder_.getMessage();
}
}
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
public Builder setMetricsSelector(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector value) {
if (metricsSelectorBuilder_ == null) {
@@ -6631,11 +7619,11 @@ public final class ClusterMetricsMessages {
return this;
}
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
public Builder setMetricsSelector(
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.Builder builderForValue) {
@@ -6649,15 +7637,16 @@ public final class ClusterMetricsMessages {
return this;
}
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
public Builder mergeMetricsSelector(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector value) {
if (metricsSelectorBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ if (((bitField0_ & 0x00000001) != 0) &&
+ metricsSelector_ != null &&
metricsSelector_ != akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.getDefaultInstance()) {
metricsSelector_ =
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.newBuilder(metricsSelector_).mergeFrom(value).buildPartial();
@@ -6672,15 +7661,15 @@ public final class ClusterMetricsMessages {
return this;
}
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
public Builder clearMetricsSelector() {
if (metricsSelectorBuilder_ == null) {
- metricsSelector_ = akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.getDefaultInstance();
+ metricsSelector_ = null;
onChanged();
} else {
metricsSelectorBuilder_.clear();
@@ -6689,11 +7678,11 @@ public final class ClusterMetricsMessages {
return this;
}
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.Builder getMetricsSelectorBuilder() {
bitField0_ |= 0x00000001;
@@ -6701,33 +7690,34 @@ public final class ClusterMetricsMessages {
return getMetricsSelectorFieldBuilder().getBuilder();
}
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
public akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelectorOrBuilder getMetricsSelectorOrBuilder() {
if (metricsSelectorBuilder_ != null) {
return metricsSelectorBuilder_.getMessageOrBuilder();
} else {
- return metricsSelector_;
+ return metricsSelector_ == null ?
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.getDefaultInstance() : metricsSelector_;
}
}
/**
- * optional .MetricsSelector metricsSelector = 1;
- *
*
* omitted if default
*
+ *
+ * optional .MetricsSelector metricsSelector = 1;
*/
- private akka.protobuf.SingleFieldBuilder<
+ private akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelectorOrBuilder>
getMetricsSelectorFieldBuilder() {
if (metricsSelectorBuilder_ == null) {
- metricsSelectorBuilder_ = new akka.protobuf.SingleFieldBuilder<
+ metricsSelectorBuilder_ = new akka.protobufv3.internal.SingleFieldBuilderV3<
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.Builder, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelectorOrBuilder>(
- metricsSelector_,
+ getMetricsSelector(),
getParentForChildren(),
isClean());
metricsSelector_ = null;
@@ -6735,13 +7725,12 @@ public final class ClusterMetricsMessages {
return metricsSelectorBuilder_;
}
- // required uint32 nrOfInstances = 2;
private int nrOfInstances_ ;
/**
* required uint32 nrOfInstances = 2;
*/
public boolean hasNrOfInstances() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required uint32 nrOfInstances = 2;
@@ -6768,62 +7757,64 @@ public final class ClusterMetricsMessages {
return this;
}
- // optional string routerDispatcher = 3;
private java.lang.Object routerDispatcher_ = "";
/**
- * optional string routerDispatcher = 3;
- *
*
* omitted if default
*
+ *
+ * optional string routerDispatcher = 3;
*/
public boolean hasRouterDispatcher() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
- * optional string routerDispatcher = 3;
- *
*
* omitted if default
*
+ *
+ * optional string routerDispatcher = 3;
*/
public java.lang.String getRouterDispatcher() {
java.lang.Object ref = routerDispatcher_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- routerDispatcher_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ routerDispatcher_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * optional string routerDispatcher = 3;
- *
*
* omitted if default
*
+ *
+ * optional string routerDispatcher = 3;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRouterDispatcherBytes() {
java.lang.Object ref = routerDispatcher_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
routerDispatcher_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
- * optional string routerDispatcher = 3;
- *
*
* omitted if default
*
+ *
+ * optional string routerDispatcher = 3;
*/
public Builder setRouterDispatcher(
java.lang.String value) {
@@ -6836,11 +7827,11 @@ public final class ClusterMetricsMessages {
return this;
}
/**
- * optional string routerDispatcher = 3;
- *
*
* omitted if default
*
+ *
+ * optional string routerDispatcher = 3;
*/
public Builder clearRouterDispatcher() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -6849,14 +7840,14 @@ public final class ClusterMetricsMessages {
return this;
}
/**
- * optional string routerDispatcher = 3;
- *
*
* omitted if default
*
+ *
+ * optional string routerDispatcher = 3;
*/
public Builder setRouterDispatcherBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -6866,13 +7857,12 @@ public final class ClusterMetricsMessages {
return this;
}
- // required bool usePoolDispatcher = 4;
private boolean usePoolDispatcher_ ;
/**
* required bool usePoolDispatcher = 4;
*/
public boolean hasUsePoolDispatcher() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* required bool usePoolDispatcher = 4;
@@ -6898,22 +7888,63 @@ public final class ClusterMetricsMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:AdaptiveLoadBalancingPool)
}
+ // @@protoc_insertion_point(class_scope:AdaptiveLoadBalancingPool)
+ private static final akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool DEFAULT_INSTANCE;
static {
- defaultInstance = new AdaptiveLoadBalancingPool(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool();
+ }
+
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.AdaptiveLoadBalancingPool getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrequired uint32 serializerId = 1;
*/
@@ -6923,7 +7954,6 @@ public final class ClusterMetricsMessages {
*/
int getSerializerId();
- // required string manifest = 2;
/**
* required string manifest = 2;
*/
@@ -6935,10 +7965,9 @@ public final class ClusterMetricsMessages {
/**
* required string manifest = 2;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getManifestBytes();
- // required bytes data = 3;
/**
* required bytes data = 3;
*/
@@ -6946,48 +7975,52 @@ public final class ClusterMetricsMessages {
/**
* required bytes data = 3;
*/
- akka.protobuf.ByteString getData();
+ akka.protobufv3.internal.ByteString getData();
}
/**
- * Protobuf type {@code MetricsSelector}
- *
*
* couldn't figure out how to import Payload
*
+ *
+ * Protobuf type {@code MetricsSelector}
*/
- public static final class MetricsSelector extends
- akka.protobuf.GeneratedMessage
- implements MetricsSelectorOrBuilder {
+ public static final class MetricsSelector extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:MetricsSelector)
+ MetricsSelectorOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use MetricsSelector.newBuilder() to construct.
- private MetricsSelector(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private MetricsSelector(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private MetricsSelector(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final MetricsSelector defaultInstance;
- public static MetricsSelector getDefaultInstance() {
- return defaultInstance;
+ private MetricsSelector() {
+ manifest_ = "";
+ data_ = akka.protobufv3.internal.ByteString.EMPTY;
}
- public MetricsSelector getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new MetricsSelector();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private MetricsSelector(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -6996,21 +8029,15 @@ public final class ClusterMetricsMessages {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
bitField0_ |= 0x00000001;
serializerId_ = input.readUInt32();
break;
}
case 18: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
- manifest_ = input.readBytes();
+ manifest_ = bs;
break;
}
case 26: {
@@ -7018,54 +8045,46 @@ public final class ClusterMetricsMessages {
data_ = input.readBytes();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_MetricsSelector_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.internal_static_MetricsSelector_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.class, akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector.Builder.class);
}
- public static akka.protobuf.Parserrequired uint32 serializerId = 1;
*/
public boolean hasSerializerId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required uint32 serializerId = 1;
@@ -7074,14 +8093,13 @@ public final class ClusterMetricsMessages {
return serializerId_;
}
- // required string manifest = 2;
public static final int MANIFEST_FIELD_NUMBER = 2;
- private java.lang.Object manifest_;
+ private volatile java.lang.Object manifest_;
/**
* required string manifest = 2;
*/
public boolean hasManifest() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string manifest = 2;
@@ -7091,8 +8109,8 @@ public final class ClusterMetricsMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
manifest_ = s;
@@ -7103,45 +8121,41 @@ public final class ClusterMetricsMessages {
/**
* required string manifest = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getManifestBytes() {
java.lang.Object ref = manifest_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
manifest_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- // required bytes data = 3;
public static final int DATA_FIELD_NUMBER = 3;
- private akka.protobuf.ByteString data_;
+ private akka.protobufv3.internal.ByteString data_;
/**
* required bytes data = 3;
*/
public boolean hasData() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* required bytes data = 3;
*/
- public akka.protobuf.ByteString getData() {
+ public akka.protobufv3.internal.ByteString getData() {
return data_;
}
- private void initFields() {
- serializerId_ = 0;
- manifest_ = "";
- data_ = akka.protobuf.ByteString.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasSerializerId()) {
memoizedIsInitialized = 0;
@@ -7159,133 +8173,204 @@ public final class ClusterMetricsMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt32(1, serializerId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getManifestBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 2, manifest_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeBytes(3, data_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeUInt32Size(1, serializerId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(2, getManifestBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(2, manifest_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeBytesSize(3, data_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector)) {
+ return super.equals(obj);
+ }
+ akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector other = (akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector) obj;
+
+ if (hasSerializerId() != other.hasSerializerId()) return false;
+ if (hasSerializerId()) {
+ if (getSerializerId()
+ != other.getSerializerId()) return false;
+ }
+ if (hasManifest() != other.hasManifest()) return false;
+ if (hasManifest()) {
+ if (!getManifest()
+ .equals(other.getManifest())) return false;
+ }
+ if (hasData() != other.hasData()) return false;
+ if (hasData()) {
+ if (!getData()
+ .equals(other.getData())) 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 (hasSerializerId()) {
+ hash = (37 * hash) + SERIALIZERID_FIELD_NUMBER;
+ hash = (53 * hash) + getSerializerId();
+ }
+ if (hasManifest()) {
+ hash = (37 * hash) + MANIFEST_FIELD_NUMBER;
+ hash = (53 * hash) + getManifest().hashCode();
+ }
+ if (hasData()) {
+ hash = (37 * hash) + DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getData().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code MetricsSelector}
- *
*
* couldn't figure out how to import Payload
*
+ *
+ * Protobuf type {@code MetricsSelector}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired uint32 serializerId = 1;
*/
public boolean hasSerializerId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required uint32 serializerId = 1;
@@ -7457,13 +8572,12 @@ public final class ClusterMetricsMessages {
return this;
}
- // required string manifest = 2;
private java.lang.Object manifest_ = "";
/**
* required string manifest = 2;
*/
public boolean hasManifest() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string manifest = 2;
@@ -7471,9 +8585,12 @@ public final class ClusterMetricsMessages {
public java.lang.String getManifest() {
java.lang.Object ref = manifest_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- manifest_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ manifest_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -7482,17 +8599,17 @@ public final class ClusterMetricsMessages {
/**
* required string manifest = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getManifestBytes() {
java.lang.Object ref = manifest_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
manifest_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -7521,7 +8638,7 @@ public final class ClusterMetricsMessages {
* required string manifest = 2;
*/
public Builder setManifestBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -7531,24 +8648,23 @@ public final class ClusterMetricsMessages {
return this;
}
- // required bytes data = 3;
- private akka.protobuf.ByteString data_ = akka.protobuf.ByteString.EMPTY;
+ private akka.protobufv3.internal.ByteString data_ = akka.protobufv3.internal.ByteString.EMPTY;
/**
* required bytes data = 3;
*/
public boolean hasData() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* required bytes data = 3;
*/
- public akka.protobuf.ByteString getData() {
+ public akka.protobufv3.internal.ByteString getData() {
return data_;
}
/**
* required bytes data = 3;
*/
- public Builder setData(akka.protobuf.ByteString value) {
+ public Builder setData(akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -7566,22 +8682,63 @@ public final class ClusterMetricsMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:MetricsSelector)
}
+ // @@protoc_insertion_point(class_scope:MetricsSelector)
+ private static final akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector DEFAULT_INSTANCE;
static {
- defaultInstance = new MetricsSelector(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector();
+ }
+
+ public static akka.cluster.metrics.protobuf.msg.ClusterMetricsMessages.MetricsSelector getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrepeated .MetricsSelector selectors = 1;
*/
@@ -7609,39 +8766,42 @@ public final class ClusterMetricsMessages {
/**
* Protobuf type {@code MixMetricsSelector}
*/
- public static final class MixMetricsSelector extends
- akka.protobuf.GeneratedMessage
- implements MixMetricsSelectorOrBuilder {
+ public static final class MixMetricsSelector extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:MixMetricsSelector)
+ MixMetricsSelectorOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use MixMetricsSelector.newBuilder() to construct.
- private MixMetricsSelector(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private MixMetricsSelector(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private MixMetricsSelector(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final MixMetricsSelector defaultInstance;
- public static MixMetricsSelector getDefaultInstance() {
- return defaultInstance;
+ private MixMetricsSelector() {
+ selectors_ = java.util.Collections.emptyList();
}
- public MixMetricsSelector getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new MixMetricsSelector();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private MixMetricsSelector(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -7650,64 +8810,50 @@ public final class ClusterMetricsMessages {
case 0:
done = true;
break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ selectors_ = new java.util.ArrayListrequired string entityId = 1;
*/
@@ -27,10 +33,9 @@ public final class ShardingMessages {
/**
* required string entityId = 1;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getEntityIdBytes();
- // required .Payload message = 2;
/**
* required .Payload message = 2;
*/
@@ -47,39 +52,42 @@ public final class ShardingMessages {
/**
* Protobuf type {@code akka.cluster.sharding.typed.ShardingEnvelope}
*/
- public static final class ShardingEnvelope extends
- akka.protobuf.GeneratedMessage
- implements ShardingEnvelopeOrBuilder {
+ public static final class ShardingEnvelope extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:akka.cluster.sharding.typed.ShardingEnvelope)
+ ShardingEnvelopeOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ShardingEnvelope.newBuilder() to construct.
- private ShardingEnvelope(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private ShardingEnvelope(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private ShardingEnvelope(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ShardingEnvelope defaultInstance;
- public static ShardingEnvelope getDefaultInstance() {
- return defaultInstance;
+ private ShardingEnvelope() {
+ entityId_ = "";
}
- public ShardingEnvelope getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new ShardingEnvelope();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private ShardingEnvelope(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -88,21 +96,15 @@ public final class ShardingMessages {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- entityId_ = input.readBytes();
+ entityId_ = bs;
break;
}
case 18: {
akka.remote.ContainerFormats.Payload.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = message_.toBuilder();
}
message_ = input.readMessage(akka.remote.ContainerFormats.Payload.PARSER, extensionRegistry);
@@ -113,54 +115,46 @@ public final class ShardingMessages {
bitField0_ |= 0x00000002;
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.internal_static_akka_cluster_sharding_typed_ShardingEnvelope_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.internal_static_akka_cluster_sharding_typed_ShardingEnvelope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope.class, akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope.Builder.class);
}
- public static akka.protobuf.Parserrequired string entityId = 1;
*/
public boolean hasEntityId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string entityId = 1;
@@ -170,8 +164,8 @@ public final class ShardingMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
entityId_ = s;
@@ -182,50 +176,47 @@ public final class ShardingMessages {
/**
* required string entityId = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getEntityIdBytes() {
java.lang.Object ref = entityId_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
entityId_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- // required .Payload message = 2;
public static final int MESSAGE_FIELD_NUMBER = 2;
private akka.remote.ContainerFormats.Payload message_;
/**
* required .Payload message = 2;
*/
public boolean hasMessage() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .Payload message = 2;
*/
public akka.remote.ContainerFormats.Payload getMessage() {
- return message_;
+ return message_ == null ? akka.remote.ContainerFormats.Payload.getDefaultInstance() : message_;
}
/**
* required .Payload message = 2;
*/
public akka.remote.ContainerFormats.PayloadOrBuilder getMessageOrBuilder() {
- return message_;
+ return message_ == null ? akka.remote.ContainerFormats.Payload.getDefaultInstance() : message_;
}
- private void initFields() {
- entityId_ = "";
- message_ = akka.remote.ContainerFormats.Payload.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasEntityId()) {
memoizedIsInitialized = 0;
@@ -243,107 +234,167 @@ public final class ShardingMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getEntityIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, entityId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, message_);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getMessage());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(1, getEntityIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(1, entityId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += akka.protobuf.CodedOutputStream
- .computeMessageSize(2, message_);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
+ .computeMessageSize(2, getMessage());
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope)) {
+ return super.equals(obj);
+ }
+ akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope other = (akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope) obj;
+
+ if (hasEntityId() != other.hasEntityId()) return false;
+ if (hasEntityId()) {
+ if (!getEntityId()
+ .equals(other.getEntityId())) return false;
+ }
+ if (hasMessage() != other.hasMessage()) return false;
+ if (hasMessage()) {
+ if (!getMessage()
+ .equals(other.getMessage())) 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 (hasEntityId()) {
+ hash = (37 * hash) + ENTITYID_FIELD_NUMBER;
+ hash = (53 * hash) + getEntityId().hashCode();
+ }
+ if (hasMessage()) {
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -351,14 +402,16 @@ public final class ShardingMessages {
* Protobuf type {@code akka.cluster.sharding.typed.ShardingEnvelope}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired string entityId = 1;
*/
public boolean hasEntityId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string entityId = 1;
@@ -511,9 +594,12 @@ public final class ShardingMessages {
public java.lang.String getEntityId() {
java.lang.Object ref = entityId_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- entityId_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ entityId_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -522,17 +608,17 @@ public final class ShardingMessages {
/**
* required string entityId = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getEntityIdBytes() {
java.lang.Object ref = entityId_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
entityId_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -561,7 +647,7 @@ public final class ShardingMessages {
* required string entityId = 1;
*/
public Builder setEntityIdBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -571,22 +657,21 @@ public final class ShardingMessages {
return this;
}
- // required .Payload message = 2;
- private akka.remote.ContainerFormats.Payload message_ = akka.remote.ContainerFormats.Payload.getDefaultInstance();
- private akka.protobuf.SingleFieldBuilder<
+ private akka.remote.ContainerFormats.Payload message_;
+ private akka.protobufv3.internal.SingleFieldBuilderV3<
akka.remote.ContainerFormats.Payload, akka.remote.ContainerFormats.Payload.Builder, akka.remote.ContainerFormats.PayloadOrBuilder> messageBuilder_;
/**
* required .Payload message = 2;
*/
public boolean hasMessage() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .Payload message = 2;
*/
public akka.remote.ContainerFormats.Payload getMessage() {
if (messageBuilder_ == null) {
- return message_;
+ return message_ == null ? akka.remote.ContainerFormats.Payload.getDefaultInstance() : message_;
} else {
return messageBuilder_.getMessage();
}
@@ -626,7 +711,8 @@ public final class ShardingMessages {
*/
public Builder mergeMessage(akka.remote.ContainerFormats.Payload value) {
if (messageBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ if (((bitField0_ & 0x00000002) != 0) &&
+ message_ != null &&
message_ != akka.remote.ContainerFormats.Payload.getDefaultInstance()) {
message_ =
akka.remote.ContainerFormats.Payload.newBuilder(message_).mergeFrom(value).buildPartial();
@@ -645,7 +731,7 @@ public final class ShardingMessages {
*/
public Builder clearMessage() {
if (messageBuilder_ == null) {
- message_ = akka.remote.ContainerFormats.Payload.getDefaultInstance();
+ message_ = null;
onChanged();
} else {
messageBuilder_.clear();
@@ -668,48 +754,90 @@ public final class ShardingMessages {
if (messageBuilder_ != null) {
return messageBuilder_.getMessageOrBuilder();
} else {
- return message_;
+ return message_ == null ?
+ akka.remote.ContainerFormats.Payload.getDefaultInstance() : message_;
}
}
/**
* required .Payload message = 2;
*/
- private akka.protobuf.SingleFieldBuilder<
+ private akka.protobufv3.internal.SingleFieldBuilderV3<
akka.remote.ContainerFormats.Payload, akka.remote.ContainerFormats.Payload.Builder, akka.remote.ContainerFormats.PayloadOrBuilder>
getMessageFieldBuilder() {
if (messageBuilder_ == null) {
- messageBuilder_ = new akka.protobuf.SingleFieldBuilder<
+ messageBuilder_ = new akka.protobufv3.internal.SingleFieldBuilderV3<
akka.remote.ContainerFormats.Payload, akka.remote.ContainerFormats.Payload.Builder, akka.remote.ContainerFormats.PayloadOrBuilder>(
- message_,
+ getMessage(),
getParentForChildren(),
isClean());
message_ = null;
}
return messageBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:akka.cluster.sharding.typed.ShardingEnvelope)
}
+ // @@protoc_insertion_point(class_scope:akka.cluster.sharding.typed.ShardingEnvelope)
+ private static final akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope DEFAULT_INSTANCE;
static {
- defaultInstance = new ShardingEnvelope(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope();
+ }
+
+ public static akka.cluster.sharding.typed.internal.protobuf.ShardingMessages.ShardingEnvelope getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrepeated .CoordinatorState.ShardEntry shards = 1;
*/
@@ -40,12 +46,11 @@ public final class ClusterShardingMessages {
akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntryOrBuilder getShardsOrBuilder(
int index);
- // repeated string regions = 2;
/**
* repeated string regions = 2;
*/
java.util.Listrepeated string regions = 2;
*/
@@ -57,15 +62,14 @@ public final class ClusterShardingMessages {
/**
* repeated string regions = 2;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getRegionsBytes(int index);
- // repeated string regionProxies = 3;
/**
* repeated string regionProxies = 3;
*/
java.util.Listrepeated string regionProxies = 3;
*/
@@ -77,15 +81,14 @@ public final class ClusterShardingMessages {
/**
* repeated string regionProxies = 3;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getRegionProxiesBytes(int index);
- // repeated string unallocatedShards = 4;
/**
* repeated string unallocatedShards = 4;
*/
java.util.Listrepeated string unallocatedShards = 4;
*/
@@ -97,45 +100,51 @@ public final class ClusterShardingMessages {
/**
* repeated string unallocatedShards = 4;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getUnallocatedShardsBytes(int index);
}
/**
* Protobuf type {@code CoordinatorState}
*/
- public static final class CoordinatorState extends
- akka.protobuf.GeneratedMessage
- implements CoordinatorStateOrBuilder {
+ public static final class CoordinatorState extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:CoordinatorState)
+ CoordinatorStateOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use CoordinatorState.newBuilder() to construct.
- private CoordinatorState(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private CoordinatorState(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private CoordinatorState(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CoordinatorState defaultInstance;
- public static CoordinatorState getDefaultInstance() {
- return defaultInstance;
+ private CoordinatorState() {
+ shards_ = java.util.Collections.emptyList();
+ regions_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
+ regionProxies_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
+ unallocatedShards_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
}
- public CoordinatorState getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new CoordinatorState();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private CoordinatorState(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -144,100 +153,90 @@ public final class ClusterShardingMessages {
case 0:
done = true;
break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ shards_ = new java.util.ArrayListrequired string shardId = 1;
*/
@@ -249,10 +248,9 @@ public final class ClusterShardingMessages {
/**
* required string shardId = 1;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getShardIdBytes();
- // required string regionRef = 2;
/**
* required string regionRef = 2;
*/
@@ -264,45 +262,49 @@ public final class ClusterShardingMessages {
/**
* required string regionRef = 2;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getRegionRefBytes();
}
/**
* Protobuf type {@code CoordinatorState.ShardEntry}
*/
- public static final class ShardEntry extends
- akka.protobuf.GeneratedMessage
- implements ShardEntryOrBuilder {
+ public static final class ShardEntry extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:CoordinatorState.ShardEntry)
+ ShardEntryOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ShardEntry.newBuilder() to construct.
- private ShardEntry(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private ShardEntry(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private ShardEntry(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ShardEntry defaultInstance;
- public static ShardEntry getDefaultInstance() {
- return defaultInstance;
+ private ShardEntry() {
+ shardId_ = "";
+ regionRef_ = "";
}
- public ShardEntry getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new ShardEntry();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private ShardEntry(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -311,71 +313,58 @@ public final class ClusterShardingMessages {
case 0:
done = true;
break;
+ case 10: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ shardId_ = bs;
+ break;
+ }
+ case 18: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ regionRef_ = bs;
+ break;
+ }
default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
- case 10: {
- bitField0_ |= 0x00000001;
- shardId_ = input.readBytes();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- regionRef_ = input.readBytes();
- break;
- }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_CoordinatorState_ShardEntry_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_CoordinatorState_ShardEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry.class, akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry.Builder.class);
}
- public static akka.protobuf.Parserrequired string shardId = 1;
*/
public boolean hasShardId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string shardId = 1;
@@ -385,8 +374,8 @@ public final class ClusterShardingMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
shardId_ = s;
@@ -397,28 +386,27 @@ public final class ClusterShardingMessages {
/**
* required string shardId = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getShardIdBytes() {
java.lang.Object ref = shardId_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
shardId_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- // required string regionRef = 2;
public static final int REGIONREF_FIELD_NUMBER = 2;
- private java.lang.Object regionRef_;
+ private volatile java.lang.Object regionRef_;
/**
* required string regionRef = 2;
*/
public boolean hasRegionRef() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string regionRef = 2;
@@ -428,8 +416,8 @@ public final class ClusterShardingMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
regionRef_ = s;
@@ -440,28 +428,26 @@ public final class ClusterShardingMessages {
/**
* required string regionRef = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRegionRefBytes() {
java.lang.Object ref = regionRef_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
regionRef_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- private void initFields() {
- shardId_ = "";
- regionRef_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasShardId()) {
memoizedIsInitialized = 0;
@@ -475,107 +461,166 @@ public final class ClusterShardingMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getShardIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, shardId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getRegionRefBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 2, regionRef_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(1, getShardIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(1, shardId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(2, getRegionRefBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(2, regionRef_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry)) {
+ return super.equals(obj);
+ }
+ akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry other = (akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry) obj;
+
+ if (hasShardId() != other.hasShardId()) return false;
+ if (hasShardId()) {
+ if (!getShardId()
+ .equals(other.getShardId())) return false;
+ }
+ if (hasRegionRef() != other.hasRegionRef()) return false;
+ if (hasRegionRef()) {
+ if (!getRegionRef()
+ .equals(other.getRegionRef())) 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 (hasShardId()) {
+ hash = (37 * hash) + SHARDID_FIELD_NUMBER;
+ hash = (53 * hash) + getShardId().hashCode();
+ }
+ if (hasRegionRef()) {
+ hash = (37 * hash) + REGIONREF_FIELD_NUMBER;
+ hash = (53 * hash) + getRegionRef().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -583,14 +628,16 @@ public final class ClusterShardingMessages {
* Protobuf type {@code CoordinatorState.ShardEntry}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired string shardId = 1;
*/
public boolean hasShardId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string shardId = 1;
@@ -732,9 +810,12 @@ public final class ClusterShardingMessages {
public java.lang.String getShardId() {
java.lang.Object ref = shardId_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- shardId_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ shardId_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -743,17 +824,17 @@ public final class ClusterShardingMessages {
/**
* required string shardId = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getShardIdBytes() {
java.lang.Object ref = shardId_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
shardId_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -782,7 +863,7 @@ public final class ClusterShardingMessages {
* required string shardId = 1;
*/
public Builder setShardIdBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -792,13 +873,12 @@ public final class ClusterShardingMessages {
return this;
}
- // required string regionRef = 2;
private java.lang.Object regionRef_ = "";
/**
* required string regionRef = 2;
*/
public boolean hasRegionRef() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string regionRef = 2;
@@ -806,9 +886,12 @@ public final class ClusterShardingMessages {
public java.lang.String getRegionRef() {
java.lang.Object ref = regionRef_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- regionRef_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ regionRef_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -817,17 +900,17 @@ public final class ClusterShardingMessages {
/**
* required string regionRef = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRegionRefBytes() {
java.lang.Object ref = regionRef_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
regionRef_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -856,7 +939,7 @@ public final class ClusterShardingMessages {
* required string regionRef = 2;
*/
public Builder setRegionRefBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -865,19 +948,59 @@ public final class ClusterShardingMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:CoordinatorState.ShardEntry)
}
+ // @@protoc_insertion_point(class_scope:CoordinatorState.ShardEntry)
+ private static final akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry DEFAULT_INSTANCE;
static {
- defaultInstance = new ShardEntry(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry();
+ }
+
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState.ShardEntry getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrepeated string regions = 2;
*/
- public java.util.Listrepeated string regions = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRegionsBytes(int index) {
return regions_.getByteString(index);
}
- // repeated string regionProxies = 3;
public static final int REGIONPROXIES_FIELD_NUMBER = 3;
- private akka.protobuf.LazyStringList regionProxies_;
+ private akka.protobufv3.internal.LazyStringList regionProxies_;
/**
* repeated string regionProxies = 3;
*/
- public java.util.Listrepeated string regionProxies = 3;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRegionProxiesBytes(int index) {
return regionProxies_.getByteString(index);
}
- // repeated string unallocatedShards = 4;
public static final int UNALLOCATEDSHARDS_FIELD_NUMBER = 4;
- private akka.protobuf.LazyStringList unallocatedShards_;
+ private akka.protobufv3.internal.LazyStringList unallocatedShards_;
/**
* repeated string unallocatedShards = 4;
*/
- public java.util.Listrepeated string unallocatedShards = 4;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getUnallocatedShardsBytes(int index) {
return unallocatedShards_.getByteString(index);
}
- private void initFields() {
- shards_ = java.util.Collections.emptyList();
- regions_ = akka.protobuf.LazyStringArrayList.EMPTY;
- regionProxies_ = akka.protobuf.LazyStringArrayList.EMPTY;
- unallocatedShards_ = akka.protobuf.LazyStringArrayList.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
for (int i = 0; i < getShardsCount(); i++) {
if (!getShards(i).isInitialized()) {
@@ -1024,39 +1140,38 @@ public final class ClusterShardingMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < shards_.size(); i++) {
output.writeMessage(1, shards_.get(i));
}
for (int i = 0; i < regions_.size(); i++) {
- output.writeBytes(2, regions_.getByteString(i));
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 2, regions_.getRaw(i));
}
for (int i = 0; i < regionProxies_.size(); i++) {
- output.writeBytes(3, regionProxies_.getByteString(i));
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 3, regionProxies_.getRaw(i));
}
for (int i = 0; i < unallocatedShards_.size(); i++) {
- output.writeBytes(4, unallocatedShards_.getByteString(i));
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 4, unallocatedShards_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < shards_.size(); i++) {
- size += akka.protobuf.CodedOutputStream
+ size += akka.protobufv3.internal.CodedOutputStream
.computeMessageSize(1, shards_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < regions_.size(); i++) {
- dataSize += akka.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(regions_.getByteString(i));
+ dataSize += computeStringSizeNoTag(regions_.getRaw(i));
}
size += dataSize;
size += 1 * getRegionsList().size();
@@ -1064,8 +1179,7 @@ public final class ClusterShardingMessages {
{
int dataSize = 0;
for (int i = 0; i < regionProxies_.size(); i++) {
- dataSize += akka.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(regionProxies_.getByteString(i));
+ dataSize += computeStringSizeNoTag(regionProxies_.getRaw(i));
}
size += dataSize;
size += 1 * getRegionProxiesList().size();
@@ -1073,87 +1187,153 @@ public final class ClusterShardingMessages {
{
int dataSize = 0;
for (int i = 0; i < unallocatedShards_.size(); i++) {
- dataSize += akka.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(unallocatedShards_.getByteString(i));
+ dataSize += computeStringSizeNoTag(unallocatedShards_.getRaw(i));
}
size += dataSize;
size += 1 * getUnallocatedShardsList().size();
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState)) {
+ return super.equals(obj);
+ }
+ akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState other = (akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState) obj;
+
+ if (!getShardsList()
+ .equals(other.getShardsList())) return false;
+ if (!getRegionsList()
+ .equals(other.getRegionsList())) return false;
+ if (!getRegionProxiesList()
+ .equals(other.getRegionProxiesList())) return false;
+ if (!getUnallocatedShardsList()
+ .equals(other.getUnallocatedShardsList())) 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 (getShardsCount() > 0) {
+ hash = (37 * hash) + SHARDS_FIELD_NUMBER;
+ hash = (53 * hash) + getShardsList().hashCode();
+ }
+ if (getRegionsCount() > 0) {
+ hash = (37 * hash) + REGIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getRegionsList().hashCode();
+ }
+ if (getRegionProxiesCount() > 0) {
+ hash = (37 * hash) + REGIONPROXIES_FIELD_NUMBER;
+ hash = (53 * hash) + getRegionProxiesList().hashCode();
+ }
+ if (getUnallocatedShardsCount() > 0) {
+ hash = (37 * hash) + UNALLOCATEDSHARDS_FIELD_NUMBER;
+ hash = (53 * hash) + getUnallocatedShardsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1161,14 +1341,16 @@ public final class ClusterShardingMessages {
* Protobuf type {@code CoordinatorState}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrepeated string regions = 2;
*/
- public java.util.Listrepeated string regions = 2;
@@ -1636,7 +1847,7 @@ public final class ClusterShardingMessages {
/**
* repeated string regions = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRegionsBytes(int index) {
return regions_.getByteString(index);
}
@@ -1672,7 +1883,8 @@ public final class ClusterShardingMessages {
public Builder addAllRegions(
java.lang.Iterablerepeated string regions = 2;
*/
public Builder clearRegions() {
- regions_ = akka.protobuf.LazyStringArrayList.EMPTY;
+ regions_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
@@ -1689,7 +1901,7 @@ public final class ClusterShardingMessages {
* repeated string regions = 2;
*/
public Builder addRegionsBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -1699,20 +1911,19 @@ public final class ClusterShardingMessages {
return this;
}
- // repeated string regionProxies = 3;
- private akka.protobuf.LazyStringList regionProxies_ = akka.protobuf.LazyStringArrayList.EMPTY;
+ private akka.protobufv3.internal.LazyStringList regionProxies_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
private void ensureRegionProxiesIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- regionProxies_ = new akka.protobuf.LazyStringArrayList(regionProxies_);
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ regionProxies_ = new akka.protobufv3.internal.LazyStringArrayList(regionProxies_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string regionProxies = 3;
*/
- public java.util.Listrepeated string regionProxies = 3;
@@ -1729,7 +1940,7 @@ public final class ClusterShardingMessages {
/**
* repeated string regionProxies = 3;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRegionProxiesBytes(int index) {
return regionProxies_.getByteString(index);
}
@@ -1765,7 +1976,8 @@ public final class ClusterShardingMessages {
public Builder addAllRegionProxies(
java.lang.Iterablerepeated string regionProxies = 3;
*/
public Builder clearRegionProxies() {
- regionProxies_ = akka.protobuf.LazyStringArrayList.EMPTY;
+ regionProxies_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
@@ -1782,7 +1994,7 @@ public final class ClusterShardingMessages {
* repeated string regionProxies = 3;
*/
public Builder addRegionProxiesBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -1792,20 +2004,19 @@ public final class ClusterShardingMessages {
return this;
}
- // repeated string unallocatedShards = 4;
- private akka.protobuf.LazyStringList unallocatedShards_ = akka.protobuf.LazyStringArrayList.EMPTY;
+ private akka.protobufv3.internal.LazyStringList unallocatedShards_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
private void ensureUnallocatedShardsIsMutable() {
- if (!((bitField0_ & 0x00000008) == 0x00000008)) {
- unallocatedShards_ = new akka.protobuf.LazyStringArrayList(unallocatedShards_);
+ if (!((bitField0_ & 0x00000008) != 0)) {
+ unallocatedShards_ = new akka.protobufv3.internal.LazyStringArrayList(unallocatedShards_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated string unallocatedShards = 4;
*/
- public java.util.Listrepeated string unallocatedShards = 4;
@@ -1822,7 +2033,7 @@ public final class ClusterShardingMessages {
/**
* repeated string unallocatedShards = 4;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getUnallocatedShardsBytes(int index) {
return unallocatedShards_.getByteString(index);
}
@@ -1858,7 +2069,8 @@ public final class ClusterShardingMessages {
public Builder addAllUnallocatedShards(
java.lang.Iterablerepeated string unallocatedShards = 4;
*/
public Builder clearUnallocatedShards() {
- unallocatedShards_ = akka.protobuf.LazyStringArrayList.EMPTY;
+ unallocatedShards_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
@@ -1875,7 +2087,7 @@ public final class ClusterShardingMessages {
* repeated string unallocatedShards = 4;
*/
public Builder addUnallocatedShardsBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -1884,22 +2096,63 @@ public final class ClusterShardingMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:CoordinatorState)
}
+ // @@protoc_insertion_point(class_scope:CoordinatorState)
+ private static final akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState DEFAULT_INSTANCE;
static {
- defaultInstance = new CoordinatorState(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState();
+ }
+
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.CoordinatorState getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrequired string ref = 1;
*/
@@ -1911,45 +2164,48 @@ public final class ClusterShardingMessages {
/**
* required string ref = 1;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getRefBytes();
}
/**
* Protobuf type {@code ActorRefMessage}
*/
- public static final class ActorRefMessage extends
- akka.protobuf.GeneratedMessage
- implements ActorRefMessageOrBuilder {
+ public static final class ActorRefMessage extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ActorRefMessage)
+ ActorRefMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ActorRefMessage.newBuilder() to construct.
- private ActorRefMessage(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private ActorRefMessage(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private ActorRefMessage(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ActorRefMessage defaultInstance;
- public static ActorRefMessage getDefaultInstance() {
- return defaultInstance;
+ private ActorRefMessage() {
+ ref_ = "";
}
- public ActorRefMessage getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new ActorRefMessage();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private ActorRefMessage(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -1958,66 +2214,52 @@ public final class ClusterShardingMessages {
case 0:
done = true;
break;
+ case 10: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ ref_ = bs;
+ break;
+ }
default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
- case 10: {
- bitField0_ |= 0x00000001;
- ref_ = input.readBytes();
- break;
- }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_ActorRefMessage_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_ActorRefMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage.class, akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage.Builder.class);
}
- public static akka.protobuf.Parserrequired string ref = 1;
*/
public boolean hasRef() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string ref = 1;
@@ -2027,8 +2269,8 @@ public final class ClusterShardingMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
ref_ = s;
@@ -2039,27 +2281,26 @@ public final class ClusterShardingMessages {
/**
* required string ref = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRefBytes() {
java.lang.Object ref = ref_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
ref_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- private void initFields() {
- ref_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasRef()) {
memoizedIsInitialized = 0;
@@ -2069,100 +2310,151 @@ public final class ClusterShardingMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getRefBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, ref_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(1, getRefBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(1, ref_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage)) {
+ return super.equals(obj);
+ }
+ akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage other = (akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage) obj;
+
+ if (hasRef() != other.hasRef()) return false;
+ if (hasRef()) {
+ if (!getRef()
+ .equals(other.getRef())) 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 (hasRef()) {
+ hash = (37 * hash) + REF_FIELD_NUMBER;
+ hash = (53 * hash) + getRef().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2170,14 +2462,16 @@ public final class ClusterShardingMessages {
* Protobuf type {@code ActorRefMessage}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired string ref = 1;
*/
public boolean hasRef() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string ref = 1;
@@ -2304,9 +2630,12 @@ public final class ClusterShardingMessages {
public java.lang.String getRef() {
java.lang.Object ref = ref_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- ref_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ ref_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -2315,17 +2644,17 @@ public final class ClusterShardingMessages {
/**
* required string ref = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRefBytes() {
java.lang.Object ref = ref_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
ref_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -2354,7 +2683,7 @@ public final class ClusterShardingMessages {
* required string ref = 1;
*/
public Builder setRefBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -2363,22 +2692,63 @@ public final class ClusterShardingMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:ActorRefMessage)
}
+ // @@protoc_insertion_point(class_scope:ActorRefMessage)
+ private static final akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage DEFAULT_INSTANCE;
static {
- defaultInstance = new ActorRefMessage(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage();
+ }
+
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ActorRefMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrequired string shard = 1;
*/
@@ -2390,45 +2760,48 @@ public final class ClusterShardingMessages {
/**
* required string shard = 1;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getShardBytes();
}
/**
* Protobuf type {@code ShardIdMessage}
*/
- public static final class ShardIdMessage extends
- akka.protobuf.GeneratedMessage
- implements ShardIdMessageOrBuilder {
+ public static final class ShardIdMessage extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ShardIdMessage)
+ ShardIdMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ShardIdMessage.newBuilder() to construct.
- private ShardIdMessage(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private ShardIdMessage(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private ShardIdMessage(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ShardIdMessage defaultInstance;
- public static ShardIdMessage getDefaultInstance() {
- return defaultInstance;
+ private ShardIdMessage() {
+ shard_ = "";
}
- public ShardIdMessage getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new ShardIdMessage();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private ShardIdMessage(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -2437,66 +2810,52 @@ public final class ClusterShardingMessages {
case 0:
done = true;
break;
+ case 10: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ shard_ = bs;
+ break;
+ }
default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
- case 10: {
- bitField0_ |= 0x00000001;
- shard_ = input.readBytes();
- break;
- }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_ShardIdMessage_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_ShardIdMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage.class, akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage.Builder.class);
}
- public static akka.protobuf.Parserrequired string shard = 1;
*/
public boolean hasShard() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string shard = 1;
@@ -2506,8 +2865,8 @@ public final class ClusterShardingMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
shard_ = s;
@@ -2518,27 +2877,26 @@ public final class ClusterShardingMessages {
/**
* required string shard = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getShardBytes() {
java.lang.Object ref = shard_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
shard_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- private void initFields() {
- shard_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasShard()) {
memoizedIsInitialized = 0;
@@ -2548,100 +2906,151 @@ public final class ClusterShardingMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getShardBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, shard_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(1, getShardBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(1, shard_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage)) {
+ return super.equals(obj);
+ }
+ akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage other = (akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage) obj;
+
+ if (hasShard() != other.hasShard()) return false;
+ if (hasShard()) {
+ if (!getShard()
+ .equals(other.getShard())) 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 (hasShard()) {
+ hash = (37 * hash) + SHARD_FIELD_NUMBER;
+ hash = (53 * hash) + getShard().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2649,14 +3058,16 @@ public final class ClusterShardingMessages {
* Protobuf type {@code ShardIdMessage}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired string shard = 1;
*/
public boolean hasShard() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string shard = 1;
@@ -2783,9 +3226,12 @@ public final class ClusterShardingMessages {
public java.lang.String getShard() {
java.lang.Object ref = shard_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- shard_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ shard_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -2794,17 +3240,17 @@ public final class ClusterShardingMessages {
/**
* required string shard = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getShardBytes() {
java.lang.Object ref = shard_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
shard_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -2833,7 +3279,7 @@ public final class ClusterShardingMessages {
* required string shard = 1;
*/
public Builder setShardBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -2842,22 +3288,63 @@ public final class ClusterShardingMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:ShardIdMessage)
}
+ // @@protoc_insertion_point(class_scope:ShardIdMessage)
+ private static final akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage DEFAULT_INSTANCE;
static {
- defaultInstance = new ShardIdMessage(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage();
+ }
+
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardIdMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrequired string shard = 1;
*/
@@ -2869,10 +3356,9 @@ public final class ClusterShardingMessages {
/**
* required string shard = 1;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getShardBytes();
- // required string region = 2;
/**
* required string region = 2;
*/
@@ -2884,45 +3370,49 @@ public final class ClusterShardingMessages {
/**
* required string region = 2;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getRegionBytes();
}
/**
* Protobuf type {@code ShardHomeAllocated}
*/
- public static final class ShardHomeAllocated extends
- akka.protobuf.GeneratedMessage
- implements ShardHomeAllocatedOrBuilder {
+ public static final class ShardHomeAllocated extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ShardHomeAllocated)
+ ShardHomeAllocatedOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ShardHomeAllocated.newBuilder() to construct.
- private ShardHomeAllocated(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private ShardHomeAllocated(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private ShardHomeAllocated(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ShardHomeAllocated defaultInstance;
- public static ShardHomeAllocated getDefaultInstance() {
- return defaultInstance;
+ private ShardHomeAllocated() {
+ shard_ = "";
+ region_ = "";
}
- public ShardHomeAllocated getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new ShardHomeAllocated();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private ShardHomeAllocated(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -2931,71 +3421,58 @@ public final class ClusterShardingMessages {
case 0:
done = true;
break;
+ case 10: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ shard_ = bs;
+ break;
+ }
+ case 18: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ region_ = bs;
+ break;
+ }
default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
- case 10: {
- bitField0_ |= 0x00000001;
- shard_ = input.readBytes();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- region_ = input.readBytes();
- break;
- }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_ShardHomeAllocated_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_ShardHomeAllocated_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated.class, akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated.Builder.class);
}
- public static akka.protobuf.Parserrequired string shard = 1;
*/
public boolean hasShard() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string shard = 1;
@@ -3005,8 +3482,8 @@ public final class ClusterShardingMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
shard_ = s;
@@ -3017,28 +3494,27 @@ public final class ClusterShardingMessages {
/**
* required string shard = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getShardBytes() {
java.lang.Object ref = shard_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
shard_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- // required string region = 2;
public static final int REGION_FIELD_NUMBER = 2;
- private java.lang.Object region_;
+ private volatile java.lang.Object region_;
/**
* required string region = 2;
*/
public boolean hasRegion() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string region = 2;
@@ -3048,8 +3524,8 @@ public final class ClusterShardingMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
region_ = s;
@@ -3060,28 +3536,26 @@ public final class ClusterShardingMessages {
/**
* required string region = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- private void initFields() {
- shard_ = "";
- region_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasShard()) {
memoizedIsInitialized = 0;
@@ -3095,107 +3569,166 @@ public final class ClusterShardingMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getShardBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, shard_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getRegionBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 2, region_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(1, getShardBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(1, shard_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(2, getRegionBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(2, region_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated)) {
+ return super.equals(obj);
+ }
+ akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated other = (akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated) obj;
+
+ if (hasShard() != other.hasShard()) return false;
+ if (hasShard()) {
+ if (!getShard()
+ .equals(other.getShard())) return false;
+ }
+ if (hasRegion() != other.hasRegion()) return false;
+ if (hasRegion()) {
+ if (!getRegion()
+ .equals(other.getRegion())) 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 (hasShard()) {
+ hash = (37 * hash) + SHARD_FIELD_NUMBER;
+ hash = (53 * hash) + getShard().hashCode();
+ }
+ if (hasRegion()) {
+ hash = (37 * hash) + REGION_FIELD_NUMBER;
+ hash = (53 * hash) + getRegion().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3203,14 +3736,16 @@ public final class ClusterShardingMessages {
* Protobuf type {@code ShardHomeAllocated}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired string shard = 1;
*/
public boolean hasShard() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string shard = 1;
@@ -3352,9 +3918,12 @@ public final class ClusterShardingMessages {
public java.lang.String getShard() {
java.lang.Object ref = shard_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- shard_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ shard_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -3363,17 +3932,17 @@ public final class ClusterShardingMessages {
/**
* required string shard = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getShardBytes() {
java.lang.Object ref = shard_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
shard_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -3402,7 +3971,7 @@ public final class ClusterShardingMessages {
* required string shard = 1;
*/
public Builder setShardBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -3412,13 +3981,12 @@ public final class ClusterShardingMessages {
return this;
}
- // required string region = 2;
private java.lang.Object region_ = "";
/**
* required string region = 2;
*/
public boolean hasRegion() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string region = 2;
@@ -3426,9 +3994,12 @@ public final class ClusterShardingMessages {
public java.lang.String getRegion() {
java.lang.Object ref = region_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- region_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ region_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -3437,17 +4008,17 @@ public final class ClusterShardingMessages {
/**
* required string region = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -3476,7 +4047,7 @@ public final class ClusterShardingMessages {
* required string region = 2;
*/
public Builder setRegionBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -3485,22 +4056,63 @@ public final class ClusterShardingMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:ShardHomeAllocated)
}
+ // @@protoc_insertion_point(class_scope:ShardHomeAllocated)
+ private static final akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated DEFAULT_INSTANCE;
static {
- defaultInstance = new ShardHomeAllocated(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated();
+ }
+
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHomeAllocated getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrequired string shard = 1;
*/
@@ -3512,10 +4124,9 @@ public final class ClusterShardingMessages {
/**
* required string shard = 1;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getShardBytes();
- // required string region = 2;
/**
* required string region = 2;
*/
@@ -3527,45 +4138,49 @@ public final class ClusterShardingMessages {
/**
* required string region = 2;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getRegionBytes();
}
/**
* Protobuf type {@code ShardHome}
*/
- public static final class ShardHome extends
- akka.protobuf.GeneratedMessage
- implements ShardHomeOrBuilder {
+ public static final class ShardHome extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ShardHome)
+ ShardHomeOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ShardHome.newBuilder() to construct.
- private ShardHome(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private ShardHome(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private ShardHome(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ShardHome defaultInstance;
- public static ShardHome getDefaultInstance() {
- return defaultInstance;
+ private ShardHome() {
+ shard_ = "";
+ region_ = "";
}
- public ShardHome getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new ShardHome();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private ShardHome(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -3574,71 +4189,58 @@ public final class ClusterShardingMessages {
case 0:
done = true;
break;
+ case 10: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ shard_ = bs;
+ break;
+ }
+ case 18: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ region_ = bs;
+ break;
+ }
default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
- case 10: {
- bitField0_ |= 0x00000001;
- shard_ = input.readBytes();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- region_ = input.readBytes();
- break;
- }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_ShardHome_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_ShardHome_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome.class, akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome.Builder.class);
}
- public static akka.protobuf.Parserrequired string shard = 1;
*/
public boolean hasShard() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string shard = 1;
@@ -3648,8 +4250,8 @@ public final class ClusterShardingMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
shard_ = s;
@@ -3660,28 +4262,27 @@ public final class ClusterShardingMessages {
/**
* required string shard = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getShardBytes() {
java.lang.Object ref = shard_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
shard_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- // required string region = 2;
public static final int REGION_FIELD_NUMBER = 2;
- private java.lang.Object region_;
+ private volatile java.lang.Object region_;
/**
* required string region = 2;
*/
public boolean hasRegion() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string region = 2;
@@ -3691,8 +4292,8 @@ public final class ClusterShardingMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
region_ = s;
@@ -3703,28 +4304,26 @@ public final class ClusterShardingMessages {
/**
* required string region = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- private void initFields() {
- shard_ = "";
- region_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasShard()) {
memoizedIsInitialized = 0;
@@ -3738,107 +4337,166 @@ public final class ClusterShardingMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getShardBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, shard_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getRegionBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 2, region_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(1, getShardBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(1, shard_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(2, getRegionBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(2, region_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome)) {
+ return super.equals(obj);
+ }
+ akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome other = (akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome) obj;
+
+ if (hasShard() != other.hasShard()) return false;
+ if (hasShard()) {
+ if (!getShard()
+ .equals(other.getShard())) return false;
+ }
+ if (hasRegion() != other.hasRegion()) return false;
+ if (hasRegion()) {
+ if (!getRegion()
+ .equals(other.getRegion())) 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 (hasShard()) {
+ hash = (37 * hash) + SHARD_FIELD_NUMBER;
+ hash = (53 * hash) + getShard().hashCode();
+ }
+ if (hasRegion()) {
+ hash = (37 * hash) + REGION_FIELD_NUMBER;
+ hash = (53 * hash) + getRegion().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3846,14 +4504,16 @@ public final class ClusterShardingMessages {
* Protobuf type {@code ShardHome}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired string shard = 1;
*/
public boolean hasShard() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string shard = 1;
@@ -3995,9 +4686,12 @@ public final class ClusterShardingMessages {
public java.lang.String getShard() {
java.lang.Object ref = shard_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- shard_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ shard_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -4006,17 +4700,17 @@ public final class ClusterShardingMessages {
/**
* required string shard = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getShardBytes() {
java.lang.Object ref = shard_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
shard_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -4045,7 +4739,7 @@ public final class ClusterShardingMessages {
* required string shard = 1;
*/
public Builder setShardBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -4055,13 +4749,12 @@ public final class ClusterShardingMessages {
return this;
}
- // required string region = 2;
private java.lang.Object region_ = "";
/**
* required string region = 2;
*/
public boolean hasRegion() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string region = 2;
@@ -4069,9 +4762,12 @@ public final class ClusterShardingMessages {
public java.lang.String getRegion() {
java.lang.Object ref = region_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- region_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ region_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -4080,17 +4776,17 @@ public final class ClusterShardingMessages {
/**
* required string region = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
region_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -4119,7 +4815,7 @@ public final class ClusterShardingMessages {
* required string region = 2;
*/
public Builder setRegionBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -4128,27 +4824,68 @@ public final class ClusterShardingMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:ShardHome)
}
+ // @@protoc_insertion_point(class_scope:ShardHome)
+ private static final akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome DEFAULT_INSTANCE;
static {
- defaultInstance = new ShardHome(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome();
+ }
+
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardHome getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrepeated string entities = 1;
*/
java.util.Listrepeated string entities = 1;
*/
@@ -4160,45 +4897,48 @@ public final class ClusterShardingMessages {
/**
* repeated string entities = 1;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getEntitiesBytes(int index);
}
/**
* Protobuf type {@code EntityState}
*/
- public static final class EntityState extends
- akka.protobuf.GeneratedMessage
- implements EntityStateOrBuilder {
+ public static final class EntityState extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:EntityState)
+ EntityStateOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use EntityState.newBuilder() to construct.
- private EntityState(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private EntityState(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private EntityState(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final EntityState defaultInstance;
- public static EntityState getDefaultInstance() {
- return defaultInstance;
+ private EntityState() {
+ entities_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
}
- public EntityState getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new EntityState();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private EntityState(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -4207,70 +4947,56 @@ public final class ClusterShardingMessages {
case 0:
done = true;
break;
+ case 10: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ entities_ = new akka.protobufv3.internal.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ entities_.add(bs);
+ break;
+ }
default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
- case 10: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- entities_ = new akka.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000001;
- }
- entities_.add(input.readBytes());
- break;
- }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- entities_ = new akka.protobuf.UnmodifiableLazyStringList(entities_);
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ entities_ = entities_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_EntityState_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_EntityState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState.class, akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState.Builder.class);
}
- public static akka.protobuf.Parserrepeated string entities = 1;
*/
- public java.util.Listrepeated string entities = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getEntitiesBytes(int index) {
return entities_.getByteString(index);
}
- private void initFields() {
- entities_ = akka.protobuf.LazyStringArrayList.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < entities_.size(); i++) {
- output.writeBytes(1, entities_.getByteString(i));
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, entities_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < entities_.size(); i++) {
- dataSize += akka.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(entities_.getByteString(i));
+ dataSize += computeStringSizeNoTag(entities_.getRaw(i));
}
size += dataSize;
size += 1 * getEntitiesList().size();
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState)) {
+ return super.equals(obj);
+ }
+ akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState other = (akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState) obj;
+
+ if (!getEntitiesList()
+ .equals(other.getEntitiesList())) 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 (getEntitiesCount() > 0) {
+ hash = (37 * hash) + ENTITIES_FIELD_NUMBER;
+ hash = (53 * hash) + getEntitiesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4412,14 +5185,16 @@ public final class ClusterShardingMessages {
* Protobuf type {@code EntityState}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrepeated string entities = 1;
*/
- public java.util.Listrepeated string entities = 1;
@@ -4563,7 +5370,7 @@ public final class ClusterShardingMessages {
/**
* repeated string entities = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getEntitiesBytes(int index) {
return entities_.getByteString(index);
}
@@ -4599,7 +5406,8 @@ public final class ClusterShardingMessages {
public Builder addAllEntities(
java.lang.Iterablerepeated string entities = 1;
*/
public Builder clearEntities() {
- entities_ = akka.protobuf.LazyStringArrayList.EMPTY;
+ entities_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
@@ -4616,7 +5424,7 @@ public final class ClusterShardingMessages {
* repeated string entities = 1;
*/
public Builder addEntitiesBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -4625,22 +5433,63 @@ public final class ClusterShardingMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:EntityState)
}
+ // @@protoc_insertion_point(class_scope:EntityState)
+ private static final akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState DEFAULT_INSTANCE;
static {
- defaultInstance = new EntityState(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState();
+ }
+
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityState getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrequired string entityId = 1;
*/
@@ -4652,45 +5501,48 @@ public final class ClusterShardingMessages {
/**
* required string entityId = 1;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getEntityIdBytes();
}
/**
* Protobuf type {@code EntityStarted}
*/
- public static final class EntityStarted extends
- akka.protobuf.GeneratedMessage
- implements EntityStartedOrBuilder {
+ public static final class EntityStarted extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:EntityStarted)
+ EntityStartedOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use EntityStarted.newBuilder() to construct.
- private EntityStarted(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private EntityStarted(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private EntityStarted(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final EntityStarted defaultInstance;
- public static EntityStarted getDefaultInstance() {
- return defaultInstance;
+ private EntityStarted() {
+ entityId_ = "";
}
- public EntityStarted getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new EntityStarted();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private EntityStarted(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -4699,66 +5551,52 @@ public final class ClusterShardingMessages {
case 0:
done = true;
break;
+ case 10: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ entityId_ = bs;
+ break;
+ }
default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
- case 10: {
- bitField0_ |= 0x00000001;
- entityId_ = input.readBytes();
- break;
- }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_EntityStarted_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_EntityStarted_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted.class, akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted.Builder.class);
}
- public static akka.protobuf.Parserrequired string entityId = 1;
*/
public boolean hasEntityId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string entityId = 1;
@@ -4768,8 +5606,8 @@ public final class ClusterShardingMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
entityId_ = s;
@@ -4780,27 +5618,26 @@ public final class ClusterShardingMessages {
/**
* required string entityId = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getEntityIdBytes() {
java.lang.Object ref = entityId_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
entityId_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- private void initFields() {
- entityId_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasEntityId()) {
memoizedIsInitialized = 0;
@@ -4810,100 +5647,151 @@ public final class ClusterShardingMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getEntityIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, entityId_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(1, getEntityIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(1, entityId_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted)) {
+ return super.equals(obj);
+ }
+ akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted other = (akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted) obj;
+
+ if (hasEntityId() != other.hasEntityId()) return false;
+ if (hasEntityId()) {
+ if (!getEntityId()
+ .equals(other.getEntityId())) 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 (hasEntityId()) {
+ hash = (37 * hash) + ENTITYID_FIELD_NUMBER;
+ hash = (53 * hash) + getEntityId().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4911,14 +5799,16 @@ public final class ClusterShardingMessages {
* Protobuf type {@code EntityStarted}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired string entityId = 1;
*/
public boolean hasEntityId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string entityId = 1;
@@ -5045,9 +5967,12 @@ public final class ClusterShardingMessages {
public java.lang.String getEntityId() {
java.lang.Object ref = entityId_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- entityId_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ entityId_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5056,17 +5981,17 @@ public final class ClusterShardingMessages {
/**
* required string entityId = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getEntityIdBytes() {
java.lang.Object ref = entityId_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
entityId_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -5095,7 +6020,7 @@ public final class ClusterShardingMessages {
* required string entityId = 1;
*/
public Builder setEntityIdBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -5104,22 +6029,63 @@ public final class ClusterShardingMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:EntityStarted)
}
+ // @@protoc_insertion_point(class_scope:EntityStarted)
+ private static final akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted DEFAULT_INSTANCE;
static {
- defaultInstance = new EntityStarted(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted();
+ }
+
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStarted getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrequired string entityId = 1;
*/
@@ -5131,45 +6097,48 @@ public final class ClusterShardingMessages {
/**
* required string entityId = 1;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getEntityIdBytes();
}
/**
* Protobuf type {@code EntityStopped}
*/
- public static final class EntityStopped extends
- akka.protobuf.GeneratedMessage
- implements EntityStoppedOrBuilder {
+ public static final class EntityStopped extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:EntityStopped)
+ EntityStoppedOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use EntityStopped.newBuilder() to construct.
- private EntityStopped(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private EntityStopped(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private EntityStopped(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final EntityStopped defaultInstance;
- public static EntityStopped getDefaultInstance() {
- return defaultInstance;
+ private EntityStopped() {
+ entityId_ = "";
}
- public EntityStopped getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new EntityStopped();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private EntityStopped(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -5178,66 +6147,52 @@ public final class ClusterShardingMessages {
case 0:
done = true;
break;
+ case 10: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ entityId_ = bs;
+ break;
+ }
default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
- case 10: {
- bitField0_ |= 0x00000001;
- entityId_ = input.readBytes();
- break;
- }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_EntityStopped_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_EntityStopped_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped.class, akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped.Builder.class);
}
- public static akka.protobuf.Parserrequired string entityId = 1;
*/
public boolean hasEntityId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string entityId = 1;
@@ -5247,8 +6202,8 @@ public final class ClusterShardingMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
entityId_ = s;
@@ -5259,27 +6214,26 @@ public final class ClusterShardingMessages {
/**
* required string entityId = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getEntityIdBytes() {
java.lang.Object ref = entityId_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
entityId_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- private void initFields() {
- entityId_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasEntityId()) {
memoizedIsInitialized = 0;
@@ -5289,100 +6243,151 @@ public final class ClusterShardingMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getEntityIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, entityId_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(1, getEntityIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(1, entityId_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped)) {
+ return super.equals(obj);
+ }
+ akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped other = (akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped) obj;
+
+ if (hasEntityId() != other.hasEntityId()) return false;
+ if (hasEntityId()) {
+ if (!getEntityId()
+ .equals(other.getEntityId())) 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 (hasEntityId()) {
+ hash = (37 * hash) + ENTITYID_FIELD_NUMBER;
+ hash = (53 * hash) + getEntityId().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -5390,14 +6395,16 @@ public final class ClusterShardingMessages {
* Protobuf type {@code EntityStopped}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired string entityId = 1;
*/
public boolean hasEntityId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string entityId = 1;
@@ -5524,9 +6563,12 @@ public final class ClusterShardingMessages {
public java.lang.String getEntityId() {
java.lang.Object ref = entityId_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- entityId_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ entityId_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -5535,17 +6577,17 @@ public final class ClusterShardingMessages {
/**
* required string entityId = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getEntityIdBytes() {
java.lang.Object ref = entityId_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
entityId_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -5574,7 +6616,7 @@ public final class ClusterShardingMessages {
* required string entityId = 1;
*/
public Builder setEntityIdBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -5583,22 +6625,63 @@ public final class ClusterShardingMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:EntityStopped)
}
+ // @@protoc_insertion_point(class_scope:EntityStopped)
+ private static final akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped DEFAULT_INSTANCE;
static {
- defaultInstance = new EntityStopped(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped();
+ }
+
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.EntityStopped getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrequired string shard = 1;
*/
@@ -5610,10 +6693,9 @@ public final class ClusterShardingMessages {
/**
* required string shard = 1;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getShardBytes();
- // required int32 entityCount = 2;
/**
* required int32 entityCount = 2;
*/
@@ -5626,39 +6708,42 @@ public final class ClusterShardingMessages {
/**
* Protobuf type {@code ShardStats}
*/
- public static final class ShardStats extends
- akka.protobuf.GeneratedMessage
- implements ShardStatsOrBuilder {
+ public static final class ShardStats extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ShardStats)
+ ShardStatsOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ShardStats.newBuilder() to construct.
- private ShardStats(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private ShardStats(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private ShardStats(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ShardStats defaultInstance;
- public static ShardStats getDefaultInstance() {
- return defaultInstance;
+ private ShardStats() {
+ shard_ = "";
}
- public ShardStats getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new ShardStats();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private ShardStats(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -5667,16 +6752,10 @@ public final class ClusterShardingMessages {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
+ akka.protobufv3.internal.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
- shard_ = input.readBytes();
+ shard_ = bs;
break;
}
case 16: {
@@ -5684,54 +6763,46 @@ public final class ClusterShardingMessages {
entityCount_ = input.readInt32();
break;
}
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
- } catch (akka.protobuf.InvalidProtocolBufferException e) {
+ } catch (akka.protobufv3.internal.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
- throw new akka.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ throw new akka.protobufv3.internal.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
- public static final akka.protobuf.Descriptors.Descriptor
+ public static final akka.protobufv3.internal.Descriptors.Descriptor
getDescriptor() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_ShardStats_descriptor;
}
- protected akka.protobuf.GeneratedMessage.FieldAccessorTable
+ @java.lang.Override
+ protected akka.protobufv3.internal.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.internal_static_ShardStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats.class, akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats.Builder.class);
}
- public static akka.protobuf.Parserrequired string shard = 1;
*/
public boolean hasShard() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string shard = 1;
@@ -5741,8 +6812,8 @@ public final class ClusterShardingMessages {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- akka.protobuf.ByteString bs =
- (akka.protobuf.ByteString) ref;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
shard_ = s;
@@ -5753,28 +6824,27 @@ public final class ClusterShardingMessages {
/**
* required string shard = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getShardBytes() {
java.lang.Object ref = shard_;
if (ref instanceof java.lang.String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
shard_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
- // required int32 entityCount = 2;
public static final int ENTITYCOUNT_FIELD_NUMBER = 2;
private int entityCount_;
/**
* required int32 entityCount = 2;
*/
public boolean hasEntityCount() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required int32 entityCount = 2;
@@ -5783,14 +6853,12 @@ public final class ClusterShardingMessages {
return entityCount_;
}
- private void initFields() {
- shard_ = "";
- entityCount_ = 0;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
if (!hasShard()) {
memoizedIsInitialized = 0;
@@ -5804,107 +6872,167 @@ public final class ClusterShardingMessages {
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getShardBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 1, shard_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, entityCount_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += akka.protobuf.CodedOutputStream
- .computeBytesSize(1, getShardBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += akka.protobufv3.internal.GeneratedMessageV3.computeStringSize(1, shard_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += akka.protobuf.CodedOutputStream
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += akka.protobufv3.internal.CodedOutputStream
.computeInt32Size(2, entityCount_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats)) {
+ return super.equals(obj);
+ }
+ akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats other = (akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats) obj;
+
+ if (hasShard() != other.hasShard()) return false;
+ if (hasShard()) {
+ if (!getShard()
+ .equals(other.getShard())) return false;
+ }
+ if (hasEntityCount() != other.hasEntityCount()) return false;
+ if (hasEntityCount()) {
+ if (getEntityCount()
+ != other.getEntityCount()) 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 (hasShard()) {
+ hash = (37 * hash) + SHARD_FIELD_NUMBER;
+ hash = (53 * hash) + getShard().hashCode();
+ }
+ if (hasEntityCount()) {
+ hash = (37 * hash) + ENTITYCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getEntityCount();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -5912,14 +7040,16 @@ public final class ClusterShardingMessages {
* Protobuf type {@code ShardStats}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrequired string shard = 1;
*/
public boolean hasShard() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string shard = 1;
@@ -6059,9 +7220,12 @@ public final class ClusterShardingMessages {
public java.lang.String getShard() {
java.lang.Object ref = shard_;
if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((akka.protobuf.ByteString) ref)
- .toStringUtf8();
- shard_ = s;
+ akka.protobufv3.internal.ByteString bs =
+ (akka.protobufv3.internal.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ shard_ = s;
+ }
return s;
} else {
return (java.lang.String) ref;
@@ -6070,17 +7234,17 @@ public final class ClusterShardingMessages {
/**
* required string shard = 1;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getShardBytes() {
java.lang.Object ref = shard_;
if (ref instanceof String) {
- akka.protobuf.ByteString b =
- akka.protobuf.ByteString.copyFromUtf8(
+ akka.protobufv3.internal.ByteString b =
+ akka.protobufv3.internal.ByteString.copyFromUtf8(
(java.lang.String) ref);
shard_ = b;
return b;
} else {
- return (akka.protobuf.ByteString) ref;
+ return (akka.protobufv3.internal.ByteString) ref;
}
}
/**
@@ -6109,7 +7273,7 @@ public final class ClusterShardingMessages {
* required string shard = 1;
*/
public Builder setShardBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -6119,13 +7283,12 @@ public final class ClusterShardingMessages {
return this;
}
- // required int32 entityCount = 2;
private int entityCount_ ;
/**
* required int32 entityCount = 2;
*/
public boolean hasEntityCount() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required int32 entityCount = 2;
@@ -6151,22 +7314,63 @@ public final class ClusterShardingMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:ShardStats)
}
+ // @@protoc_insertion_point(class_scope:ShardStats)
+ private static final akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats DEFAULT_INSTANCE;
static {
- defaultInstance = new ShardStats(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats();
+ }
+
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardStats getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parserrepeated .MapFieldEntry stats = 1;
*/
@@ -6191,12 +7395,11 @@ public final class ClusterShardingMessages {
akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.MapFieldEntryOrBuilder getStatsOrBuilder(
int index);
- // repeated string failed = 2;
/**
* repeated string failed = 2;
*/
java.util.Listrepeated string failed = 2;
*/
@@ -6208,45 +7411,49 @@ public final class ClusterShardingMessages {
/**
* repeated string failed = 2;
*/
- akka.protobuf.ByteString
+ akka.protobufv3.internal.ByteString
getFailedBytes(int index);
}
/**
* Protobuf type {@code ShardRegionStats}
*/
- public static final class ShardRegionStats extends
- akka.protobuf.GeneratedMessage
- implements ShardRegionStatsOrBuilder {
+ public static final class ShardRegionStats extends
+ akka.protobufv3.internal.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ShardRegionStats)
+ ShardRegionStatsOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use ShardRegionStats.newBuilder() to construct.
- private ShardRegionStats(akka.protobuf.GeneratedMessage.Builder> builder) {
+ private ShardRegionStats(akka.protobufv3.internal.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private ShardRegionStats(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ShardRegionStats defaultInstance;
- public static ShardRegionStats getDefaultInstance() {
- return defaultInstance;
+ private ShardRegionStats() {
+ stats_ = java.util.Collections.emptyList();
+ failed_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
}
- public ShardRegionStats getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final akka.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
- public final akka.protobuf.UnknownFieldSet
- getUnknownFields() {
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ akka.protobufv3.internal.GeneratedMessageV3.UnusedPrivateParameter unused) {
+ return new ShardRegionStats();
+ }
+
+ @java.lang.Override
+ public final akka.protobufv3.internal.UnknownFieldSet
+ getUnknownFields() {
return this.unknownFields;
}
private ShardRegionStats(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
- initFields();
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
- akka.protobuf.UnknownFieldSet.Builder unknownFields =
- akka.protobuf.UnknownFieldSet.newBuilder();
+ akka.protobufv3.internal.UnknownFieldSet.Builder unknownFields =
+ akka.protobufv3.internal.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -6255,75 +7462,62 @@ public final class ClusterShardingMessages {
case 0:
done = true;
break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ stats_ = new java.util.ArrayListrepeated string failed = 2;
*/
- public java.util.Listrepeated string failed = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getFailedBytes(int index) {
return failed_.getByteString(index);
}
- private void initFields() {
- stats_ = java.util.Collections.emptyList();
- failed_ = akka.protobuf.LazyStringArrayList.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
- public void writeTo(akka.protobuf.CodedOutputStream output)
+ @java.lang.Override
+ public void writeTo(akka.protobufv3.internal.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < stats_.size(); i++) {
output.writeMessage(1, stats_.get(i));
}
for (int i = 0; i < failed_.size(); i++) {
- output.writeBytes(2, failed_.getByteString(i));
+ akka.protobufv3.internal.GeneratedMessageV3.writeString(output, 2, failed_.getRaw(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < stats_.size(); i++) {
- size += akka.protobuf.CodedOutputStream
+ size += akka.protobufv3.internal.CodedOutputStream
.computeMessageSize(1, stats_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < failed_.size(); i++) {
- dataSize += akka.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(failed_.getByteString(i));
+ dataSize += computeStringSizeNoTag(failed_.getRaw(i));
}
size += dataSize;
size += 1 * getFailedList().size();
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats)) {
+ return super.equals(obj);
+ }
+ akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats other = (akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats) obj;
+
+ if (!getStatsList()
+ .equals(other.getStatsList())) return false;
+ if (!getFailedList()
+ .equals(other.getFailedList())) 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 (getStatsCount() > 0) {
+ hash = (37 * hash) + STATS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatsList().hashCode();
+ }
+ if (getFailedCount() > 0) {
+ hash = (37 * hash) + FAILED_FIELD_NUMBER;
+ hash = (53 * hash) + getFailedList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats parseFrom(
- akka.protobuf.ByteString data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats parseFrom(
- akka.protobuf.ByteString data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ java.nio.ByteBuffer data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats parseFrom(
+ akka.protobufv3.internal.ByteString data)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats parseFrom(
+ akka.protobufv3.internal.ByteString data,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats parseFrom(byte[] data)
- throws akka.protobuf.InvalidProtocolBufferException {
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats parseFrom(
byte[] data,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
- throws akka.protobuf.InvalidProtocolBufferException {
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
+ throws akka.protobufv3.internal.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats parseFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats parseDelimitedFrom(
java.io.InputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats parseFrom(
- akka.protobuf.CodedInputStream input)
+ akka.protobufv3.internal.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats parseFrom(
- akka.protobuf.CodedInputStream input,
- akka.protobuf.ExtensionRegistryLite extensionRegistry)
+ akka.protobufv3.internal.CodedInputStream input,
+ akka.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return akka.protobufv3.internal.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
- akka.protobuf.GeneratedMessage.BuilderParent parent) {
+ akka.protobufv3.internal.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -6515,14 +7760,16 @@ public final class ClusterShardingMessages {
* Protobuf type {@code ShardRegionStats}
*/
public static final class Builder extends
- akka.protobuf.GeneratedMessage.Builderrepeated string failed = 2;
*/
- public java.util.Listrepeated string failed = 2;
@@ -6948,7 +8227,7 @@ public final class ClusterShardingMessages {
/**
* repeated string failed = 2;
*/
- public akka.protobuf.ByteString
+ public akka.protobufv3.internal.ByteString
getFailedBytes(int index) {
return failed_.getByteString(index);
}
@@ -6984,7 +8263,8 @@ public final class ClusterShardingMessages {
public Builder addAllFailed(
java.lang.Iterablerepeated string failed = 2;
*/
public Builder clearFailed() {
- failed_ = akka.protobuf.LazyStringArrayList.EMPTY;
+ failed_ = akka.protobufv3.internal.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
@@ -7001,7 +8281,7 @@ public final class ClusterShardingMessages {
* repeated string failed = 2;
*/
public Builder addFailedBytes(
- akka.protobuf.ByteString value) {
+ akka.protobufv3.internal.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
@@ -7010,22 +8290,63 @@ public final class ClusterShardingMessages {
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final akka.protobufv3.internal.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:ShardRegionStats)
}
+ // @@protoc_insertion_point(class_scope:ShardRegionStats)
+ private static final akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats DEFAULT_INSTANCE;
static {
- defaultInstance = new ShardRegionStats(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats();
+ }
+
+ public static akka.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardRegionStats getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final akka.protobufv3.internal.Parser