diff --git a/build.gradle b/build.gradle index 032f64a43c..0deb88864a 100644 --- a/build.gradle +++ b/build.gradle @@ -34,11 +34,11 @@ subprojects { oracleDriverVersion = '21.10.0.0' sqlserverDriverVersion = '11.2.3.jre8' sqliteDriverVersion = '3.42.0.0' - grpcVersion = '1.60.0' - protobufVersion = '3.21.12' + grpcVersion = '1.67.1' + protobufVersion = '3.25.5' annotationVersion = '1.3.2' picocliVersion = '4.7.4' - scalarAdminVersion = '2.1.2' + scalarAdminVersion = '2.2.1' dropwizardMetricsVersion = '4.2.19' prometheusVersion = '0.16.0' commonsTextVersion = '1.10.0' diff --git a/rpc/build.gradle b/rpc/build.gradle index b1fba2e1e7..d87f98a704 100644 --- a/rpc/build.gradle +++ b/rpc/build.gradle @@ -10,6 +10,7 @@ dependencies { api "io.grpc:grpc-protobuf:${grpcVersion}" api "io.grpc:grpc-stub:${grpcVersion}" api "io.grpc:grpc-services:${grpcVersion}" + implementation "com.google.protobuf:protobuf-java:${protobufVersion}" implementation "javax.annotation:javax.annotation-api:${annotationVersion}" } diff --git a/rpc/src/main/grpc/com/scalar/db/rpc/DistributedStorageAdminGrpc.java b/rpc/src/main/grpc/com/scalar/db/rpc/DistributedStorageAdminGrpc.java index a86944ba19..9cd1b4749e 100644 --- a/rpc/src/main/grpc/com/scalar/db/rpc/DistributedStorageAdminGrpc.java +++ b/rpc/src/main/grpc/com/scalar/db/rpc/DistributedStorageAdminGrpc.java @@ -5,7 +5,7 @@ /** */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.60.0)", + value = "by gRPC proto compiler (version 1.67.1)", comments = "Source: scalardb.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DistributedStorageAdminGrpc { diff --git a/rpc/src/main/grpc/com/scalar/db/rpc/DistributedStorageGrpc.java b/rpc/src/main/grpc/com/scalar/db/rpc/DistributedStorageGrpc.java index 8df02ea8e4..1b89342b66 100644 --- a/rpc/src/main/grpc/com/scalar/db/rpc/DistributedStorageGrpc.java +++ b/rpc/src/main/grpc/com/scalar/db/rpc/DistributedStorageGrpc.java @@ -5,7 +5,7 @@ /** */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.60.0)", + value = "by gRPC proto compiler (version 1.67.1)", comments = "Source: scalardb.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DistributedStorageGrpc { diff --git a/rpc/src/main/grpc/com/scalar/db/rpc/DistributedTransactionAdminGrpc.java b/rpc/src/main/grpc/com/scalar/db/rpc/DistributedTransactionAdminGrpc.java index afed6caead..3f4be2bbf2 100644 --- a/rpc/src/main/grpc/com/scalar/db/rpc/DistributedTransactionAdminGrpc.java +++ b/rpc/src/main/grpc/com/scalar/db/rpc/DistributedTransactionAdminGrpc.java @@ -5,7 +5,7 @@ /** */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.60.0)", + value = "by gRPC proto compiler (version 1.67.1)", comments = "Source: scalardb.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DistributedTransactionAdminGrpc { diff --git a/rpc/src/main/grpc/com/scalar/db/rpc/DistributedTransactionGrpc.java b/rpc/src/main/grpc/com/scalar/db/rpc/DistributedTransactionGrpc.java index 34c26b7644..10bd029aaa 100644 --- a/rpc/src/main/grpc/com/scalar/db/rpc/DistributedTransactionGrpc.java +++ b/rpc/src/main/grpc/com/scalar/db/rpc/DistributedTransactionGrpc.java @@ -5,7 +5,7 @@ /** */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.60.0)", + value = "by gRPC proto compiler (version 1.67.1)", comments = "Source: scalardb.proto") @io.grpc.stub.annotations.GrpcGenerated public final class DistributedTransactionGrpc { diff --git a/rpc/src/main/grpc/com/scalar/db/rpc/TwoPhaseCommitTransactionGrpc.java b/rpc/src/main/grpc/com/scalar/db/rpc/TwoPhaseCommitTransactionGrpc.java index a9995b54a7..c657781ebb 100644 --- a/rpc/src/main/grpc/com/scalar/db/rpc/TwoPhaseCommitTransactionGrpc.java +++ b/rpc/src/main/grpc/com/scalar/db/rpc/TwoPhaseCommitTransactionGrpc.java @@ -5,7 +5,7 @@ /** */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.60.0)", + value = "by gRPC proto compiler (version 1.67.1)", comments = "Source: scalardb.proto") @io.grpc.stub.annotations.GrpcGenerated public final class TwoPhaseCommitTransactionGrpc { diff --git a/rpc/src/main/java/com/scalar/db/rpc/AbortRequest.java b/rpc/src/main/java/com/scalar/db/rpc/AbortRequest.java index e5b81fddd2..adf16df0a7 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/AbortRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/AbortRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new AbortRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_AbortRequest_descriptor; @@ -191,11 +187,13 @@ public static com.scalar.db.rpc.AbortRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.AbortRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.AbortRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/AbortRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/AbortRequestOrBuilder.java index 0475c912c1..75fee0cfd5 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/AbortRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/AbortRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface AbortRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/AbortResponse.java b/rpc/src/main/java/com/scalar/db/rpc/AbortResponse.java index 0fd7e1ef58..3e3e442f0a 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/AbortResponse.java +++ b/rpc/src/main/java/com/scalar/db/rpc/AbortResponse.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new AbortResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_AbortResponse_descriptor; @@ -170,11 +166,13 @@ public static com.scalar.db.rpc.AbortResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.AbortResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.AbortResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/AbortResponseOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/AbortResponseOrBuilder.java index bb408f93cd..bb9ae6d819 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/AbortResponseOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/AbortResponseOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface AbortResponseOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/AddNewColumnToTableRequest.java b/rpc/src/main/java/com/scalar/db/rpc/AddNewColumnToTableRequest.java index 88f59e7bfa..2dda542b4a 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/AddNewColumnToTableRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/AddNewColumnToTableRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -29,11 +30,6 @@ protected java.lang.Object newInstance( return new AddNewColumnToTableRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_AddNewColumnToTableRequest_descriptor; @@ -320,11 +316,13 @@ public static com.scalar.db.rpc.AddNewColumnToTableRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.AddNewColumnToTableRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.AddNewColumnToTableRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/AddNewColumnToTableRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/AddNewColumnToTableRequestOrBuilder.java index bdc03533b6..2a7f667522 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/AddNewColumnToTableRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/AddNewColumnToTableRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface AddNewColumnToTableRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/Column.java b/rpc/src/main/java/com/scalar/db/rpc/Column.java index 1eb683a924..1ddfe72e03 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/Column.java +++ b/rpc/src/main/java/com/scalar/db/rpc/Column.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new Column(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_Column_descriptor; @@ -45,6 +41,7 @@ protected java.lang.Object newInstance( } private int valueCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, @@ -551,11 +548,13 @@ public static com.scalar.db.rpc.Column parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.Column parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.Column parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -956,7 +955,7 @@ public boolean getBooleanValue() { * @return This builder for chaining. */ public Builder setBooleanValue(boolean value) { - + valueCase_ = 2; value_ = value; onChanged(); @@ -998,7 +997,7 @@ public int getIntValue() { * @return This builder for chaining. */ public Builder setIntValue(int value) { - + valueCase_ = 3; value_ = value; onChanged(); @@ -1040,7 +1039,7 @@ public long getBigintValue() { * @return This builder for chaining. */ public Builder setBigintValue(long value) { - + valueCase_ = 4; value_ = value; onChanged(); @@ -1082,7 +1081,7 @@ public float getFloatValue() { * @return This builder for chaining. */ public Builder setFloatValue(float value) { - + valueCase_ = 5; value_ = value; onChanged(); @@ -1124,7 +1123,7 @@ public double getDoubleValue() { * @return This builder for chaining. */ public Builder setDoubleValue(double value) { - + valueCase_ = 6; value_ = value; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/ColumnOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/ColumnOrBuilder.java index 06c7a7f63f..204a46b92d 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/ColumnOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/ColumnOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface ColumnOrBuilder extends @@ -102,5 +103,5 @@ public interface ColumnOrBuilder extends */ com.google.protobuf.ByteString getBlobValue(); - public com.scalar.db.rpc.Column.ValueCase getValueCase(); + com.scalar.db.rpc.Column.ValueCase getValueCase(); } diff --git a/rpc/src/main/java/com/scalar/db/rpc/ConditionalExpression.java b/rpc/src/main/java/com/scalar/db/rpc/ConditionalExpression.java index 297cb5c76c..0b7be6c35d 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/ConditionalExpression.java +++ b/rpc/src/main/java/com/scalar/db/rpc/ConditionalExpression.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -27,11 +28,6 @@ protected java.lang.Object newInstance( return new ConditionalExpression(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_ConditionalExpression_descriptor; @@ -207,6 +203,7 @@ private Operator(int value) { // @@protoc_insertion_point(enum_scope:rpc.ConditionalExpression.Operator) } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; @@ -260,7 +257,7 @@ private Operator(int value) { */ @java.lang.Override @java.lang.Deprecated public boolean hasValue() { - return value_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Value value = 2 [deprecated = true]; @@ -306,7 +303,7 @@ private Operator(int value) { */ @java.lang.Override public boolean hasColumn() { - return column_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * .rpc.Column column = 4; @@ -341,13 +338,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (value_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getValue()); } if (operator_ != com.scalar.db.rpc.ConditionalExpression.Operator.EQ.getNumber()) { output.writeEnum(3, operator_); } - if (column_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getColumn()); } getUnknownFields().writeTo(output); @@ -362,7 +359,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (value_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } @@ -370,7 +367,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, operator_); } - if (column_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getColumn()); } @@ -474,11 +471,13 @@ public static com.scalar.db.rpc.ConditionalExpression parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.ConditionalExpression parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.ConditionalExpression parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -542,13 +541,20 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.ConditionalExpression.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getValueFieldBuilder(); + getColumnFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -602,10 +608,12 @@ private void buildPartial0(com.scalar.db.rpc.ConditionalExpression result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.operator_ = operator_; @@ -614,7 +622,9 @@ private void buildPartial0(com.scalar.db.rpc.ConditionalExpression result) { result.column_ = columnBuilder_ == null ? column_ : columnBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -894,8 +904,10 @@ public Builder mergeFrom( } else { valueBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (value_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1066,8 +1078,10 @@ public Builder mergeColumn(com.scalar.db.rpc.Column value) { } else { columnBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (column_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/rpc/src/main/java/com/scalar/db/rpc/ConditionalExpressionOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/ConditionalExpressionOrBuilder.java index a36f73b810..33ffa8b42e 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/ConditionalExpressionOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/ConditionalExpressionOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface ConditionalExpressionOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/Consistency.java b/rpc/src/main/java/com/scalar/db/rpc/Consistency.java index 31517877ae..98d1a8f825 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/Consistency.java +++ b/rpc/src/main/java/com/scalar/db/rpc/Consistency.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** diff --git a/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistRequest.java b/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistRequest.java index 253b710523..fb819220e8 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new CoordinatorTablesExistRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_CoordinatorTablesExistRequest_descriptor; @@ -141,11 +137,13 @@ public static com.scalar.db.rpc.CoordinatorTablesExistRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.CoordinatorTablesExistRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.CoordinatorTablesExistRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistRequestOrBuilder.java index 47016ff36a..0237bad0b1 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface CoordinatorTablesExistRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistResponse.java b/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistResponse.java index 51a09fea32..6cdc935aef 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistResponse.java +++ b/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistResponse.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new CoordinatorTablesExistResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_CoordinatorTablesExistResponse_descriptor; @@ -164,11 +160,13 @@ public static com.scalar.db.rpc.CoordinatorTablesExistResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.CoordinatorTablesExistResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.CoordinatorTablesExistResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -393,7 +391,7 @@ public boolean getExist() { * @return This builder for chaining. */ public Builder setExist(boolean value) { - + exist_ = value; bitField0_ |= 0x00000001; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistResponseOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistResponseOrBuilder.java index dab84d3556..15bc7afa55 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistResponseOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/CoordinatorTablesExistResponseOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface CoordinatorTablesExistResponseOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/CreateCoordinatorTablesRequest.java b/rpc/src/main/java/com/scalar/db/rpc/CreateCoordinatorTablesRequest.java index 5bc5d34510..a0ff8f3700 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/CreateCoordinatorTablesRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/CreateCoordinatorTablesRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new CreateCoordinatorTablesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_CreateCoordinatorTablesRequest_descriptor; @@ -37,7 +33,7 @@ protected java.lang.Object newInstance( @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: @@ -277,11 +273,13 @@ public static com.scalar.db.rpc.CreateCoordinatorTablesRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.CreateCoordinatorTablesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.CreateCoordinatorTablesRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -336,7 +334,7 @@ public static final class Builder extends } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: @@ -347,7 +345,7 @@ protected com.google.protobuf.MapField internalGetMapField( } } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 1: @@ -672,7 +670,7 @@ public boolean getIfNotExist() { * @return This builder for chaining. */ public Builder setIfNotExist(boolean value) { - + ifNotExist_ = value; bitField0_ |= 0x00000002; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/CreateCoordinatorTablesRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/CreateCoordinatorTablesRequestOrBuilder.java index 5edee7449a..e05613225a 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/CreateCoordinatorTablesRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/CreateCoordinatorTablesRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface CreateCoordinatorTablesRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/CreateIndexRequest.java b/rpc/src/main/java/com/scalar/db/rpc/CreateIndexRequest.java index aeeb6640d9..74d35fa01d 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/CreateIndexRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/CreateIndexRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -28,11 +29,6 @@ protected java.lang.Object newInstance( return new CreateIndexRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_CreateIndexRequest_descriptor; @@ -40,7 +36,7 @@ protected java.lang.Object newInstance( @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: @@ -427,11 +423,13 @@ public static com.scalar.db.rpc.CreateIndexRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.CreateIndexRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.CreateIndexRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -486,7 +484,7 @@ public static final class Builder extends } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: @@ -497,7 +495,7 @@ protected com.google.protobuf.MapField internalGetMapField( } } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 4: @@ -1080,7 +1078,7 @@ public boolean getIfNotExists() { * @return This builder for chaining. */ public Builder setIfNotExists(boolean value) { - + ifNotExists_ = value; bitField0_ |= 0x00000010; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/CreateIndexRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/CreateIndexRequestOrBuilder.java index 3116297aeb..1e1a2cdf9e 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/CreateIndexRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/CreateIndexRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface CreateIndexRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/CreateNamespaceRequest.java b/rpc/src/main/java/com/scalar/db/rpc/CreateNamespaceRequest.java index b29f789e83..5ee1825d63 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/CreateNamespaceRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/CreateNamespaceRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new CreateNamespaceRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_CreateNamespaceRequest_descriptor; @@ -38,7 +34,7 @@ protected java.lang.Object newInstance( @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: @@ -327,11 +323,13 @@ public static com.scalar.db.rpc.CreateNamespaceRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.CreateNamespaceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.CreateNamespaceRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -386,7 +384,7 @@ public static final class Builder extends } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: @@ -397,7 +395,7 @@ protected com.google.protobuf.MapField internalGetMapField( } } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 2: @@ -808,7 +806,7 @@ public boolean getIfNotExists() { * @return This builder for chaining. */ public Builder setIfNotExists(boolean value) { - + ifNotExists_ = value; bitField0_ |= 0x00000004; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/CreateNamespaceRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/CreateNamespaceRequestOrBuilder.java index 8758036a60..4373109739 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/CreateNamespaceRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/CreateNamespaceRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface CreateNamespaceRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/CreateTableRequest.java b/rpc/src/main/java/com/scalar/db/rpc/CreateTableRequest.java index fe6b009f61..e17470e4e0 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/CreateTableRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/CreateTableRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -27,11 +28,6 @@ protected java.lang.Object newInstance( return new CreateTableRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_CreateTableRequest_descriptor; @@ -39,7 +35,7 @@ protected java.lang.Object newInstance( @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: @@ -57,6 +53,7 @@ protected com.google.protobuf.MapField internalGetMapField( com.scalar.db.rpc.CreateTableRequest.class, com.scalar.db.rpc.CreateTableRequest.Builder.class); } + private int bitField0_; public static final int NAMESPACE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; @@ -143,7 +140,7 @@ public java.lang.String getTable() { */ @java.lang.Override public boolean hasTableMetadata() { - return tableMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.TableMetadata table_metadata = 3; @@ -271,7 +268,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, table_); } - if (tableMetadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getTableMetadata()); } com.google.protobuf.GeneratedMessageV3 @@ -298,7 +295,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); } - if (tableMetadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTableMetadata()); } @@ -419,11 +416,13 @@ public static com.scalar.db.rpc.CreateTableRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.CreateTableRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.CreateTableRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -478,7 +477,7 @@ public static final class Builder extends } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: @@ -489,7 +488,7 @@ protected com.google.protobuf.MapField internalGetMapField( } } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 4: @@ -509,13 +508,19 @@ protected com.google.protobuf.MapField internalGetMutableMapField( // Construct using com.scalar.db.rpc.CreateTableRequest.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTableMetadataFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -569,10 +574,12 @@ private void buildPartial0(com.scalar.db.rpc.CreateTableRequest result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.table_ = table_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.tableMetadata_ = tableMetadataBuilder_ == null ? tableMetadata_ : tableMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.options_ = internalGetOptions(); @@ -581,6 +588,7 @@ private void buildPartial0(com.scalar.db.rpc.CreateTableRequest result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.ifNotExists_ = ifNotExists_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -930,8 +938,10 @@ public Builder mergeTableMetadata(com.scalar.db.rpc.TableMetadata value) { } else { tableMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (tableMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1125,7 +1135,7 @@ public boolean getIfNotExists() { * @return This builder for chaining. */ public Builder setIfNotExists(boolean value) { - + ifNotExists_ = value; bitField0_ |= 0x00000010; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/CreateTableRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/CreateTableRequestOrBuilder.java index 51ac4a913a..20742dcae0 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/CreateTableRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/CreateTableRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface CreateTableRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/DataType.java b/rpc/src/main/java/com/scalar/db/rpc/DataType.java index 3dc7a8f2c3..aee639d401 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/DataType.java +++ b/rpc/src/main/java/com/scalar/db/rpc/DataType.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** diff --git a/rpc/src/main/java/com/scalar/db/rpc/DropCoordinatorTablesRequest.java b/rpc/src/main/java/com/scalar/db/rpc/DropCoordinatorTablesRequest.java index b545d5f2cf..ff4edf598f 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/DropCoordinatorTablesRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/DropCoordinatorTablesRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new DropCoordinatorTablesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_DropCoordinatorTablesRequest_descriptor; @@ -164,11 +160,13 @@ public static com.scalar.db.rpc.DropCoordinatorTablesRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.DropCoordinatorTablesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.DropCoordinatorTablesRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -393,7 +391,7 @@ public boolean getIfExist() { * @return This builder for chaining. */ public Builder setIfExist(boolean value) { - + ifExist_ = value; bitField0_ |= 0x00000001; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/DropCoordinatorTablesRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/DropCoordinatorTablesRequestOrBuilder.java index 104659a03e..17c11183f8 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/DropCoordinatorTablesRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/DropCoordinatorTablesRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface DropCoordinatorTablesRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/DropIndexRequest.java b/rpc/src/main/java/com/scalar/db/rpc/DropIndexRequest.java index 6139211963..99e885077c 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/DropIndexRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/DropIndexRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -28,11 +29,6 @@ protected java.lang.Object newInstance( return new DropIndexRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_DropIndexRequest_descriptor; @@ -314,11 +310,13 @@ public static com.scalar.db.rpc.DropIndexRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.DropIndexRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.DropIndexRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -801,7 +799,7 @@ public boolean getIfExists() { * @return This builder for chaining. */ public Builder setIfExists(boolean value) { - + ifExists_ = value; bitField0_ |= 0x00000008; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/DropIndexRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/DropIndexRequestOrBuilder.java index b538f8db97..7742ceb901 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/DropIndexRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/DropIndexRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface DropIndexRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/DropNamespaceRequest.java b/rpc/src/main/java/com/scalar/db/rpc/DropNamespaceRequest.java index 5bb25fedd1..6e9cc3dd84 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/DropNamespaceRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/DropNamespaceRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new DropNamespaceRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_DropNamespaceRequest_descriptor; @@ -214,11 +210,13 @@ public static com.scalar.db.rpc.DropNamespaceRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.DropNamespaceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.DropNamespaceRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -529,7 +527,7 @@ public boolean getIfExists() { * @return This builder for chaining. */ public Builder setIfExists(boolean value) { - + ifExists_ = value; bitField0_ |= 0x00000002; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/DropNamespaceRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/DropNamespaceRequestOrBuilder.java index b54dbce677..79f1017c52 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/DropNamespaceRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/DropNamespaceRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface DropNamespaceRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/DropTableRequest.java b/rpc/src/main/java/com/scalar/db/rpc/DropTableRequest.java index b17dc7b623..87f1c2cfb0 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/DropTableRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/DropTableRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -27,11 +28,6 @@ protected java.lang.Object newInstance( return new DropTableRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_DropTableRequest_descriptor; @@ -264,11 +260,13 @@ public static com.scalar.db.rpc.DropTableRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.DropTableRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.DropTableRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -665,7 +663,7 @@ public boolean getIfExists() { * @return This builder for chaining. */ public Builder setIfExists(boolean value) { - + ifExists_ = value; bitField0_ |= 0x00000004; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/DropTableRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/DropTableRequestOrBuilder.java index 1508cf6b9c..8a49cda0cd 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/DropTableRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/DropTableRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface DropTableRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/Get.java b/rpc/src/main/java/com/scalar/db/rpc/Get.java index 1d710f5652..896f79cf50 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/Get.java +++ b/rpc/src/main/java/com/scalar/db/rpc/Get.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -19,7 +20,8 @@ private Get() { namespace_ = ""; table_ = ""; consistency_ = 0; - projections_ = com.google.protobuf.LazyStringArrayList.EMPTY; + projections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -29,11 +31,6 @@ protected java.lang.Object newInstance( return new Get(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_Get_descriptor; @@ -47,6 +44,7 @@ protected java.lang.Object newInstance( com.scalar.db.rpc.Get.class, com.scalar.db.rpc.Get.Builder.class); } + private int bitField0_; public static final int NAMESPACE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; @@ -133,7 +131,7 @@ public java.lang.String getTable() { */ @java.lang.Override public boolean hasPartitionKey() { - return partitionKey_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Key partition_key = 3; @@ -159,7 +157,7 @@ public com.scalar.db.rpc.KeyOrBuilder getPartitionKeyOrBuilder() { */ @java.lang.Override public boolean hasClusteringKey() { - return clusteringKey_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * .rpc.Key clustering_key = 4; @@ -197,7 +195,8 @@ public com.scalar.db.rpc.KeyOrBuilder getClusteringKeyOrBuilder() { public static final int PROJECTIONS_FIELD_NUMBER = 6; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList projections_; + private com.google.protobuf.LazyStringArrayList projections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string projections = 6; * @return A list containing the projections. @@ -251,10 +250,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, table_); } - if (partitionKey_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getPartitionKey()); } - if (clusteringKey_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getClusteringKey()); } if (consistency_ != com.scalar.db.rpc.Consistency.CONSISTENCY_SEQUENTIAL.getNumber()) { @@ -278,11 +277,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); } - if (partitionKey_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPartitionKey()); } - if (clusteringKey_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getClusteringKey()); } @@ -408,11 +407,13 @@ public static com.scalar.db.rpc.Get parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.Get parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.Get parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -476,13 +477,20 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.Get.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPartitionKeyFieldBuilder(); + getClusteringKeyFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -501,8 +509,8 @@ public Builder clear() { clusteringKeyBuilder_ = null; } consistency_ = 0; - projections_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + projections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -529,20 +537,11 @@ public com.scalar.db.rpc.Get build() { @java.lang.Override public com.scalar.db.rpc.Get buildPartial() { com.scalar.db.rpc.Get result = new com.scalar.db.rpc.Get(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.scalar.db.rpc.Get result) { - if (((bitField0_ & 0x00000020) != 0)) { - projections_ = projections_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.projections_ = projections_; - } - private void buildPartial0(com.scalar.db.rpc.Get result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -551,19 +550,27 @@ private void buildPartial0(com.scalar.db.rpc.Get result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.table_ = table_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionKey_ = partitionKeyBuilder_ == null ? partitionKey_ : partitionKeyBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.clusteringKey_ = clusteringKeyBuilder_ == null ? clusteringKey_ : clusteringKeyBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.consistency_ = consistency_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + projections_.makeImmutable(); + result.projections_ = projections_; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -632,7 +639,7 @@ public Builder mergeFrom(com.scalar.db.rpc.Get other) { if (!other.projections_.isEmpty()) { if (projections_.isEmpty()) { projections_ = other.projections_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ |= 0x00000020; } else { ensureProjectionsIsMutable(); projections_.addAll(other.projections_); @@ -927,8 +934,10 @@ public Builder mergePartitionKey(com.scalar.db.rpc.Key value) { } else { partitionKeyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (partitionKey_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1046,8 +1055,10 @@ public Builder mergeClusteringKey(com.scalar.db.rpc.Key value) { } else { clusteringKeyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (clusteringKey_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1152,12 +1163,13 @@ public Builder clearConsistency() { return this; } - private com.google.protobuf.LazyStringList projections_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList projections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureProjectionsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!projections_.isModifiable()) { projections_ = new com.google.protobuf.LazyStringArrayList(projections_); - bitField0_ |= 0x00000020; - } + } + bitField0_ |= 0x00000020; } /** * repeated string projections = 6; @@ -1165,7 +1177,8 @@ private void ensureProjectionsIsMutable() { */ public com.google.protobuf.ProtocolStringList getProjectionsList() { - return projections_.getUnmodifiableView(); + projections_.makeImmutable(); + return projections_; } /** * repeated string projections = 6; @@ -1202,6 +1215,7 @@ public Builder setProjections( if (value == null) { throw new NullPointerException(); } ensureProjectionsIsMutable(); projections_.set(index, value); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1215,6 +1229,7 @@ public Builder addProjections( if (value == null) { throw new NullPointerException(); } ensureProjectionsIsMutable(); projections_.add(value); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1228,6 +1243,7 @@ public Builder addAllProjections( ensureProjectionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, projections_); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1236,8 +1252,9 @@ public Builder addAllProjections( * @return This builder for chaining. */ public Builder clearProjections() { - projections_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + projections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020);; onChanged(); return this; } @@ -1252,6 +1269,7 @@ public Builder addProjectionsBytes( checkByteStringIsUtf8(value); ensureProjectionsIsMutable(); projections_.add(value); + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesRequest.java b/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesRequest.java index f6b6db2d72..de2ca8dca1 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new GetNamespaceTableNamesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_GetNamespaceTableNamesRequest_descriptor; @@ -191,11 +187,13 @@ public static com.scalar.db.rpc.GetNamespaceTableNamesRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.GetNamespaceTableNamesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.GetNamespaceTableNamesRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesRequestOrBuilder.java index 08babaf716..af2d50ee13 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface GetNamespaceTableNamesRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesResponse.java b/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesResponse.java index d856241758..be74ff7b88 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesResponse.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesResponse.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -16,7 +17,8 @@ private GetNamespaceTableNamesResponse(com.google.protobuf.GeneratedMessageV3.Bu super(builder); } private GetNamespaceTableNamesResponse() { - tableNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + tableNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -26,11 +28,6 @@ protected java.lang.Object newInstance( return new GetNamespaceTableNamesResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_GetNamespaceTableNamesResponse_descriptor; @@ -46,7 +43,8 @@ protected java.lang.Object newInstance( public static final int TABLE_NAMES_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList tableNames_; + private com.google.protobuf.LazyStringArrayList tableNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string table_names = 1; * @return A list containing the tableNames. @@ -195,11 +193,13 @@ public static com.scalar.db.rpc.GetNamespaceTableNamesResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.GetNamespaceTableNamesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.GetNamespaceTableNamesResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -275,8 +275,8 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - tableNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + tableNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -303,22 +303,17 @@ public com.scalar.db.rpc.GetNamespaceTableNamesResponse build() { @java.lang.Override public com.scalar.db.rpc.GetNamespaceTableNamesResponse buildPartial() { com.scalar.db.rpc.GetNamespaceTableNamesResponse result = new com.scalar.db.rpc.GetNamespaceTableNamesResponse(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.scalar.db.rpc.GetNamespaceTableNamesResponse result) { - if (((bitField0_ & 0x00000001) != 0)) { - tableNames_ = tableNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tableNames_ = tableNames_; - } - private void buildPartial0(com.scalar.db.rpc.GetNamespaceTableNamesResponse result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + tableNames_.makeImmutable(); + result.tableNames_ = tableNames_; + } } @java.lang.Override @@ -368,7 +363,7 @@ public Builder mergeFrom(com.scalar.db.rpc.GetNamespaceTableNamesResponse other) if (!other.tableNames_.isEmpty()) { if (tableNames_.isEmpty()) { tableNames_ = other.tableNames_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureTableNamesIsMutable(); tableNames_.addAll(other.tableNames_); @@ -424,12 +419,13 @@ public Builder mergeFrom( } private int bitField0_; - private com.google.protobuf.LazyStringList tableNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList tableNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTableNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!tableNames_.isModifiable()) { tableNames_ = new com.google.protobuf.LazyStringArrayList(tableNames_); - bitField0_ |= 0x00000001; - } + } + bitField0_ |= 0x00000001; } /** * repeated string table_names = 1; @@ -437,7 +433,8 @@ private void ensureTableNamesIsMutable() { */ public com.google.protobuf.ProtocolStringList getTableNamesList() { - return tableNames_.getUnmodifiableView(); + tableNames_.makeImmutable(); + return tableNames_; } /** * repeated string table_names = 1; @@ -474,6 +471,7 @@ public Builder setTableNames( if (value == null) { throw new NullPointerException(); } ensureTableNamesIsMutable(); tableNames_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -487,6 +485,7 @@ public Builder addTableNames( if (value == null) { throw new NullPointerException(); } ensureTableNamesIsMutable(); tableNames_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -500,6 +499,7 @@ public Builder addAllTableNames( ensureTableNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tableNames_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -508,8 +508,9 @@ public Builder addAllTableNames( * @return This builder for chaining. */ public Builder clearTableNames() { - tableNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + tableNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } @@ -524,6 +525,7 @@ public Builder addTableNamesBytes( checkByteStringIsUtf8(value); ensureTableNamesIsMutable(); tableNames_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesResponseOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesResponseOrBuilder.java index f89971cd5d..744841c934 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesResponseOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetNamespaceTableNamesResponseOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface GetNamespaceTableNamesResponseOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/GetOrBuilder.java index 12c01ab687..5cd25eb91f 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface GetOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetRequest.java b/rpc/src/main/java/com/scalar/db/rpc/GetRequest.java index 44cb1db2e6..f992b04902 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new GetRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_GetRequest_descriptor; @@ -43,6 +39,7 @@ protected java.lang.Object newInstance( com.scalar.db.rpc.GetRequest.class, com.scalar.db.rpc.GetRequest.Builder.class); } + private int bitField0_; public static final int GET_FIELD_NUMBER = 1; private com.scalar.db.rpc.Get get_; /** @@ -51,7 +48,7 @@ protected java.lang.Object newInstance( */ @java.lang.Override public boolean hasGet() { - return get_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Get get = 1; @@ -83,7 +80,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (get_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getGet()); } getUnknownFields().writeTo(output); @@ -95,7 +92,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (get_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getGet()); } @@ -183,11 +180,13 @@ public static com.scalar.db.rpc.GetRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.GetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.GetRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -251,13 +250,19 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.GetRequest.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getGetFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -301,11 +306,14 @@ public com.scalar.db.rpc.GetRequest buildPartial() { private void buildPartial0(com.scalar.db.rpc.GetRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.get_ = getBuilder_ == null ? get_ : getBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -471,8 +479,10 @@ public Builder mergeGet(com.scalar.db.rpc.Get value) { } else { getBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (get_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/GetRequestOrBuilder.java index ae0431beef..1cf8feff19 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface GetRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetResponse.java b/rpc/src/main/java/com/scalar/db/rpc/GetResponse.java index 8ff5578b9d..cd1cc5cfe6 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetResponse.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetResponse.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new GetResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_GetResponse_descriptor; @@ -43,6 +39,7 @@ protected java.lang.Object newInstance( com.scalar.db.rpc.GetResponse.class, com.scalar.db.rpc.GetResponse.Builder.class); } + private int bitField0_; public static final int RESULT_FIELD_NUMBER = 1; private com.scalar.db.rpc.Result result_; /** @@ -51,7 +48,7 @@ protected java.lang.Object newInstance( */ @java.lang.Override public boolean hasResult() { - return result_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Result result = 1; @@ -83,7 +80,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (result_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getResult()); } getUnknownFields().writeTo(output); @@ -95,7 +92,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (result_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResult()); } @@ -183,11 +180,13 @@ public static com.scalar.db.rpc.GetResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.GetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.GetResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -251,13 +250,19 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.GetResponse.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -301,11 +306,14 @@ public com.scalar.db.rpc.GetResponse buildPartial() { private void buildPartial0(com.scalar.db.rpc.GetResponse result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -471,8 +479,10 @@ public Builder mergeResult(com.scalar.db.rpc.Result value) { } else { resultBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (result_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetResponseOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/GetResponseOrBuilder.java index a71f43384a..23e6b131d8 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetResponseOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetResponseOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface GetResponseOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataRequest.java b/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataRequest.java index d5364636db..e91850067c 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -27,11 +28,6 @@ protected java.lang.Object newInstance( return new GetTableMetadataRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_GetTableMetadataRequest_descriptor; @@ -241,11 +237,13 @@ public static com.scalar.db.rpc.GetTableMetadataRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.GetTableMetadataRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.GetTableMetadataRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataRequestOrBuilder.java index 66da5a5491..6261ccc34c 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface GetTableMetadataRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataResponse.java b/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataResponse.java index cd44252366..0147abaae1 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataResponse.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataResponse.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new GetTableMetadataResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_GetTableMetadataResponse_descriptor; @@ -43,6 +39,7 @@ protected java.lang.Object newInstance( com.scalar.db.rpc.GetTableMetadataResponse.class, com.scalar.db.rpc.GetTableMetadataResponse.Builder.class); } + private int bitField0_; public static final int TABLE_METADATA_FIELD_NUMBER = 1; private com.scalar.db.rpc.TableMetadata tableMetadata_; /** @@ -51,7 +48,7 @@ protected java.lang.Object newInstance( */ @java.lang.Override public boolean hasTableMetadata() { - return tableMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.TableMetadata table_metadata = 1; @@ -83,7 +80,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (tableMetadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTableMetadata()); } getUnknownFields().writeTo(output); @@ -95,7 +92,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (tableMetadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTableMetadata()); } @@ -183,11 +180,13 @@ public static com.scalar.db.rpc.GetTableMetadataResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.GetTableMetadataResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.GetTableMetadataResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -251,13 +250,19 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.GetTableMetadataResponse.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTableMetadataFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -301,11 +306,14 @@ public com.scalar.db.rpc.GetTableMetadataResponse buildPartial() { private void buildPartial0(com.scalar.db.rpc.GetTableMetadataResponse result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tableMetadata_ = tableMetadataBuilder_ == null ? tableMetadata_ : tableMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -471,8 +479,10 @@ public Builder mergeTableMetadata(com.scalar.db.rpc.TableMetadata value) { } else { tableMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (tableMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataResponseOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataResponseOrBuilder.java index 5be67316fe..63361e522a 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataResponseOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetTableMetadataResponseOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface GetTableMetadataResponseOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateRequest.java b/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateRequest.java index 658841af91..33f4222d31 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new GetTransactionStateRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_GetTransactionStateRequest_descriptor; @@ -191,11 +187,13 @@ public static com.scalar.db.rpc.GetTransactionStateRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.GetTransactionStateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.GetTransactionStateRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateRequestOrBuilder.java index 8f5916e132..59adbb2691 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface GetTransactionStateRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateResponse.java b/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateResponse.java index dc1a5b04a6..7388c15dcf 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateResponse.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateResponse.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new GetTransactionStateResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_GetTransactionStateResponse_descriptor; @@ -170,11 +166,13 @@ public static com.scalar.db.rpc.GetTransactionStateResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.GetTransactionStateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.GetTransactionStateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateResponseOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateResponseOrBuilder.java index f676bdc925..3742b98147 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateResponseOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/GetTransactionStateResponseOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface GetTransactionStateResponseOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/Key.java b/rpc/src/main/java/com/scalar/db/rpc/Key.java index 050be0d6dc..65f670a7a6 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/Key.java +++ b/rpc/src/main/java/com/scalar/db/rpc/Key.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -27,11 +28,6 @@ protected java.lang.Object newInstance( return new Key(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_Key_descriptor; @@ -251,11 +247,13 @@ public static com.scalar.db.rpc.Key parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.Key parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.Key parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/KeyOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/KeyOrBuilder.java index db52e100ff..03d24c4547 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/KeyOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/KeyOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface KeyOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/MutateCondition.java b/rpc/src/main/java/com/scalar/db/rpc/MutateCondition.java index bd7473952b..90dadcfe7f 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/MutateCondition.java +++ b/rpc/src/main/java/com/scalar/db/rpc/MutateCondition.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -27,11 +28,6 @@ protected java.lang.Object newInstance( return new MutateCondition(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_MutateCondition_descriptor; @@ -360,11 +356,13 @@ public static com.scalar.db.rpc.MutateCondition parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.MutateCondition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.MutateCondition parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/MutateConditionOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/MutateConditionOrBuilder.java index dbddc4cd29..1cac0f7d72 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/MutateConditionOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/MutateConditionOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface MutateConditionOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/MutateRequest.java b/rpc/src/main/java/com/scalar/db/rpc/MutateRequest.java index bde502921b..6826f3f190 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/MutateRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/MutateRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new MutateRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_MutateRequest_descriptor; @@ -196,11 +192,13 @@ public static com.scalar.db.rpc.MutateRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.MutateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.MutateRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/MutateRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/MutateRequestOrBuilder.java index a55fa14e9e..2f3d6caa01 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/MutateRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/MutateRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface MutateRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/Mutation.java b/rpc/src/main/java/com/scalar/db/rpc/Mutation.java index 7768b3568b..3371912d98 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/Mutation.java +++ b/rpc/src/main/java/com/scalar/db/rpc/Mutation.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -31,11 +32,6 @@ protected java.lang.Object newInstance( return new Mutation(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_Mutation_descriptor; @@ -157,6 +153,7 @@ private Type(int value) { // @@protoc_insertion_point(enum_scope:rpc.Mutation.Type) } + private int bitField0_; public static final int NAMESPACE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; @@ -243,7 +240,7 @@ public java.lang.String getTable() { */ @java.lang.Override public boolean hasPartitionKey() { - return partitionKey_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Key partition_key = 3; @@ -269,7 +266,7 @@ public com.scalar.db.rpc.KeyOrBuilder getPartitionKeyOrBuilder() { */ @java.lang.Override public boolean hasClusteringKey() { - return clusteringKey_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * .rpc.Key clustering_key = 4; @@ -313,7 +310,7 @@ public com.scalar.db.rpc.KeyOrBuilder getClusteringKeyOrBuilder() { */ @java.lang.Override public boolean hasCondition() { - return condition_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * .rpc.MutateCondition condition = 6; @@ -491,16 +488,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, table_); } - if (partitionKey_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getPartitionKey()); } - if (clusteringKey_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getClusteringKey()); } if (consistency_ != com.scalar.db.rpc.Consistency.CONSISTENCY_SEQUENTIAL.getNumber()) { output.writeEnum(5, consistency_); } - if (condition_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getCondition()); } if (type_ != com.scalar.db.rpc.Mutation.Type.PUT.getNumber()) { @@ -527,11 +524,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); } - if (partitionKey_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPartitionKey()); } - if (clusteringKey_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getClusteringKey()); } @@ -539,7 +536,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, consistency_); } - if (condition_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCondition()); } @@ -683,11 +680,13 @@ public static com.scalar.db.rpc.Mutation parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.Mutation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.Mutation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -751,13 +750,23 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.Mutation.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPartitionKeyFieldBuilder(); + getClusteringKeyFieldBuilder(); + getConditionFieldBuilder(); + getValueFieldBuilder(); + getColumnsFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -857,15 +866,18 @@ private void buildPartial0(com.scalar.db.rpc.Mutation result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.table_ = table_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionKey_ = partitionKeyBuilder_ == null ? partitionKey_ : partitionKeyBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.clusteringKey_ = clusteringKeyBuilder_ == null ? clusteringKey_ : clusteringKeyBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.consistency_ = consistency_; @@ -874,10 +886,12 @@ private void buildPartial0(com.scalar.db.rpc.Mutation result) { result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.type_ = type_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1321,8 +1335,10 @@ public Builder mergePartitionKey(com.scalar.db.rpc.Key value) { } else { partitionKeyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (partitionKey_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1440,8 +1456,10 @@ public Builder mergeClusteringKey(com.scalar.db.rpc.Key value) { } else { clusteringKeyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (clusteringKey_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1612,8 +1630,10 @@ public Builder mergeCondition(com.scalar.db.rpc.MutateCondition value) { } else { conditionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (condition_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** diff --git a/rpc/src/main/java/com/scalar/db/rpc/MutationOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/MutationOrBuilder.java index bb6d17b7e7..ff5a281617 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/MutationOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/MutationOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface MutationOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsRequest.java b/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsRequest.java index 4b5f1481df..9b71702f30 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new NamespaceExistsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_NamespaceExistsRequest_descriptor; @@ -191,11 +187,13 @@ public static com.scalar.db.rpc.NamespaceExistsRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.NamespaceExistsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.NamespaceExistsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsRequestOrBuilder.java index 5e01052d53..f9a21ee05b 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface NamespaceExistsRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsResponse.java b/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsResponse.java index cb704a9619..c0d1b6111c 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsResponse.java +++ b/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsResponse.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new NamespaceExistsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_NamespaceExistsResponse_descriptor; @@ -164,11 +160,13 @@ public static com.scalar.db.rpc.NamespaceExistsResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.NamespaceExistsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.NamespaceExistsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -393,7 +391,7 @@ public boolean getExists() { * @return This builder for chaining. */ public Builder setExists(boolean value) { - + exists_ = value; bitField0_ |= 0x00000001; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsResponseOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsResponseOrBuilder.java index 3c038fb21e..b380923f7a 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsResponseOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/NamespaceExistsResponseOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface NamespaceExistsResponseOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/Order.java b/rpc/src/main/java/com/scalar/db/rpc/Order.java index 4551dd3589..a7066a7352 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/Order.java +++ b/rpc/src/main/java/com/scalar/db/rpc/Order.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** diff --git a/rpc/src/main/java/com/scalar/db/rpc/Ordering.java b/rpc/src/main/java/com/scalar/db/rpc/Ordering.java index 5757cdb8be..61e85b0292 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/Ordering.java +++ b/rpc/src/main/java/com/scalar/db/rpc/Ordering.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -27,11 +28,6 @@ protected java.lang.Object newInstance( return new Ordering(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_Ordering_descriptor; @@ -220,11 +216,13 @@ public static com.scalar.db.rpc.Ordering parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.Ordering parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.Ordering parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/OrderingOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/OrderingOrBuilder.java index 5a10640ed4..a208d48ba2 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/OrderingOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/OrderingOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface OrderingOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/RepairCoordinatorTablesRequest.java b/rpc/src/main/java/com/scalar/db/rpc/RepairCoordinatorTablesRequest.java index 710d130240..b047b47a25 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/RepairCoordinatorTablesRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/RepairCoordinatorTablesRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new RepairCoordinatorTablesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_RepairCoordinatorTablesRequest_descriptor; @@ -37,7 +33,7 @@ protected java.lang.Object newInstance( @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: @@ -254,11 +250,13 @@ public static com.scalar.db.rpc.RepairCoordinatorTablesRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.RepairCoordinatorTablesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.RepairCoordinatorTablesRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -313,7 +311,7 @@ public static final class Builder extends } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: @@ -324,7 +322,7 @@ protected com.google.protobuf.MapField internalGetMapField( } } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 1: diff --git a/rpc/src/main/java/com/scalar/db/rpc/RepairCoordinatorTablesRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/RepairCoordinatorTablesRequestOrBuilder.java index 5d27b5ad5d..44ed87db26 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/RepairCoordinatorTablesRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/RepairCoordinatorTablesRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface RepairCoordinatorTablesRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/RepairTableRequest.java b/rpc/src/main/java/com/scalar/db/rpc/RepairTableRequest.java index ad20f737bd..1d59d4217f 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/RepairTableRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/RepairTableRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -27,11 +28,6 @@ protected java.lang.Object newInstance( return new RepairTableRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_RepairTableRequest_descriptor; @@ -39,7 +35,7 @@ protected java.lang.Object newInstance( @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: @@ -57,6 +53,7 @@ protected com.google.protobuf.MapField internalGetMapField( com.scalar.db.rpc.RepairTableRequest.class, com.scalar.db.rpc.RepairTableRequest.Builder.class); } + private int bitField0_; public static final int NAMESPACE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; @@ -143,7 +140,7 @@ public java.lang.String getTable() { */ @java.lang.Override public boolean hasTableMetadata() { - return tableMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.TableMetadata table_metadata = 3; @@ -260,7 +257,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, table_); } - if (tableMetadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getTableMetadata()); } com.google.protobuf.GeneratedMessageV3 @@ -284,7 +281,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); } - if (tableMetadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTableMetadata()); } @@ -396,11 +393,13 @@ public static com.scalar.db.rpc.RepairTableRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.RepairTableRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.RepairTableRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -455,7 +454,7 @@ public static final class Builder extends } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: @@ -466,7 +465,7 @@ protected com.google.protobuf.MapField internalGetMapField( } } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 4: @@ -486,13 +485,19 @@ protected com.google.protobuf.MapField internalGetMutableMapField( // Construct using com.scalar.db.rpc.RepairTableRequest.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTableMetadataFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -545,15 +550,18 @@ private void buildPartial0(com.scalar.db.rpc.RepairTableRequest result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.table_ = table_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.tableMetadata_ = tableMetadataBuilder_ == null ? tableMetadata_ : tableMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.options_ = internalGetOptions(); result.options_.makeImmutable(); } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -895,8 +903,10 @@ public Builder mergeTableMetadata(com.scalar.db.rpc.TableMetadata value) { } else { tableMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (tableMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/rpc/src/main/java/com/scalar/db/rpc/RepairTableRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/RepairTableRequestOrBuilder.java index 958696a5be..cac6ad7cab 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/RepairTableRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/RepairTableRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface RepairTableRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/Result.java b/rpc/src/main/java/com/scalar/db/rpc/Result.java index e668d7f559..46abc8d3eb 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/Result.java +++ b/rpc/src/main/java/com/scalar/db/rpc/Result.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -27,11 +28,6 @@ protected java.lang.Object newInstance( return new Result(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_Result_descriptor; @@ -251,11 +247,13 @@ public static com.scalar.db.rpc.Result parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.Result parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/ResultOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/ResultOrBuilder.java index 818bf61724..bacb7007d9 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/ResultOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/ResultOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface ResultOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/RollbackRequest.java b/rpc/src/main/java/com/scalar/db/rpc/RollbackRequest.java index 12a1fad40a..f1c288e0de 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/RollbackRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/RollbackRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new RollbackRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_RollbackRequest_descriptor; @@ -191,11 +187,13 @@ public static com.scalar.db.rpc.RollbackRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.RollbackRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.RollbackRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/RollbackRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/RollbackRequestOrBuilder.java index c290fc00f6..ff8074660f 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/RollbackRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/RollbackRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface RollbackRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/RollbackResponse.java b/rpc/src/main/java/com/scalar/db/rpc/RollbackResponse.java index f80928c063..cea1ec30c7 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/RollbackResponse.java +++ b/rpc/src/main/java/com/scalar/db/rpc/RollbackResponse.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new RollbackResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_RollbackResponse_descriptor; @@ -170,11 +166,13 @@ public static com.scalar.db.rpc.RollbackResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.RollbackResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.RollbackResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/RollbackResponseOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/RollbackResponseOrBuilder.java index d874f8f9fd..e2ed801303 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/RollbackResponseOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/RollbackResponseOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface RollbackResponseOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/ScalarDbProto.java b/rpc/src/main/java/com/scalar/db/rpc/ScalarDbProto.java index f457c2d9c3..f3b3db3255 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/ScalarDbProto.java +++ b/rpc/src/main/java/com/scalar/db/rpc/ScalarDbProto.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public final class ScalarDbProto { @@ -777,13 +778,13 @@ public static void registerAllExtensions( internal_static_rpc_Value_TextValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_rpc_Value_TextValue_descriptor, - new java.lang.String[] { "Value", "Value", }); + new java.lang.String[] { "Value", }); internal_static_rpc_Value_BlobValue_descriptor = internal_static_rpc_Value_descriptor.getNestedTypes().get(1); internal_static_rpc_Value_BlobValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_rpc_Value_BlobValue_descriptor, - new java.lang.String[] { "Value", "Value", }); + new java.lang.String[] { "Value", }); internal_static_rpc_Column_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_rpc_Column_fieldAccessorTable = new @@ -855,7 +856,7 @@ public static void registerAllExtensions( internal_static_rpc_ScanRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_rpc_ScanRequest_descriptor, - new java.lang.String[] { "Scan", "FetchCount", "FetchCount", }); + new java.lang.String[] { "Scan", "FetchCount", }); internal_static_rpc_ScanResponse_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_rpc_ScanResponse_fieldAccessorTable = new @@ -1011,13 +1012,13 @@ public static void registerAllExtensions( internal_static_rpc_TransactionRequest_BeginRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_rpc_TransactionRequest_BeginRequest_descriptor, - new java.lang.String[] { "TransactionId", "TransactionId", }); + new java.lang.String[] { "TransactionId", }); internal_static_rpc_TransactionRequest_StartRequest_descriptor = internal_static_rpc_TransactionRequest_descriptor.getNestedTypes().get(1); internal_static_rpc_TransactionRequest_StartRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_rpc_TransactionRequest_StartRequest_descriptor, - new java.lang.String[] { "TransactionId", "TransactionId", }); + new java.lang.String[] { "TransactionId", }); internal_static_rpc_TransactionRequest_GetRequest_descriptor = internal_static_rpc_TransactionRequest_descriptor.getNestedTypes().get(2); internal_static_rpc_TransactionRequest_GetRequest_fieldAccessorTable = new @@ -1137,13 +1138,13 @@ public static void registerAllExtensions( internal_static_rpc_TwoPhaseCommitTransactionRequest_BeginRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_rpc_TwoPhaseCommitTransactionRequest_BeginRequest_descriptor, - new java.lang.String[] { "TransactionId", "TransactionId", }); + new java.lang.String[] { "TransactionId", }); internal_static_rpc_TwoPhaseCommitTransactionRequest_StartRequest_descriptor = internal_static_rpc_TwoPhaseCommitTransactionRequest_descriptor.getNestedTypes().get(1); internal_static_rpc_TwoPhaseCommitTransactionRequest_StartRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_rpc_TwoPhaseCommitTransactionRequest_StartRequest_descriptor, - new java.lang.String[] { "TransactionId", "TransactionId", }); + new java.lang.String[] { "TransactionId", }); internal_static_rpc_TwoPhaseCommitTransactionRequest_JoinRequest_descriptor = internal_static_rpc_TwoPhaseCommitTransactionRequest_descriptor.getNestedTypes().get(2); internal_static_rpc_TwoPhaseCommitTransactionRequest_JoinRequest_fieldAccessorTable = new diff --git a/rpc/src/main/java/com/scalar/db/rpc/Scan.java b/rpc/src/main/java/com/scalar/db/rpc/Scan.java index f24297d968..fd022e8130 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/Scan.java +++ b/rpc/src/main/java/com/scalar/db/rpc/Scan.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -19,7 +20,8 @@ private Scan() { namespace_ = ""; table_ = ""; consistency_ = 0; - projections_ = com.google.protobuf.LazyStringArrayList.EMPTY; + projections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); orderings_ = java.util.Collections.emptyList(); } @@ -30,11 +32,6 @@ protected java.lang.Object newInstance( return new Scan(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_Scan_descriptor; @@ -48,6 +45,7 @@ protected java.lang.Object newInstance( com.scalar.db.rpc.Scan.class, com.scalar.db.rpc.Scan.Builder.class); } + private int bitField0_; public static final int NAMESPACE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; @@ -134,7 +132,7 @@ public java.lang.String getTable() { */ @java.lang.Override public boolean hasPartitionKey() { - return partitionKey_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Key partition_key = 3; @@ -172,7 +170,8 @@ public com.scalar.db.rpc.KeyOrBuilder getPartitionKeyOrBuilder() { public static final int PROJECTIONS_FIELD_NUMBER = 5; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList projections_; + private com.google.protobuf.LazyStringArrayList projections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string projections = 5; * @return A list containing the projections. @@ -214,7 +213,7 @@ public java.lang.String getProjections(int index) { */ @java.lang.Override public boolean hasStartClusteringKey() { - return startClusteringKey_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * .rpc.Key start_clustering_key = 6; @@ -251,7 +250,7 @@ public boolean getStartInclusive() { */ @java.lang.Override public boolean hasEndClusteringKey() { - return endClusteringKey_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * .rpc.Key end_clustering_key = 8; @@ -352,7 +351,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, table_); } - if (partitionKey_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getPartitionKey()); } if (consistency_ != com.scalar.db.rpc.Consistency.CONSISTENCY_SEQUENTIAL.getNumber()) { @@ -361,13 +360,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < projections_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, projections_.getRaw(i)); } - if (startClusteringKey_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getStartClusteringKey()); } if (startInclusive_ != false) { output.writeBool(7, startInclusive_); } - if (endClusteringKey_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getEndClusteringKey()); } if (endInclusive_ != false) { @@ -394,7 +393,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); } - if (partitionKey_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPartitionKey()); } @@ -410,7 +409,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getProjectionsList().size(); } - if (startClusteringKey_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getStartClusteringKey()); } @@ -418,7 +417,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, startInclusive_); } - if (endClusteringKey_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getEndClusteringKey()); } @@ -573,11 +572,13 @@ public static com.scalar.db.rpc.Scan parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.Scan parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.Scan parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -641,13 +642,22 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.Scan.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPartitionKeyFieldBuilder(); + getStartClusteringKeyFieldBuilder(); + getEndClusteringKeyFieldBuilder(); + getOrderingsFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -661,8 +671,8 @@ public Builder clear() { partitionKeyBuilder_ = null; } consistency_ = 0; - projections_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + projections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); startClusteringKey_ = null; if (startClusteringKeyBuilder_ != null) { startClusteringKeyBuilder_.dispose(); @@ -716,11 +726,6 @@ public com.scalar.db.rpc.Scan buildPartial() { } private void buildPartialRepeatedFields(com.scalar.db.rpc.Scan result) { - if (((bitField0_ & 0x00000010) != 0)) { - projections_ = projections_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.projections_ = projections_; if (orderingsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { orderings_ = java.util.Collections.unmodifiableList(orderings_); @@ -740,18 +745,25 @@ private void buildPartial0(com.scalar.db.rpc.Scan result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.table_ = table_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionKey_ = partitionKeyBuilder_ == null ? partitionKey_ : partitionKeyBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.consistency_ = consistency_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + projections_.makeImmutable(); + result.projections_ = projections_; + } if (((from_bitField0_ & 0x00000020) != 0)) { result.startClusteringKey_ = startClusteringKeyBuilder_ == null ? startClusteringKey_ : startClusteringKeyBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.startInclusive_ = startInclusive_; @@ -760,6 +772,7 @@ private void buildPartial0(com.scalar.db.rpc.Scan result) { result.endClusteringKey_ = endClusteringKeyBuilder_ == null ? endClusteringKey_ : endClusteringKeyBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000100) != 0)) { result.endInclusive_ = endInclusive_; @@ -767,6 +780,7 @@ private void buildPartial0(com.scalar.db.rpc.Scan result) { if (((from_bitField0_ & 0x00000400) != 0)) { result.limit_ = limit_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -832,7 +846,7 @@ public Builder mergeFrom(com.scalar.db.rpc.Scan other) { if (!other.projections_.isEmpty()) { if (projections_.isEmpty()) { projections_ = other.projections_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ |= 0x00000010; } else { ensureProjectionsIsMutable(); projections_.addAll(other.projections_); @@ -1203,8 +1217,10 @@ public Builder mergePartitionKey(com.scalar.db.rpc.Key value) { } else { partitionKeyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (partitionKey_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1309,12 +1325,13 @@ public Builder clearConsistency() { return this; } - private com.google.protobuf.LazyStringList projections_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList projections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureProjectionsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!projections_.isModifiable()) { projections_ = new com.google.protobuf.LazyStringArrayList(projections_); - bitField0_ |= 0x00000010; - } + } + bitField0_ |= 0x00000010; } /** * repeated string projections = 5; @@ -1322,7 +1339,8 @@ private void ensureProjectionsIsMutable() { */ public com.google.protobuf.ProtocolStringList getProjectionsList() { - return projections_.getUnmodifiableView(); + projections_.makeImmutable(); + return projections_; } /** * repeated string projections = 5; @@ -1359,6 +1377,7 @@ public Builder setProjections( if (value == null) { throw new NullPointerException(); } ensureProjectionsIsMutable(); projections_.set(index, value); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1372,6 +1391,7 @@ public Builder addProjections( if (value == null) { throw new NullPointerException(); } ensureProjectionsIsMutable(); projections_.add(value); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1385,6 +1405,7 @@ public Builder addAllProjections( ensureProjectionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, projections_); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1393,8 +1414,9 @@ public Builder addAllProjections( * @return This builder for chaining. */ public Builder clearProjections() { - projections_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + projections_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } @@ -1409,6 +1431,7 @@ public Builder addProjectionsBytes( checkByteStringIsUtf8(value); ensureProjectionsIsMutable(); projections_.add(value); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1479,8 +1502,10 @@ public Builder mergeStartClusteringKey(com.scalar.db.rpc.Key value) { } else { startClusteringKeyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (startClusteringKey_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** @@ -1547,7 +1572,7 @@ public boolean getStartInclusive() { * @return This builder for chaining. */ public Builder setStartInclusive(boolean value) { - + startInclusive_ = value; bitField0_ |= 0x00000040; onChanged(); @@ -1630,8 +1655,10 @@ public Builder mergeEndClusteringKey(com.scalar.db.rpc.Key value) { } else { endClusteringKeyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (endClusteringKey_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -1698,7 +1725,7 @@ public boolean getEndInclusive() { * @return This builder for chaining. */ public Builder setEndInclusive(boolean value) { - + endInclusive_ = value; bitField0_ |= 0x00000100; onChanged(); @@ -1970,7 +1997,7 @@ public int getLimit() { * @return This builder for chaining. */ public Builder setLimit(int value) { - + limit_ = value; bitField0_ |= 0x00000400; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/ScanOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/ScanOrBuilder.java index ab4260459c..eb58c4e907 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/ScanOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/ScanOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface ScanOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/ScanRequest.java b/rpc/src/main/java/com/scalar/db/rpc/ScanRequest.java index fc5760340a..981c15826c 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/ScanRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/ScanRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new ScanRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_ScanRequest_descriptor; @@ -52,7 +48,7 @@ protected java.lang.Object newInstance( */ @java.lang.Override public boolean hasScan() { - return scan_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Scan scan = 1; @@ -78,7 +74,7 @@ public com.scalar.db.rpc.ScanOrBuilder getScanOrBuilder() { */ @java.lang.Override public boolean hasFetchCount() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 fetch_count = 2; @@ -103,10 +99,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (scan_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getScan()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, fetchCount_); } getUnknownFields().writeTo(output); @@ -118,11 +114,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (scan_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getScan()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, fetchCount_); } @@ -219,11 +215,13 @@ public static com.scalar.db.rpc.ScanRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.ScanRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.ScanRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -287,13 +285,19 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.ScanRequest.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getScanFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -338,15 +342,16 @@ public com.scalar.db.rpc.ScanRequest buildPartial() { private void buildPartial0(com.scalar.db.rpc.ScanRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.scan_ = scanBuilder_ == null ? scan_ : scanBuilder_.build(); + to_bitField0_ |= 0x00000001; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.fetchCount_ = fetchCount_; - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -522,8 +527,10 @@ public Builder mergeScan(com.scalar.db.rpc.Scan value) { } else { scanBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (scan_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -598,7 +605,7 @@ public int getFetchCount() { * @return This builder for chaining. */ public Builder setFetchCount(int value) { - + fetchCount_ = value; bitField0_ |= 0x00000002; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/ScanRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/ScanRequestOrBuilder.java index a58f5b1e24..aa9a3fb877 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/ScanRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/ScanRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface ScanRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/ScanResponse.java b/rpc/src/main/java/com/scalar/db/rpc/ScanResponse.java index eea387bb85..bf58285b52 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/ScanResponse.java +++ b/rpc/src/main/java/com/scalar/db/rpc/ScanResponse.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -26,11 +27,6 @@ protected java.lang.Object newInstance( return new ScanResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_ScanResponse_descriptor; @@ -219,11 +215,13 @@ public static com.scalar.db.rpc.ScanResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.ScanResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.ScanResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -747,7 +745,7 @@ public boolean getHasMoreResults() { * @return This builder for chaining. */ public Builder setHasMoreResults(boolean value) { - + hasMoreResults_ = value; bitField0_ |= 0x00000002; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/ScanResponseOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/ScanResponseOrBuilder.java index 087e20bc0d..077921ba19 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/ScanResponseOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/ScanResponseOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface ScanResponseOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/TableMetadata.java b/rpc/src/main/java/com/scalar/db/rpc/TableMetadata.java index 574bd465ec..3ed55c2fa2 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TableMetadata.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TableMetadata.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -16,9 +17,12 @@ private TableMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } private TableMetadata() { - partitionKeyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - clusteringKeyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - secondaryIndexNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + partitionKeyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + clusteringKeyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + secondaryIndexNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -28,11 +32,6 @@ protected java.lang.Object newInstance( return new TableMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TableMetadata_descriptor; @@ -40,7 +39,7 @@ protected java.lang.Object newInstance( @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: @@ -201,7 +200,8 @@ public int getColumnsValueOrThrow( public static final int PARTITION_KEY_NAMES_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList partitionKeyNames_; + private com.google.protobuf.LazyStringArrayList partitionKeyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string partition_key_names = 2; * @return A list containing the partitionKeyNames. @@ -237,7 +237,8 @@ public java.lang.String getPartitionKeyNames(int index) { public static final int CLUSTERING_KEY_NAMES_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList clusteringKeyNames_; + private com.google.protobuf.LazyStringArrayList clusteringKeyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string clustering_key_names = 3; * @return A list containing the clusteringKeyNames. @@ -412,7 +413,8 @@ public int getClusteringOrdersValueOrThrow( public static final int SECONDARY_INDEX_NAMES_FIELD_NUMBER = 5; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList secondaryIndexNames_; + private com.google.protobuf.LazyStringArrayList secondaryIndexNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string secondary_index_names = 5; * @return A list containing the secondaryIndexNames. @@ -639,11 +641,13 @@ public static com.scalar.db.rpc.TableMetadata parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TableMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TableMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -698,7 +702,7 @@ public static final class Builder extends } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: @@ -711,7 +715,7 @@ protected com.google.protobuf.MapField internalGetMapField( } } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 1: @@ -746,13 +750,13 @@ public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableColumns().clear(); - partitionKeyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - clusteringKeyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + partitionKeyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + clusteringKeyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableClusteringOrders().clear(); - secondaryIndexNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + secondaryIndexNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -779,40 +783,33 @@ public com.scalar.db.rpc.TableMetadata build() { @java.lang.Override public com.scalar.db.rpc.TableMetadata buildPartial() { com.scalar.db.rpc.TableMetadata result = new com.scalar.db.rpc.TableMetadata(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.scalar.db.rpc.TableMetadata result) { - if (((bitField0_ & 0x00000002) != 0)) { - partitionKeyNames_ = partitionKeyNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.partitionKeyNames_ = partitionKeyNames_; - if (((bitField0_ & 0x00000004) != 0)) { - clusteringKeyNames_ = clusteringKeyNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.clusteringKeyNames_ = clusteringKeyNames_; - if (((bitField0_ & 0x00000010) != 0)) { - secondaryIndexNames_ = secondaryIndexNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.secondaryIndexNames_ = secondaryIndexNames_; - } - private void buildPartial0(com.scalar.db.rpc.TableMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.columns_ = internalGetColumns(); result.columns_.makeImmutable(); } + if (((from_bitField0_ & 0x00000002) != 0)) { + partitionKeyNames_.makeImmutable(); + result.partitionKeyNames_ = partitionKeyNames_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + clusteringKeyNames_.makeImmutable(); + result.clusteringKeyNames_ = clusteringKeyNames_; + } if (((from_bitField0_ & 0x00000008) != 0)) { result.clusteringOrders_ = internalGetClusteringOrders(); result.clusteringOrders_.makeImmutable(); } + if (((from_bitField0_ & 0x00000010) != 0)) { + secondaryIndexNames_.makeImmutable(); + result.secondaryIndexNames_ = secondaryIndexNames_; + } } @java.lang.Override @@ -865,7 +862,7 @@ public Builder mergeFrom(com.scalar.db.rpc.TableMetadata other) { if (!other.partitionKeyNames_.isEmpty()) { if (partitionKeyNames_.isEmpty()) { partitionKeyNames_ = other.partitionKeyNames_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensurePartitionKeyNamesIsMutable(); partitionKeyNames_.addAll(other.partitionKeyNames_); @@ -875,7 +872,7 @@ public Builder mergeFrom(com.scalar.db.rpc.TableMetadata other) { if (!other.clusteringKeyNames_.isEmpty()) { if (clusteringKeyNames_.isEmpty()) { clusteringKeyNames_ = other.clusteringKeyNames_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureClusteringKeyNamesIsMutable(); clusteringKeyNames_.addAll(other.clusteringKeyNames_); @@ -888,7 +885,7 @@ public Builder mergeFrom(com.scalar.db.rpc.TableMetadata other) { if (!other.secondaryIndexNames_.isEmpty()) { if (secondaryIndexNames_.isEmpty()) { secondaryIndexNames_ = other.secondaryIndexNames_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ |= 0x00000010; } else { ensureSecondaryIndexNamesIsMutable(); secondaryIndexNames_.addAll(other.secondaryIndexNames_); @@ -1132,7 +1129,7 @@ public Builder putColumns( java.lang.String key, com.scalar.db.rpc.DataType value) { if (key == null) { throw new NullPointerException("map key"); } - + internalGetMutableColumns().getMutableMap() .put(key, columnsValueConverter.doBackward(value)); bitField0_ |= 0x00000001; @@ -1165,7 +1162,7 @@ public Builder putColumnsValue( java.lang.String key, int value) { if (key == null) { throw new NullPointerException("map key"); } - + internalGetMutableColumns().getMutableMap() .put(key, value); bitField0_ |= 0x00000001; @@ -1182,12 +1179,13 @@ public Builder putAllColumnsValue( return this; } - private com.google.protobuf.LazyStringList partitionKeyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList partitionKeyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePartitionKeyNamesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!partitionKeyNames_.isModifiable()) { partitionKeyNames_ = new com.google.protobuf.LazyStringArrayList(partitionKeyNames_); - bitField0_ |= 0x00000002; - } + } + bitField0_ |= 0x00000002; } /** * repeated string partition_key_names = 2; @@ -1195,7 +1193,8 @@ private void ensurePartitionKeyNamesIsMutable() { */ public com.google.protobuf.ProtocolStringList getPartitionKeyNamesList() { - return partitionKeyNames_.getUnmodifiableView(); + partitionKeyNames_.makeImmutable(); + return partitionKeyNames_; } /** * repeated string partition_key_names = 2; @@ -1232,6 +1231,7 @@ public Builder setPartitionKeyNames( if (value == null) { throw new NullPointerException(); } ensurePartitionKeyNamesIsMutable(); partitionKeyNames_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1245,6 +1245,7 @@ public Builder addPartitionKeyNames( if (value == null) { throw new NullPointerException(); } ensurePartitionKeyNamesIsMutable(); partitionKeyNames_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1258,6 +1259,7 @@ public Builder addAllPartitionKeyNames( ensurePartitionKeyNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, partitionKeyNames_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1266,8 +1268,9 @@ public Builder addAllPartitionKeyNames( * @return This builder for chaining. */ public Builder clearPartitionKeyNames() { - partitionKeyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + partitionKeyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } @@ -1282,16 +1285,18 @@ public Builder addPartitionKeyNamesBytes( checkByteStringIsUtf8(value); ensurePartitionKeyNamesIsMutable(); partitionKeyNames_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } - private com.google.protobuf.LazyStringList clusteringKeyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList clusteringKeyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureClusteringKeyNamesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!clusteringKeyNames_.isModifiable()) { clusteringKeyNames_ = new com.google.protobuf.LazyStringArrayList(clusteringKeyNames_); - bitField0_ |= 0x00000004; - } + } + bitField0_ |= 0x00000004; } /** * repeated string clustering_key_names = 3; @@ -1299,7 +1304,8 @@ private void ensureClusteringKeyNamesIsMutable() { */ public com.google.protobuf.ProtocolStringList getClusteringKeyNamesList() { - return clusteringKeyNames_.getUnmodifiableView(); + clusteringKeyNames_.makeImmutable(); + return clusteringKeyNames_; } /** * repeated string clustering_key_names = 3; @@ -1336,6 +1342,7 @@ public Builder setClusteringKeyNames( if (value == null) { throw new NullPointerException(); } ensureClusteringKeyNamesIsMutable(); clusteringKeyNames_.set(index, value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1349,6 +1356,7 @@ public Builder addClusteringKeyNames( if (value == null) { throw new NullPointerException(); } ensureClusteringKeyNamesIsMutable(); clusteringKeyNames_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1362,6 +1370,7 @@ public Builder addAllClusteringKeyNames( ensureClusteringKeyNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, clusteringKeyNames_); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1370,8 +1379,9 @@ public Builder addAllClusteringKeyNames( * @return This builder for chaining. */ public Builder clearClusteringKeyNames() { - clusteringKeyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + clusteringKeyNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } @@ -1386,6 +1396,7 @@ public Builder addClusteringKeyNamesBytes( checkByteStringIsUtf8(value); ensureClusteringKeyNamesIsMutable(); clusteringKeyNames_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1548,7 +1559,7 @@ public Builder putClusteringOrders( java.lang.String key, com.scalar.db.rpc.Order value) { if (key == null) { throw new NullPointerException("map key"); } - + internalGetMutableClusteringOrders().getMutableMap() .put(key, clusteringOrdersValueConverter.doBackward(value)); bitField0_ |= 0x00000008; @@ -1581,7 +1592,7 @@ public Builder putClusteringOrdersValue( java.lang.String key, int value) { if (key == null) { throw new NullPointerException("map key"); } - + internalGetMutableClusteringOrders().getMutableMap() .put(key, value); bitField0_ |= 0x00000008; @@ -1598,12 +1609,13 @@ public Builder putAllClusteringOrdersValue( return this; } - private com.google.protobuf.LazyStringList secondaryIndexNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList secondaryIndexNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSecondaryIndexNamesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!secondaryIndexNames_.isModifiable()) { secondaryIndexNames_ = new com.google.protobuf.LazyStringArrayList(secondaryIndexNames_); - bitField0_ |= 0x00000010; - } + } + bitField0_ |= 0x00000010; } /** * repeated string secondary_index_names = 5; @@ -1611,7 +1623,8 @@ private void ensureSecondaryIndexNamesIsMutable() { */ public com.google.protobuf.ProtocolStringList getSecondaryIndexNamesList() { - return secondaryIndexNames_.getUnmodifiableView(); + secondaryIndexNames_.makeImmutable(); + return secondaryIndexNames_; } /** * repeated string secondary_index_names = 5; @@ -1648,6 +1661,7 @@ public Builder setSecondaryIndexNames( if (value == null) { throw new NullPointerException(); } ensureSecondaryIndexNamesIsMutable(); secondaryIndexNames_.set(index, value); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1661,6 +1675,7 @@ public Builder addSecondaryIndexNames( if (value == null) { throw new NullPointerException(); } ensureSecondaryIndexNamesIsMutable(); secondaryIndexNames_.add(value); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1674,6 +1689,7 @@ public Builder addAllSecondaryIndexNames( ensureSecondaryIndexNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, secondaryIndexNames_); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1682,8 +1698,9 @@ public Builder addAllSecondaryIndexNames( * @return This builder for chaining. */ public Builder clearSecondaryIndexNames() { - secondaryIndexNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + secondaryIndexNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } @@ -1698,6 +1715,7 @@ public Builder addSecondaryIndexNamesBytes( checkByteStringIsUtf8(value); ensureSecondaryIndexNamesIsMutable(); secondaryIndexNames_.add(value); + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/rpc/src/main/java/com/scalar/db/rpc/TableMetadataOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/TableMetadataOrBuilder.java index d557c885dc..c805e891f8 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TableMetadataOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TableMetadataOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface TableMetadataOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/TransactionRequest.java b/rpc/src/main/java/com/scalar/db/rpc/TransactionRequest.java index 7693fe8609..55d4823613 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TransactionRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TransactionRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new TransactionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_descriptor; @@ -87,11 +83,6 @@ protected java.lang.Object newInstance( return new BeginRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_BeginRequest_descriptor; @@ -266,11 +257,13 @@ public static com.scalar.db.rpc.TransactionRequest.BeginRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionRequest.BeginRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionRequest.BeginRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -671,11 +664,6 @@ protected java.lang.Object newInstance( return new StartRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_StartRequest_descriptor; @@ -850,11 +838,13 @@ public static com.scalar.db.rpc.TransactionRequest.StartRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionRequest.StartRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionRequest.StartRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1252,11 +1242,6 @@ protected java.lang.Object newInstance( return new GetRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_GetRequest_descriptor; @@ -1270,6 +1255,7 @@ protected java.lang.Object newInstance( com.scalar.db.rpc.TransactionRequest.GetRequest.class, com.scalar.db.rpc.TransactionRequest.GetRequest.Builder.class); } + private int bitField0_; public static final int GET_FIELD_NUMBER = 2; private com.scalar.db.rpc.Get get_; /** @@ -1278,7 +1264,7 @@ protected java.lang.Object newInstance( */ @java.lang.Override public boolean hasGet() { - return get_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Get get = 2; @@ -1310,7 +1296,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (get_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getGet()); } getUnknownFields().writeTo(output); @@ -1322,7 +1308,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (get_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getGet()); } @@ -1410,11 +1396,13 @@ public static com.scalar.db.rpc.TransactionRequest.GetRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionRequest.GetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionRequest.GetRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1478,13 +1466,19 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.TransactionRequest.GetRequest.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getGetFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -1528,11 +1522,14 @@ public com.scalar.db.rpc.TransactionRequest.GetRequest buildPartial() { private void buildPartial0(com.scalar.db.rpc.TransactionRequest.GetRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.get_ = getBuilder_ == null ? get_ : getBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1698,8 +1695,10 @@ public Builder mergeGet(com.scalar.db.rpc.Get value) { } else { getBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (get_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -1855,11 +1854,6 @@ protected java.lang.Object newInstance( return new ScanRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_ScanRequest_descriptor; @@ -1873,6 +1867,7 @@ protected java.lang.Object newInstance( com.scalar.db.rpc.TransactionRequest.ScanRequest.class, com.scalar.db.rpc.TransactionRequest.ScanRequest.Builder.class); } + private int bitField0_; public static final int SCAN_FIELD_NUMBER = 2; private com.scalar.db.rpc.Scan scan_; /** @@ -1881,7 +1876,7 @@ protected java.lang.Object newInstance( */ @java.lang.Override public boolean hasScan() { - return scan_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Scan scan = 2; @@ -1913,7 +1908,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (scan_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getScan()); } getUnknownFields().writeTo(output); @@ -1925,7 +1920,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (scan_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getScan()); } @@ -2013,11 +2008,13 @@ public static com.scalar.db.rpc.TransactionRequest.ScanRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionRequest.ScanRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionRequest.ScanRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2081,13 +2078,19 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.TransactionRequest.ScanRequest.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getScanFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -2131,11 +2134,14 @@ public com.scalar.db.rpc.TransactionRequest.ScanRequest buildPartial() { private void buildPartial0(com.scalar.db.rpc.TransactionRequest.ScanRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.scan_ = scanBuilder_ == null ? scan_ : scanBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2301,8 +2307,10 @@ public Builder mergeScan(com.scalar.db.rpc.Scan value) { } else { scanBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (scan_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -2468,11 +2476,6 @@ protected java.lang.Object newInstance( return new MutateRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_MutateRequest_descriptor; @@ -2638,11 +2641,13 @@ public static com.scalar.db.rpc.TransactionRequest.MutateRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionRequest.MutateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionRequest.MutateRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3228,11 +3233,6 @@ protected java.lang.Object newInstance( return new CommitRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_CommitRequest_descriptor; @@ -3344,11 +3344,13 @@ public static com.scalar.db.rpc.TransactionRequest.CommitRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionRequest.CommitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionRequest.CommitRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3628,11 +3630,6 @@ protected java.lang.Object newInstance( return new RollbackRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_RollbackRequest_descriptor; @@ -3744,11 +3741,13 @@ public static com.scalar.db.rpc.TransactionRequest.RollbackRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionRequest.RollbackRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionRequest.RollbackRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4028,11 +4027,6 @@ protected java.lang.Object newInstance( return new AbortRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionRequest_AbortRequest_descriptor; @@ -4144,11 +4138,13 @@ public static com.scalar.db.rpc.TransactionRequest.AbortRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionRequest.AbortRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionRequest.AbortRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4403,6 +4399,7 @@ public com.scalar.db.rpc.TransactionRequest.AbortRequest getDefaultInstanceForTy } private int requestCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object request_; public enum RequestCase implements com.google.protobuf.Internal.EnumLite, @@ -4930,11 +4927,13 @@ public static com.scalar.db.rpc.TransactionRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/TransactionRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/TransactionRequestOrBuilder.java index 28a576eda5..401154367c 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TransactionRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TransactionRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface TransactionRequestOrBuilder extends @@ -127,5 +128,5 @@ public interface TransactionRequestOrBuilder extends */ com.scalar.db.rpc.TransactionRequest.RollbackRequestOrBuilder getRollbackRequestOrBuilder(); - public com.scalar.db.rpc.TransactionRequest.RequestCase getRequestCase(); + com.scalar.db.rpc.TransactionRequest.RequestCase getRequestCase(); } diff --git a/rpc/src/main/java/com/scalar/db/rpc/TransactionResponse.java b/rpc/src/main/java/com/scalar/db/rpc/TransactionResponse.java index f93acca10d..321dd7dac8 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TransactionResponse.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TransactionResponse.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new TransactionResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_descriptor; @@ -82,11 +78,6 @@ protected java.lang.Object newInstance( return new BeginResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_BeginResponse_descriptor; @@ -247,11 +238,13 @@ public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionResponse.BeginResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -637,11 +630,6 @@ protected java.lang.Object newInstance( return new StartResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_StartResponse_descriptor; @@ -802,11 +790,13 @@ public static com.scalar.db.rpc.TransactionResponse.StartResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionResponse.StartResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionResponse.StartResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1194,11 +1184,6 @@ protected java.lang.Object newInstance( return new GetResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_GetResponse_descriptor; @@ -1212,6 +1197,7 @@ protected java.lang.Object newInstance( com.scalar.db.rpc.TransactionResponse.GetResponse.class, com.scalar.db.rpc.TransactionResponse.GetResponse.Builder.class); } + private int bitField0_; public static final int RESULT_FIELD_NUMBER = 1; private com.scalar.db.rpc.Result result_; /** @@ -1220,7 +1206,7 @@ protected java.lang.Object newInstance( */ @java.lang.Override public boolean hasResult() { - return result_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Result result = 1; @@ -1252,7 +1238,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (result_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getResult()); } getUnknownFields().writeTo(output); @@ -1264,7 +1250,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (result_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResult()); } @@ -1352,11 +1338,13 @@ public static com.scalar.db.rpc.TransactionResponse.GetResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionResponse.GetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionResponse.GetResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1420,13 +1408,19 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.TransactionResponse.GetResponse.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -1470,11 +1464,14 @@ public com.scalar.db.rpc.TransactionResponse.GetResponse buildPartial() { private void buildPartial0(com.scalar.db.rpc.TransactionResponse.GetResponse result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1640,8 +1637,10 @@ public Builder mergeResult(com.scalar.db.rpc.Result value) { } else { resultBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (result_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -1807,11 +1806,6 @@ protected java.lang.Object newInstance( return new ScanResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_ScanResponse_descriptor; @@ -1977,11 +1971,13 @@ public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionResponse.ScanResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2592,11 +2588,6 @@ protected java.lang.Object newInstance( return new Error(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TransactionResponse_Error_descriptor; @@ -2920,11 +2911,13 @@ public static com.scalar.db.rpc.TransactionResponse.Error parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionResponse.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionResponse.Error parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3337,6 +3330,7 @@ public com.scalar.db.rpc.TransactionResponse.Error getDefaultInstanceForType() { } private int responseCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object response_; public enum ResponseCase implements com.google.protobuf.Internal.EnumLite, @@ -3720,11 +3714,13 @@ public static com.scalar.db.rpc.TransactionResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TransactionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TransactionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/TransactionResponseOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/TransactionResponseOrBuilder.java index a7cd4c7282..36776353dc 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TransactionResponseOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TransactionResponseOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface TransactionResponseOrBuilder extends @@ -82,5 +83,5 @@ public interface TransactionResponseOrBuilder extends */ com.scalar.db.rpc.TransactionResponse.BeginResponseOrBuilder getBeginResponseOrBuilder(); - public com.scalar.db.rpc.TransactionResponse.ResponseCase getResponseCase(); + com.scalar.db.rpc.TransactionResponse.ResponseCase getResponseCase(); } diff --git a/rpc/src/main/java/com/scalar/db/rpc/TransactionState.java b/rpc/src/main/java/com/scalar/db/rpc/TransactionState.java index 7ddd18a879..ccbcc668bc 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TransactionState.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TransactionState.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** diff --git a/rpc/src/main/java/com/scalar/db/rpc/TruncateCoordinatorTablesRequest.java b/rpc/src/main/java/com/scalar/db/rpc/TruncateCoordinatorTablesRequest.java index 2a166fce48..4b79796a0b 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TruncateCoordinatorTablesRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TruncateCoordinatorTablesRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new TruncateCoordinatorTablesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TruncateCoordinatorTablesRequest_descriptor; @@ -141,11 +137,13 @@ public static com.scalar.db.rpc.TruncateCoordinatorTablesRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TruncateCoordinatorTablesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TruncateCoordinatorTablesRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/TruncateCoordinatorTablesRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/TruncateCoordinatorTablesRequestOrBuilder.java index 040d5013f5..9aee3e707e 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TruncateCoordinatorTablesRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TruncateCoordinatorTablesRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface TruncateCoordinatorTablesRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/TruncateTableRequest.java b/rpc/src/main/java/com/scalar/db/rpc/TruncateTableRequest.java index 4f4ef2cabc..c3e4162699 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TruncateTableRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TruncateTableRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -27,11 +28,6 @@ protected java.lang.Object newInstance( return new TruncateTableRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TruncateTableRequest_descriptor; @@ -241,11 +237,13 @@ public static com.scalar.db.rpc.TruncateTableRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TruncateTableRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TruncateTableRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/TruncateTableRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/TruncateTableRequestOrBuilder.java index c6ee624631..e2ba666abb 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TruncateTableRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TruncateTableRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface TruncateTableRequestOrBuilder extends diff --git a/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionRequest.java b/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionRequest.java index 93321928f7..da3d889cac 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionRequest.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionRequest.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new TwoPhaseCommitTransactionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionRequest_descriptor; @@ -87,11 +83,6 @@ protected java.lang.Object newInstance( return new BeginRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionRequest_BeginRequest_descriptor; @@ -266,11 +257,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.BeginRequest pa return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.BeginRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.BeginRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -671,11 +664,6 @@ protected java.lang.Object newInstance( return new StartRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionRequest_StartRequest_descriptor; @@ -850,11 +838,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.StartRequest pa return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.StartRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.StartRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1250,11 +1240,6 @@ protected java.lang.Object newInstance( return new JoinRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionRequest_JoinRequest_descriptor; @@ -1415,11 +1400,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.JoinRequest par return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.JoinRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.JoinRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1807,11 +1794,6 @@ protected java.lang.Object newInstance( return new GetRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionRequest_GetRequest_descriptor; @@ -1825,6 +1807,7 @@ protected java.lang.Object newInstance( com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.GetRequest.class, com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.GetRequest.Builder.class); } + private int bitField0_; public static final int GET_FIELD_NUMBER = 2; private com.scalar.db.rpc.Get get_; /** @@ -1833,7 +1816,7 @@ protected java.lang.Object newInstance( */ @java.lang.Override public boolean hasGet() { - return get_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Get get = 2; @@ -1865,7 +1848,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (get_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getGet()); } getUnknownFields().writeTo(output); @@ -1877,7 +1860,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (get_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getGet()); } @@ -1965,11 +1948,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.GetRequest pars return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.GetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.GetRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2033,13 +2018,19 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.GetRequest.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getGetFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -2083,11 +2074,14 @@ public com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.GetRequest buildPartia private void buildPartial0(com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.GetRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.get_ = getBuilder_ == null ? get_ : getBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2253,8 +2247,10 @@ public Builder mergeGet(com.scalar.db.rpc.Get value) { } else { getBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (get_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -2410,11 +2406,6 @@ protected java.lang.Object newInstance( return new ScanRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionRequest_ScanRequest_descriptor; @@ -2428,6 +2419,7 @@ protected java.lang.Object newInstance( com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.ScanRequest.class, com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.ScanRequest.Builder.class); } + private int bitField0_; public static final int SCAN_FIELD_NUMBER = 2; private com.scalar.db.rpc.Scan scan_; /** @@ -2436,7 +2428,7 @@ protected java.lang.Object newInstance( */ @java.lang.Override public boolean hasScan() { - return scan_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Scan scan = 2; @@ -2468,7 +2460,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (scan_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getScan()); } getUnknownFields().writeTo(output); @@ -2480,7 +2472,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (scan_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getScan()); } @@ -2568,11 +2560,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.ScanRequest par return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.ScanRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.ScanRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2636,13 +2630,19 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.ScanRequest.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getScanFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -2686,11 +2686,14 @@ public com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.ScanRequest buildParti private void buildPartial0(com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.ScanRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.scan_ = scanBuilder_ == null ? scan_ : scanBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2856,8 +2859,10 @@ public Builder mergeScan(com.scalar.db.rpc.Scan value) { } else { scanBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (scan_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -3023,11 +3028,6 @@ protected java.lang.Object newInstance( return new MutateRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionRequest_MutateRequest_descriptor; @@ -3193,11 +3193,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.MutateRequest p return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.MutateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.MutateRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3783,11 +3785,6 @@ protected java.lang.Object newInstance( return new PrepareRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionRequest_PrepareRequest_descriptor; @@ -3899,11 +3896,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.PrepareRequest return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.PrepareRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.PrepareRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4183,11 +4182,6 @@ protected java.lang.Object newInstance( return new ValidateRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionRequest_ValidateRequest_descriptor; @@ -4299,11 +4293,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.ValidateRequest return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.ValidateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.ValidateRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4583,11 +4579,6 @@ protected java.lang.Object newInstance( return new CommitRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionRequest_CommitRequest_descriptor; @@ -4699,11 +4690,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.CommitRequest p return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.CommitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.CommitRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4983,11 +4976,6 @@ protected java.lang.Object newInstance( return new RollbackRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionRequest_RollbackRequest_descriptor; @@ -5099,11 +5087,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.RollbackRequest return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.RollbackRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.RollbackRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5383,11 +5373,6 @@ protected java.lang.Object newInstance( return new AbortRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionRequest_AbortRequest_descriptor; @@ -5499,11 +5484,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.AbortRequest pa return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.AbortRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.AbortRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5758,6 +5745,7 @@ public com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.AbortRequest getDefaul } private int requestCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object request_; public enum RequestCase implements com.google.protobuf.Internal.EnumLite, @@ -6429,11 +6417,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionRequestOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionRequestOrBuilder.java index 853f970e37..d64804ee65 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionRequestOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionRequestOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface TwoPhaseCommitTransactionRequestOrBuilder extends @@ -172,5 +173,5 @@ public interface TwoPhaseCommitTransactionRequestOrBuilder extends */ com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.AbortRequestOrBuilder getAbortRequestOrBuilder(); - public com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.RequestCase getRequestCase(); + com.scalar.db.rpc.TwoPhaseCommitTransactionRequest.RequestCase getRequestCase(); } diff --git a/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionResponse.java b/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionResponse.java index 21dc45bba0..1925f5f7fd 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionResponse.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionResponse.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -25,11 +26,6 @@ protected java.lang.Object newInstance( return new TwoPhaseCommitTransactionResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_descriptor; @@ -82,11 +78,6 @@ protected java.lang.Object newInstance( return new BeginResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_BeginResponse_descriptor; @@ -247,11 +238,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -637,11 +630,6 @@ protected java.lang.Object newInstance( return new StartResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_StartResponse_descriptor; @@ -802,11 +790,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.StartResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1194,11 +1184,6 @@ protected java.lang.Object newInstance( return new GetResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_GetResponse_descriptor; @@ -1212,6 +1197,7 @@ protected java.lang.Object newInstance( com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.class, com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.Builder.class); } + private int bitField0_; public static final int RESULT_FIELD_NUMBER = 1; private com.scalar.db.rpc.Result result_; /** @@ -1220,7 +1206,7 @@ protected java.lang.Object newInstance( */ @java.lang.Override public boolean hasResult() { - return result_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * .rpc.Result result = 1; @@ -1252,7 +1238,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (result_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getResult()); } getUnknownFields().writeTo(output); @@ -1264,7 +1250,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (result_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResult()); } @@ -1352,11 +1338,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse pa return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1420,13 +1408,19 @@ public static final class Builder extends // Construct using com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -1470,11 +1464,14 @@ public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse buildPart private void buildPartial0(com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.GetResponse result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1640,8 +1637,10 @@ public Builder mergeResult(com.scalar.db.rpc.Result value) { } else { resultBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (result_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -1807,11 +1806,6 @@ protected java.lang.Object newInstance( return new ScanResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_ScanResponse_descriptor; @@ -1977,11 +1971,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse p return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ScanResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2592,11 +2588,6 @@ protected java.lang.Object newInstance( return new Error(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_TwoPhaseCommitTransactionResponse_Error_descriptor; @@ -2920,11 +2911,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseFro return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3337,6 +3330,7 @@ public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.Error getDefaultInsta } private int responseCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object response_; public enum ResponseCase implements com.google.protobuf.Internal.EnumLite, @@ -3720,11 +3714,13 @@ public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.TwoPhaseCommitTransactionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) diff --git a/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionResponseOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionResponseOrBuilder.java index 50cd3e2339..55fb87030e 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionResponseOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/TwoPhaseCommitTransactionResponseOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; public interface TwoPhaseCommitTransactionResponseOrBuilder extends @@ -82,5 +83,5 @@ public interface TwoPhaseCommitTransactionResponseOrBuilder extends */ com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.BeginResponseOrBuilder getBeginResponseOrBuilder(); - public com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ResponseCase getResponseCase(); + com.scalar.db.rpc.TwoPhaseCommitTransactionResponse.ResponseCase getResponseCase(); } diff --git a/rpc/src/main/java/com/scalar/db/rpc/Value.java b/rpc/src/main/java/com/scalar/db/rpc/Value.java index 99b8d5390f..749ba59daf 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/Value.java +++ b/rpc/src/main/java/com/scalar/db/rpc/Value.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; /** @@ -30,11 +31,6 @@ protected java.lang.Object newInstance( return new Value(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_Value_descriptor; @@ -92,11 +88,6 @@ protected java.lang.Object newInstance( return new TextValue(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_Value_TextValue_descriptor; @@ -271,11 +262,13 @@ public static com.scalar.db.rpc.Value.TextValue parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.Value.TextValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.Value.TextValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -670,11 +663,6 @@ protected java.lang.Object newInstance( return new BlobValue(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_Value_BlobValue_descriptor; @@ -822,11 +810,13 @@ public static com.scalar.db.rpc.Value.BlobValue parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.Value.BlobValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.Value.BlobValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1143,6 +1133,7 @@ public com.scalar.db.rpc.Value.BlobValue getDefaultInstanceForType() { } private int valueCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, @@ -1637,11 +1628,13 @@ public static com.scalar.db.rpc.Value parseFrom( return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } + public static com.scalar.db.rpc.Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } + public static com.scalar.db.rpc.Value parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2061,7 +2054,7 @@ public boolean getBooleanValue() { * @return This builder for chaining. */ public Builder setBooleanValue(boolean value) { - + valueCase_ = 2; value_ = value; onChanged(); @@ -2103,7 +2096,7 @@ public int getIntValue() { * @return This builder for chaining. */ public Builder setIntValue(int value) { - + valueCase_ = 3; value_ = value; onChanged(); @@ -2145,7 +2138,7 @@ public long getBigintValue() { * @return This builder for chaining. */ public Builder setBigintValue(long value) { - + valueCase_ = 4; value_ = value; onChanged(); @@ -2187,7 +2180,7 @@ public float getFloatValue() { * @return This builder for chaining. */ public Builder setFloatValue(float value) { - + valueCase_ = 5; value_ = value; onChanged(); @@ -2229,7 +2222,7 @@ public double getDoubleValue() { * @return This builder for chaining. */ public Builder setDoubleValue(double value) { - + valueCase_ = 6; value_ = value; onChanged(); diff --git a/rpc/src/main/java/com/scalar/db/rpc/ValueOrBuilder.java b/rpc/src/main/java/com/scalar/db/rpc/ValueOrBuilder.java index f49df67c09..b22711a441 100644 --- a/rpc/src/main/java/com/scalar/db/rpc/ValueOrBuilder.java +++ b/rpc/src/main/java/com/scalar/db/rpc/ValueOrBuilder.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: scalardb.proto +// Protobuf Java Version: 3.25.5 package com.scalar.db.rpc; @java.lang.Deprecated public interface ValueOrBuilder extends @@ -104,5 +105,5 @@ */ com.scalar.db.rpc.Value.BlobValueOrBuilder getBlobValueOrBuilder(); - public com.scalar.db.rpc.Value.ValueCase getValueCase(); + com.scalar.db.rpc.Value.ValueCase getValueCase(); } diff --git a/server/Dockerfile b/server/Dockerfile index f58e80a5e8..e30a8af92e 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,6 +1,6 @@ FROM docker.io/busybox:1.36 AS tools -ENV GRPC_HEALTH_PROBE_VERSION v0.4.28 +ENV GRPC_HEALTH_PROBE_VERSION v0.4.34 ENV DOCKERIZE_VERSION v0.6.1 # Install grpc_health_probe for kubernetes. diff --git a/server/build.gradle b/server/build.gradle index e260034930..672f08e0d5 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -35,6 +35,7 @@ dependencies { implementation "info.picocli:picocli:${picocliVersion}" implementation("com.scalar-labs:scalar-admin:${scalarAdminVersion}") { exclude group: 'io.grpc' + exclude group: 'com.google.protobuf' exclude group: 'org.slf4j' } implementation "io.dropwizard.metrics:metrics-core:${dropwizardMetricsVersion}"