Support strings directly in JVM string table
For small strings it may be beneficial to store them as is in the proto at one point instead of in a class annotation, because each annotation argument in the classfile has a constant overhead which may be significant for small strings
This commit is contained in:
@@ -235,6 +235,33 @@ public final class DebugJvmProtoBuf {
|
|||||||
*/
|
*/
|
||||||
int getPredefinedIndex();
|
int getPredefinedIndex();
|
||||||
|
|
||||||
|
// optional string string = 6;
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
boolean hasString();
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
java.lang.String getString();
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
com.google.protobuf.ByteString
|
||||||
|
getStringBytes();
|
||||||
|
|
||||||
// optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];
|
// optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];</code>
|
||||||
@@ -381,15 +408,15 @@ public final class DebugJvmProtoBuf {
|
|||||||
if (value == null) {
|
if (value == null) {
|
||||||
unknownFields.mergeVarintField(3, rawValue);
|
unknownFields.mergeVarintField(3, rawValue);
|
||||||
} else {
|
} else {
|
||||||
bitField0_ |= 0x00000004;
|
bitField0_ |= 0x00000008;
|
||||||
operation_ = value;
|
operation_ = value;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 32: {
|
case 32: {
|
||||||
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
|
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
|
||||||
substringIndex_ = new java.util.ArrayList<java.lang.Integer>();
|
substringIndex_ = new java.util.ArrayList<java.lang.Integer>();
|
||||||
mutable_bitField0_ |= 0x00000008;
|
mutable_bitField0_ |= 0x00000010;
|
||||||
}
|
}
|
||||||
substringIndex_.add(input.readInt32());
|
substringIndex_.add(input.readInt32());
|
||||||
break;
|
break;
|
||||||
@@ -397,9 +424,9 @@ public final class DebugJvmProtoBuf {
|
|||||||
case 34: {
|
case 34: {
|
||||||
int length = input.readRawVarint32();
|
int length = input.readRawVarint32();
|
||||||
int limit = input.pushLimit(length);
|
int limit = input.pushLimit(length);
|
||||||
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
|
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
|
||||||
substringIndex_ = new java.util.ArrayList<java.lang.Integer>();
|
substringIndex_ = new java.util.ArrayList<java.lang.Integer>();
|
||||||
mutable_bitField0_ |= 0x00000008;
|
mutable_bitField0_ |= 0x00000010;
|
||||||
}
|
}
|
||||||
while (input.getBytesUntilLimit() > 0) {
|
while (input.getBytesUntilLimit() > 0) {
|
||||||
substringIndex_.add(input.readInt32());
|
substringIndex_.add(input.readInt32());
|
||||||
@@ -408,9 +435,9 @@ public final class DebugJvmProtoBuf {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 40: {
|
case 40: {
|
||||||
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
|
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
|
||||||
replaceChar_ = new java.util.ArrayList<java.lang.Integer>();
|
replaceChar_ = new java.util.ArrayList<java.lang.Integer>();
|
||||||
mutable_bitField0_ |= 0x00000010;
|
mutable_bitField0_ |= 0x00000020;
|
||||||
}
|
}
|
||||||
replaceChar_.add(input.readInt32());
|
replaceChar_.add(input.readInt32());
|
||||||
break;
|
break;
|
||||||
@@ -418,9 +445,9 @@ public final class DebugJvmProtoBuf {
|
|||||||
case 42: {
|
case 42: {
|
||||||
int length = input.readRawVarint32();
|
int length = input.readRawVarint32();
|
||||||
int limit = input.pushLimit(length);
|
int limit = input.pushLimit(length);
|
||||||
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
|
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
|
||||||
replaceChar_ = new java.util.ArrayList<java.lang.Integer>();
|
replaceChar_ = new java.util.ArrayList<java.lang.Integer>();
|
||||||
mutable_bitField0_ |= 0x00000010;
|
mutable_bitField0_ |= 0x00000020;
|
||||||
}
|
}
|
||||||
while (input.getBytesUntilLimit() > 0) {
|
while (input.getBytesUntilLimit() > 0) {
|
||||||
replaceChar_.add(input.readInt32());
|
replaceChar_.add(input.readInt32());
|
||||||
@@ -428,6 +455,11 @@ public final class DebugJvmProtoBuf {
|
|||||||
input.popLimit(limit);
|
input.popLimit(limit);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 50: {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
string_ = input.readBytes();
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||||
@@ -436,10 +468,10 @@ public final class DebugJvmProtoBuf {
|
|||||||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||||||
e.getMessage()).setUnfinishedMessage(this);
|
e.getMessage()).setUnfinishedMessage(this);
|
||||||
} finally {
|
} finally {
|
||||||
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
|
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
|
||||||
substringIndex_ = java.util.Collections.unmodifiableList(substringIndex_);
|
substringIndex_ = java.util.Collections.unmodifiableList(substringIndex_);
|
||||||
}
|
}
|
||||||
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
|
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
|
||||||
replaceChar_ = java.util.Collections.unmodifiableList(replaceChar_);
|
replaceChar_ = java.util.Collections.unmodifiableList(replaceChar_);
|
||||||
}
|
}
|
||||||
this.unknownFields = unknownFields.build();
|
this.unknownFields = unknownFields.build();
|
||||||
@@ -633,6 +665,61 @@ public final class DebugJvmProtoBuf {
|
|||||||
return predefinedIndex_;
|
return predefinedIndex_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// optional string string = 6;
|
||||||
|
public static final int STRING_FIELD_NUMBER = 6;
|
||||||
|
private java.lang.Object string_;
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public boolean hasString() {
|
||||||
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public java.lang.String getString() {
|
||||||
|
java.lang.Object ref = string_;
|
||||||
|
if (ref instanceof java.lang.String) {
|
||||||
|
return (java.lang.String) ref;
|
||||||
|
} else {
|
||||||
|
com.google.protobuf.ByteString bs =
|
||||||
|
(com.google.protobuf.ByteString) ref;
|
||||||
|
java.lang.String s = bs.toStringUtf8();
|
||||||
|
if (bs.isValidUtf8()) {
|
||||||
|
string_ = s;
|
||||||
|
}
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public com.google.protobuf.ByteString
|
||||||
|
getStringBytes() {
|
||||||
|
java.lang.Object ref = string_;
|
||||||
|
if (ref instanceof java.lang.String) {
|
||||||
|
com.google.protobuf.ByteString b =
|
||||||
|
com.google.protobuf.ByteString.copyFromUtf8(
|
||||||
|
(java.lang.String) ref);
|
||||||
|
string_ = b;
|
||||||
|
return b;
|
||||||
|
} else {
|
||||||
|
return (com.google.protobuf.ByteString) ref;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];
|
// optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];
|
||||||
public static final int OPERATION_FIELD_NUMBER = 3;
|
public static final int OPERATION_FIELD_NUMBER = 3;
|
||||||
private org.jetbrains.kotlin.serialization.jvm.DebugJvmProtoBuf.StringTableTypes.Record.Operation operation_;
|
private org.jetbrains.kotlin.serialization.jvm.DebugJvmProtoBuf.StringTableTypes.Record.Operation operation_;
|
||||||
@@ -644,7 +731,7 @@ public final class DebugJvmProtoBuf {
|
|||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public boolean hasOperation() {
|
public boolean hasOperation() {
|
||||||
return ((bitField0_ & 0x00000004) == 0x00000004);
|
return ((bitField0_ & 0x00000008) == 0x00000008);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];</code>
|
||||||
@@ -741,6 +828,7 @@ public final class DebugJvmProtoBuf {
|
|||||||
private void initFields() {
|
private void initFields() {
|
||||||
range_ = 1;
|
range_ = 1;
|
||||||
predefinedIndex_ = 0;
|
predefinedIndex_ = 0;
|
||||||
|
string_ = "";
|
||||||
operation_ = org.jetbrains.kotlin.serialization.jvm.DebugJvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
operation_ = org.jetbrains.kotlin.serialization.jvm.DebugJvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
||||||
substringIndex_ = java.util.Collections.emptyList();
|
substringIndex_ = java.util.Collections.emptyList();
|
||||||
replaceChar_ = java.util.Collections.emptyList();
|
replaceChar_ = java.util.Collections.emptyList();
|
||||||
@@ -763,7 +851,7 @@ public final class DebugJvmProtoBuf {
|
|||||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
||||||
output.writeInt32(2, predefinedIndex_);
|
output.writeInt32(2, predefinedIndex_);
|
||||||
}
|
}
|
||||||
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
output.writeEnum(3, operation_.getNumber());
|
output.writeEnum(3, operation_.getNumber());
|
||||||
}
|
}
|
||||||
if (getSubstringIndexList().size() > 0) {
|
if (getSubstringIndexList().size() > 0) {
|
||||||
@@ -780,6 +868,9 @@ public final class DebugJvmProtoBuf {
|
|||||||
for (int i = 0; i < replaceChar_.size(); i++) {
|
for (int i = 0; i < replaceChar_.size(); i++) {
|
||||||
output.writeInt32NoTag(replaceChar_.get(i));
|
output.writeInt32NoTag(replaceChar_.get(i));
|
||||||
}
|
}
|
||||||
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
|
output.writeBytes(6, getStringBytes());
|
||||||
|
}
|
||||||
getUnknownFields().writeTo(output);
|
getUnknownFields().writeTo(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -797,7 +888,7 @@ public final class DebugJvmProtoBuf {
|
|||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeInt32Size(2, predefinedIndex_);
|
.computeInt32Size(2, predefinedIndex_);
|
||||||
}
|
}
|
||||||
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeEnumSize(3, operation_.getNumber());
|
.computeEnumSize(3, operation_.getNumber());
|
||||||
}
|
}
|
||||||
@@ -829,6 +920,10 @@ public final class DebugJvmProtoBuf {
|
|||||||
}
|
}
|
||||||
replaceCharMemoizedSerializedSize = dataSize;
|
replaceCharMemoizedSerializedSize = dataSize;
|
||||||
}
|
}
|
||||||
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
|
size += com.google.protobuf.CodedOutputStream
|
||||||
|
.computeBytesSize(6, getStringBytes());
|
||||||
|
}
|
||||||
size += getUnknownFields().getSerializedSize();
|
size += getUnknownFields().getSerializedSize();
|
||||||
memoizedSerializedSize = size;
|
memoizedSerializedSize = size;
|
||||||
return size;
|
return size;
|
||||||
@@ -949,12 +1044,14 @@ public final class DebugJvmProtoBuf {
|
|||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
bitField0_ = (bitField0_ & ~0x00000001);
|
||||||
predefinedIndex_ = 0;
|
predefinedIndex_ = 0;
|
||||||
bitField0_ = (bitField0_ & ~0x00000002);
|
bitField0_ = (bitField0_ & ~0x00000002);
|
||||||
operation_ = org.jetbrains.kotlin.serialization.jvm.DebugJvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
string_ = "";
|
||||||
bitField0_ = (bitField0_ & ~0x00000004);
|
bitField0_ = (bitField0_ & ~0x00000004);
|
||||||
substringIndex_ = java.util.Collections.emptyList();
|
operation_ = org.jetbrains.kotlin.serialization.jvm.DebugJvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
||||||
bitField0_ = (bitField0_ & ~0x00000008);
|
bitField0_ = (bitField0_ & ~0x00000008);
|
||||||
replaceChar_ = java.util.Collections.emptyList();
|
substringIndex_ = java.util.Collections.emptyList();
|
||||||
bitField0_ = (bitField0_ & ~0x00000010);
|
bitField0_ = (bitField0_ & ~0x00000010);
|
||||||
|
replaceChar_ = java.util.Collections.emptyList();
|
||||||
|
bitField0_ = (bitField0_ & ~0x00000020);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -994,15 +1091,19 @@ public final class DebugJvmProtoBuf {
|
|||||||
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
to_bitField0_ |= 0x00000004;
|
to_bitField0_ |= 0x00000004;
|
||||||
}
|
}
|
||||||
|
result.string_ = string_;
|
||||||
|
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
|
to_bitField0_ |= 0x00000008;
|
||||||
|
}
|
||||||
result.operation_ = operation_;
|
result.operation_ = operation_;
|
||||||
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
if (((bitField0_ & 0x00000010) == 0x00000010)) {
|
||||||
substringIndex_ = java.util.Collections.unmodifiableList(substringIndex_);
|
substringIndex_ = java.util.Collections.unmodifiableList(substringIndex_);
|
||||||
bitField0_ = (bitField0_ & ~0x00000008);
|
bitField0_ = (bitField0_ & ~0x00000010);
|
||||||
}
|
}
|
||||||
result.substringIndex_ = substringIndex_;
|
result.substringIndex_ = substringIndex_;
|
||||||
if (((bitField0_ & 0x00000010) == 0x00000010)) {
|
if (((bitField0_ & 0x00000020) == 0x00000020)) {
|
||||||
replaceChar_ = java.util.Collections.unmodifiableList(replaceChar_);
|
replaceChar_ = java.util.Collections.unmodifiableList(replaceChar_);
|
||||||
bitField0_ = (bitField0_ & ~0x00000010);
|
bitField0_ = (bitField0_ & ~0x00000020);
|
||||||
}
|
}
|
||||||
result.replaceChar_ = replaceChar_;
|
result.replaceChar_ = replaceChar_;
|
||||||
result.bitField0_ = to_bitField0_;
|
result.bitField0_ = to_bitField0_;
|
||||||
@@ -1027,13 +1128,18 @@ public final class DebugJvmProtoBuf {
|
|||||||
if (other.hasPredefinedIndex()) {
|
if (other.hasPredefinedIndex()) {
|
||||||
setPredefinedIndex(other.getPredefinedIndex());
|
setPredefinedIndex(other.getPredefinedIndex());
|
||||||
}
|
}
|
||||||
|
if (other.hasString()) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
string_ = other.string_;
|
||||||
|
onChanged();
|
||||||
|
}
|
||||||
if (other.hasOperation()) {
|
if (other.hasOperation()) {
|
||||||
setOperation(other.getOperation());
|
setOperation(other.getOperation());
|
||||||
}
|
}
|
||||||
if (!other.substringIndex_.isEmpty()) {
|
if (!other.substringIndex_.isEmpty()) {
|
||||||
if (substringIndex_.isEmpty()) {
|
if (substringIndex_.isEmpty()) {
|
||||||
substringIndex_ = other.substringIndex_;
|
substringIndex_ = other.substringIndex_;
|
||||||
bitField0_ = (bitField0_ & ~0x00000008);
|
bitField0_ = (bitField0_ & ~0x00000010);
|
||||||
} else {
|
} else {
|
||||||
ensureSubstringIndexIsMutable();
|
ensureSubstringIndexIsMutable();
|
||||||
substringIndex_.addAll(other.substringIndex_);
|
substringIndex_.addAll(other.substringIndex_);
|
||||||
@@ -1043,7 +1149,7 @@ public final class DebugJvmProtoBuf {
|
|||||||
if (!other.replaceChar_.isEmpty()) {
|
if (!other.replaceChar_.isEmpty()) {
|
||||||
if (replaceChar_.isEmpty()) {
|
if (replaceChar_.isEmpty()) {
|
||||||
replaceChar_ = other.replaceChar_;
|
replaceChar_ = other.replaceChar_;
|
||||||
bitField0_ = (bitField0_ & ~0x00000010);
|
bitField0_ = (bitField0_ & ~0x00000020);
|
||||||
} else {
|
} else {
|
||||||
ensureReplaceCharIsMutable();
|
ensureReplaceCharIsMutable();
|
||||||
replaceChar_.addAll(other.replaceChar_);
|
replaceChar_.addAll(other.replaceChar_);
|
||||||
@@ -1175,6 +1281,104 @@ public final class DebugJvmProtoBuf {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// optional string string = 6;
|
||||||
|
private java.lang.Object string_ = "";
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public boolean hasString() {
|
||||||
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public java.lang.String getString() {
|
||||||
|
java.lang.Object ref = string_;
|
||||||
|
if (!(ref instanceof java.lang.String)) {
|
||||||
|
java.lang.String s = ((com.google.protobuf.ByteString) ref)
|
||||||
|
.toStringUtf8();
|
||||||
|
string_ = s;
|
||||||
|
return s;
|
||||||
|
} else {
|
||||||
|
return (java.lang.String) ref;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public com.google.protobuf.ByteString
|
||||||
|
getStringBytes() {
|
||||||
|
java.lang.Object ref = string_;
|
||||||
|
if (ref instanceof String) {
|
||||||
|
com.google.protobuf.ByteString b =
|
||||||
|
com.google.protobuf.ByteString.copyFromUtf8(
|
||||||
|
(java.lang.String) ref);
|
||||||
|
string_ = b;
|
||||||
|
return b;
|
||||||
|
} else {
|
||||||
|
return (com.google.protobuf.ByteString) ref;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public Builder setString(
|
||||||
|
java.lang.String value) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new NullPointerException();
|
||||||
|
}
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
string_ = value;
|
||||||
|
onChanged();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public Builder clearString() {
|
||||||
|
bitField0_ = (bitField0_ & ~0x00000004);
|
||||||
|
string_ = getDefaultInstance().getString();
|
||||||
|
onChanged();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public Builder setStringBytes(
|
||||||
|
com.google.protobuf.ByteString value) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new NullPointerException();
|
||||||
|
}
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
string_ = value;
|
||||||
|
onChanged();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
// optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];
|
// optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];
|
||||||
private org.jetbrains.kotlin.serialization.jvm.DebugJvmProtoBuf.StringTableTypes.Record.Operation operation_ = org.jetbrains.kotlin.serialization.jvm.DebugJvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
private org.jetbrains.kotlin.serialization.jvm.DebugJvmProtoBuf.StringTableTypes.Record.Operation operation_ = org.jetbrains.kotlin.serialization.jvm.DebugJvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
||||||
/**
|
/**
|
||||||
@@ -1185,7 +1389,7 @@ public final class DebugJvmProtoBuf {
|
|||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public boolean hasOperation() {
|
public boolean hasOperation() {
|
||||||
return ((bitField0_ & 0x00000004) == 0x00000004);
|
return ((bitField0_ & 0x00000008) == 0x00000008);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];</code>
|
||||||
@@ -1208,7 +1412,7 @@ public final class DebugJvmProtoBuf {
|
|||||||
if (value == null) {
|
if (value == null) {
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
}
|
}
|
||||||
bitField0_ |= 0x00000004;
|
bitField0_ |= 0x00000008;
|
||||||
operation_ = value;
|
operation_ = value;
|
||||||
onChanged();
|
onChanged();
|
||||||
return this;
|
return this;
|
||||||
@@ -1221,7 +1425,7 @@ public final class DebugJvmProtoBuf {
|
|||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public Builder clearOperation() {
|
public Builder clearOperation() {
|
||||||
bitField0_ = (bitField0_ & ~0x00000004);
|
bitField0_ = (bitField0_ & ~0x00000008);
|
||||||
operation_ = org.jetbrains.kotlin.serialization.jvm.DebugJvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
operation_ = org.jetbrains.kotlin.serialization.jvm.DebugJvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
||||||
onChanged();
|
onChanged();
|
||||||
return this;
|
return this;
|
||||||
@@ -1230,9 +1434,9 @@ public final class DebugJvmProtoBuf {
|
|||||||
// repeated int32 substring_index = 4 [packed = true];
|
// repeated int32 substring_index = 4 [packed = true];
|
||||||
private java.util.List<java.lang.Integer> substringIndex_ = java.util.Collections.emptyList();
|
private java.util.List<java.lang.Integer> substringIndex_ = java.util.Collections.emptyList();
|
||||||
private void ensureSubstringIndexIsMutable() {
|
private void ensureSubstringIndexIsMutable() {
|
||||||
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
|
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
|
||||||
substringIndex_ = new java.util.ArrayList<java.lang.Integer>(substringIndex_);
|
substringIndex_ = new java.util.ArrayList<java.lang.Integer>(substringIndex_);
|
||||||
bitField0_ |= 0x00000008;
|
bitField0_ |= 0x00000010;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -1330,7 +1534,7 @@ public final class DebugJvmProtoBuf {
|
|||||||
*/
|
*/
|
||||||
public Builder clearSubstringIndex() {
|
public Builder clearSubstringIndex() {
|
||||||
substringIndex_ = java.util.Collections.emptyList();
|
substringIndex_ = java.util.Collections.emptyList();
|
||||||
bitField0_ = (bitField0_ & ~0x00000008);
|
bitField0_ = (bitField0_ & ~0x00000010);
|
||||||
onChanged();
|
onChanged();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -1338,9 +1542,9 @@ public final class DebugJvmProtoBuf {
|
|||||||
// repeated int32 replace_char = 5 [packed = true];
|
// repeated int32 replace_char = 5 [packed = true];
|
||||||
private java.util.List<java.lang.Integer> replaceChar_ = java.util.Collections.emptyList();
|
private java.util.List<java.lang.Integer> replaceChar_ = java.util.Collections.emptyList();
|
||||||
private void ensureReplaceCharIsMutable() {
|
private void ensureReplaceCharIsMutable() {
|
||||||
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
|
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
|
||||||
replaceChar_ = new java.util.ArrayList<java.lang.Integer>(replaceChar_);
|
replaceChar_ = new java.util.ArrayList<java.lang.Integer>(replaceChar_);
|
||||||
bitField0_ |= 0x00000010;
|
bitField0_ |= 0x00000020;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -1431,7 +1635,7 @@ public final class DebugJvmProtoBuf {
|
|||||||
*/
|
*/
|
||||||
public Builder clearReplaceChar() {
|
public Builder clearReplaceChar() {
|
||||||
replaceChar_ = java.util.Collections.emptyList();
|
replaceChar_ = java.util.Collections.emptyList();
|
||||||
bitField0_ = (bitField0_ & ~0x00000010);
|
bitField0_ = (bitField0_ & ~0x00000020);
|
||||||
onChanged();
|
onChanged();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -4581,53 +4785,53 @@ public final class DebugJvmProtoBuf {
|
|||||||
"lin.serialization.jvm\0320core/deserializat" +
|
"lin.serialization.jvm\0320core/deserializat" +
|
||||||
"ion/src/ext_options.debug.proto\0320core/de" +
|
"ion/src/ext_options.debug.proto\0320core/de" +
|
||||||
"serialization/src/descriptors.debug.prot" +
|
"serialization/src/descriptors.debug.prot" +
|
||||||
"o\"\224\003\n\020StringTableTypes\022O\n\006record\030\001 \003(\0132?" +
|
"o\"\244\003\n\020StringTableTypes\022O\n\006record\030\001 \003(\0132?" +
|
||||||
".org.jetbrains.kotlin.serialization.jvm." +
|
".org.jetbrains.kotlin.serialization.jvm." +
|
||||||
"StringTableTypes.Record\022\026\n\nlocal_name\030\005 " +
|
"StringTableTypes.Record\022\026\n\nlocal_name\030\005 " +
|
||||||
"\003(\005B\002\020\001\032\226\002\n\006Record\022\020\n\005range\030\001 \001(\005:\0011\022\030\n\020" +
|
"\003(\005B\002\020\001\032\246\002\n\006Record\022\020\n\005range\030\001 \001(\005:\0011\022\030\n\020" +
|
||||||
"predefined_index\030\002 \001(\005\022b\n\toperation\030\003 \001(",
|
"predefined_index\030\002 \001(\005\022\016\n\006string\030\006 \001(\t\022b",
|
||||||
"\0162I.org.jetbrains.kotlin.serialization.j" +
|
"\n\toperation\030\003 \001(\0162I.org.jetbrains.kotlin" +
|
||||||
"vm.StringTableTypes.Record.Operation:\004NO" +
|
".serialization.jvm.StringTableTypes.Reco" +
|
||||||
"NE\022\033\n\017substring_index\030\004 \003(\005B\002\020\001\022\030\n\014repla" +
|
"rd.Operation:\004NONE\022\033\n\017substring_index\030\004 " +
|
||||||
"ce_char\030\005 \003(\005B\002\020\001\"E\n\tOperation\022\010\n\004NONE\020\000" +
|
"\003(\005B\002\020\001\022\030\n\014replace_char\030\005 \003(\005B\002\020\001\"E\n\tOpe" +
|
||||||
"\022\030\n\024INTERNAL_TO_CLASS_ID\020\001\022\024\n\020DESC_TO_CL" +
|
"ration\022\010\n\004NONE\020\000\022\030\n\024INTERNAL_TO_CLASS_ID" +
|
||||||
"ASS_ID\020\002\"<\n\022JvmMethodSignature\022\022\n\004name\030\001" +
|
"\020\001\022\024\n\020DESC_TO_CLASS_ID\020\002\"<\n\022JvmMethodSig" +
|
||||||
" \001(\005B\004\230\265\030\001\022\022\n\004desc\030\002 \001(\005B\004\230\265\030\001\"^\n\021JvmFie" +
|
"nature\022\022\n\004name\030\001 \001(\005B\004\230\265\030\001\022\022\n\004desc\030\002 \001(\005" +
|
||||||
"ldSignature\022\022\n\004name\030\001 \001(\005B\004\230\265\030\001\022\022\n\004desc\030" +
|
"B\004\230\265\030\001\"^\n\021JvmFieldSignature\022\022\n\004name\030\001 \001(" +
|
||||||
"\002 \001(\005B\004\230\265\030\001\022!\n\022is_static_in_outer\030\003 \001(\010:" +
|
"\005B\004\230\265\030\001\022\022\n\004desc\030\002 \001(\005B\004\230\265\030\001\022!\n\022is_static" +
|
||||||
"\005false\"\316\002\n\024JvmPropertySignature\022H\n\005field",
|
"_in_outer\030\003 \001(\010:\005false\"\316\002\n\024JvmPropertySi",
|
||||||
"\030\001 \001(\01329.org.jetbrains.kotlin.serializat" +
|
"gnature\022H\n\005field\030\001 \001(\01329.org.jetbrains.k" +
|
||||||
"ion.jvm.JvmFieldSignature\022T\n\020synthetic_m" +
|
"otlin.serialization.jvm.JvmFieldSignatur" +
|
||||||
"ethod\030\002 \001(\0132:.org.jetbrains.kotlin.seria" +
|
"e\022T\n\020synthetic_method\030\002 \001(\0132:.org.jetbra" +
|
||||||
"lization.jvm.JvmMethodSignature\022J\n\006gette" +
|
"ins.kotlin.serialization.jvm.JvmMethodSi" +
|
||||||
"r\030\003 \001(\0132:.org.jetbrains.kotlin.serializa" +
|
"gnature\022J\n\006getter\030\003 \001(\0132:.org.jetbrains." +
|
||||||
"tion.jvm.JvmMethodSignature\022J\n\006setter\030\004 " +
|
"kotlin.serialization.jvm.JvmMethodSignat" +
|
||||||
"\001(\0132:.org.jetbrains.kotlin.serialization" +
|
"ure\022J\n\006setter\030\004 \001(\0132:.org.jetbrains.kotl" +
|
||||||
".jvm.JvmMethodSignature:\212\001\n\025constructor_" +
|
"in.serialization.jvm.JvmMethodSignature:" +
|
||||||
"signature\022/.org.jetbrains.kotlin.seriali" +
|
"\212\001\n\025constructor_signature\022/.org.jetbrain" +
|
||||||
"zation.Constructor\030d \001(\0132:.org.jetbrains",
|
"s.kotlin.serialization.Constructor\030d \001(\013",
|
||||||
".kotlin.serialization.jvm.JvmMethodSigna" +
|
"2:.org.jetbrains.kotlin.serialization.jv" +
|
||||||
"ture:\202\001\n\020method_signature\022,.org.jetbrain" +
|
"m.JvmMethodSignature:\202\001\n\020method_signatur" +
|
||||||
"s.kotlin.serialization.Function\030d \001(\0132:." +
|
"e\022,.org.jetbrains.kotlin.serialization.F" +
|
||||||
"org.jetbrains.kotlin.serialization.jvm.J" +
|
"unction\030d \001(\0132:.org.jetbrains.kotlin.ser" +
|
||||||
"vmMethodSignature:R\n\026method_impl_class_n" +
|
"ialization.jvm.JvmMethodSignature:R\n\026met" +
|
||||||
"ame\022,.org.jetbrains.kotlin.serialization" +
|
"hod_impl_class_name\022,.org.jetbrains.kotl" +
|
||||||
".Function\030e \001(\005B\004\230\265\030\001:\206\001\n\022property_signa" +
|
"in.serialization.Function\030e \001(\005B\004\230\265\030\001:\206\001" +
|
||||||
"ture\022,.org.jetbrains.kotlin.serializatio" +
|
"\n\022property_signature\022,.org.jetbrains.kot" +
|
||||||
"n.Property\030d \001(\0132<.org.jetbrains.kotlin." +
|
"lin.serialization.Property\030d \001(\0132<.org.j" +
|
||||||
"serialization.jvm.JvmPropertySignature:T",
|
"etbrains.kotlin.serialization.jvm.JvmPro",
|
||||||
"\n\030property_impl_class_name\022,.org.jetbrai" +
|
"pertySignature:T\n\030property_impl_class_na" +
|
||||||
"ns.kotlin.serialization.Property\030e \001(\005B\004" +
|
"me\022,.org.jetbrains.kotlin.serialization." +
|
||||||
"\230\265\030\001:q\n\017type_annotation\022(.org.jetbrains." +
|
"Property\030e \001(\005B\004\230\265\030\001:q\n\017type_annotation\022" +
|
||||||
"kotlin.serialization.Type\030d \003(\0132..org.je" +
|
"(.org.jetbrains.kotlin.serialization.Typ" +
|
||||||
"tbrains.kotlin.serialization.Annotation:" +
|
"e\030d \003(\0132..org.jetbrains.kotlin.serializa" +
|
||||||
"8\n\006is_raw\022(.org.jetbrains.kotlin.seriali" +
|
"tion.Annotation:8\n\006is_raw\022(.org.jetbrain" +
|
||||||
"zation.Type\030e \001(\010:A\n\005index\0222.org.jetbrai" +
|
"s.kotlin.serialization.Type\030e \001(\010:A\n\005ind" +
|
||||||
"ns.kotlin.serialization.ValueParameter\030d" +
|
"ex\0222.org.jetbrains.kotlin.serialization." +
|
||||||
" \001(\005:s\n\020class_annotation\022).org.jetbrains" +
|
"ValueParameter\030d \001(\005:s\n\020class_annotation" +
|
||||||
".kotlin.serialization.Class\030d \003(\0132..org.",
|
"\022).org.jetbrains.kotlin.serialization.Cl",
|
||||||
"jetbrains.kotlin.serialization.Annotatio" +
|
"ass\030d \003(\0132..org.jetbrains.kotlin.seriali" +
|
||||||
"nB\022B\020DebugJvmProtoBuf"
|
"zation.AnnotationB\022B\020DebugJvmProtoBuf"
|
||||||
};
|
};
|
||||||
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
|
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
|
||||||
@@ -4645,7 +4849,7 @@ public final class DebugJvmProtoBuf {
|
|||||||
internal_static_org_jetbrains_kotlin_serialization_jvm_StringTableTypes_Record_fieldAccessorTable = new
|
internal_static_org_jetbrains_kotlin_serialization_jvm_StringTableTypes_Record_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
||||||
internal_static_org_jetbrains_kotlin_serialization_jvm_StringTableTypes_Record_descriptor,
|
internal_static_org_jetbrains_kotlin_serialization_jvm_StringTableTypes_Record_descriptor,
|
||||||
new java.lang.String[] { "Range", "PredefinedIndex", "Operation", "SubstringIndex", "ReplaceChar", });
|
new java.lang.String[] { "Range", "PredefinedIndex", "String", "Operation", "SubstringIndex", "ReplaceChar", });
|
||||||
internal_static_org_jetbrains_kotlin_serialization_jvm_JvmMethodSignature_descriptor =
|
internal_static_org_jetbrains_kotlin_serialization_jvm_JvmMethodSignature_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(1);
|
getDescriptor().getMessageTypes().get(1);
|
||||||
internal_static_org_jetbrains_kotlin_serialization_jvm_JvmMethodSignature_fieldAccessorTable = new
|
internal_static_org_jetbrains_kotlin_serialization_jvm_JvmMethodSignature_fieldAccessorTable = new
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ class JvmNameResolverTest : UsefulTestCase() {
|
|||||||
string: String?,
|
string: String?,
|
||||||
range: Int? = null,
|
range: Int? = null,
|
||||||
predefinedIndex: Int? = null,
|
predefinedIndex: Int? = null,
|
||||||
|
internalString: String? = null,
|
||||||
operation: Record.Operation? = null,
|
operation: Record.Operation? = null,
|
||||||
substringIndex: List<Int>? = null,
|
substringIndex: List<Int>? = null,
|
||||||
replaceChar: List<Char>? = null
|
replaceChar: List<Char>? = null
|
||||||
@@ -43,6 +44,7 @@ class JvmNameResolverTest : UsefulTestCase() {
|
|||||||
types.addRecord(Record.newBuilder().apply {
|
types.addRecord(Record.newBuilder().apply {
|
||||||
range?.let { setRange(it) }
|
range?.let { setRange(it) }
|
||||||
predefinedIndex?.let { setPredefinedIndex(it) }
|
predefinedIndex?.let { setPredefinedIndex(it) }
|
||||||
|
internalString?.let { setString(it) }
|
||||||
operation?.let { setOperation(it) }
|
operation?.let { setOperation(it) }
|
||||||
substringIndex?.let { addAllSubstringIndex(it) }
|
substringIndex?.let { addAllSubstringIndex(it) }
|
||||||
replaceChar?.let { addAllReplaceChar(it.map(Char::toInt)) }
|
replaceChar?.let { addAllReplaceChar(it.map(Char::toInt)) }
|
||||||
@@ -60,7 +62,7 @@ class JvmNameResolverTest : UsefulTestCase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun str(string: String?, predefinedIndex: Int? = null, operation: Record.Operation? = null): String {
|
private fun str(string: String?, predefinedIndex: Int? = null, operation: Record.Operation? = null): String {
|
||||||
return create { string(string, null, predefinedIndex, operation, null, null) }.getString(0)
|
return create { string(string, null, predefinedIndex, null, operation, null, null) }.getString(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun testSimpleString() {
|
fun testSimpleString() {
|
||||||
@@ -158,4 +160,12 @@ class JvmNameResolverTest : UsefulTestCase() {
|
|||||||
assertEquals("a.b.c", n.getString(0))
|
assertEquals("a.b.c", n.getString(0))
|
||||||
assertEquals("d.e.f", n.getString(1))
|
assertEquals("d.e.f", n.getString(1))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun testString() {
|
||||||
|
val n = create {
|
||||||
|
string("java", internalString = "kotlin", range = 5)
|
||||||
|
}
|
||||||
|
|
||||||
|
(0..4).forEach { assertEquals("kotlin", n.getString(it)) }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ message StringTableTypes {
|
|||||||
// Index of the predefined constant. If this field is present, the associated string is ignored
|
// Index of the predefined constant. If this field is present, the associated string is ignored
|
||||||
optional int32 predefined_index = 2;
|
optional int32 predefined_index = 2;
|
||||||
|
|
||||||
|
// A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
optional string string = 6;
|
||||||
|
|
||||||
enum Operation {
|
enum Operation {
|
||||||
NONE = 0;
|
NONE = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -48,10 +48,12 @@ class JvmNameResolver(
|
|||||||
override fun getString(index: Int): String {
|
override fun getString(index: Int): String {
|
||||||
val record = records[index]
|
val record = records[index]
|
||||||
|
|
||||||
var string =
|
var string = when {
|
||||||
if (record.hasPredefinedIndex() && record.predefinedIndex in PREDEFINED_STRINGS.indices)
|
record.hasString() -> record.string
|
||||||
PREDEFINED_STRINGS[record.predefinedIndex]
|
record.hasPredefinedIndex() && record.predefinedIndex in PREDEFINED_STRINGS.indices ->
|
||||||
else strings[index]
|
PREDEFINED_STRINGS[record.predefinedIndex]
|
||||||
|
else -> strings[index]
|
||||||
|
}
|
||||||
|
|
||||||
if (record.substringIndexCount >= 2) {
|
if (record.substringIndexCount >= 2) {
|
||||||
val (begin, end) = record.substringIndexList
|
val (begin, end) = record.substringIndexList
|
||||||
|
|||||||
+236
-32
@@ -204,6 +204,33 @@ public final class JvmProtoBuf {
|
|||||||
*/
|
*/
|
||||||
int getPredefinedIndex();
|
int getPredefinedIndex();
|
||||||
|
|
||||||
|
// optional string string = 6;
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
boolean hasString();
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
java.lang.String getString();
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
com.google.protobuf.ByteString
|
||||||
|
getStringBytes();
|
||||||
|
|
||||||
// optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];
|
// optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];</code>
|
||||||
@@ -340,15 +367,15 @@ public final class JvmProtoBuf {
|
|||||||
int rawValue = input.readEnum();
|
int rawValue = input.readEnum();
|
||||||
org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation value = org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation.valueOf(rawValue);
|
org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation value = org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation.valueOf(rawValue);
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
bitField0_ |= 0x00000004;
|
bitField0_ |= 0x00000008;
|
||||||
operation_ = value;
|
operation_ = value;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 32: {
|
case 32: {
|
||||||
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
|
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
|
||||||
substringIndex_ = new java.util.ArrayList<java.lang.Integer>();
|
substringIndex_ = new java.util.ArrayList<java.lang.Integer>();
|
||||||
mutable_bitField0_ |= 0x00000008;
|
mutable_bitField0_ |= 0x00000010;
|
||||||
}
|
}
|
||||||
substringIndex_.add(input.readInt32());
|
substringIndex_.add(input.readInt32());
|
||||||
break;
|
break;
|
||||||
@@ -356,9 +383,9 @@ public final class JvmProtoBuf {
|
|||||||
case 34: {
|
case 34: {
|
||||||
int length = input.readRawVarint32();
|
int length = input.readRawVarint32();
|
||||||
int limit = input.pushLimit(length);
|
int limit = input.pushLimit(length);
|
||||||
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
|
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
|
||||||
substringIndex_ = new java.util.ArrayList<java.lang.Integer>();
|
substringIndex_ = new java.util.ArrayList<java.lang.Integer>();
|
||||||
mutable_bitField0_ |= 0x00000008;
|
mutable_bitField0_ |= 0x00000010;
|
||||||
}
|
}
|
||||||
while (input.getBytesUntilLimit() > 0) {
|
while (input.getBytesUntilLimit() > 0) {
|
||||||
substringIndex_.add(input.readInt32());
|
substringIndex_.add(input.readInt32());
|
||||||
@@ -367,9 +394,9 @@ public final class JvmProtoBuf {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 40: {
|
case 40: {
|
||||||
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
|
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
|
||||||
replaceChar_ = new java.util.ArrayList<java.lang.Integer>();
|
replaceChar_ = new java.util.ArrayList<java.lang.Integer>();
|
||||||
mutable_bitField0_ |= 0x00000010;
|
mutable_bitField0_ |= 0x00000020;
|
||||||
}
|
}
|
||||||
replaceChar_.add(input.readInt32());
|
replaceChar_.add(input.readInt32());
|
||||||
break;
|
break;
|
||||||
@@ -377,9 +404,9 @@ public final class JvmProtoBuf {
|
|||||||
case 42: {
|
case 42: {
|
||||||
int length = input.readRawVarint32();
|
int length = input.readRawVarint32();
|
||||||
int limit = input.pushLimit(length);
|
int limit = input.pushLimit(length);
|
||||||
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
|
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
|
||||||
replaceChar_ = new java.util.ArrayList<java.lang.Integer>();
|
replaceChar_ = new java.util.ArrayList<java.lang.Integer>();
|
||||||
mutable_bitField0_ |= 0x00000010;
|
mutable_bitField0_ |= 0x00000020;
|
||||||
}
|
}
|
||||||
while (input.getBytesUntilLimit() > 0) {
|
while (input.getBytesUntilLimit() > 0) {
|
||||||
replaceChar_.add(input.readInt32());
|
replaceChar_.add(input.readInt32());
|
||||||
@@ -387,6 +414,11 @@ public final class JvmProtoBuf {
|
|||||||
input.popLimit(limit);
|
input.popLimit(limit);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 50: {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
string_ = input.readBytes();
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||||
@@ -395,10 +427,10 @@ public final class JvmProtoBuf {
|
|||||||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||||||
e.getMessage()).setUnfinishedMessage(this);
|
e.getMessage()).setUnfinishedMessage(this);
|
||||||
} finally {
|
} finally {
|
||||||
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
|
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
|
||||||
substringIndex_ = java.util.Collections.unmodifiableList(substringIndex_);
|
substringIndex_ = java.util.Collections.unmodifiableList(substringIndex_);
|
||||||
}
|
}
|
||||||
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
|
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
|
||||||
replaceChar_ = java.util.Collections.unmodifiableList(replaceChar_);
|
replaceChar_ = java.util.Collections.unmodifiableList(replaceChar_);
|
||||||
}
|
}
|
||||||
makeExtensionsImmutable();
|
makeExtensionsImmutable();
|
||||||
@@ -553,6 +585,61 @@ public final class JvmProtoBuf {
|
|||||||
return predefinedIndex_;
|
return predefinedIndex_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// optional string string = 6;
|
||||||
|
public static final int STRING_FIELD_NUMBER = 6;
|
||||||
|
private java.lang.Object string_;
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public boolean hasString() {
|
||||||
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public java.lang.String getString() {
|
||||||
|
java.lang.Object ref = string_;
|
||||||
|
if (ref instanceof java.lang.String) {
|
||||||
|
return (java.lang.String) ref;
|
||||||
|
} else {
|
||||||
|
com.google.protobuf.ByteString bs =
|
||||||
|
(com.google.protobuf.ByteString) ref;
|
||||||
|
java.lang.String s = bs.toStringUtf8();
|
||||||
|
if (bs.isValidUtf8()) {
|
||||||
|
string_ = s;
|
||||||
|
}
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public com.google.protobuf.ByteString
|
||||||
|
getStringBytes() {
|
||||||
|
java.lang.Object ref = string_;
|
||||||
|
if (ref instanceof java.lang.String) {
|
||||||
|
com.google.protobuf.ByteString b =
|
||||||
|
com.google.protobuf.ByteString.copyFromUtf8(
|
||||||
|
(java.lang.String) ref);
|
||||||
|
string_ = b;
|
||||||
|
return b;
|
||||||
|
} else {
|
||||||
|
return (com.google.protobuf.ByteString) ref;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];
|
// optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];
|
||||||
public static final int OPERATION_FIELD_NUMBER = 3;
|
public static final int OPERATION_FIELD_NUMBER = 3;
|
||||||
private org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation operation_;
|
private org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation operation_;
|
||||||
@@ -564,7 +651,7 @@ public final class JvmProtoBuf {
|
|||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public boolean hasOperation() {
|
public boolean hasOperation() {
|
||||||
return ((bitField0_ & 0x00000004) == 0x00000004);
|
return ((bitField0_ & 0x00000008) == 0x00000008);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];</code>
|
||||||
@@ -661,6 +748,7 @@ public final class JvmProtoBuf {
|
|||||||
private void initFields() {
|
private void initFields() {
|
||||||
range_ = 1;
|
range_ = 1;
|
||||||
predefinedIndex_ = 0;
|
predefinedIndex_ = 0;
|
||||||
|
string_ = "";
|
||||||
operation_ = org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
operation_ = org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
||||||
substringIndex_ = java.util.Collections.emptyList();
|
substringIndex_ = java.util.Collections.emptyList();
|
||||||
replaceChar_ = java.util.Collections.emptyList();
|
replaceChar_ = java.util.Collections.emptyList();
|
||||||
@@ -683,7 +771,7 @@ public final class JvmProtoBuf {
|
|||||||
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
if (((bitField0_ & 0x00000002) == 0x00000002)) {
|
||||||
output.writeInt32(2, predefinedIndex_);
|
output.writeInt32(2, predefinedIndex_);
|
||||||
}
|
}
|
||||||
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
output.writeEnum(3, operation_.getNumber());
|
output.writeEnum(3, operation_.getNumber());
|
||||||
}
|
}
|
||||||
if (getSubstringIndexList().size() > 0) {
|
if (getSubstringIndexList().size() > 0) {
|
||||||
@@ -700,6 +788,9 @@ public final class JvmProtoBuf {
|
|||||||
for (int i = 0; i < replaceChar_.size(); i++) {
|
for (int i = 0; i < replaceChar_.size(); i++) {
|
||||||
output.writeInt32NoTag(replaceChar_.get(i));
|
output.writeInt32NoTag(replaceChar_.get(i));
|
||||||
}
|
}
|
||||||
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
|
output.writeBytes(6, getStringBytes());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private int memoizedSerializedSize = -1;
|
private int memoizedSerializedSize = -1;
|
||||||
@@ -716,7 +807,7 @@ public final class JvmProtoBuf {
|
|||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeInt32Size(2, predefinedIndex_);
|
.computeInt32Size(2, predefinedIndex_);
|
||||||
}
|
}
|
||||||
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeEnumSize(3, operation_.getNumber());
|
.computeEnumSize(3, operation_.getNumber());
|
||||||
}
|
}
|
||||||
@@ -748,6 +839,10 @@ public final class JvmProtoBuf {
|
|||||||
}
|
}
|
||||||
replaceCharMemoizedSerializedSize = dataSize;
|
replaceCharMemoizedSerializedSize = dataSize;
|
||||||
}
|
}
|
||||||
|
if (((bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
|
size += com.google.protobuf.CodedOutputStream
|
||||||
|
.computeBytesSize(6, getStringBytes());
|
||||||
|
}
|
||||||
memoizedSerializedSize = size;
|
memoizedSerializedSize = size;
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
@@ -843,12 +938,14 @@ public final class JvmProtoBuf {
|
|||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
bitField0_ = (bitField0_ & ~0x00000001);
|
||||||
predefinedIndex_ = 0;
|
predefinedIndex_ = 0;
|
||||||
bitField0_ = (bitField0_ & ~0x00000002);
|
bitField0_ = (bitField0_ & ~0x00000002);
|
||||||
operation_ = org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
string_ = "";
|
||||||
bitField0_ = (bitField0_ & ~0x00000004);
|
bitField0_ = (bitField0_ & ~0x00000004);
|
||||||
substringIndex_ = java.util.Collections.emptyList();
|
operation_ = org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
||||||
bitField0_ = (bitField0_ & ~0x00000008);
|
bitField0_ = (bitField0_ & ~0x00000008);
|
||||||
replaceChar_ = java.util.Collections.emptyList();
|
substringIndex_ = java.util.Collections.emptyList();
|
||||||
bitField0_ = (bitField0_ & ~0x00000010);
|
bitField0_ = (bitField0_ & ~0x00000010);
|
||||||
|
replaceChar_ = java.util.Collections.emptyList();
|
||||||
|
bitField0_ = (bitField0_ & ~0x00000020);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -883,15 +980,19 @@ public final class JvmProtoBuf {
|
|||||||
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
|
||||||
to_bitField0_ |= 0x00000004;
|
to_bitField0_ |= 0x00000004;
|
||||||
}
|
}
|
||||||
|
result.string_ = string_;
|
||||||
|
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
|
||||||
|
to_bitField0_ |= 0x00000008;
|
||||||
|
}
|
||||||
result.operation_ = operation_;
|
result.operation_ = operation_;
|
||||||
if (((bitField0_ & 0x00000008) == 0x00000008)) {
|
if (((bitField0_ & 0x00000010) == 0x00000010)) {
|
||||||
substringIndex_ = java.util.Collections.unmodifiableList(substringIndex_);
|
substringIndex_ = java.util.Collections.unmodifiableList(substringIndex_);
|
||||||
bitField0_ = (bitField0_ & ~0x00000008);
|
bitField0_ = (bitField0_ & ~0x00000010);
|
||||||
}
|
}
|
||||||
result.substringIndex_ = substringIndex_;
|
result.substringIndex_ = substringIndex_;
|
||||||
if (((bitField0_ & 0x00000010) == 0x00000010)) {
|
if (((bitField0_ & 0x00000020) == 0x00000020)) {
|
||||||
replaceChar_ = java.util.Collections.unmodifiableList(replaceChar_);
|
replaceChar_ = java.util.Collections.unmodifiableList(replaceChar_);
|
||||||
bitField0_ = (bitField0_ & ~0x00000010);
|
bitField0_ = (bitField0_ & ~0x00000020);
|
||||||
}
|
}
|
||||||
result.replaceChar_ = replaceChar_;
|
result.replaceChar_ = replaceChar_;
|
||||||
result.bitField0_ = to_bitField0_;
|
result.bitField0_ = to_bitField0_;
|
||||||
@@ -906,13 +1007,18 @@ public final class JvmProtoBuf {
|
|||||||
if (other.hasPredefinedIndex()) {
|
if (other.hasPredefinedIndex()) {
|
||||||
setPredefinedIndex(other.getPredefinedIndex());
|
setPredefinedIndex(other.getPredefinedIndex());
|
||||||
}
|
}
|
||||||
|
if (other.hasString()) {
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
string_ = other.string_;
|
||||||
|
|
||||||
|
}
|
||||||
if (other.hasOperation()) {
|
if (other.hasOperation()) {
|
||||||
setOperation(other.getOperation());
|
setOperation(other.getOperation());
|
||||||
}
|
}
|
||||||
if (!other.substringIndex_.isEmpty()) {
|
if (!other.substringIndex_.isEmpty()) {
|
||||||
if (substringIndex_.isEmpty()) {
|
if (substringIndex_.isEmpty()) {
|
||||||
substringIndex_ = other.substringIndex_;
|
substringIndex_ = other.substringIndex_;
|
||||||
bitField0_ = (bitField0_ & ~0x00000008);
|
bitField0_ = (bitField0_ & ~0x00000010);
|
||||||
} else {
|
} else {
|
||||||
ensureSubstringIndexIsMutable();
|
ensureSubstringIndexIsMutable();
|
||||||
substringIndex_.addAll(other.substringIndex_);
|
substringIndex_.addAll(other.substringIndex_);
|
||||||
@@ -922,7 +1028,7 @@ public final class JvmProtoBuf {
|
|||||||
if (!other.replaceChar_.isEmpty()) {
|
if (!other.replaceChar_.isEmpty()) {
|
||||||
if (replaceChar_.isEmpty()) {
|
if (replaceChar_.isEmpty()) {
|
||||||
replaceChar_ = other.replaceChar_;
|
replaceChar_ = other.replaceChar_;
|
||||||
bitField0_ = (bitField0_ & ~0x00000010);
|
bitField0_ = (bitField0_ & ~0x00000020);
|
||||||
} else {
|
} else {
|
||||||
ensureReplaceCharIsMutable();
|
ensureReplaceCharIsMutable();
|
||||||
replaceChar_.addAll(other.replaceChar_);
|
replaceChar_.addAll(other.replaceChar_);
|
||||||
@@ -1053,6 +1159,104 @@ public final class JvmProtoBuf {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// optional string string = 6;
|
||||||
|
private java.lang.Object string_ = "";
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public boolean hasString() {
|
||||||
|
return ((bitField0_ & 0x00000004) == 0x00000004);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public java.lang.String getString() {
|
||||||
|
java.lang.Object ref = string_;
|
||||||
|
if (!(ref instanceof java.lang.String)) {
|
||||||
|
java.lang.String s = ((com.google.protobuf.ByteString) ref)
|
||||||
|
.toStringUtf8();
|
||||||
|
string_ = s;
|
||||||
|
return s;
|
||||||
|
} else {
|
||||||
|
return (java.lang.String) ref;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public com.google.protobuf.ByteString
|
||||||
|
getStringBytes() {
|
||||||
|
java.lang.Object ref = string_;
|
||||||
|
if (ref instanceof String) {
|
||||||
|
com.google.protobuf.ByteString b =
|
||||||
|
com.google.protobuf.ByteString.copyFromUtf8(
|
||||||
|
(java.lang.String) ref);
|
||||||
|
string_ = b;
|
||||||
|
return b;
|
||||||
|
} else {
|
||||||
|
return (com.google.protobuf.ByteString) ref;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public Builder setString(
|
||||||
|
java.lang.String value) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new NullPointerException();
|
||||||
|
}
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
string_ = value;
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public Builder clearString() {
|
||||||
|
bitField0_ = (bitField0_ & ~0x00000004);
|
||||||
|
string_ = getDefaultInstance().getString();
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>optional string string = 6;</code>
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* A string which should be used. If this field is present, both the associated string and the predefined string index are ignored
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
public Builder setStringBytes(
|
||||||
|
com.google.protobuf.ByteString value) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new NullPointerException();
|
||||||
|
}
|
||||||
|
bitField0_ |= 0x00000004;
|
||||||
|
string_ = value;
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
// optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];
|
// optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];
|
||||||
private org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation operation_ = org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
private org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation operation_ = org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
||||||
/**
|
/**
|
||||||
@@ -1063,7 +1267,7 @@ public final class JvmProtoBuf {
|
|||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public boolean hasOperation() {
|
public boolean hasOperation() {
|
||||||
return ((bitField0_ & 0x00000004) == 0x00000004);
|
return ((bitField0_ & 0x00000008) == 0x00000008);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];</code>
|
* <code>optional .org.jetbrains.kotlin.serialization.jvm.StringTableTypes.Record.Operation operation = 3 [default = NONE];</code>
|
||||||
@@ -1086,7 +1290,7 @@ public final class JvmProtoBuf {
|
|||||||
if (value == null) {
|
if (value == null) {
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
}
|
}
|
||||||
bitField0_ |= 0x00000004;
|
bitField0_ |= 0x00000008;
|
||||||
operation_ = value;
|
operation_ = value;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -1099,7 +1303,7 @@ public final class JvmProtoBuf {
|
|||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public Builder clearOperation() {
|
public Builder clearOperation() {
|
||||||
bitField0_ = (bitField0_ & ~0x00000004);
|
bitField0_ = (bitField0_ & ~0x00000008);
|
||||||
operation_ = org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
operation_ = org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf.StringTableTypes.Record.Operation.NONE;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -1108,9 +1312,9 @@ public final class JvmProtoBuf {
|
|||||||
// repeated int32 substring_index = 4 [packed = true];
|
// repeated int32 substring_index = 4 [packed = true];
|
||||||
private java.util.List<java.lang.Integer> substringIndex_ = java.util.Collections.emptyList();
|
private java.util.List<java.lang.Integer> substringIndex_ = java.util.Collections.emptyList();
|
||||||
private void ensureSubstringIndexIsMutable() {
|
private void ensureSubstringIndexIsMutable() {
|
||||||
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
|
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
|
||||||
substringIndex_ = new java.util.ArrayList<java.lang.Integer>(substringIndex_);
|
substringIndex_ = new java.util.ArrayList<java.lang.Integer>(substringIndex_);
|
||||||
bitField0_ |= 0x00000008;
|
bitField0_ |= 0x00000010;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -1208,7 +1412,7 @@ public final class JvmProtoBuf {
|
|||||||
*/
|
*/
|
||||||
public Builder clearSubstringIndex() {
|
public Builder clearSubstringIndex() {
|
||||||
substringIndex_ = java.util.Collections.emptyList();
|
substringIndex_ = java.util.Collections.emptyList();
|
||||||
bitField0_ = (bitField0_ & ~0x00000008);
|
bitField0_ = (bitField0_ & ~0x00000010);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -1216,9 +1420,9 @@ public final class JvmProtoBuf {
|
|||||||
// repeated int32 replace_char = 5 [packed = true];
|
// repeated int32 replace_char = 5 [packed = true];
|
||||||
private java.util.List<java.lang.Integer> replaceChar_ = java.util.Collections.emptyList();
|
private java.util.List<java.lang.Integer> replaceChar_ = java.util.Collections.emptyList();
|
||||||
private void ensureReplaceCharIsMutable() {
|
private void ensureReplaceCharIsMutable() {
|
||||||
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
|
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
|
||||||
replaceChar_ = new java.util.ArrayList<java.lang.Integer>(replaceChar_);
|
replaceChar_ = new java.util.ArrayList<java.lang.Integer>(replaceChar_);
|
||||||
bitField0_ |= 0x00000010;
|
bitField0_ |= 0x00000020;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -1309,7 +1513,7 @@ public final class JvmProtoBuf {
|
|||||||
*/
|
*/
|
||||||
public Builder clearReplaceChar() {
|
public Builder clearReplaceChar() {
|
||||||
replaceChar_ = java.util.Collections.emptyList();
|
replaceChar_ = java.util.Collections.emptyList();
|
||||||
bitField0_ = (bitField0_ & ~0x00000010);
|
bitField0_ = (bitField0_ & ~0x00000020);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user