* akka.actor.allow-java-serialization = off
* Moved primitive (Long, Int, String, ByteString) serializers
from akka-remote to akka-actor since they had no dependency
and are useful also in local systems, e.g. persistence.
* e.g. needed for persistence-tck
* less allow-java-serialization=on in tests
* CborSerializable in Jackson/test module for ease of use
* JavaSerializable for Java serialization in tests, already in akka-testkit,
but misconfigured
* Made tests pass
* allow-java-serialization=on in akka-persistence
* allow-java-serialization=on in classic remoting tests
* JavaSerializable and CborSerializable in other remoting tests
* Added serialization for
* Boolean
* java.util.concurrent.TimeoutException, AskTimeoutException
* support for testing serialization with the inmem journal
* utility to verifySerialization, in SerializationTestKit
* remove AccountExampleWithCommandHandlersInState becuase not possible to serialize State when it's not static
* Effect() is factory in EventSourcedBehavior class
* test the account examples
* SharedLeveldbJournal.configToEnableJavaSerializationForTest
* support for exceptions from remote deployed child actors
* fallback to akka.remote.serialization.ThrowableNotSerializableException
if exception is not serializable when wrapped in system messages from
remote deployed child actors and Status.Failure messages
* it's implemented in `WrappedPayloadSupport.payloadBuilder`
* update reference documentation
* serialize-messages=off in most places, separate ticket for
improving or removing that feature
* migration guide, including description of rolling update
* fix 2.13 compiler error
* minor review feedback
This commit is contained in:
parent
a4f090b622
commit
3efc1c2877
191 changed files with 4041 additions and 2321 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2019 Lightbend Inc. <https://www.lightbend.com>
|
||||
* Copyright (C) 2019 Lightbend Inc. <https://www.lightbend.com>
|
||||
*/
|
||||
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
|
|
@ -6184,6 +6184,813 @@ public final class ContainerFormats {
|
|||
// @@protoc_insertion_point(class_scope:Throwable)
|
||||
}
|
||||
|
||||
public interface ThrowableNotSerializableOrBuilder
|
||||
extends akka.protobuf.MessageOrBuilder {
|
||||
|
||||
// required string message = 1;
|
||||
/**
|
||||
* <code>required string message = 1;</code>
|
||||
*/
|
||||
boolean hasMessage();
|
||||
/**
|
||||
* <code>required string message = 1;</code>
|
||||
*/
|
||||
java.lang.String getMessage();
|
||||
/**
|
||||
* <code>required string message = 1;</code>
|
||||
*/
|
||||
akka.protobuf.ByteString
|
||||
getMessageBytes();
|
||||
|
||||
// required string originalMessage = 2;
|
||||
/**
|
||||
* <code>required string originalMessage = 2;</code>
|
||||
*/
|
||||
boolean hasOriginalMessage();
|
||||
/**
|
||||
* <code>required string originalMessage = 2;</code>
|
||||
*/
|
||||
java.lang.String getOriginalMessage();
|
||||
/**
|
||||
* <code>required string originalMessage = 2;</code>
|
||||
*/
|
||||
akka.protobuf.ByteString
|
||||
getOriginalMessageBytes();
|
||||
|
||||
// required string originalClassName = 3;
|
||||
/**
|
||||
* <code>required string originalClassName = 3;</code>
|
||||
*/
|
||||
boolean hasOriginalClassName();
|
||||
/**
|
||||
* <code>required string originalClassName = 3;</code>
|
||||
*/
|
||||
java.lang.String getOriginalClassName();
|
||||
/**
|
||||
* <code>required string originalClassName = 3;</code>
|
||||
*/
|
||||
akka.protobuf.ByteString
|
||||
getOriginalClassNameBytes();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code ThrowableNotSerializable}
|
||||
*/
|
||||
public static final class ThrowableNotSerializable extends
|
||||
akka.protobuf.GeneratedMessage
|
||||
implements ThrowableNotSerializableOrBuilder {
|
||||
// Use ThrowableNotSerializable.newBuilder() to construct.
|
||||
private ThrowableNotSerializable(akka.protobuf.GeneratedMessage.Builder<?> builder) {
|
||||
super(builder);
|
||||
this.unknownFields = builder.getUnknownFields();
|
||||
}
|
||||
private ThrowableNotSerializable(boolean noInit) { this.unknownFields = akka.protobuf.UnknownFieldSet.getDefaultInstance(); }
|
||||
|
||||
private static final ThrowableNotSerializable defaultInstance;
|
||||
public static ThrowableNotSerializable getDefaultInstance() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
public ThrowableNotSerializable getDefaultInstanceForType() {
|
||||
return defaultInstance;
|
||||
}
|
||||
|
||||
private final akka.protobuf.UnknownFieldSet unknownFields;
|
||||
@java.lang.Override
|
||||
public final akka.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private ThrowableNotSerializable(
|
||||
akka.protobuf.CodedInputStream input,
|
||||
akka.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws akka.protobuf.InvalidProtocolBufferException {
|
||||
initFields();
|
||||
int mutable_bitField0_ = 0;
|
||||
akka.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
akka.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
default: {
|
||||
if (!parseUnknownField(input, unknownFields,
|
||||
extensionRegistry, tag)) {
|
||||
done = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 10: {
|
||||
bitField0_ |= 0x00000001;
|
||||
message_ = input.readBytes();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
bitField0_ |= 0x00000002;
|
||||
originalMessage_ = input.readBytes();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
bitField0_ |= 0x00000004;
|
||||
originalClassName_ = input.readBytes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (akka.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw new akka.protobuf.InvalidProtocolBufferException(
|
||||
e.getMessage()).setUnfinishedMessage(this);
|
||||
} finally {
|
||||
this.unknownFields = unknownFields.build();
|
||||
makeExtensionsImmutable();
|
||||
}
|
||||
}
|
||||
public static final akka.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return akka.remote.ContainerFormats.internal_static_ThrowableNotSerializable_descriptor;
|
||||
}
|
||||
|
||||
protected akka.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return akka.remote.ContainerFormats.internal_static_ThrowableNotSerializable_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
akka.remote.ContainerFormats.ThrowableNotSerializable.class, akka.remote.ContainerFormats.ThrowableNotSerializable.Builder.class);
|
||||
}
|
||||
|
||||
public static akka.protobuf.Parser<ThrowableNotSerializable> PARSER =
|
||||
new akka.protobuf.AbstractParser<ThrowableNotSerializable>() {
|
||||
public ThrowableNotSerializable parsePartialFrom(
|
||||
akka.protobuf.CodedInputStream input,
|
||||
akka.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws akka.protobuf.InvalidProtocolBufferException {
|
||||
return new ThrowableNotSerializable(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
@java.lang.Override
|
||||
public akka.protobuf.Parser<ThrowableNotSerializable> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
private int bitField0_;
|
||||
// required string message = 1;
|
||||
public static final int MESSAGE_FIELD_NUMBER = 1;
|
||||
private java.lang.Object message_;
|
||||
/**
|
||||
* <code>required string message = 1;</code>
|
||||
*/
|
||||
public boolean hasMessage() {
|
||||
return ((bitField0_ & 0x00000001) == 0x00000001);
|
||||
}
|
||||
/**
|
||||
* <code>required string message = 1;</code>
|
||||
*/
|
||||
public java.lang.String getMessage() {
|
||||
java.lang.Object ref = message_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
return (java.lang.String) ref;
|
||||
} else {
|
||||
akka.protobuf.ByteString bs =
|
||||
(akka.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
if (bs.isValidUtf8()) {
|
||||
message_ = s;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>required string message = 1;</code>
|
||||
*/
|
||||
public akka.protobuf.ByteString
|
||||
getMessageBytes() {
|
||||
java.lang.Object ref = message_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
akka.protobuf.ByteString b =
|
||||
akka.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
message_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (akka.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
// required string originalMessage = 2;
|
||||
public static final int ORIGINALMESSAGE_FIELD_NUMBER = 2;
|
||||
private java.lang.Object originalMessage_;
|
||||
/**
|
||||
* <code>required string originalMessage = 2;</code>
|
||||
*/
|
||||
public boolean hasOriginalMessage() {
|
||||
return ((bitField0_ & 0x00000002) == 0x00000002);
|
||||
}
|
||||
/**
|
||||
* <code>required string originalMessage = 2;</code>
|
||||
*/
|
||||
public java.lang.String getOriginalMessage() {
|
||||
java.lang.Object ref = originalMessage_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
return (java.lang.String) ref;
|
||||
} else {
|
||||
akka.protobuf.ByteString bs =
|
||||
(akka.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
if (bs.isValidUtf8()) {
|
||||
originalMessage_ = s;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>required string originalMessage = 2;</code>
|
||||
*/
|
||||
public akka.protobuf.ByteString
|
||||
getOriginalMessageBytes() {
|
||||
java.lang.Object ref = originalMessage_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
akka.protobuf.ByteString b =
|
||||
akka.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
originalMessage_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (akka.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
// required string originalClassName = 3;
|
||||
public static final int ORIGINALCLASSNAME_FIELD_NUMBER = 3;
|
||||
private java.lang.Object originalClassName_;
|
||||
/**
|
||||
* <code>required string originalClassName = 3;</code>
|
||||
*/
|
||||
public boolean hasOriginalClassName() {
|
||||
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||
}
|
||||
/**
|
||||
* <code>required string originalClassName = 3;</code>
|
||||
*/
|
||||
public java.lang.String getOriginalClassName() {
|
||||
java.lang.Object ref = originalClassName_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
return (java.lang.String) ref;
|
||||
} else {
|
||||
akka.protobuf.ByteString bs =
|
||||
(akka.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
if (bs.isValidUtf8()) {
|
||||
originalClassName_ = s;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>required string originalClassName = 3;</code>
|
||||
*/
|
||||
public akka.protobuf.ByteString
|
||||
getOriginalClassNameBytes() {
|
||||
java.lang.Object ref = originalClassName_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
akka.protobuf.ByteString b =
|
||||
akka.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
originalClassName_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (akka.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
private void initFields() {
|
||||
message_ = "";
|
||||
originalMessage_ = "";
|
||||
originalClassName_ = "";
|
||||
}
|
||||
private byte memoizedIsInitialized = -1;
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized != -1) return isInitialized == 1;
|
||||
|
||||
if (!hasMessage()) {
|
||||
memoizedIsInitialized = 0;
|
||||
return false;
|
||||
}
|
||||
if (!hasOriginalMessage()) {
|
||||
memoizedIsInitialized = 0;
|
||||
return false;
|
||||
}
|
||||
if (!hasOriginalClassName()) {
|
||||
memoizedIsInitialized = 0;
|
||||
return false;
|
||||
}
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void writeTo(akka.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
output.writeBytes(1, getMessageBytes());
|
||||
}
|
||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
||||
output.writeBytes(2, getOriginalMessageBytes());
|
||||
}
|
||||
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||
output.writeBytes(3, getOriginalClassNameBytes());
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
private int memoizedSerializedSize = -1;
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSerializedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
size += akka.protobuf.CodedOutputStream
|
||||
.computeBytesSize(1, getMessageBytes());
|
||||
}
|
||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
||||
size += akka.protobuf.CodedOutputStream
|
||||
.computeBytesSize(2, getOriginalMessageBytes());
|
||||
}
|
||||
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||
size += akka.protobuf.CodedOutputStream
|
||||
.computeBytesSize(3, getOriginalClassNameBytes());
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSerializedSize = 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 static akka.remote.ContainerFormats.ThrowableNotSerializable parseFrom(
|
||||
akka.protobuf.ByteString data)
|
||||
throws akka.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static akka.remote.ContainerFormats.ThrowableNotSerializable parseFrom(
|
||||
akka.protobuf.ByteString data,
|
||||
akka.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws akka.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static akka.remote.ContainerFormats.ThrowableNotSerializable parseFrom(byte[] data)
|
||||
throws akka.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static akka.remote.ContainerFormats.ThrowableNotSerializable parseFrom(
|
||||
byte[] data,
|
||||
akka.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws akka.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static akka.remote.ContainerFormats.ThrowableNotSerializable parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseFrom(input);
|
||||
}
|
||||
public static akka.remote.ContainerFormats.ThrowableNotSerializable parseFrom(
|
||||
java.io.InputStream input,
|
||||
akka.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseFrom(input, extensionRegistry);
|
||||
}
|
||||
public static akka.remote.ContainerFormats.ThrowableNotSerializable parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseDelimitedFrom(input);
|
||||
}
|
||||
public static akka.remote.ContainerFormats.ThrowableNotSerializable parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
akka.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseDelimitedFrom(input, extensionRegistry);
|
||||
}
|
||||
public static akka.remote.ContainerFormats.ThrowableNotSerializable parseFrom(
|
||||
akka.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseFrom(input);
|
||||
}
|
||||
public static akka.remote.ContainerFormats.ThrowableNotSerializable parseFrom(
|
||||
akka.protobuf.CodedInputStream input,
|
||||
akka.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return PARSER.parseFrom(input, extensionRegistry);
|
||||
}
|
||||
|
||||
public static Builder newBuilder() { return Builder.create(); }
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder(akka.remote.ContainerFormats.ThrowableNotSerializable prototype) {
|
||||
return newBuilder().mergeFrom(prototype);
|
||||
}
|
||||
public Builder toBuilder() { return newBuilder(this); }
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
akka.protobuf.GeneratedMessage.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code ThrowableNotSerializable}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
akka.protobuf.GeneratedMessage.Builder<Builder>
|
||||
implements akka.remote.ContainerFormats.ThrowableNotSerializableOrBuilder {
|
||||
public static final akka.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return akka.remote.ContainerFormats.internal_static_ThrowableNotSerializable_descriptor;
|
||||
}
|
||||
|
||||
protected akka.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return akka.remote.ContainerFormats.internal_static_ThrowableNotSerializable_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
akka.remote.ContainerFormats.ThrowableNotSerializable.class, akka.remote.ContainerFormats.ThrowableNotSerializable.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using akka.remote.ContainerFormats.ThrowableNotSerializable.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
akka.protobuf.GeneratedMessage.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (akka.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
|
||||
}
|
||||
}
|
||||
private static Builder create() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
message_ = "";
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
originalMessage_ = "";
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
originalClassName_ = "";
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder clone() {
|
||||
return create().mergeFrom(buildPartial());
|
||||
}
|
||||
|
||||
public akka.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return akka.remote.ContainerFormats.internal_static_ThrowableNotSerializable_descriptor;
|
||||
}
|
||||
|
||||
public akka.remote.ContainerFormats.ThrowableNotSerializable getDefaultInstanceForType() {
|
||||
return akka.remote.ContainerFormats.ThrowableNotSerializable.getDefaultInstance();
|
||||
}
|
||||
|
||||
public akka.remote.ContainerFormats.ThrowableNotSerializable build() {
|
||||
akka.remote.ContainerFormats.ThrowableNotSerializable result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public akka.remote.ContainerFormats.ThrowableNotSerializable buildPartial() {
|
||||
akka.remote.ContainerFormats.ThrowableNotSerializable result = new akka.remote.ContainerFormats.ThrowableNotSerializable(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
int to_bitField0_ = 0;
|
||||
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
|
||||
to_bitField0_ |= 0x00000001;
|
||||
}
|
||||
result.message_ = message_;
|
||||
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
|
||||
to_bitField0_ |= 0x00000002;
|
||||
}
|
||||
result.originalMessage_ = originalMessage_;
|
||||
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
||||
to_bitField0_ |= 0x00000004;
|
||||
}
|
||||
result.originalClassName_ = originalClassName_;
|
||||
result.bitField0_ = to_bitField0_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
public Builder mergeFrom(akka.protobuf.Message other) {
|
||||
if (other instanceof akka.remote.ContainerFormats.ThrowableNotSerializable) {
|
||||
return mergeFrom((akka.remote.ContainerFormats.ThrowableNotSerializable)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(akka.remote.ContainerFormats.ThrowableNotSerializable other) {
|
||||
if (other == akka.remote.ContainerFormats.ThrowableNotSerializable.getDefaultInstance()) return this;
|
||||
if (other.hasMessage()) {
|
||||
bitField0_ |= 0x00000001;
|
||||
message_ = other.message_;
|
||||
onChanged();
|
||||
}
|
||||
if (other.hasOriginalMessage()) {
|
||||
bitField0_ |= 0x00000002;
|
||||
originalMessage_ = other.originalMessage_;
|
||||
onChanged();
|
||||
}
|
||||
if (other.hasOriginalClassName()) {
|
||||
bitField0_ |= 0x00000004;
|
||||
originalClassName_ = other.originalClassName_;
|
||||
onChanged();
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
return this;
|
||||
}
|
||||
|
||||
public final boolean isInitialized() {
|
||||
if (!hasMessage()) {
|
||||
|
||||
return false;
|
||||
}
|
||||
if (!hasOriginalMessage()) {
|
||||
|
||||
return false;
|
||||
}
|
||||
if (!hasOriginalClassName()) {
|
||||
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public Builder mergeFrom(
|
||||
akka.protobuf.CodedInputStream input,
|
||||
akka.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
akka.remote.ContainerFormats.ThrowableNotSerializable parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (akka.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (akka.remote.ContainerFormats.ThrowableNotSerializable) e.getUnfinishedMessage();
|
||||
throw e;
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
// required string message = 1;
|
||||
private java.lang.Object message_ = "";
|
||||
/**
|
||||
* <code>required string message = 1;</code>
|
||||
*/
|
||||
public boolean hasMessage() {
|
||||
return ((bitField0_ & 0x00000001) == 0x00000001);
|
||||
}
|
||||
/**
|
||||
* <code>required string message = 1;</code>
|
||||
*/
|
||||
public java.lang.String getMessage() {
|
||||
java.lang.Object ref = message_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
java.lang.String s = ((akka.protobuf.ByteString) ref)
|
||||
.toStringUtf8();
|
||||
message_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>required string message = 1;</code>
|
||||
*/
|
||||
public akka.protobuf.ByteString
|
||||
getMessageBytes() {
|
||||
java.lang.Object ref = message_;
|
||||
if (ref instanceof String) {
|
||||
akka.protobuf.ByteString b =
|
||||
akka.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
message_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (akka.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>required string message = 1;</code>
|
||||
*/
|
||||
public Builder setMessage(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
bitField0_ |= 0x00000001;
|
||||
message_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>required string message = 1;</code>
|
||||
*/
|
||||
public Builder clearMessage() {
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
message_ = getDefaultInstance().getMessage();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>required string message = 1;</code>
|
||||
*/
|
||||
public Builder setMessageBytes(
|
||||
akka.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
bitField0_ |= 0x00000001;
|
||||
message_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
// required string originalMessage = 2;
|
||||
private java.lang.Object originalMessage_ = "";
|
||||
/**
|
||||
* <code>required string originalMessage = 2;</code>
|
||||
*/
|
||||
public boolean hasOriginalMessage() {
|
||||
return ((bitField0_ & 0x00000002) == 0x00000002);
|
||||
}
|
||||
/**
|
||||
* <code>required string originalMessage = 2;</code>
|
||||
*/
|
||||
public java.lang.String getOriginalMessage() {
|
||||
java.lang.Object ref = originalMessage_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
java.lang.String s = ((akka.protobuf.ByteString) ref)
|
||||
.toStringUtf8();
|
||||
originalMessage_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>required string originalMessage = 2;</code>
|
||||
*/
|
||||
public akka.protobuf.ByteString
|
||||
getOriginalMessageBytes() {
|
||||
java.lang.Object ref = originalMessage_;
|
||||
if (ref instanceof String) {
|
||||
akka.protobuf.ByteString b =
|
||||
akka.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
originalMessage_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (akka.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>required string originalMessage = 2;</code>
|
||||
*/
|
||||
public Builder setOriginalMessage(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
bitField0_ |= 0x00000002;
|
||||
originalMessage_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>required string originalMessage = 2;</code>
|
||||
*/
|
||||
public Builder clearOriginalMessage() {
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
originalMessage_ = getDefaultInstance().getOriginalMessage();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>required string originalMessage = 2;</code>
|
||||
*/
|
||||
public Builder setOriginalMessageBytes(
|
||||
akka.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
bitField0_ |= 0x00000002;
|
||||
originalMessage_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
// required string originalClassName = 3;
|
||||
private java.lang.Object originalClassName_ = "";
|
||||
/**
|
||||
* <code>required string originalClassName = 3;</code>
|
||||
*/
|
||||
public boolean hasOriginalClassName() {
|
||||
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||
}
|
||||
/**
|
||||
* <code>required string originalClassName = 3;</code>
|
||||
*/
|
||||
public java.lang.String getOriginalClassName() {
|
||||
java.lang.Object ref = originalClassName_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
java.lang.String s = ((akka.protobuf.ByteString) ref)
|
||||
.toStringUtf8();
|
||||
originalClassName_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>required string originalClassName = 3;</code>
|
||||
*/
|
||||
public akka.protobuf.ByteString
|
||||
getOriginalClassNameBytes() {
|
||||
java.lang.Object ref = originalClassName_;
|
||||
if (ref instanceof String) {
|
||||
akka.protobuf.ByteString b =
|
||||
akka.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
originalClassName_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (akka.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>required string originalClassName = 3;</code>
|
||||
*/
|
||||
public Builder setOriginalClassName(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
bitField0_ |= 0x00000004;
|
||||
originalClassName_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>required string originalClassName = 3;</code>
|
||||
*/
|
||||
public Builder clearOriginalClassName() {
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
originalClassName_ = getDefaultInstance().getOriginalClassName();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>required string originalClassName = 3;</code>
|
||||
*/
|
||||
public Builder setOriginalClassNameBytes(
|
||||
akka.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
bitField0_ |= 0x00000004;
|
||||
originalClassName_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:ThrowableNotSerializable)
|
||||
}
|
||||
|
||||
static {
|
||||
defaultInstance = new ThrowableNotSerializable(true);
|
||||
defaultInstance.initFields();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:ThrowableNotSerializable)
|
||||
}
|
||||
|
||||
public interface ActorInitializationExceptionOrBuilder
|
||||
extends akka.protobuf.MessageOrBuilder {
|
||||
|
||||
|
|
@ -8016,6 +8823,11 @@ public final class ContainerFormats {
|
|||
private static
|
||||
akka.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_Throwable_fieldAccessorTable;
|
||||
private static akka.protobuf.Descriptors.Descriptor
|
||||
internal_static_ThrowableNotSerializable_descriptor;
|
||||
private static
|
||||
akka.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_ThrowableNotSerializable_fieldAccessorTable;
|
||||
private static akka.protobuf.Descriptors.Descriptor
|
||||
internal_static_ActorInitializationException_descriptor;
|
||||
private static
|
||||
|
|
@ -8051,13 +8863,16 @@ public final class ContainerFormats {
|
|||
"uid\030\001 \002(\004\"p\n\tThrowable\022\021\n\tclassName\030\001 \002(" +
|
||||
"\t\022\017\n\007message\030\002 \001(\t\022\027\n\005cause\030\003 \001(\0132\010.Payl" +
|
||||
"oad\022&\n\nstackTrace\030\004 \003(\0132\022.StackTraceElem" +
|
||||
"ent\"b\n\034ActorInitializationException\022\030\n\005a" +
|
||||
"ctor\030\001 \001(\0132\t.ActorRef\022\017\n\007message\030\002 \002(\t\022\027" +
|
||||
"\n\005cause\030\003 \002(\0132\010.Payload\"`\n\021StackTraceEle" +
|
||||
"ment\022\021\n\tclassName\030\001 \002(\t\022\022\n\nmethodName\030\002 ",
|
||||
"\002(\t\022\020\n\010fileName\030\003 \002(\t\022\022\n\nlineNumber\030\004 \002(" +
|
||||
"\005*<\n\013PatternType\022\n\n\006PARENT\020\000\022\016\n\nCHILD_NA" +
|
||||
"ME\020\001\022\021\n\rCHILD_PATTERN\020\002B\017\n\013akka.remoteH\001"
|
||||
"ent\"_\n\030ThrowableNotSerializable\022\017\n\007messa" +
|
||||
"ge\030\001 \002(\t\022\027\n\017originalMessage\030\002 \002(\t\022\031\n\021ori" +
|
||||
"ginalClassName\030\003 \002(\t\"b\n\034ActorInitializat" +
|
||||
"ionException\022\030\n\005actor\030\001 \001(\0132\t.ActorRef\022\017",
|
||||
"\n\007message\030\002 \002(\t\022\027\n\005cause\030\003 \002(\0132\010.Payload" +
|
||||
"\"`\n\021StackTraceElement\022\021\n\tclassName\030\001 \002(\t" +
|
||||
"\022\022\n\nmethodName\030\002 \002(\t\022\020\n\010fileName\030\003 \002(\t\022\022" +
|
||||
"\n\nlineNumber\030\004 \002(\005*<\n\013PatternType\022\n\n\006PAR" +
|
||||
"ENT\020\000\022\016\n\nCHILD_NAME\020\001\022\021\n\rCHILD_PATTERN\020\002" +
|
||||
"B\017\n\013akka.remoteH\001"
|
||||
};
|
||||
akka.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
||||
new akka.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
|
||||
|
|
@ -8118,14 +8933,20 @@ public final class ContainerFormats {
|
|||
akka.protobuf.GeneratedMessage.FieldAccessorTable(
|
||||
internal_static_Throwable_descriptor,
|
||||
new java.lang.String[] { "ClassName", "Message", "Cause", "StackTrace", });
|
||||
internal_static_ActorInitializationException_descriptor =
|
||||
internal_static_ThrowableNotSerializable_descriptor =
|
||||
getDescriptor().getMessageTypes().get(9);
|
||||
internal_static_ThrowableNotSerializable_fieldAccessorTable = new
|
||||
akka.protobuf.GeneratedMessage.FieldAccessorTable(
|
||||
internal_static_ThrowableNotSerializable_descriptor,
|
||||
new java.lang.String[] { "Message", "OriginalMessage", "OriginalClassName", });
|
||||
internal_static_ActorInitializationException_descriptor =
|
||||
getDescriptor().getMessageTypes().get(10);
|
||||
internal_static_ActorInitializationException_fieldAccessorTable = new
|
||||
akka.protobuf.GeneratedMessage.FieldAccessorTable(
|
||||
internal_static_ActorInitializationException_descriptor,
|
||||
new java.lang.String[] { "Actor", "Message", "Cause", });
|
||||
internal_static_StackTraceElement_descriptor =
|
||||
getDescriptor().getMessageTypes().get(10);
|
||||
getDescriptor().getMessageTypes().get(11);
|
||||
internal_static_StackTraceElement_fieldAccessorTable = new
|
||||
akka.protobuf.GeneratedMessage.FieldAccessorTable(
|
||||
internal_static_StackTraceElement_descriptor,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue